Skip to content

Commit

Permalink
Updated TODOs (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLawton authored Apr 12, 2024
1 parent 81b2ad1 commit 58366d7
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 215 deletions.
Binary file modified .DS_Store
Binary file not shown.
210 changes: 0 additions & 210 deletions TODO.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/pages/guides/templates/template-in-game-wallet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ We provide TypeScript and Unity SDKs for the Embedded Wallet authentication syst
pnpm install @0xsequence/waas
```

For more information on the Unity Embedded Wallet SDK, please refer to the TODO add link [Unity SDK documentation](#TODO)
For more information on the Unity Embedded Wallet SDK, please refer to the [Unity SDK documentation](/sdk/unity/overview)

### Project Setup

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/sdk/sequence-kit/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ Explore the potential of Sequence Kit by trying out our [demo](https://0xsequenc

# Next Steps

Ready to integrate Sequence Kit into your application? Check out our [Getting Started guide](#TODO). If you're already familiar with Sequence Kit dive into the available [configuration options](#TODO) or take a look at the [checkout](#TODO).
Ready to integrate Sequence Kit into your application? Check out our [Getting Started guide](/sdk/sequence-kit/getting-started). If you're already familiar with Sequence Kit dive into the available [configuration options](/sdk/sequence-kit/configuration) or take a look at the [checkout](/sdk/sequence-kit/checkout).
2 changes: 1 addition & 1 deletion docs/pages/sdk/typescript/connectors/sequence-kit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ Explore the potential of Sequence Kit by trying out our [demo](https://0xsequenc

# Next Steps

Ready to integrate Sequence Kit into your application? Check out our [Getting Started guide](#TODO). If you're already familiar with Sequence Kit dive into the available [configuration options](#TODO) or take a look at the [checkout](#TODO).
Ready to integrate Sequence Kit into your application? Check out our [Getting Started guide](/sdk/sequence-kit/getting-started). If you're already familiar with Sequence Kit dive into the available [configuration options](/sdk/sequence-kit/configuration) or take a look at the [checkout](/sdk/sequence-kit/checkout).
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import { Callout } from "vocs/components";

# Deploy Process V1

The following steps are required to deploy the [Sequence Wallet V1 Context](#TODO) on a new network.

<Callout type="info">
Notice <br />
For most popular networks this process **is not** required; due to the wallet contracts
being already deployed. To see if a configuration already exists for a given chain
go to [Networks](/solutions/technical-references/chain-support).
</Callout>

A complete code example of this deployment flow can be found in the [0xSequence.js test suite](https://github.com/0xsequence/sequence.js/blob/91ed0df67fc5ddc47abf727ae8b94a8ca4f66912/packages/0xsequence/tests/browser/testutils/deploy-wallet-context.ts)
and [Wallet Contracts repository](https://github.com/0xsequence/wallet-contracts/blob/38e0719690eee3c4d7d8fa2ceff4ea22b0409f38/utils/deploy-contracts.ts).

### 1 - Deploy NanoUniversalDeployer

Pre-found Nick's method address with funds required to pay for the deployment of contracts.

```
Address: 0x9c5a87452d4FAC0cbd53BDCA580b20A45526B3AB
Funds: 0.02170000000014
```

**Do not send additional funds to the address, as funds can't be refunded.**

Once the address is funded, you can deploy the NanoUniversalDeployer by executing the following pre-signed transaction:

```
0xf9010880852416b84e01830222e08080b8b66080604052348015600f57600080fd5b50609980601d6000396000f3fe60a06020601f369081018290049091028201604052608081815260009260609284918190838280828437600092018290525084519495509392505060208401905034f5604080516001600160a01b0383168152905191935081900360200190a0505000fea26469706673582212205a310755225e3c740b2f013fb6343f4c205e7141fcdf15947f5f0e0e818727fb64736f6c634300060a00331ca01820182018201820182018201820182018201820182018201820182018201820a01820182018201820182018201820182018201820182018201820182018201820
```

After the transaction is confirmed, you should see the address of the NanoUniversalDeployer:

```
NanoUniversalDeployer: 0x9c5a87452d4FAC0cbd53BDCA580b20A45526B3AB
```

See more about the [NanoUniversalDeployer](https://gist.github.com/Agusx1211/de05dabf918d448d315aa018e2572031).

### 2 - Deploy UniversalDeployer2

In order to deploy contracts with an instance identifier, we need to deploy the UniversalDeployer2 contract. To ensure address consistency
we use the UniversalDeployer contract to deploy the UniversalDeployer contract.

Send the following data to the UniversalDeployer deployed in the previous step.

```
0x608060405234801561001057600080fd5b5061013d806100206000396000f3fe60806040526004361061001e5760003560e01c80639c4ae2d014610023575b600080fd5b6100cb6004803603604081101561003957600080fd5b81019060208101813564010000000081111561005457600080fd5b82018360208201111561006657600080fd5b8035906020019184600183028401116401000000008311171561008857600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506100cd915050565b005b60008183516020850134f56040805173ffffffffffffffffffffffffffffffffffffffff83168152905191925081900360200190a050505056fea264697066735822122033609f614f03931b92d88c309d698449bb77efcd517328d341fa4f923c5d8c7964736f6c63430007060033
```

After the transaction is confirmed, you should see the address of the UniversalDeployer2:

```
UniversalDeployer2: 0x8a5bc19e22d6ad55a2c763b93a75d09f321fe764
```

### 3 - Deploy Wallet Context

Compile and deploy the contracts in the [Sequence Wallet Context](/solutions/technical-references/chain-support) using the UniversalDeployer2.

Refer to the [0xSequence.js test suite](https://github.com/0xsequence/sequence.js/blob/91ed0df67fc5ddc47abf727ae8b94a8ca4f66912/packages/0xsequence/tests/browser/testutils/deploy-wallet-context.ts)
or [Wallet Contracts repository](https://github.com/0xsequence/wallet-contracts/blob/38e0719690eee3c4d7d8fa2ceff4ea22b0409f38/utils/deploy-contracts.ts)
for the Wallet Contract context codebase.
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ Explore the potential of Sequence Kit by trying out our [demo](https://0xsequenc

# Next Steps

Ready to integrate Sequence Kit into your application? Check out our [Getting Started guide](#TODO). If you're already familiar with Sequence Kit dive into the available [configuration options](#TODO) or take a look at the [checkout](#TODO).
Ready to integrate Sequence Kit into your application? Check out our [Getting Started guide](/sdk/sequence-kit/getting-started). If you're already familiar with Sequence Kit dive into the available [configuration options](/sdk/sequence-kit/configuration) or take a look at the [checkout](/sdk/sequence-kit/checkout).
2 changes: 1 addition & 1 deletion nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const topNav = [
items: [
{ text: 'Web3 Game with WebGL', link: '/guides/webgl-guide', match: '/guides/webgl-guide' },
{ text: 'Web3 Game with Unity', link: '/guides/unity-guide', match: '/guides/unity-guide' },
{ text: 'Lootboxes', link: '/guides/lootbox', match: '/guides/lootbox' },
{ text: 'Dungeon Crawler with AI Lootboxes', link: '/guides/lootbox', match: '/guides/lootbox' },
{ text: 'Custom Marketplace', link: '/guides/custom-marketplace-guide', match: '/guides/custom-marketplace-guide' }
]
},
Expand Down

0 comments on commit 58366d7

Please sign in to comment.