Skip to content

Commit c750bd2

Browse files
Merge branch 'master' into sfa-android-v4
2 parents 32c59be + 8e5e76a commit c750bd2

File tree

8 files changed

+59
-65
lines changed

8 files changed

+59
-65
lines changed

docs/connect-blockchain/evm/soneium/react-native.mdx

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,12 @@ after successful authentication.
4747

4848
### Getting the `chainConfig`
4949

50-
:::note
51-
52-
[Soneium](https://docs.soneium.org/docs/builders/overview) is currently available on the testnet.
53-
The mainnet is coming soon.
54-
55-
:::
56-
5750
<Tabs
58-
defaultValue="testnet"
51+
defaultValue="mainnet"
5952
values={[
60-
{ label: "Testnet (Minato)", value: "testnet", }
61-
]}
53+
{ label: "Testnet (Minato)", value: "testnet", },
54+
{ label: "Mainnet", value: "mainnet", },
55+
]}
6256

6357
>
6458

@@ -69,13 +63,13 @@ The mainnet is coming soon.
6963
```typescript
7064
const chainConfig = {
7165
chainNamespace: CHAIN_NAMESPACES.EIP155,
72-
chainId: "0x799", // hex of 1945
66+
chainId: "0x74c", // hex of 1868
7367
rpcTarget: "https://rpc.soneium.org",
74-
displayName: "Soneium Mainnet Network",
75-
blockExplorerUrl: "https://explorer.soneium.org",
68+
displayName: "Soneium",
69+
blockExplorerUrl: "https://www.okx.com/web3/explorer/soneium",
7670
ticker: "ETH",
7771
tickerName: "ETH",
78-
logo: "https://cryptologos.cc/logos/soneium-logo.png",
72+
logo: "https://iili.io/2i5xce2.png",
7973
};
8074
```
8175

@@ -94,7 +88,7 @@ const chainConfig = {
9488
blockExplorerUrl: "https://explorer-testnet.soneium.org",
9589
ticker: "ETH",
9690
tickerName: "ETH",
97-
logo: "https://cryptologos.cc/logos/soneium-logo.png",
91+
logo: "https://iili.io/2i5xce2.png",
9892
// faucet- "https://bridge.soneium.org/en/testnet" bridge the sepolia ETH to Soneium
9993
};
10094
```

docs/connect-blockchain/evm/soneium/unity.mdx

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,12 @@ started quickly on that.
3737

3838
## Chain Details for Soneium
3939

40-
:::note
41-
42-
[Soneium](https://docs.soneium.org/docs/builders/overview) is currently available on the testnet.
43-
The mainnet is coming soon.
44-
45-
:::
46-
4740
<Tabs
48-
defaultValue="testnet"
41+
defaultValue="mainnet"
4942
values={[
50-
{ label: "Testnet (Minato)", value: "testnet", }
51-
]}
43+
{ label: "Testnet (Minato)", value: "testnet", },
44+
{ label: "Mainnet", value: "mainnet", },
45+
]}
5246

5347
>
5448

@@ -59,13 +53,13 @@ The mainnet is coming soon.
5953
```typescript
6054
const chainConfig = {
6155
chainNamespace: CHAIN_NAMESPACES.EIP155,
62-
chainId: "0x799", // hex of 1945
56+
chainId: "0x74c", // hex of 1868
6357
rpcTarget: "https://rpc.soneium.org",
64-
displayName: "Soneium Mainnet Network",
65-
blockExplorerUrl: "https://explorer.soneium.org",
58+
displayName: "Soneium",
59+
blockExplorerUrl: "https://www.okx.com/web3/explorer/soneium",
6660
ticker: "ETH",
6761
tickerName: "ETH",
68-
logo: "https://cryptologos.cc/logos/soneium-logo.png",
62+
logo: "https://iili.io/2i5xce2.png",
6963
};
7064
```
7165

@@ -84,7 +78,7 @@ const chainConfig = {
8478
blockExplorerUrl: "https://explorer-testnet.soneium.org",
8579
ticker: "ETH",
8680
tickerName: "ETH",
87-
logo: "https://cryptologos.cc/logos/soneium-logo.png",
81+
logo: "https://iili.io/2i5xce2.png",
8882
// faucet- "https://bridge.soneium.org/en/testnet" bridge the sepolia ETH to Soneium
8983
};
9084
```

docs/connect-blockchain/evm/soneium/web.mdx

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,12 @@ after successful authentication.
5656

5757
### Getting the `chainConfig`
5858

59-
:::note
60-
61-
[Soneium](https://docs.soneium.org/docs/builders/overview) is currently available on the testnet.
62-
The mainnet is coming soon.
63-
64-
:::
65-
6659
<Tabs
67-
defaultValue="testnet"
60+
defaultValue="mainnet"
6861
values={[
69-
{ label: "Testnet (Minato)", value: "testnet", }
70-
]}
62+
{ label: "Mainnet", value: "mainnet", },
63+
{ label: "Testnet (Minato)", value: "testnet", },
64+
]}
7165

7266
>
7367

