@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.
Files changed (68) hide show
  1. package/README.md +4 -4
  2. package/dist/accounts/index.d.ts +15515 -4
  3. package/dist/accounts/index.d.ts.map +1 -1
  4. package/dist/accounts/index.js +69 -10
  5. package/dist/accounts/nexus.d.ts +15542 -32
  6. package/dist/accounts/nexus.d.ts.map +1 -1
  7. package/dist/accounts/nexus.js +86 -65
  8. package/dist/accounts/safe.d.ts +3 -1
  9. package/dist/accounts/safe.d.ts.map +1 -1
  10. package/dist/accounts/safe.js +8 -2
  11. package/dist/examples/abi/weth.d.ts +214 -0
  12. package/dist/examples/abi/weth.d.ts.map +1 -0
  13. package/dist/examples/abi/weth.js +279 -0
  14. package/dist/examples/cross-chain-ss.d.ts +1 -0
  15. package/dist/examples/cross-chain-ss.d.ts.map +1 -0
  16. package/dist/{example.js → examples/cross-chain-ss.js} +59 -22
  17. package/dist/examples/omni-account.d.ts +1 -0
  18. package/dist/examples/omni-account.d.ts.map +1 -0
  19. package/dist/examples/omni-account.js +169 -0
  20. package/dist/examples/smart-sessions.d.ts +1 -0
  21. package/dist/examples/smart-sessions.d.ts.map +1 -0
  22. package/dist/examples/smart-sessions.js +216 -0
  23. package/dist/execution/index.d.ts +28 -3
  24. package/dist/execution/index.d.ts.map +1 -1
  25. package/dist/execution/index.js +177 -47
  26. package/dist/execution/smart-session.d.ts +14 -0
  27. package/dist/execution/smart-session.d.ts.map +1 -0
  28. package/dist/execution/smart-session.js +83 -0
  29. package/dist/index.d.ts +15 -4
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +10 -10
  32. package/dist/modules/abi/smart-sessions.d.ts +42 -0
  33. package/dist/modules/abi/smart-sessions.d.ts.map +1 -0
  34. package/dist/modules/abi/smart-sessions.js +128 -0
  35. package/dist/modules/common.d.ts +16 -0
  36. package/dist/modules/common.d.ts.map +1 -0
  37. package/dist/modules/common.js +5 -0
  38. package/dist/modules/index.d.ts +7 -18
  39. package/dist/modules/index.d.ts.map +1 -1
  40. package/dist/modules/index.js +14 -119
  41. package/dist/modules/omni-account.d.ts +9 -0
  42. package/dist/modules/omni-account.d.ts.map +1 -0
  43. package/dist/modules/omni-account.js +7 -0
  44. package/dist/modules/validators.d.ts +31 -0
  45. package/dist/modules/validators.d.ts.map +1 -0
  46. package/dist/modules/validators.js +518 -0
  47. package/dist/orchestrator/client.d.ts +2 -5
  48. package/dist/orchestrator/client.d.ts.map +1 -1
  49. package/dist/orchestrator/consts.d.ts +3 -1
  50. package/dist/orchestrator/consts.d.ts.map +1 -1
  51. package/dist/orchestrator/consts.js +3 -1
  52. package/dist/orchestrator/index.d.ts +5 -3
  53. package/dist/orchestrator/index.d.ts.map +1 -1
  54. package/dist/orchestrator/index.js +5 -4
  55. package/dist/orchestrator/registry.d.ts +5 -0
  56. package/dist/orchestrator/registry.d.ts.map +1 -0
  57. package/dist/orchestrator/registry.js +187 -0
  58. package/dist/orchestrator/types.d.ts +39 -23
  59. package/dist/orchestrator/types.d.ts.map +1 -1
  60. package/dist/orchestrator/types.js +7 -6
  61. package/dist/orchestrator/utils.d.ts +8 -4
  62. package/dist/orchestrator/utils.d.ts.map +1 -1
  63. package/dist/orchestrator/utils.js +19 -5
  64. package/dist/types.d.ts +64 -4
  65. package/dist/types.d.ts.map +1 -1
  66. package/package.json +1 -1
  67. package/dist/example.d.ts +0 -1
  68. 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
- ### Quickstart
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
- ## Creating a Wallet
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
- ## Funding the Account
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
- ## Sending a Cross-chain Transaction
122
+ ### Sending a Cross-chain Transaction
123
123
 
124
124
  Finally, let's make a cross-chain token transfer:
125
125