Skip to content

Commit c84576f

Browse files
SunZhiCgitbook-bot
authored andcommitted
GITBOOK-1050: No subject
1 parent 224fc8e commit c84576f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+341
-168
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ coverY: 0
4141
| 🌍 Basic | 📱 Mobile | 🎮 Game |
4242
| :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
4343
| <p><img src=".gitbook/assets/JavaScript-logo (1).png" alt="" data-size="original"></p><p><a href="getting-started/platform-specific-guides/web.md">Web</a></p> | <p><img src=".gitbook/assets/android-logo (1).png" alt="" data-size="original"></p><p><a href="getting-started/platform-specific-guides/android.md">Android</a></p> | <p><img src=".gitbook/assets/U-ea48bc1d-128 (1).png" alt="" data-size="original"></p><p><a href="getting-started/platform-specific-guides/unity/">Unity</a></p> |
44-
| <p><img src=".gitbook/assets/926f6aaba773 (1).png" alt="" data-size="original"></p><p><a href="getting-started/platform-specific-guides/server-api.md">Server API</a></p> | <p><img src=".gitbook/assets/apple-logo-transparent (1).png" alt="" data-size="original"></p><p><a href="getting-started/platform-specific-guides/ios.md">iOS</a></p> | <p><img src=".gitbook/assets/kisspng-unreal-tournament-unreal-engine-4-game-engine-marketplace-5ad659d01e4e40 (1).png" alt="" data-size="original"></p><p><a href="getting-started/platform-specific-guides/unreal.md">Unreal</a></p> |
44+
| <p><img src=".gitbook/assets/926f6aaba773 (1).png" alt="" data-size="original"></p><p><a href="getting-started/platform-specific-guides/server-api.md">Server API</a></p> | <p><img src=".gitbook/assets/apple-logo-transparent (1).png" alt="" data-size="original"></p><p><a href="getting-started/platform-specific-guides/ios/">iOS</a></p> | <p><img src=".gitbook/assets/kisspng-unreal-tournament-unreal-engine-4-game-engine-marketplace-5ad659d01e4e40 (1).png" alt="" data-size="original"></p><p><a href="getting-started/platform-specific-guides/unreal.md">Unreal</a></p> |
4545
| | <p><img src=".gitbook/assets/flutter5786 (1).png" alt="" data-size="original"></p><p><a href="getting-started/platform-specific-guides/flutter.md">Flutter</a></p> | <p><img src=".gitbook/assets/cocos.png" alt=""><br><a href="getting-started/platform-specific-guides/cocos/">Cocos Creator</a></p> |
4646
| | <p><img src=".gitbook/assets/React-icon (1).png" alt="" data-size="original"></p><p><a href="getting-started/platform-specific-guides/react-native.md">React Native</a></p> | |
4747

Diff for: SUMMARY.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
* [🧩 Platform-specific Guides](getting-started/platform-specific-guides/README.md)
4848
* [Web](getting-started/platform-specific-guides/web.md)
4949
* [Android](getting-started/platform-specific-guides/android.md)
50-
* [iOS](getting-started/platform-specific-guides/ios.md)
50+
* [iOS](getting-started/platform-specific-guides/ios/README.md)
51+
* [Social Login + Embeded Wallet](getting-started/platform-specific-guides/ios/social-login-+-embeded-wallet.md)
5152
* [Unity](getting-started/platform-specific-guides/unity/README.md)
5253
* [Unity SDK Prerequisites](getting-started/platform-specific-guides/unity/unity-sdk-prerequisites.md)
5354
* [Cocos](getting-started/platform-specific-guides/cocos/README.md)

