@rhinestone/sdk 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/accounts/index.d.ts +15515 -4
- package/dist/accounts/index.d.ts.map +1 -1
- package/dist/accounts/index.js +69 -10
- package/dist/accounts/nexus.d.ts +15542 -32
- package/dist/accounts/nexus.d.ts.map +1 -1
- package/dist/accounts/nexus.js +86 -65
- package/dist/accounts/safe.d.ts +3 -1
- package/dist/accounts/safe.d.ts.map +1 -1
- package/dist/accounts/safe.js +8 -2
- package/dist/examples/abi/weth.d.ts +214 -0
- package/dist/examples/abi/weth.d.ts.map +1 -0
- package/dist/examples/abi/weth.js +279 -0
- package/dist/examples/cross-chain-ss.d.ts +1 -0
- package/dist/examples/cross-chain-ss.d.ts.map +1 -0
- package/dist/{example.js → examples/cross-chain-ss.js} +59 -22
- package/dist/examples/omni-account.d.ts +1 -0
- package/dist/examples/omni-account.d.ts.map +1 -0
- package/dist/examples/omni-account.js +169 -0
- package/dist/examples/smart-sessions.d.ts +1 -0
- package/dist/examples/smart-sessions.d.ts.map +1 -0
- package/dist/examples/smart-sessions.js +216 -0
- package/dist/execution/index.d.ts +28 -3
- package/dist/execution/index.d.ts.map +1 -1
- package/dist/execution/index.js +177 -47
- package/dist/execution/smart-session.d.ts +14 -0
- package/dist/execution/smart-session.d.ts.map +1 -0
- package/dist/execution/smart-session.js +83 -0
- package/dist/index.d.ts +15 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -10
- package/dist/modules/abi/smart-sessions.d.ts +42 -0
- package/dist/modules/abi/smart-sessions.d.ts.map +1 -0
- package/dist/modules/abi/smart-sessions.js +128 -0
- package/dist/modules/common.d.ts +16 -0
- package/dist/modules/common.d.ts.map +1 -0
- package/dist/modules/common.js +5 -0
- package/dist/modules/index.d.ts +7 -18
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +14 -119
- package/dist/modules/omni-account.d.ts +9 -0
- package/dist/modules/omni-account.d.ts.map +1 -0
- package/dist/modules/omni-account.js +7 -0
- package/dist/modules/validators.d.ts +31 -0
- package/dist/modules/validators.d.ts.map +1 -0
- package/dist/modules/validators.js +518 -0
- package/dist/orchestrator/client.d.ts +2 -5
- package/dist/orchestrator/client.d.ts.map +1 -1
- package/dist/orchestrator/consts.d.ts +3 -1
- package/dist/orchestrator/consts.d.ts.map +1 -1
- package/dist/orchestrator/consts.js +3 -1
- package/dist/orchestrator/index.d.ts +5 -3
- package/dist/orchestrator/index.d.ts.map +1 -1
- package/dist/orchestrator/index.js +5 -4
- package/dist/orchestrator/registry.d.ts +5 -0
- package/dist/orchestrator/registry.d.ts.map +1 -0
- package/dist/orchestrator/registry.js +187 -0
- package/dist/orchestrator/types.d.ts +39 -23
- package/dist/orchestrator/types.d.ts.map +1 -1
- package/dist/orchestrator/types.js +7 -6
- package/dist/orchestrator/utils.d.ts +8 -4
- package/dist/orchestrator/utils.d.ts.map +1 -1
- package/dist/orchestrator/utils.js +19 -5
- package/dist/types.d.ts +64 -4
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/example.d.ts +0 -1
- package/dist/example.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -22,11 +22,11 @@ yarn add viem @rhinestone/sdk
|
|
|
22
22
|
bun install viem @rhinestone/sdk
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
## Quickstart
|
|
26
26
|
|
|
27
27
|
You'll need a Rhinestone API key, as well as an existing account with some testnet ETH on the source chain.
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
### Creating a Wallet
|
|
30
30
|
|
|
31
31
|
Let's create a single-owner Safe account:
|
|
32
32
|
|
|
@@ -90,7 +90,7 @@ const address = await rhinestoneAccount.getAddress(sourceChain)
|
|
|
90
90
|
console.log(address)
|
|
91
91
|
```
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
### Funding the Account
|
|
94
94
|
|
|
95
95
|
We will send some ETH from the funding account to the created Safe account. The Orchestrator will use some of that ETH to deploy the account on the target chain, as well as convert it to USDC for a transfer transaction.
|
|
96
96
|
|
|
@@ -119,7 +119,7 @@ function getTokenAddress(chain: Chain) {
|
|
|
119
119
|
}
|
|
120
120
|
```
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
### Sending a Cross-chain Transaction
|
|
123
123
|
|
|
124
124
|
Finally, let's make a cross-chain token transfer:
|
|
125
125
|
|