rise-wallet 0.2.29 → 0.3.1

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 (135) hide show
  1. package/README.md +153 -15
  2. package/dist/cli/bin/commands-DupUUwJ9.js +50 -0
  3. package/dist/cli/bin/index.js +1 -1
  4. package/dist/core/Chains.d.ts +285 -12
  5. package/dist/core/Chains.d.ts.map +1 -1
  6. package/dist/core/Dialog.d.ts +2 -2
  7. package/dist/core/Dialog.d.ts.map +1 -1
  8. package/dist/core/Dialog.js +10 -2
  9. package/dist/core/Dialog.js.map +1 -1
  10. package/dist/core/Porto.d.ts +476 -26
  11. package/dist/core/Porto.d.ts.map +1 -1
  12. package/dist/core/Porto.js +1 -1
  13. package/dist/core/Porto.js.map +1 -1
  14. package/dist/core/Transport.d.ts +2 -2
  15. package/dist/core/Transport.js +2 -2
  16. package/dist/core/Transport.js.map +1 -1
  17. package/dist/core/internal/_generated/chains.d.ts +1 -1
  18. package/dist/core/internal/_generated/chains.d.ts.map +1 -1
  19. package/dist/core/internal/_generated/chains.js +1 -1
  20. package/dist/core/internal/_generated/chains.js.map +1 -1
  21. package/dist/core/internal/mode.d.ts +4 -0
  22. package/dist/core/internal/mode.d.ts.map +1 -1
  23. package/dist/core/internal/mode.js.map +1 -1
  24. package/dist/core/internal/modes/dialog.d.ts +47 -7
  25. package/dist/core/internal/modes/dialog.d.ts.map +1 -1
  26. package/dist/core/internal/modes/reactNative.d.ts +187 -10
  27. package/dist/core/internal/modes/reactNative.d.ts.map +1 -1
  28. package/dist/core/internal/modes/relay.d.ts +140 -3
  29. package/dist/core/internal/modes/relay.d.ts.map +1 -1
  30. package/dist/core/internal/modes/relay.js +102 -26
  31. package/dist/core/internal/modes/relay.js.map +1 -1
  32. package/dist/core/internal/permissions.d.ts +1 -1
  33. package/dist/core/internal/permissionsRequest.d.ts +1 -1
  34. package/dist/core/internal/provider.d.ts.map +1 -1
  35. package/dist/core/internal/provider.js +13 -2
  36. package/dist/core/internal/provider.js.map +1 -1
  37. package/dist/core/internal/relay/rpcSchema.d.ts +3 -0
  38. package/dist/core/internal/relay/rpcSchema.d.ts.map +1 -1
  39. package/dist/core/internal/relay/schema/rpc.d.ts +23 -0
  40. package/dist/core/internal/relay/schema/rpc.d.ts.map +1 -1
  41. package/dist/core/internal/relay/schema/rpc.js +18 -0
  42. package/dist/core/internal/relay/schema/rpc.js.map +1 -1
  43. package/dist/core/internal/schema/capabilities.d.ts +2 -2
  44. package/dist/core/internal/schema/key.d.ts +2 -2
  45. package/dist/core/internal/schema/key.d.ts.map +1 -1
  46. package/dist/core/internal/schema/key.js +1 -0
  47. package/dist/core/internal/schema/key.js.map +1 -1
  48. package/dist/core/internal/schema/permissions.d.ts +2 -2
  49. package/dist/core/internal/schema/request.d.ts +18 -16
  50. package/dist/core/internal/schema/request.d.ts.map +1 -1
  51. package/dist/core/internal/schema/rpc.d.ts +52 -46
  52. package/dist/core/internal/schema/rpc.d.ts.map +1 -1
  53. package/dist/core/internal/schema/rpc.js +1 -0
  54. package/dist/core/internal/schema/rpc.js.map +1 -1
  55. package/dist/core/react-native/Porto.d.ts +474 -24
  56. package/dist/core/react-native/Porto.d.ts.map +1 -1
  57. package/dist/index.d.ts +1 -1
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +1 -1
  60. package/dist/index.js.map +1 -1
  61. package/dist/remote/Events.d.ts.map +1 -1
  62. package/dist/remote/Events.js +5 -1
  63. package/dist/remote/Events.js.map +1 -1
  64. package/dist/remote/Hooks.d.ts +44 -40
  65. package/dist/remote/Hooks.d.ts.map +1 -1
  66. package/dist/remote/Porto.d.ts +429 -19
  67. package/dist/remote/Porto.d.ts.map +1 -1
  68. package/dist/trusted-hosts.d.ts.map +1 -1
  69. package/dist/trusted-hosts.js +5 -0
  70. package/dist/trusted-hosts.js.map +1 -1
  71. package/dist/tsconfig.tmp.tsbuildinfo +1 -1
  72. package/dist/viem/Account.d.ts +3 -0
  73. package/dist/viem/Account.d.ts.map +1 -1
  74. package/dist/viem/Account.js +16 -12
  75. package/dist/viem/Account.js.map +1 -1
  76. package/dist/viem/Key.d.ts +96 -1
  77. package/dist/viem/Key.d.ts.map +1 -1
  78. package/dist/viem/Key.js +102 -3
  79. package/dist/viem/Key.js.map +1 -1
  80. package/dist/viem/RelayActions.d.ts +12 -1
  81. package/dist/viem/RelayActions.d.ts.map +1 -1
  82. package/dist/viem/RelayActions.js +8 -3
  83. package/dist/viem/RelayActions.js.map +1 -1
  84. package/dist/viem/internal/provider.d.ts +9 -0
  85. package/dist/viem/internal/provider.d.ts.map +1 -0
  86. package/dist/viem/internal/provider.js +15 -0
  87. package/dist/viem/internal/provider.js.map +1 -0
  88. package/dist/viem/internal/relayActions.d.ts +16 -0
  89. package/dist/viem/internal/relayActions.d.ts.map +1 -1
  90. package/dist/viem/internal/relayActions.js +29 -0
  91. package/dist/viem/internal/relayActions.js.map +1 -1
  92. package/dist/wagmi/Connector.d.ts +2 -2
  93. package/dist/wagmi/Connector.d.ts.map +1 -1
  94. package/dist/wagmi/Connector.js +4 -4
  95. package/dist/wagmi/Connector.js.map +1 -1
  96. package/dist/wagmi/index.d.ts +1 -1
  97. package/dist/wagmi/index.d.ts.map +1 -1
  98. package/dist/wagmi/index.js +1 -1
  99. package/dist/wagmi/index.js.map +1 -1
  100. package/dist/wagmi/index.native.d.ts +1 -1
  101. package/dist/wagmi/index.native.d.ts.map +1 -1
  102. package/dist/wagmi/index.native.js +1 -1
  103. package/dist/wagmi/index.native.js.map +1 -1
  104. package/package.json +5 -4
  105. package/src/core/Dialog.ts +12 -2
  106. package/src/core/Porto.ts +5 -5
  107. package/src/core/Transport.ts +2 -2
  108. package/src/core/internal/_generated/chains.ts +4 -1
  109. package/src/core/internal/mode.ts +5 -1
  110. package/src/core/internal/modes/relay.ts +158 -56
  111. package/src/core/internal/provider.browser.test.ts +1 -1
  112. package/src/core/internal/provider.test.ts +2 -2
  113. package/src/core/internal/provider.ts +16 -2
  114. package/src/core/internal/relay/rpcSchema.ts +4 -0
  115. package/src/core/internal/relay/schema/rpc.ts +23 -0
  116. package/src/core/internal/schema/key.ts +1 -0
  117. package/src/core/internal/schema/rpc.ts +1 -0
  118. package/src/core/react-native/Porto.ts +1 -1
  119. package/src/index.ts +1 -1
  120. package/src/remote/Events.ts +5 -1
  121. package/src/remote/Porto.ts +3 -3
  122. package/src/server/Route.test.ts +2 -2
  123. package/src/trusted-hosts.ts +5 -0
  124. package/src/viem/Account.ts +30 -12
  125. package/src/viem/Key.ts +163 -4
  126. package/src/viem/RelayActions.ts +30 -8
  127. package/src/viem/RelayClient.test.ts +2 -2
  128. package/src/viem/WalletActions.test.ts +1 -1
  129. package/src/viem/WalletClient.test.ts +2 -2
  130. package/src/viem/internal/provider.ts +19 -0
  131. package/src/viem/internal/relayActions.ts +42 -0
  132. package/src/wagmi/Connector.ts +5 -5
  133. package/src/wagmi/index.native.ts +1 -1
  134. package/src/wagmi/index.ts +1 -1
  135. package/dist/cli/bin/commands-o468kGU4.js +0 -50
