Skip to content

Commit d9cbf31

Browse files
resolve conflict
2 parents 4e14751 + df7b8c4 commit d9cbf31

File tree

23 files changed

+749
-80
lines changed

23 files changed

+749
-80
lines changed

.github/workflows/master.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
echo "::set-output name=dir::$(npm config get cache)"
3535
3636
- name: Node dependency cache
37-
uses: actions/cache@v2
37+
uses: actions/cache@v3
3838
with:
3939
path: ${{ steps.npm-cache.outputs.dir }}
4040
key: ${{ matrix.os }}-node-${{ hashFiles('package-lock.json') }}

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

+9-15
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

+9-15
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

+9-15
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
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: Integrate Web3Auth with the Unichain Blockchain in Android
3+
sidebar_label: Android
4+
image: "banners/unichain.png"
5+
keywords: [android, unichain, web3auth, authentication, blockchain]
6+
description: "Integrate Web3Auth with the Unichain Blockchain in Android | Documentation - Web3Auth"
7+
---
8+
9+
import EVMInteraction from "@site/src/common/docs/android-connect-blockchain/_evm-interaction.mdx";
10+
import SEO from "@site/src/components/SEO";
11+
12+
<SEO
13+
title="Integrate Web3Auth with the Unichain Blockchain in Android"
14+
description="Integrate Web3Auth with the Unichain Blockchain in Android | Documentation - Web3Auth"
15+
image="https://web3auth.io/docs/banners/unichain.png"
16+
slug="/connect-blockchain/evm/unichain/android"
17+
/>
18+
19+
While using the Web3Auth Android SDK, you get the private key within the user scope after successful
20+
authorization. This private key can be used to retrieve the user's address, and interact with
21+
[Unichain](https://www.unichain.org/) to make any blockchain calls. We have highlighted a few here
22+
for getting you started quickly on that.
23+
24+
<EVMInteraction />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: Integrate Web3Auth with the Unichain Blockchain in Flutter
3+
sidebar_label: Flutter
4+
image: "banners/unichain.png"
5+
keywords: [flutter, unichain, web3auth, authentication, blockchain]
6+
description: "Integrate Web3Auth with the Unichain Blockchain in Flutter | Documentation - Web3Auth"
7+
---
8+
9+
import EVMInteraction from "@site/src/common/docs/flutter-connect-blockchain/_evm-interaction.mdx";
10+
import Tabs from "@theme/Tabs";
11+
import TabItem from "@theme/TabItem";
12+
import SEO from "@site/src/components/SEO";
13+
14+
<SEO
15+
title="Integrate Web3Auth with the Unichain Blockchain in Flutter"
16+
description="Integrate Web3Auth with the Unichain Blockchain in Flutter | Documentation - Web3Auth"
17+
image="https://web3auth.io/docs/banners/unichain.png"
18+
slug="/connect-blockchain/evm/unichain/flutter"
19+
/>
20+
21+
While using the Web3Auth Flutter SDK, you get the private key within the user scope after successful
22+
authorization. This private key can be used to retrieve the user's address, and interact with
23+
[Unichain](https://www.unichain.org/) to make any blockchain calls. We have highlighted a few here
24+
for getting you started quickly on that.
25+
26+
<EVMInteraction />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: Integrate Web3Auth with the Unichain Blockchain in iOS/Swift Applications
3+
sidebar_label: iOS
4+
image: "/docs/banners/unichain.png"
5+
keywords: [ios, swift, unichain, web3auth, authentication, blockchain]
6+
description:
7+
"Integrate Web3Auth with the Unichain Blockchain in iOS/Swift Applications | Documentation -
8+
Web3Auth"
9+
---
10+
11+
import EVMInteraction from "@site/src/common/docs/ios-connect-blockchain/_evm-interaction.mdx";
12+
import SEO from "@site/src/components/SEO";
13+
14+
<SEO
15+
title="Integrate Web3Auth with the Unichain Blockchain in iOS/Swift Applications"
16+
description="Integrate Web3Auth with the Unichain Blockchain in iOS/Swift Applications | Documentation - Web3Auth"
17+
image="https://web3auth.io/docs/banners/unichain.png"
18+
slug="/connect-blockchain/evm/unichain/ios"
19+
/>
20+
21+
While using the Web3Auth iOS SDK, you get the private key within the user scope after successful
22+
authorization. This private key can be used to retrieve the user's address, and interact with
23+
[Unichain](https://www.unichain.org/) to make any blockchain calls. We have highlighted a few here
24+
for getting you started quickly on that.
25+
26+
<EVMInteraction />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
---
2+
title: Integrate Web3Auth with the Unichain Blockchain in React Native
3+
sidebar_label: React Native
4+
image: "banners/unichain.png"
5+
keywords: [react-native, unichain, web3auth, authentication, blockchain]
6+
description:
7+
"Integrate Web3Auth with the Unichain Blockchain in React Native | Documentation - Web3Auth"
8+
---
9+
10+
import InstallationSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-installation.mdx";
11+
import GetAccountSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-get-account.mdx";
12+
import UserInfoSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-user-info.mdx";
13+
import GetBalanceSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-get-balance.mdx";
14+
import InitialisationSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-initialisation.mdx";
15+
import SignMessageSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-sign-message.mdx";
16+
import SendTransactionSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-send-transaction.mdx";
17+
import Tabs from "@theme/Tabs";
18+
import TabItem from "@theme/TabItem";
19+
import SEO from "@site/src/components/SEO";
20+
21+
<SEO
22+
title="Integrate Web3Auth with the Unichain Blockchain in React Native"
23+
description="Integrate Web3Auth with the Unichain Blockchain in React Native | Documentation - Web3Auth"
24+
image="https://web3auth.io/docs/banners/unichain.png"
25+
slug="/connect-blockchain/evm/unichain/react-native"
26+
/>
27+
28+
While using the Web3Auth React Native SDK, you get a
29+
[`EIP1193`](https://eips.ethereum.org/EIPS/eip-1193) provider, similar to the
30+
[Metamask Provider](https://docs.metamask.io/guide/ethereum-provider.html). This provider can be
31+
used with libraries like [`web3.js`](https://web3js.readthedocs.io/en/v1.2.8/getting-started.html),
32+
[`ethers.js`](https://docs.ethers.io/v5/getting-started/) etc. to make
33+
[Unichain](https://www.unichain.org/) blockchain calls like getting the user's `account`, fetching
34+
`balance`, `sign transaction`, `send transaction`, `read` from and `write` to the smart contract,
35+
etc. We have highlighted a few here to get you started quickly on that.
36+
37+
## Installation
38+
39+
<InstallationSnippet />
40+
41+
## Initializing Provider
42+
43+
Using `eip155` as `chainNamespace` while initializing `web3auth` will provide an
44+
[`EIP1193`](https://eips.ethereum.org/EIPS/eip-1193) compatible provider as **`web3auth.provider`**
45+
after successful authentication.
46+
47+
### Getting the `chainConfig`
48+
49+
<Tabs
50+
defaultValue="mainnet"
51+
values={[
52+
{ label: "Mainnet", value: "mainnet", },
53+
{ label: "Testnet", value: "testnet", },
54+
]}
55+
>
56+
<TabItem
57+
value="mainnet"
58+
>
59+
60+
```typescript
61+
const chainConfig = {
62+
chainNamespace: ChainNamespace.EIP155,
63+
chainId: "0x82", // hex of 130
64+
rpcTarget: "https://mainnet.unichain.org",
65+
// Avoid using public rpcTarget in production.
66+
// Use services like Infura, Quicknode etc
67+
displayName: "Unichain Mainnet",
68+
blockExplorer: "https://uniscan.xyz",
69+
ticker: "ETH",
70+
tickerName: "ETH",
71+
};
72+
```
73+
74+
</TabItem>
75+
76+
<TabItem
77+
value="testnet"
78+
>
79+
80+
```typescript
81+
const chainConfig = {
82+
chainNamespace: ChainNamespace.EIP155,
83+
chainId: "0x515", // hex of 1301
84+
rpcTarget: "https://sepolia.unichain.org",
85+
// Avoid using public rpcTarget in production.
86+
// Use services like Infura, Quicknode etc
87+
displayName: "Unichain Sepolia Testnet",
88+
blockExplorer: "https://sepolia.uniscan.xyz/",
89+
ticker: "ETH",
90+
tickerName: "ETH",
91+
};
92+
```
93+
94+
</TabItem>
95+
</Tabs>
96+
97+
## Initialize
98+
99+
<InitialisationSnippet />
100+
101+
## Get User Info
102+
103+
<UserInfoSnippet />
104+
105+
## Get Account
106+
107+
<GetAccountSnippet />
108+
109+
## Get Balance
110+
111+
<GetBalanceSnippet />
112+
113+
## Send Transaction
114+
115+
<SendTransactionSnippet />
116+
117+
## Sign a message
118+
119+
<SignMessageSnippet />

0 commit comments

Comments
 (0)