@@ -78,13 +72,13 @@ The mainnet is coming soon.
7872
```typescript
7973
const chainConfig = {
8074
chainNamespace: CHAIN_NAMESPACES.EIP155,
81-
chainId: "0x799", // hex of 1945
75+
chainId: "0x74c", // hex of 1868
8276
rpcTarget: "https://rpc.soneium.org",
83-
displayName: "Soneium Mainnet Network",
84-
blockExplorerUrl: "https://explorer.soneium.org",
77+
displayName: "Soneium",
78+
blockExplorerUrl: "https://www.okx.com/web3/explorer/soneium",
8579
ticker: "ETH",
8680
tickerName: "ETH",
87-
logo: "https://cryptologos.cc/logos/soneium-logo.png",
81+
logo: "https://iili.io/2i5xce2.png",
8882
};
8983
```
9084

@@ -103,7 +97,7 @@ const chainConfig = {
10397
blockExplorerUrl: "https://explorer-testnet.soneium.org",
10498
ticker: "ETH",
10599
tickerName: "ETH",
106-
logo: "https://cryptologos.cc/logos/soneium-logo.png",
100+
logo: "https://iili.io/2i5xce2.png",
107101
// faucet- "https://bridge.soneium.org/en/testnet" bridge the sepolia ETH to Soneium
108102
};
109103
```

docs/sdk/sfa/sfa-android/usage.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ The SingleFactorAuth instance natively provides the following methods:
3030

3131
## Login User
3232

33+
:::tip
34+
35+
Please refer to the [Authentication](./authentication) section for more details on the setting up
36+
your verifier and other authentication parameters.
37+
38+
:::
39+
3340
To obtain a user's private key, and relevant session data using the Web3Auth SFA Android SDK, you
3441
can call the `connect` method. The method accepts `LoginParams`, and returns `SessionData`.
3542

docs/sdk/sfa/sfa-flutter/usage.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ The SingleFactorAuth instance natively provides the following methods:
2727

2828
## Login User
2929

30+
:::tip
31+
32+
Please refer to the [Authentication](./authentication) section for more details on the setting up
33+
your verifier and other authentication parameters.
34+
35+
:::
36+
3037
To obtain a user's private key using the Web3Auth SFA Flutter SDK, you can call the `connect`
3138
method. The method accepts `LoginParams`, and returns `SFAKey`.
3239

docs/sdk/sfa/sfa-ios/usage.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ The SingleFactorAuth instance natively provides the following methods:
2828

2929
## Login User
3030

31+
:::tip
32+
33+
Please refer to the [Authentication](./authentication) section for more details on the setting up
34+
your verifier and other authentication parameters.
35+
36+
:::
37+
3138
To obtain a user's private key using the Web3Auth SFA iOS SDK, you can call the `connect` method.
3239
The method accepts `LoginParams`, and returns `SessionData`.
3340
[Please checkout the SessionData response for more details](#response).

docs/sdk/sfa/sfa-js/usage.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ functions:
3131

3232
## Logging in your User
3333

34+
:::tip
35+
36+
Please refer to the [Authentication](./authentication) section for more details on the setting up
37+
your verifier and other authentication parameters.
38+
39+
:::
40+
3441
`connect(loginParams: LoginParams)`
3542

3643
To log a user in the Web3Auth SFA JS SDK, you need to call the `connect()` function.

src/pages/quick-start/index.tsx

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export default function IntegrationBuilderPage({ files }: { files: Record<string
5151
const [isLinkCopied, setLinkCopied] = useState<boolean>(false);
5252
const [IBCountdown, setIBCountdown] = useState<number>(10);
5353
const [builderView, setBuilderView] = useState<boolean>(true);
54+
const [abortCountdown, setAbortCountdown] = useState<boolean>(false);
5455
const [showPreviewModal, setShowPreviewModal] = useState<boolean>(false);
5556
const url = new URL(getWindowLocation());
5657
const [stepIndex, setStepIndex] = useState(
@@ -118,6 +119,7 @@ export default function IntegrationBuilderPage({ files }: { files: Record<string
118119
...builderOptions,
119120
[optionKey]: optionValue,
120121
});
122+
setAbortCountdown(true);
121123
};
122124

123125
const toggleBuilderView = async () => {
@@ -173,7 +175,7 @@ export default function IntegrationBuilderPage({ files }: { files: Record<string
173175
if (IBCountdown > 0) {
174176
setTimeout(() => setIBCountdown(IBCountdown - 1), 1000);
175177
}
176-
if (IBCountdown === 0 && builderView) {
178+
if (IBCountdown === 0 && builderView && !abortCountdown) {
177179
toggleBuilderView();
178180
}
179181
}, [IBCountdown]);
@@ -330,26 +332,8 @@ export default function IntegrationBuilderPage({ files }: { files: Record<string
330332
<div className={styles.optionsHeader}>
331333
<h2 className={styles.optionsHeaderText}>Builder Settings</h2>
332334
<div className={styles.optionsHeaderButtonsContainer}>
333-
{/* {integration.embedLink && (
334-
<button
335-
className={styles.previewButton}
336-
onClick={() => togglePreviewModal(integration.embedLink)}
337-
type="button"
338-
id="headerButton"
339-
>
340-
Preview
341-
</button>
342-
)} */}
343-
{/* <button
344-
className={styles.copyButton}
345-
onClick={() => window.open(integration.sourceCodeLink, "_blank")}
346-
type="button"
347-
id="headerButton"
348-
>
349-
Source Code
350-
</button> */}
351335
<button className={styles.hideButton} onClick={toggleBuilderView} type="button">
352-
{IBCountdown ? `${IBCountdown}s` : ""}
336+
{IBCountdown && !abortCountdown ? `${IBCountdown}s` : ""}
353337
<svg
354338
width="20"
355339
height="21"

0 commit comments

Comments
 (0)