Diff for: developers/connect-service/faq.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ String result = await ParticleConnect.signMessage(WalletType.metamask, getPublic
3232
3\. Add chain, MetaMask support add chain, other wallets don't support this methods, you can get success string in success call back.
3333

3434
{% hint style="warning" %}
35-
### Wallet Connect V2 doesn't support add chain or switch chain, the feature is not available anymore
35+
#### Wallet Connect V2 doesn't support add chain or switch chain, the feature is not available anymore
3636
{% endhint %}
3737

3838
{% hint style="info" %}
@@ -68,6 +68,3 @@ String result = await ParticleConnect.switchEthereumChain(walletType, getPublicA
6868
It is determined by yourself.
6969

7070
In our iOS GUI SDK, we call add(switch) chain before signAndSendTransaction, make sure matamask is the same chain id with the transaction, if transaction's chain id not same with metamask, metamask will reject it, after add(switch) chain success, delay 0.3 second, call signAndSendTransaction.
71-
72-
73-

Diff for: developers/connect-service/sdks/flutter.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ With Flutter:
1212
flutter pub add particle_connect
1313
```
1414

15-
click [here](https://github.com/Particle-Network/particle-flutter/tree/master/particle-connect) to get the demo source code&#x20;
15+
click [here](https://github.com/Particle-Network/particle-flutter/tree/master/particle-connect) to get the demo source code
1616

1717
### 2.Configure Android project
1818

@@ -159,7 +159,7 @@ override func application(_ app: UIApplication, open url: URL, options: [UIAppli
159159
{% endtab %}
160160
{% endtabs %}
161161

162-
3.7. Configure your app scheme URL, select your app from `TARGETS`, under `Info` section, click + to add the `URL types`, and paste your scheme in `URL Schemes`
162+
3.7. Configure your app scheme URL, select your app from `TARGETS`, under `Info` section, click + to add the `URL types`, and paste your scheme in `URL Schemes`
163163

164164
Your scheme URL should be "pn" + your project app uuid.
165165

@@ -193,11 +193,9 @@ Copy & Paste the XML snippet into the body of your file (`<dict>`...`</dict>`).
193193

194194
3.9 Edit Podfile, you should follow [Podfile required](ios.md#edit-podile) to edit Podfile.
195195

196-
197-
198196
### Initialize the SDK
199197

200-
**Before using the SDK you have to call init(Required)**&#x20;
198+
**Before using the SDK you have to call init(Required)**
201199

202200
```dart
203201
// Get your project id and client key from dashboard,
@@ -208,7 +206,7 @@ ParticleInfo.set(projectId, clientK);
208206
```
209207

210208
{% hint style="info" %}
211-
## Migrating to WalletConnect v2
209+
### Migrating to WalletConnect v2
212210

213211
Starting from version 0.14.0, WalletConnectV2 is supported.
214212

@@ -271,7 +269,7 @@ String result = await ParticleConnect.signMessage(WalletType.particle, getPublic
271269

272270
### Sign transaction
273271

274-
Only support Solana chain, in Solana chain requires a base58 string.
272+
Only support Solana chain, in Solana chain requires a base58 string.
275273

276274
Please explore our GitHub. In the `example/transaction_mock.dart` file, you can learn how to mock a test transaction.
277275

@@ -281,7 +279,7 @@ String result = await ParticleConnect.signTransaction(WalletType.particle, getPu
281279

282280
### Sign all transactions
283281

284-
Only support Solana chain, in Solana chain requires a base58 string.
282+
Only support Solana chain, in Solana chain requires a base58 string.
285283

286284
Please explore our GitHub. In the `example/transaction_mock.dart` file, you can learn how to mock a test transaction.
287285

Diff for: developers/connect-service/sdks/ios.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ If you would like to receive release updates, subscribe to our [GitHub repositor
7272
### Edit Podile
7373

7474
{% hint style="info" %}
75-
#### It is required for every iOS project that integrates the Auth Service SDK.
75+
**It is required for every iOS project that integrates the Auth Service SDK.**
7676

7777
```ruby
7878
// paste there code into pod file
@@ -178,7 +178,7 @@ ParticleConnect.initialize(env: .debug,
178178
{% endtabs %}
179179

180180
{% hint style="info" %}
181-
## Migrating to WalletConnect v2
181+
### Migrating to WalletConnect v2
182182

183183
Starting from version 0.2.0, WalletConnectV2 is supported.
184184

@@ -295,7 +295,7 @@ connectAdapter.disconnect(address).subscribe { [weak self] result in
295295

296296
call this method to check if the public address is connected.
297297

298-
After user connects with a third party wallet, user can remove the wallet connect's session in the third party wallet, when receive disconnect request, local session cache should be removed.&#x20;
298+
After user connects with a third party wallet, user can remove the wallet connect's session in the third party wallet, when receive disconnect request, local session cache should be removed.
299299

300300
It is better to call `reconnectIfNeeded` when start app.
301301

@@ -497,7 +497,7 @@ adapter.verify(message: message, against: against).subscribe { [weak self] resul
497497
}.disposed(by: bag)
498498
</code></pre>
499499

500-
### Request&#x20;
500+
### Request
501501

502502
request eth or solana rpc methods, from tests, wallet connect MetaMask and Rainbow works, other wallets not works.
503503

@@ -535,12 +535,12 @@ ParticleWalletAPI.getEvmService().abiEncodeFunctionCall(contractAddress: contrac
535535
}.disposed(by: bag)
536536
```
537537

538-
### Add Ethereum Chain&#x20;
538+
### Add Ethereum Chain
539539

540540
From tests, wallet connect MetaMask works well, other wallets not work.
541541

542542
{% hint style="warning" %}
543-
### Wallet Connect V2 doesn't support add chain or switch chain, the feature is not available anymore
543+
#### Wallet Connect V2 doesn't support add chain or switch chain, the feature is not available anymore
544544
{% endhint %}
545545

546546
```swift
@@ -565,7 +565,7 @@ adapter.addEthereumChain(publicAddress: publicAddress, chainId: chainId, chainNa
565565
### Switch Ethereum Chain
566566

567567
{% hint style="warning" %}
568-
### Wallet Connect V2 doesn't support add chain or switch chain, the feature is not available anymore
568+
#### Wallet Connect V2 doesn't support add chain or switch chain, the feature is not available anymore
569569
{% endhint %}
570570

571571
```swift

Diff for: developers/connect-service/sdks/react-native.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Run this command:
1010
npm install @particle-network/rn-connect
1111
```
1212

13-
click [here](https://github.com/Particle-Network/particle-react-native/tree/master/particle-connect) to get the demo source code&#x20;
13+
click [here](https://github.com/Particle-Network/particle-react-native/tree/master/particle-connect) to get the demo source code
1414

1515
### 2.Configure Android project
1616

@@ -110,7 +110,7 @@ android {
110110
{% endtab %}
111111
{% endtabs %}
112112

113-
3.7. Configure your app scheme URL, select your app from `TARGETS`, under `Info` section, click + to add the `URL types`, and paste your scheme in `URL Schemes`
113+
3.7. Configure your app scheme URL, select your app from `TARGETS`, under `Info` section, click + to add the `URL types`, and paste your scheme in `URL Schemes`
114114

115115
Your scheme URL should be "pn" + your project app uuid.
116116

@@ -150,7 +150,7 @@ import * as particleConnect from '@particle-network/rn-connect';
150150

151151
### Initialize the SDK
152152

153-
**Before using the sdk you have to call init(Required)**&#x20;
153+
**Before using the sdk you have to call init(Required)**
154154

155155
```javascript
156156
// Get your project id and client key from dashboard,
@@ -160,7 +160,7 @@ ParticleInfo.clientKey = ''; // your client key
160160
```
161161

162162
{% hint style="info" %}
163-
## Migrating to WalletConnect v2
163+
### Migrating to WalletConnect v2
164164

165165
Starting from version 0.14.0, WalletConnectV2 is supported.
166166

@@ -559,7 +559,7 @@ const accounts = await particleConnect.getAccounts(walletType);
559559
console.log(accounts);
560560
```
561561

562-
### Set chain info async&#x20;
562+
### Set chain info async
563563

564564
```javascript
565565
const chainInfo = Ethereum;
@@ -603,7 +603,7 @@ addEthereumChain = async () => {
603603
}
604604
```
605605

606-
### Switch ethereum chain&#x20;
606+
### Switch ethereum chain
607607

608608
```javascript
609609
switchEthereumChain = async () => {
@@ -646,4 +646,3 @@ reconnectIfNeeded = async () => {
646646
}
647647
};
648648
```
649-

Diff for: developers/connect-service/sdks/unity.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ParticleConnectInteraction.SetWalletConnectV2SupportChainInfos(chainInfos.ToArra
3636
```
3737

3838
{% hint style="info" %}
39-
## Migrating to WalletConnect v2
39+
### Migrating to WalletConnect v2
4040

4141
Starting from version 0.14.0, WalletConnectV2 is supported.
4242

Diff for: developers/wallet-service/sdks/flutter.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ With Flutter:
1010
flutter pub add particle_wallet
1111
```
1212

13-
click [here](https://github.com/Particle-Network/particle-flutter/tree/master/particle-wallet) to get the demo source code&#x20;
13+
click [here](https://github.com/Particle-Network/particle-flutter/tree/master/particle-wallet) to get the demo source code
1414

1515
### 2.Configure Android project
1616

@@ -170,7 +170,7 @@ return [ParticleAuthService handleUrl:url];
170170
{% endtab %}
171171
{% endtabs %}
172172
173-
3.7. Configure your app scheme URL, select your app from `TARGETS`, under `Info` section, click + to add the `URL types`, and paste your scheme in `URL Schemes`
173+
3.7. Configure your app scheme URL, select your app from `TARGETS`, under `Info` section, click + to add the `URL types`, and paste your scheme in `URL Schemes`
174174
175175
Your scheme URL should be "pn" + your project app uuid.
176176
@@ -206,10 +206,10 @@ Copy & Paste the XML snippet into the body of your file (`<dict>`...`</dict>`).
206206
207207
### Initialize the SDK
208208
209-
**Before using the SDK, you have to call init(Required)**&#x20;
209+
**Before using the SDK, you have to call init(Required)**
210210
211211
{% hint style="info" %}
212-
## Migrating to WalletConnect v2
212+
### Migrating to WalletConnect v2
213213
214214
Starting from version 0.14.0, WalletConnectV2 is supported.
215215
@@ -237,7 +237,7 @@ ParticleWallet.navigatorWallet();
237237
ParticleWallet.navigatorTokenReceive();
238238
```
239239

240-
### Navigator token send&#x20;
240+
### Navigator token send
241241

242242
```dart
243243
String tokenAddress = "8ci2fZwQSmArbeHkuA7M8h5rsRwwh4FMTXrZxb3KsDpb";

Diff for: developers/wallet-service/sdks/ios.md

+10-14
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ If you want to receive release updates, subscribe to our [GitHub repository](htt
6363
### Edit Podfile
6464

6565
{% hint style="info" %}
66-
#### It is required for every iOS project that integrates the Wallet Service SDK.
66+
**It is required for every iOS project that integrates the Wallet Service SDK.**
6767

6868
```ruby
6969
// From 0.9.12, you should add more in podfile
@@ -230,7 +230,7 @@ NSString *payer = nil;
230230
{% endtab %}
231231
{% endtabs %}
232232
233-
#### Get the token info list&#x20;
233+
#### Get the token info list
234234
235235
{% tabs %}
236236
{% tab title="Swift" %}
@@ -255,7 +255,7 @@ ParticleWalletAPI.getSolanaService().getTokenList().subscribe { [weak self] resu
255255
{% endtab %}
256256
{% endtabs %}
257257
258-
#### Access 👉 [any RPC ](../../node-service/solana-api/)
258+
#### Access 👉 [any RPC](../../node-service/solana-api/)
259259
260260
{% tabs %}
261261
{% tab title="Swift" %}
@@ -271,8 +271,6 @@ ParticleWalletAPI.getSolanaService().rpc(method: method, params: params).subscri
271271
{% endtab %}
272272
{% endtabs %}
273273

274-
275-
276274
### EVM Service
277275

278276
#### Get the real-time exchange rate of the EVM token
@@ -399,7 +397,7 @@ NSString *address = @"";
399397
{% endtab %}
400398
{% endtabs %}
401399

402-
#### Get the token info list&#x20;
400+
#### Get the token info list
403401

404402
{% tabs %}
405403
{% tab title="Swift" %}
@@ -839,7 +837,7 @@ func deployContract() {
839837
{% endtab %}
840838
{% endtabs %}
841839

842-
You can create contractParams object by these `ContractParams`static methods&#x20;
840+
You can create contractParams object by these `ContractParams`static methods
843841

844842
* `ContractParams.erc20Transfer()`
845843
* `ContractParams.erc20Approve()`
@@ -899,7 +897,7 @@ func writeContract() {
899897
## Wallet UI Reference
900898

901899
{% hint style="info" %}
902-
## Migrating to WalletConnect v2
900+
### Migrating to WalletConnect v2
903901

904902
ParticleWalletGUI is dependent on ParticleWalletConnect, start from version 0.15.0, you should call this method to set wallet connect v2 project id.
905903

@@ -908,11 +906,11 @@ ParticleWalletConnect.setWalletConnectV2ProjectId("your wallet connect v2 projec
908906
```
909907
{% endhint %}
910908

911-
### Custom Wallet UI &#x20;
909+
### Custom Wallet UI
912910

913911
Control show or hide test network, swap feature, buy crypto feature, support wallet connect, manage wallet page, support chain, set language, set user interface style and more.
914912

915-
Because ParticleWalletGUI dependent on Particle Connect, Particle Connect initialize chain will add to support chain automatically.&#x20;
913+
Because ParticleWalletGUI dependent on Particle Connect, Particle Connect initialize chain will add to support chain automatically.
916914

917915
{% tabs %}
918916
{% tab title="Swift" %}
@@ -960,7 +958,7 @@ ParticleWalletGUI.setDisplayTokenAddresses([tokenAddress])
960958
// Set display NFT contract addresses
961959
// If you called this method, Wallet SDK will only show NFTs in the NFT contract addresses.
962960
// You can pass nil to reset.
963-
ParticleWalletGUI.<a data-footnote-ref href="#user-content-fn-1">setDisplayNFTContractAddresses</a>([nftContractAddress])
961+
ParticleWalletGUI.setDisplayNFTContractAddresses([nftContractAddress])
964962

965963
// Set priority token addresses, priority token will show in top part of the list.
966964
// If you called this method,
@@ -1210,7 +1208,7 @@ PNRouter.navigatorBuy(buyCryptoConfig: buyCryptoConfig)
12101208
{% endtab %}
12111209
{% endtabs %}
12121210

1213-
### Open Swap&#x20;
1211+
### Open Swap
12141212

12151213
{% tabs %}
12161214
{% tab title="Swift" %}
@@ -1234,5 +1232,3 @@ if let url = URL(string: "app.uniswap.org") {
12341232
PNRouter.navigatorDappBrowser(url: url)
12351233
}
12361234
```
1237-
1238-
[^1]:

Diff for: developers/wallet-service/sdks/react-native.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ Run this command:
88
npm install @particle-network/rn-wallet
99
```
1010

11-
click [here](https://github.com/Particle-Network/particle-react-native/tree/master/particle-wallet) to get the demo source code&#x20;
11+
click [here](https://github.com/Particle-Network/particle-react-native/tree/master/particle-wallet) to get the demo source code
1212

1313
### 2.Configure Android project
1414

15-
is same with [Connect Service ](../../connect-service/sdks/react-native.md)
15+
is same with [Connect Service](../../connect-service/sdks/react-native.md)
1616

1717
### 3.Configure iOS project
1818

19-
is same with [Connect Service ](../../connect-service/sdks/react-native.md)
19+
is same with [Connect Service](../../connect-service/sdks/react-native.md)
2020

2121
### Initialize the SDK
2222

@@ -34,7 +34,7 @@ particleConnect.init(chainInfo, env, dappMetaData);
3434
```
3535

3636
{% hint style="info" %}
37-
## Migrating to WalletConnect v2
37+
### Migrating to WalletConnect v2
3838

3939
Starting from version 0.14.0, WalletConnectV2 is supported.
4040

@@ -65,7 +65,7 @@ const tokenAddress = TestAccountSolana.tokenContractAddress;
6565
particleWallet.navigatorTokenReceive(tokenAddress);
6666
```
6767

68-
### Navigator token send&#x20;
68+
### Navigator token send
6969

7070
```javascript
7171
const tokenAddress = TestAccountSolana.tokenContractAddress;

0 commit comments

Comments
 (0)