@@ -56,38 +56,311 @@ export declare const defaultConfig: {
56
56
  }, ...{
57
57
  blockExplorers: {
58
58
  readonly default: {
59
- readonly name: "Blockscout";
60
- readonly url: "https://explorer.testnet.riselabs.xyz/";
61
- readonly apiUrl: "https://explorer.testnet.riselabs.xyz/api";
59
+ readonly name: "Basescan";
60
+ readonly url: "https://sepolia.basescan.org";
61
+ readonly apiUrl: "https://api-sepolia.basescan.org/api";
62
62
  };
63
63
  };
64
- blockTime?: number | undefined | undefined;
64
+ blockTime: 2000;
65
65
  contracts: {
66
+ readonly disputeGameFactory: {
67
+ readonly 11155111: {
68
+ readonly address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1";
69
+ };
70
+ };
71
+ readonly l2OutputOracle: {
72
+ readonly 11155111: {
73
+ readonly address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254";
74
+ };
75
+ };
76
+ readonly portal: {
77
+ readonly 11155111: {
78
+ readonly address: "0x49f53e41452c74589e85ca1677426ba426459e85";
79
+ readonly blockCreated: 4446677;
80
+ };
81
+ };
82
+ readonly l1StandardBridge: {
83
+ readonly 11155111: {
84
+ readonly address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120";
85
+ readonly blockCreated: 4446677;
86
+ };
87
+ };
66
88
  readonly multicall3: {
67
89
  readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
90
+ readonly blockCreated: 1059647;
91
+ };
92
+ readonly gasPriceOracle: {
93
+ readonly address: "0x420000000000000000000000000000000000000F";
94
+ };
95
+ readonly l1Block: {
96
+ readonly address: "0x4200000000000000000000000000000000000015";
97
+ };
98
+ readonly l2CrossDomainMessenger: {
99
+ readonly address: "0x4200000000000000000000000000000000000007";
100
+ };
101
+ readonly l2Erc721Bridge: {
102
+ readonly address: "0x4200000000000000000000000000000000000014";
103
+ };
104
+ readonly l2StandardBridge: {
105
+ readonly address: "0x4200000000000000000000000000000000000010";
106
+ };
107
+ readonly l2ToL1MessagePasser: {
108
+ readonly address: "0x4200000000000000000000000000000000000016";
68
109
  };
69
110
  };
70
111
  ensTlds?: readonly string[] | undefined;
71
- id: 11155931;
72
- name: "RISE Testnet";
112
+ id: 84532;
113
+ name: "Base Sepolia";
73
114
  nativeCurrency: {
74
- readonly name: "RISE Testnet Ether";
115
+ readonly name: "Sepolia Ether";
75
116
  readonly symbol: "ETH";
76
117
  readonly decimals: 18;
77
118
  };
78
119
  experimental_preconfirmationTime?: number | undefined | undefined;
79
120
  rpcUrls: {
80
121
  readonly default: {
81
- readonly http: readonly ["https://testnet.riselabs.xyz"];
82
- readonly webSocket: readonly ["wss://testnet.riselabs.xyz/ws"];
122
+ readonly http: readonly ["https://sepolia.base.org"];
83
123
  };
84
124
  };
85
- sourceId?: number | undefined | undefined;
125
+ sourceId: 11155111;
86
126
  testnet: true;
87
127
  custom?: Record<string, unknown> | undefined;
88
128
  fees?: import("viem").ChainFees<undefined> | undefined;
89
- formatters?: undefined;
90
- serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
129
+ formatters: {
130
+ readonly block: {
131
+ exclude: [] | undefined;
132
+ format: (args: import("viem/chains").OpStackRpcBlock, action?: string | undefined) => {
133
+ baseFeePerGas: bigint | null;
134
+ blobGasUsed: bigint;
135
+ difficulty: bigint;
136
+ excessBlobGas: bigint;
137
+ extraData: import("viem").Hex;
138
+ gasLimit: bigint;
139
+ gasUsed: bigint;
140
+ hash: `0x${string}` | null;
141
+ logsBloom: `0x${string}` | null;
142
+ miner: import("viem").Address;
143
+ mixHash: import("viem").Hash;
144
+ nonce: `0x${string}` | null;
145
+ number: bigint | null;
146
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
147
+ parentHash: import("viem").Hash;
148
+ receiptsRoot: import("viem").Hex;
149
+ sealFields: import("viem").Hex[];
150
+ sha3Uncles: import("viem").Hash;
151
+ size: bigint;
152
+ stateRoot: import("viem").Hash;
153
+ timestamp: bigint;
154
+ totalDifficulty: bigint | null;
155
+ transactions: `0x${string}`[] | import("viem/chains").OpStackTransaction<boolean>[];
156
+ transactionsRoot: import("viem").Hash;
157
+ uncles: import("viem").Hash[];
158
+ withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
159
+ withdrawalsRoot?: `0x${string}` | undefined;
160
+ } & {};
161
+ type: "block";
162
+ };
163
+ readonly transaction: {
164
+ exclude: [] | undefined;
165
+ format: (args: import("viem/chains").OpStackRpcTransaction, action?: string | undefined) => ({
166
+ blockHash: `0x${string}` | null;
167
+ blockNumber: bigint | null;
168
+ from: import("viem").Address;
169
+ gas: bigint;
170
+ hash: import("viem").Hash;
171
+ input: import("viem").Hex;
172
+ nonce: number;
173
+ r: import("viem").Hex;
174
+ s: import("viem").Hex;
175
+ to: import("viem").Address | null;
176
+ transactionIndex: number | null;
177
+ typeHex: import("viem").Hex | null;
178
+ v: bigint;
179
+ value: bigint;
180
+ yParity: number;
181
+ gasPrice?: undefined | undefined;
182
+ maxFeePerBlobGas?: undefined | undefined;
183
+ maxFeePerGas: bigint;
184
+ maxPriorityFeePerGas: bigint;
185
+ isSystemTx?: boolean;
186
+ mint?: bigint | undefined | undefined;
187
+ sourceHash: import("viem").Hex;
188
+ type: "deposit";
189
+ } | {
190
+ r: import("viem").Hex;
191
+ s: import("viem").Hex;
192
+ v: bigint;
193
+ value: bigint;
194
+ gas: bigint;
195
+ to: import("viem").Address | null;
196
+ from: import("viem").Address;
197
+ nonce: number;
198
+ blockHash: `0x${string}` | null;
199
+ blockNumber: bigint | null;
200
+ transactionIndex: number | null;
201
+ hash: import("viem").Hash;
202
+ input: import("viem").Hex;
203
+ typeHex: import("viem").Hex | null;
204
+ accessList?: undefined | undefined;
205
+ authorizationList?: undefined | undefined;
206
+ blobVersionedHashes?: undefined | undefined;
207
+ chainId?: number | undefined;
208
+ yParity?: undefined | undefined;
209
+ type: "legacy";
210
+ gasPrice: bigint;
211
+ maxFeePerBlobGas?: undefined | undefined;
212
+ maxFeePerGas?: undefined | undefined;
213
+ maxPriorityFeePerGas?: undefined | undefined;
214
+ isSystemTx?: undefined | undefined;
215
+ mint?: undefined | undefined;
216
+ sourceHash?: undefined | undefined;
217
+ } | {
218
+ blockHash: `0x${string}` | null;
219
+ blockNumber: bigint | null;
220
+ from: import("viem").Address;
221
+ gas: bigint;
222
+ hash: import("viem").Hash;
223
+ input: import("viem").Hex;
224
+ nonce: number;
225
+ r: import("viem").Hex;
226
+ s: import("viem").Hex;
227
+ to: import("viem").Address | null;
228
+ transactionIndex: number | null;
229
+ typeHex: import("viem").Hex | null;
230
+ v: bigint;
231
+ value: bigint;
232
+ yParity: number;
233
+ accessList: import("viem").AccessList;
234
+ authorizationList?: undefined | undefined;
235
+ blobVersionedHashes?: undefined | undefined;
236
+ chainId: number;
237
+ type: "eip2930";
238
+ gasPrice: bigint;
239
+ maxFeePerBlobGas?: undefined | undefined;
240
+ maxFeePerGas?: undefined | undefined;
241
+ maxPriorityFeePerGas?: undefined | undefined;
242
+ isSystemTx?: undefined | undefined;
243
+ mint?: undefined | undefined;
244
+ sourceHash?: undefined | undefined;
245
+ } | {
246
+ blockHash: `0x${string}` | null;
247
+ blockNumber: bigint | null;
248
+ from: import("viem").Address;
249
+ gas: bigint;
250
+ hash: import("viem").Hash;
251
+ input: import("viem").Hex;
252
+ nonce: number;
253
+ r: import("viem").Hex;
254
+ s: import("viem").Hex;
255
+ to: import("viem").Address | null;
256
+ transactionIndex: number | null;
257
+ typeHex: import("viem").Hex | null;
258
+ v: bigint;
259
+ value: bigint;
260
+ yParity: number;
261
+ accessList: import("viem").AccessList;
262
+ authorizationList?: undefined | undefined;
263
+ blobVersionedHashes?: undefined | undefined;
264
+ chainId: number;
265
+ type: "eip1559";
266
+ gasPrice?: undefined | undefined;
267
+ maxFeePerBlobGas?: undefined | undefined;
268
+ maxFeePerGas: bigint;
269
+ maxPriorityFeePerGas: bigint;
270
+ isSystemTx?: undefined | undefined;
271
+ mint?: undefined | undefined;
272
+ sourceHash?: undefined | undefined;
273
+ } | {
274
+ blockHash: `0x${string}` | null;
275
+ blockNumber: bigint | null;
276
+ from: import("viem").Address;
277
+ gas: bigint;
278
+ hash: import("viem").Hash;
279
+ input: import("viem").Hex;
280
+ nonce: number;
281
+ r: import("viem").Hex;
282
+ s: import("viem").Hex;
283
+ to: import("viem").Address | null;
284
+ transactionIndex: number | null;
285
+ typeHex: import("viem").Hex | null;
286
+ v: bigint;
287
+ value: bigint;
288
+ yParity: number;
289
+ accessList: import("viem").AccessList;
290
+ authorizationList?: undefined | undefined;
291
+ blobVersionedHashes: readonly import("viem").Hex[];
292
+ chainId: number;
293
+ type: "eip4844";
294
+ gasPrice?: undefined | undefined;
295
+ maxFeePerBlobGas: bigint;
296
+ maxFeePerGas: bigint;
297
+ maxPriorityFeePerGas: bigint;
298
+ isSystemTx?: undefined | undefined;
299
+ mint?: undefined | undefined;
300
+ sourceHash?: undefined | undefined;
301
+ } | {
302
+ blockHash: `0x${string}` | null;
303
+ blockNumber: bigint | null;
304
+ from: import("viem").Address;
305
+ gas: bigint;
306
+ hash: import("viem").Hash;
307
+ input: import("viem").Hex;
308
+ nonce: number;
309
+ r: import("viem").Hex;
310
+ s: import("viem").Hex;
311
+ to: import("viem").Address | null;
312
+ transactionIndex: number | null;
313
+ typeHex: import("viem").Hex | null;
314
+ v: bigint;
315
+ value: bigint;
316
+ yParity: number;
317
+ accessList: import("viem").AccessList;
318
+ authorizationList: import("viem").SignedAuthorizationList;
319
+ blobVersionedHashes?: undefined | undefined;
320
+ chainId: number;
321
+ type: "eip7702";
322
+ gasPrice?: undefined | undefined;
323
+ maxFeePerBlobGas?: undefined | undefined;
324
+ maxFeePerGas: bigint;
325
+ maxPriorityFeePerGas: bigint;
326
+ isSystemTx?: undefined | undefined;
327
+ mint?: undefined | undefined;
328
+ sourceHash?: undefined | undefined;
329
+ }) & {};
330
+ type: "transaction";
331
+ };
332
+ readonly transactionReceipt: {
333
+ exclude: [] | undefined;
334
+ format: (args: import("viem/chains").OpStackRpcTransactionReceipt, action?: string | undefined) => {
335
+ blobGasPrice?: bigint | undefined;
336
+ blobGasUsed?: bigint | undefined;
337
+ blockHash: import("viem").Hash;
338
+ blockNumber: bigint;
339
+ contractAddress: import("viem").Address | null | undefined;
340
+ cumulativeGasUsed: bigint;
341
+ effectiveGasPrice: bigint;
342
+ from: import("viem").Address;
343
+ gasUsed: bigint;
344
+ logs: import("viem").Log<bigint, number, false>[];
345
+ logsBloom: import("viem").Hex;
346
+ root?: `0x${string}` | undefined;
347
+ status: "success" | "reverted";
348
+ to: import("viem").Address | null;
349
+ transactionHash: import("viem").Hash;
350
+ transactionIndex: number;
351
+ type: import("viem").TransactionType;
352
+ l1GasPrice: bigint | null;
353
+ l1GasUsed: bigint | null;
354
+ l1Fee: bigint | null;
355
+ l1FeeScalar: number | null;
356
+ } & {};
357
+ type: "transactionReceipt";
358
+ };
359
+ };
360
+ serializers: {
361
+ readonly transaction: typeof import("viem/chains").serializeTransactionOpStack;
362
+ };
363
+ readonly network: "base-sepolia";
91
364
  }[]];
92
365
  readonly mode: import("./internal/types.js").Assign<Mode.Mode, {
93
366
  readonly actions: {
@@ -99,6 +372,7 @@ export declare const defaultConfig: {
99
372
  label?: string | undefined;
100
373
  permissions?: import("./internal/permissionsRequest.js").PermissionsRequest | undefined;
101
374
  signInWithEthereum?: import("./internal/schema/capabilities.js").signInWithEthereum.Request | undefined;
375
+ providerRdns?: string | undefined;
102
376
  }) => Promise<{
103
377
  account: {
104
378
  signInWithEthereum: {
@@ -106,8 +380,105 @@ export declare const defaultConfig: {
106
380
  signature: `0x${string}`;
107
381
  } | undefined;
108
382
  address: import("viem").Address;
383
+ nonceManager?: import("viem").NonceManager | undefined;
384
+ sign: (parameters: {
385
+ hash: import("viem").Hash;
386
+ }) => Promise<import("viem").Hex>;
387
+ signAuthorization?: ((parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>) | undefined;
388
+ signMessage: ({ message }: {
389
+ message: import("viem").SignableMessage;
390
+ }) => Promise<import("viem").Hex>;
391
+ signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
392
+ serializer?: serializer | undefined;
393
+ } | undefined) => Promise<import("viem").Hex>;
394
+ signTypedData: <const typedData extends import("viem").TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<import("viem").Hex>;
109
395
  publicKey: import("viem").Hex;
396
+ source: "porto";
397
+ type: "local";
398
+ keys: readonly [{
399
+ expiry: number;
400
+ hash: `0x${string}`;
401
+ id: `0x${string}`;
402
+ publicKey: `0x${string}`;
403
+ role: "admin" | "session";
404
+ type: "webauthn-p256";
405
+ feeToken?: {
406
+ limit: `${number}` | `${number}.${number}`;
407
+ symbol?: string | undefined;
408
+ } | null | undefined;
409
+ permissions?: {
410
+ calls?: readonly ({
411
+ signature: string;
412
+ to: `0x${string}`;
413
+ } | {
414
+ signature: string;
415
+ to?: undefined;
416
+ } | {
417
+ to: `0x${string}`;
418
+ signature?: undefined;
419
+ })[] | undefined;
420
+ signatureVerification?: {
421
+ addresses: readonly `0x${string}`[];
422
+ } | undefined;
423
+ spend?: readonly {
424
+ limit: bigint;
425
+ period: "minute" | "hour" | "day" | "week" | "month" | "year";
426
+ token?: `0x${string}` | undefined;
427
+ }[] | undefined;
428
+ } | undefined;
429
+ chainId?: number | undefined;
430
+ prehash?: boolean | undefined | undefined;
431
+ privateKey?: OneOf<{
432
+ credential: Pick<import("ox/WebAuthnP256").P256Credential, "id" | "publicKey">;
433
+ rpId: string | undefined;
434
+ } | {
435
+ privateKey: () => Hex.Hex;
436
+ }> | undefined;
437
+ } | {
438
+ expiry: number;
439
+ hash: `0x${string}`;
440
+ id: `0x${string}`;
441
+ publicKey: `0x${string}`;
442
+ role: "admin" | "session";
443
+ type: "eip1193provider";
444
+ feeToken?: {
445
+ limit: `${number}` | `${number}.${number}`;
446
+ symbol?: string | undefined;
447
+ } | null | undefined;
448
+ permissions?: {
449
+ calls?: readonly ({
450
+ signature: string;
451
+ to: `0x${string}`;
452
+ } | {
453
+ signature: string;
454
+ to?: undefined;
455
+ } | {
456
+ to: `0x${string}`;
457
+ signature?: undefined;
458
+ })[] | undefined;
459
+ signatureVerification?: {
460
+ addresses: readonly `0x${string}`[];
461
+ } | undefined;
462
+ spend?: readonly {
463
+ limit: bigint;
464
+ period: "minute" | "hour" | "day" | "week" | "month" | "year";
465
+ token?: `0x${string}` | undefined;
466
+ }[] | undefined;
467
+ } | undefined;
468
+ chainId?: number | undefined;
469
+ prehash?: boolean | undefined | undefined;
470
+ privateKey?: {
471
+ rdns: string;
472
+ } | undefined;
473
+ }, ...import("../viem/Key.js").Key[]];
474
+ } | {
475
+ signInWithEthereum: {
476
+ message: string;
477
+ signature: `0x${string}`;
478
+ } | undefined;
110
479
  type: "local";
480
+ address: import("viem").Address;
481
+ publicKey: import("viem").Hex;
111
482
  nonceManager?: import("viem").NonceManager | undefined;
112
483
  sign: (parameters: {
113
484
  hash: import("viem").Hash;
@@ -401,6 +772,42 @@ export declare const defaultConfig: {
401
772
  } | {
402
773
  privateKey: () => Hex.Hex;
403
774
  }> | undefined;
775
+ } | {
776
+ expiry: number;
777
+ hash: `0x${string}`;
778
+ id: `0x${string}`;
779
+ publicKey: `0x${string}`;
780
+ role: "admin" | "session";
781
+ type: "eip1193provider";
782
+ feeToken?: {
783
+ limit: `${number}` | `${number}.${number}`;
784
+ symbol?: string | undefined;
785
+ } | null | undefined;
786
+ permissions?: {
787
+ calls?: readonly ({
788
+ signature: string;
789
+ to: `0x${string}`;
790
+ } | {
791
+ signature: string;
792
+ to?: undefined;
793
+ } | {
794
+ to: `0x${string}`;
795
+ signature?: undefined;
796
+ })[] | undefined;
797
+ signatureVerification?: {
798
+ addresses: readonly `0x${string}`[];
799
+ } | undefined;
800
+ spend?: readonly {
801
+ limit: bigint;
802
+ period: "minute" | "hour" | "day" | "week" | "month" | "year";
803
+ token?: `0x${string}` | undefined;
804
+ }[] | undefined;
805
+ } | undefined;
806
+ chainId?: number | undefined;
807
+ prehash?: boolean | undefined | undefined;
808
+ privateKey?: {
809
+ rdns: string;
810
+ } | undefined;
404
811
  };
405
812
  }>;
406
813
  readonly grantPermissions: (parameters: {
@@ -415,10 +822,13 @@ export declare const defaultConfig: {
415
822
  key?: {
416
823
  credentialId?: string | undefined;
417
824
  publicKey: Hex.Hex;
825
+ } | {
826
+ rdns?: string | undefined;
418
827
  } | undefined;
419
828
  internal: Mode.ActionsInternal;
420
829
  permissions?: import("./internal/permissionsRequest.js").PermissionsRequest | undefined;
421
830
  signInWithEthereum?: import("./internal/schema/capabilities.js").signInWithEthereum.Request | undefined;
831
+ providerRdns?: string | undefined;
422
832
  }) => Promise<{
423
833
  accounts: {
424
834
  signInWithEthereum: {
@@ -622,14 +1032,14 @@ export declare const defaultConfig: {
622
1032
  } | undefined;
623
1033
  };
624
1034
  digest: `0x${string}`;
625
- key: Pick<import("../viem/Key.js").Key, "publicKey" | "type" | "prehash">;
1035
+ key: Pick<import("../viem/Key.js").Key, "type" | "prehash" | "publicKey">;
626
1036
  typedData: {
627
- domain: Record<string, never> | {
1037
+ domain: {
628
1038
  chainId: number;
629
1039
  name: string;
630
1040
  verifyingContract: `0x${string}`;
631
1041
  version: string;
632
- };
1042
+ } | Record<string, never>;
633
1043
  message: Record<string, unknown>;
634
1044
  primaryType: string;
635
1045
  types: Record<string, unknown>;
@@ -748,6 +1158,7 @@ export declare const defaultConfig: {
748
1158
  label?: string | undefined;
749
1159
  permissions?: import("./internal/permissionsRequest.js").PermissionsRequest | undefined;
750
1160
  signInWithEthereum?: import("./internal/schema/capabilities.js").signInWithEthereum.Request | undefined;
1161
+ providerRdns?: string | undefined;
751
1162
  }) => Promise<{
752
1163
  account: {
753
1164
  signInWithEthereum: {
@@ -916,7 +1327,7 @@ export declare const defaultConfig: {
916
1327
  id: `0x${string}`;
917
1328
  publicKey: `0x${string}`;
918
1329
  role: "admin" | "session";
919
- type: "address" | "p256" | "secp256k1" | "webauthn-p256";
1330
+ type: "address" | "p256" | "secp256k1" | "webauthn-p256" | "eip1193provider";
920
1331
  feeToken?: {
921
1332
  limit: `${number}` | `${number}.${number}`;
922
1333
  symbol?: string | undefined;
@@ -1125,6 +1536,42 @@ export declare const defaultConfig: {
1125
1536
  } | {
1126
1537
  privateKey: () => Hex.Hex;
1127
1538
  }> | undefined;
1539
+ } | {
1540
+ expiry: number;
1541
+ hash: `0x${string}`;
1542
+ id: `0x${string}`;
1543
+ publicKey: `0x${string}`;
1544
+ role: "admin" | "session";
1545
+ type: "eip1193provider";
1546
+ feeToken?: {
1547
+ limit: `${number}` | `${number}.${number}`;
1548
+ symbol?: string | undefined;
1549
+ } | null | undefined;
1550
+ permissions?: {
1551
+ calls?: readonly ({
1552
+ signature: string;
1553
+ to: `0x${string}`;
1554
+ } | {
1555
+ signature: string;
1556
+ to?: undefined;
1557
+ } | {
1558
+ to: `0x${string}`;
1559
+ signature?: undefined;
1560
+ })[] | undefined;
1561
+ signatureVerification?: {
1562
+ addresses: readonly `0x${string}`[];
1563
+ } | undefined;
1564
+ spend?: readonly {
1565
+ limit: bigint;
1566
+ period: "minute" | "hour" | "day" | "week" | "month" | "year";
1567
+ token?: `0x${string}` | undefined;
1568
+ }[] | undefined;
1569
+ } | undefined;
1570
+ chainId?: number | undefined;
1571
+ prehash?: boolean | undefined | undefined;
1572
+ privateKey?: {
1573
+ rdns: string;
1574
+ } | undefined;
1128
1575
  };
1129
1576
  }>;
1130
1577
  readonly grantPermissions: (parameters: {
@@ -1139,10 +1586,13 @@ export declare const defaultConfig: {
1139
1586
  key?: {
1140
1587
  credentialId?: string | undefined;
1141
1588
  publicKey: Hex.Hex;
1589
+ } | {
1590
+ rdns?: string | undefined;
1142
1591
  } | undefined;
1143
1592
  internal: Mode.ActionsInternal;
1144
1593
  permissions?: import("./internal/permissionsRequest.js").PermissionsRequest | undefined;
1145
1594
  signInWithEthereum?: import("./internal/schema/capabilities.js").signInWithEthereum.Request | undefined;
1595
+ providerRdns?: string | undefined;
1146
1596
  }) => Promise<{
1147
1597
  accounts: {
1148
1598
  readonly signInWithEthereum: {
@@ -1363,14 +1813,14 @@ export declare const defaultConfig: {
1363
1813
  } | undefined;
1364
1814
  };
1365
1815
  digest: `0x${string}`;
1366
- key: Pick<import("../viem/Key.js").Key, "publicKey" | "type" | "prehash">;
1816
+ key: Pick<import("../viem/Key.js").Key, "type" | "prehash" | "publicKey">;
1367
1817
  typedData: {
1368
- domain: Record<string, never> | {
1818
+ domain: {
1369
1819
  chainId: number;
1370
1820
  name: string;
1371
1821
  verifyingContract: `0x${string}`;
1372
1822
  version: string;
1373
- };
1823
+ } | Record<string, never>;
1374
1824
  message: Record<string, unknown>;
1375
1825
  primaryType: string;
1376
1826
  types: Record<string, unknown>;
@@ -1381,17 +1831,17 @@ export declare const defaultConfig: {
1381
1831
  context: any;
1382
1832
  digest: `0x${string}`;
1383
1833
  key: {
1834
+ type: "address" | "p256" | "secp256k1" | "webauthn-p256" | "eip1193provider";
1384
1835
  publicKey: `0x${string}`;
1385
- type: "address" | "p256" | "secp256k1" | "webauthn-p256";
1386
1836
  prehash?: boolean | undefined;
1387
1837
  };
1388
1838
  typedData: {
1389
- domain: {
1839
+ domain: Record<string, never> | {
1390
1840
  chainId: number;
1391
1841
  name: string;
1392
1842
  verifyingContract: `0x${string}`;
1393
1843
  version: string;
1394
- } | Record<string, never>;
1844
+ };
1395
1845
  message: Record<string, unknown>;
1396
1846
  primaryType: string;
1397
1847
  types: Record<string, unknown>;
@@ -1487,21 +1937,21 @@ export declare const defaultConfig: {
1487
1937
  }>;
1488
1938
  readonly relay: import("viem").HttpTransport<undefined, false>;
1489
1939
  readonly storage: Storage.Storage;
1490
- readonly storageKey: "porto.store";
1940
+ readonly storageKey: "risewallet.store";
1491
1941
  };
1492
1942
  /**
1493
1943
  * Instantiates an Porto instance.
1494
1944
  *
1495
1945
  * @example
1496
1946
  * ```ts twoslash
1497
- * import { Porto } from 'porto'
1947
+ * import { Porto } from 'rise-wallet'
1498
1948
  *
1499
1949
  * const porto = Porto.create()
1500
1950
  *
1501
1951
  * const blockNumber = await porto.provider.request({ method: 'eth_blockNumber' })
1502
1952
  * ```
1503
1953
  */
1504
- export declare function create<const chains extends readonly [Chains.Chain, ...Chains.Chain[]]>(parameters?: ExactPartial<Config<chains>> | undefined): Porto<chains>;
1954
+ export declare function create<const chains extends readonly [Chains.Chain, ...Chains.Chain[]]>(parameters?: ExactPartial<Config<chains>> | undefined): RiseWallet<chains>;
1505
1955
  export type Config<chains extends readonly [Chains.Chain, ...Chains.Chain[]] = readonly [
1506
1956
  Chains.Chain,
1507
1957
  ...Chains.Chain[]
@@ -1552,7 +2002,7 @@ export type Config<chains extends readonly [Chains.Chain, ...Chains.Chain[]] = r
1552
2002
  */
1553
2003
  transports: Record<chains[number]['id'], Transport>;
1554
2004
  };
1555
- export type Porto<chains extends readonly [Chains.Chain, ...Chains.Chain[]] = readonly [
2005
+ export type RiseWallet<chains extends readonly [Chains.Chain, ...Chains.Chain[]] = readonly [
1556
2006
  Chains.Chain,
1557
2007
  ...Chains.Chain[]
1558
2008
  ]> = {