@aastar/sdk 0.20.8 → 0.20.9
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/dist/BaseClient-CkBhQ1ou.d.cts +88 -0
- package/dist/UserClient-2J6XMTNV.cjs +15 -0
- package/dist/UserClient-2J6XMTNV.cjs.map +1 -0
- package/dist/account.cjs +31 -0
- package/dist/account.cjs.map +1 -0
- package/dist/account.d.cts +48 -0
- package/dist/admin.cjs +15 -0
- package/dist/admin.cjs.map +1 -0
- package/dist/admin.d.cts +62 -0
- package/dist/airaccount.cjs +452 -0
- package/dist/airaccount.cjs.map +1 -0
- package/dist/airaccount.d.cts +4 -0
- package/dist/channel-CkRRbzT8.d.cts +77 -0
- package/dist/channel.cjs +27 -0
- package/dist/channel.cjs.map +1 -0
- package/dist/channel.d.cts +64 -0
- package/dist/chunk-2RCJBWPO.cjs +1168 -0
- package/dist/chunk-2RCJBWPO.cjs.map +1 -0
- package/dist/chunk-FTJD2DWE.cjs +42472 -0
- package/dist/chunk-FTJD2DWE.cjs.map +1 -0
- package/dist/chunk-GRDC6ZRA.cjs +118 -0
- package/dist/chunk-GRDC6ZRA.cjs.map +1 -0
- package/dist/chunk-GX7NROST.cjs +421 -0
- package/dist/chunk-GX7NROST.cjs.map +1 -0
- package/dist/chunk-HSVQIFIK.cjs +128 -0
- package/dist/chunk-HSVQIFIK.cjs.map +1 -0
- package/dist/chunk-JTWY2XEG.cjs +115 -0
- package/dist/chunk-JTWY2XEG.cjs.map +1 -0
- package/dist/chunk-MRREGCWN.cjs +585 -0
- package/dist/chunk-MRREGCWN.cjs.map +1 -0
- package/dist/chunk-NT26BDGN.cjs +228 -0
- package/dist/chunk-NT26BDGN.cjs.map +1 -0
- package/dist/chunk-Q7SFCCGT.cjs +11 -0
- package/dist/chunk-Q7SFCCGT.cjs.map +1 -0
- package/dist/chunk-QLF7N6H7.cjs +448 -0
- package/dist/chunk-QLF7N6H7.cjs.map +1 -0
- package/dist/chunk-RNHSA3LO.cjs +108 -0
- package/dist/chunk-RNHSA3LO.cjs.map +1 -0
- package/dist/chunk-S5IKOOUR.cjs +393 -0
- package/dist/chunk-S5IKOOUR.cjs.map +1 -0
- package/dist/chunk-TFLZETWB.cjs +4693 -0
- package/dist/chunk-TFLZETWB.cjs.map +1 -0
- package/dist/chunk-WQREDGUF.cjs +435 -0
- package/dist/chunk-WQREDGUF.cjs.map +1 -0
- package/dist/chunk-XQROKLZI.cjs +4521 -0
- package/dist/chunk-XQROKLZI.cjs.map +1 -0
- package/dist/contract-addresses-TANQ5DLX.cjs +49 -0
- package/dist/contract-addresses-TANQ5DLX.cjs.map +1 -0
- package/dist/core.cjs +894 -0
- package/dist/core.cjs.map +1 -0
- package/dist/core.d.cts +6930 -0
- package/dist/dapp.cjs +289 -0
- package/dist/dapp.cjs.map +1 -0
- package/dist/dapp.d.cts +127 -0
- package/dist/doc-types-471vSmPO.d.cts +16 -0
- package/dist/enduser.cjs +24 -0
- package/dist/enduser.cjs.map +1 -0
- package/dist/enduser.d.cts +261 -0
- package/dist/identity.cjs +23 -0
- package/dist/identity.cjs.map +1 -0
- package/dist/identity.d.cts +81 -0
- package/dist/index-B6SfEQxo.d.cts +47 -0
- package/dist/index.cjs +2814 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +656 -0
- package/dist/kms.cjs +452 -0
- package/dist/kms.cjs.map +1 -0
- package/dist/kms.d.cts +3054 -0
- package/dist/lib-FE4GR7TO.cjs +1865 -0
- package/dist/lib-FE4GR7TO.cjs.map +1 -0
- package/dist/operator.cjs +27 -0
- package/dist/operator.cjs.map +1 -0
- package/dist/operator.d.cts +164 -0
- package/dist/paymaster.cjs +63 -0
- package/dist/paymaster.cjs.map +1 -0
- package/dist/paymaster.d.cts +312 -0
- package/dist/src-ENPA7D2S.cjs +63 -0
- package/dist/src-ENPA7D2S.cjs.map +1 -0
- package/dist/src-TQKEO2I4.cjs +894 -0
- package/dist/src-TQKEO2I4.cjs.map +1 -0
- package/dist/tier-router-DeeVg69O.d.cts +370 -0
- package/dist/tokens.cjs +15 -0
- package/dist/tokens.cjs.map +1 -0
- package/dist/tokens.d.cts +64 -0
- package/dist/x402.cjs +103 -0
- package/dist/x402.cjs.map +1 -0
- package/dist/x402.d.cts +373 -0
- package/package.json +32 -32
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkTFLZETWB_cjs = require('./chunk-TFLZETWB.cjs');
|
|
4
|
+
var chunkXQROKLZI_cjs = require('./chunk-XQROKLZI.cjs');
|
|
5
|
+
require('./chunk-FTJD2DWE.cjs');
|
|
6
|
+
require('./chunk-S5IKOOUR.cjs');
|
|
7
|
+
require('./chunk-Q7SFCCGT.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "ACCOUNT_ABI", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkTFLZETWB_cjs.ACCOUNT_ABI; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "AGENT_SESSION_KEY_VALIDATOR_ABI", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkTFLZETWB_cjs.AGENT_SESSION_KEY_VALIDATOR_ABI; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "AIRACCOUNT_ABI", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkTFLZETWB_cjs.AIRACCOUNT_ABI; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "AIRACCOUNT_ADDRESSES", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkTFLZETWB_cjs.AIRACCOUNT_ADDRESSES; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "AIRACCOUNT_FACTORY_ABI", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkTFLZETWB_cjs.AIRACCOUNT_FACTORY_ABI; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "AIR_ACCOUNT_COMPOSITE_VALIDATOR_ABI", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkTFLZETWB_cjs.AIR_ACCOUNT_COMPOSITE_VALIDATOR_ABI; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "AIR_ACCOUNT_DELEGATE_ABI", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkTFLZETWB_cjs.AIR_ACCOUNT_DELEGATE_ABI; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "AIR_ACCOUNT_DELEGATE_ADDRESS", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunkTFLZETWB_cjs.AIR_ACCOUNT_DELEGATE_ADDRESS; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "ALG_ID", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunkTFLZETWB_cjs.ALG_ID; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "AccountManager", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunkTFLZETWB_cjs.AccountManager; }
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "AgentRegistryService", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return chunkTFLZETWB_cjs.AgentRegistryService; }
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(exports, "AirAccountServerClient", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () { return chunkTFLZETWB_cjs.AirAccountServerClient; }
|
|
58
|
+
});
|
|
59
|
+
Object.defineProperty(exports, "BLSSignatureService", {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function () { return chunkTFLZETWB_cjs.BLSSignatureService; }
|
|
62
|
+
});
|
|
63
|
+
Object.defineProperty(exports, "CALLDATA_PARSER_REGISTRY_ABI", {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: function () { return chunkTFLZETWB_cjs.CALLDATA_PARSER_REGISTRY_ABI; }
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(exports, "ConsoleLogger", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function () { return chunkTFLZETWB_cjs.ConsoleLogger; }
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(exports, "DEFAULT_CREDENTIAL_ID", {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function () { return chunkTFLZETWB_cjs.DEFAULT_CREDENTIAL_ID; }
|
|
74
|
+
});
|
|
75
|
+
Object.defineProperty(exports, "DEFAULT_KMS_ENDPOINT", {
|
|
76
|
+
enumerable: true,
|
|
77
|
+
get: function () { return chunkTFLZETWB_cjs.DEFAULT_KMS_ENDPOINT; }
|
|
78
|
+
});
|
|
79
|
+
Object.defineProperty(exports, "DEFAULT_ORIGIN", {
|
|
80
|
+
enumerable: true,
|
|
81
|
+
get: function () { return chunkTFLZETWB_cjs.DEFAULT_ORIGIN; }
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(exports, "DEFAULT_RP_ID", {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
get: function () { return chunkTFLZETWB_cjs.DEFAULT_RP_ID; }
|
|
86
|
+
});
|
|
87
|
+
Object.defineProperty(exports, "DvtPendingConfirmationError", {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function () { return chunkTFLZETWB_cjs.DvtPendingConfirmationError; }
|
|
90
|
+
});
|
|
91
|
+
Object.defineProperty(exports, "EIP7702DelegateService", {
|
|
92
|
+
enumerable: true,
|
|
93
|
+
get: function () { return chunkTFLZETWB_cjs.EIP7702DelegateService; }
|
|
94
|
+
});
|
|
95
|
+
Object.defineProperty(exports, "ENTRYPOINT_ABI_V6", {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: function () { return chunkTFLZETWB_cjs.ENTRYPOINT_ABI_V6; }
|
|
98
|
+
});
|
|
99
|
+
Object.defineProperty(exports, "ENTRYPOINT_ABI_V7_V8", {
|
|
100
|
+
enumerable: true,
|
|
101
|
+
get: function () { return chunkTFLZETWB_cjs.ENTRYPOINT_ABI_V7_V8; }
|
|
102
|
+
});
|
|
103
|
+
Object.defineProperty(exports, "ENTRYPOINT_ADDRESSES", {
|
|
104
|
+
enumerable: true,
|
|
105
|
+
get: function () { return chunkTFLZETWB_cjs.ENTRYPOINT_ADDRESSES; }
|
|
106
|
+
});
|
|
107
|
+
Object.defineProperty(exports, "ERC20_ABI", {
|
|
108
|
+
enumerable: true,
|
|
109
|
+
get: function () { return chunkTFLZETWB_cjs.ERC20_ABI; }
|
|
110
|
+
});
|
|
111
|
+
Object.defineProperty(exports, "ERC8004Service", {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function () { return chunkTFLZETWB_cjs.ERC8004Service; }
|
|
114
|
+
});
|
|
115
|
+
Object.defineProperty(exports, "ERC8004_ADDRESSES", {
|
|
116
|
+
enumerable: true,
|
|
117
|
+
get: function () { return chunkTFLZETWB_cjs.ERC8004_ADDRESSES; }
|
|
118
|
+
});
|
|
119
|
+
Object.defineProperty(exports, "EXECUTE_BATCH_SELECTOR", {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
get: function () { return chunkTFLZETWB_cjs.EXECUTE_BATCH_SELECTOR; }
|
|
122
|
+
});
|
|
123
|
+
Object.defineProperty(exports, "EXECUTE_SELECTOR", {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function () { return chunkTFLZETWB_cjs.EXECUTE_SELECTOR; }
|
|
126
|
+
});
|
|
127
|
+
Object.defineProperty(exports, "EXECUTE_USER_OP_SELECTOR", {
|
|
128
|
+
enumerable: true,
|
|
129
|
+
get: function () { return chunkTFLZETWB_cjs.EXECUTE_USER_OP_SELECTOR; }
|
|
130
|
+
});
|
|
131
|
+
Object.defineProperty(exports, "EntryPointVersion", {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () { return chunkTFLZETWB_cjs.EntryPointVersion; }
|
|
134
|
+
});
|
|
135
|
+
Object.defineProperty(exports, "EthereumProvider", {
|
|
136
|
+
enumerable: true,
|
|
137
|
+
get: function () { return chunkTFLZETWB_cjs.EthereumProvider; }
|
|
138
|
+
});
|
|
139
|
+
Object.defineProperty(exports, "FACTORY_ABI_V6", {
|
|
140
|
+
enumerable: true,
|
|
141
|
+
get: function () { return chunkTFLZETWB_cjs.FACTORY_ABI_V6; }
|
|
142
|
+
});
|
|
143
|
+
Object.defineProperty(exports, "FACTORY_ABI_V7_V8", {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
get: function () { return chunkTFLZETWB_cjs.FACTORY_ABI_V7_V8; }
|
|
146
|
+
});
|
|
147
|
+
Object.defineProperty(exports, "FORCE_EXIT_MODULE_ABI", {
|
|
148
|
+
enumerable: true,
|
|
149
|
+
get: function () { return chunkTFLZETWB_cjs.FORCE_EXIT_MODULE_ABI; }
|
|
150
|
+
});
|
|
151
|
+
Object.defineProperty(exports, "ForceExitService", {
|
|
152
|
+
enumerable: true,
|
|
153
|
+
get: function () { return chunkTFLZETWB_cjs.ForceExitService; }
|
|
154
|
+
});
|
|
155
|
+
Object.defineProperty(exports, "GLOBAL_GUARD_ABI", {
|
|
156
|
+
enumerable: true,
|
|
157
|
+
get: function () { return chunkTFLZETWB_cjs.GLOBAL_GUARD_ABI; }
|
|
158
|
+
});
|
|
159
|
+
Object.defineProperty(exports, "GuardChecker", {
|
|
160
|
+
enumerable: true,
|
|
161
|
+
get: function () { return chunkTFLZETWB_cjs.GuardChecker; }
|
|
162
|
+
});
|
|
163
|
+
Object.defineProperty(exports, "GuardStateReader", {
|
|
164
|
+
enumerable: true,
|
|
165
|
+
get: function () { return chunkTFLZETWB_cjs.GuardStateReader; }
|
|
166
|
+
});
|
|
167
|
+
Object.defineProperty(exports, "KmsAgentService", {
|
|
168
|
+
enumerable: true,
|
|
169
|
+
get: function () { return chunkTFLZETWB_cjs.KmsAgentService; }
|
|
170
|
+
});
|
|
171
|
+
Object.defineProperty(exports, "KmsHttpClient", {
|
|
172
|
+
enumerable: true,
|
|
173
|
+
get: function () { return chunkTFLZETWB_cjs.KmsHttpClient; }
|
|
174
|
+
});
|
|
175
|
+
Object.defineProperty(exports, "KmsManager", {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
get: function () { return chunkTFLZETWB_cjs.KmsManager; }
|
|
178
|
+
});
|
|
179
|
+
Object.defineProperty(exports, "KmsMonitorService", {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: function () { return chunkTFLZETWB_cjs.KmsMonitorService; }
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(exports, "KmsPaymentSigner", {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: function () { return chunkTFLZETWB_cjs.KmsPaymentSigner; }
|
|
186
|
+
});
|
|
187
|
+
Object.defineProperty(exports, "KmsSessionService", {
|
|
188
|
+
enumerable: true,
|
|
189
|
+
get: function () { return chunkTFLZETWB_cjs.KmsSessionService; }
|
|
190
|
+
});
|
|
191
|
+
Object.defineProperty(exports, "KmsSigner", {
|
|
192
|
+
enumerable: true,
|
|
193
|
+
get: function () { return chunkTFLZETWB_cjs.KmsSigner; }
|
|
194
|
+
});
|
|
195
|
+
Object.defineProperty(exports, "L2_TYPE", {
|
|
196
|
+
enumerable: true,
|
|
197
|
+
get: function () { return chunkTFLZETWB_cjs.L2_TYPE; }
|
|
198
|
+
});
|
|
199
|
+
Object.defineProperty(exports, "LocalWalletSigner", {
|
|
200
|
+
enumerable: true,
|
|
201
|
+
get: function () { return chunkTFLZETWB_cjs.LocalWalletSigner; }
|
|
202
|
+
});
|
|
203
|
+
Object.defineProperty(exports, "MAX_GUARDIANS", {
|
|
204
|
+
enumerable: true,
|
|
205
|
+
get: function () { return chunkTFLZETWB_cjs.MAX_GUARDIANS; }
|
|
206
|
+
});
|
|
207
|
+
Object.defineProperty(exports, "MODULE_TYPE", {
|
|
208
|
+
enumerable: true,
|
|
209
|
+
get: function () { return chunkTFLZETWB_cjs.MODULE_TYPE; }
|
|
210
|
+
});
|
|
211
|
+
Object.defineProperty(exports, "MemoryStorage", {
|
|
212
|
+
enumerable: true,
|
|
213
|
+
get: function () { return chunkTFLZETWB_cjs.MemoryStorage; }
|
|
214
|
+
});
|
|
215
|
+
Object.defineProperty(exports, "ModuleManager", {
|
|
216
|
+
enumerable: true,
|
|
217
|
+
get: function () { return chunkTFLZETWB_cjs.ModuleManager; }
|
|
218
|
+
});
|
|
219
|
+
Object.defineProperty(exports, "P256PasskeySigner", {
|
|
220
|
+
enumerable: true,
|
|
221
|
+
get: function () { return chunkTFLZETWB_cjs.P256PasskeySigner; }
|
|
222
|
+
});
|
|
223
|
+
Object.defineProperty(exports, "PaymasterManager", {
|
|
224
|
+
enumerable: true,
|
|
225
|
+
get: function () { return chunkTFLZETWB_cjs.PaymasterManager; }
|
|
226
|
+
});
|
|
227
|
+
Object.defineProperty(exports, "PaymasterPriceStalenessError", {
|
|
228
|
+
enumerable: true,
|
|
229
|
+
get: function () { return chunkTFLZETWB_cjs.PaymasterPriceStalenessError; }
|
|
230
|
+
});
|
|
231
|
+
Object.defineProperty(exports, "RECOVERY_THRESHOLD", {
|
|
232
|
+
enumerable: true,
|
|
233
|
+
get: function () { return chunkTFLZETWB_cjs.RECOVERY_THRESHOLD; }
|
|
234
|
+
});
|
|
235
|
+
Object.defineProperty(exports, "RECOVERY_TIMELOCK_SECONDS", {
|
|
236
|
+
enumerable: true,
|
|
237
|
+
get: function () { return chunkTFLZETWB_cjs.RECOVERY_TIMELOCK_SECONDS; }
|
|
238
|
+
});
|
|
239
|
+
Object.defineProperty(exports, "RecoveryService", {
|
|
240
|
+
enumerable: true,
|
|
241
|
+
get: function () { return chunkTFLZETWB_cjs.RecoveryService; }
|
|
242
|
+
});
|
|
243
|
+
Object.defineProperty(exports, "SESSION_KEY_VALIDATOR_ABI", {
|
|
244
|
+
enumerable: true,
|
|
245
|
+
get: function () { return chunkTFLZETWB_cjs.SESSION_KEY_VALIDATOR_ABI; }
|
|
246
|
+
});
|
|
247
|
+
Object.defineProperty(exports, "SessionKeyService", {
|
|
248
|
+
enumerable: true,
|
|
249
|
+
get: function () { return chunkTFLZETWB_cjs.SessionKeyService; }
|
|
250
|
+
});
|
|
251
|
+
Object.defineProperty(exports, "SilentLogger", {
|
|
252
|
+
enumerable: true,
|
|
253
|
+
get: function () { return chunkTFLZETWB_cjs.SilentLogger; }
|
|
254
|
+
});
|
|
255
|
+
Object.defineProperty(exports, "TIER_GUARD_HOOK_ABI", {
|
|
256
|
+
enumerable: true,
|
|
257
|
+
get: function () { return chunkTFLZETWB_cjs.TIER_GUARD_HOOK_ABI; }
|
|
258
|
+
});
|
|
259
|
+
Object.defineProperty(exports, "TokenService", {
|
|
260
|
+
enumerable: true,
|
|
261
|
+
get: function () { return chunkTFLZETWB_cjs.TokenService; }
|
|
262
|
+
});
|
|
263
|
+
Object.defineProperty(exports, "TransferManager", {
|
|
264
|
+
enumerable: true,
|
|
265
|
+
get: function () { return chunkTFLZETWB_cjs.TransferManager; }
|
|
266
|
+
});
|
|
267
|
+
Object.defineProperty(exports, "VALIDATOR_ABI", {
|
|
268
|
+
enumerable: true,
|
|
269
|
+
get: function () { return chunkTFLZETWB_cjs.VALIDATOR_ABI; }
|
|
270
|
+
});
|
|
271
|
+
Object.defineProperty(exports, "WEIGHT_CHANGE_EXPIRY_SECONDS", {
|
|
272
|
+
enumerable: true,
|
|
273
|
+
get: function () { return chunkTFLZETWB_cjs.WEIGHT_CHANGE_EXPIRY_SECONDS; }
|
|
274
|
+
});
|
|
275
|
+
Object.defineProperty(exports, "WEIGHT_CHANGE_THRESHOLD", {
|
|
276
|
+
enumerable: true,
|
|
277
|
+
get: function () { return chunkTFLZETWB_cjs.WEIGHT_CHANGE_THRESHOLD; }
|
|
278
|
+
});
|
|
279
|
+
Object.defineProperty(exports, "WEIGHT_CHANGE_TIMELOCK_SECONDS", {
|
|
280
|
+
enumerable: true,
|
|
281
|
+
get: function () { return chunkTFLZETWB_cjs.WEIGHT_CHANGE_TIMELOCK_SECONDS; }
|
|
282
|
+
});
|
|
283
|
+
Object.defineProperty(exports, "WalletManager", {
|
|
284
|
+
enumerable: true,
|
|
285
|
+
get: function () { return chunkTFLZETWB_cjs.WalletManager; }
|
|
286
|
+
});
|
|
287
|
+
Object.defineProperty(exports, "WeightedSignatureService", {
|
|
288
|
+
enumerable: true,
|
|
289
|
+
get: function () { return chunkTFLZETWB_cjs.WeightedSignatureService; }
|
|
290
|
+
});
|
|
291
|
+
Object.defineProperty(exports, "YAAAServerClient", {
|
|
292
|
+
enumerable: true,
|
|
293
|
+
get: function () { return chunkTFLZETWB_cjs.YAAAServerClient; }
|
|
294
|
+
});
|
|
295
|
+
Object.defineProperty(exports, "base64UrlDecode", {
|
|
296
|
+
enumerable: true,
|
|
297
|
+
get: function () { return chunkTFLZETWB_cjs.base64UrlDecode; }
|
|
298
|
+
});
|
|
299
|
+
Object.defineProperty(exports, "base64UrlEncode", {
|
|
300
|
+
enumerable: true,
|
|
301
|
+
get: function () { return chunkTFLZETWB_cjs.base64UrlEncode; }
|
|
302
|
+
});
|
|
303
|
+
Object.defineProperty(exports, "beginAuthenticationChallenge", {
|
|
304
|
+
enumerable: true,
|
|
305
|
+
get: function () { return chunkTFLZETWB_cjs.beginAuthenticationChallenge; }
|
|
306
|
+
});
|
|
307
|
+
Object.defineProperty(exports, "beginGrantSessionChallenge", {
|
|
308
|
+
enumerable: true,
|
|
309
|
+
get: function () { return chunkTFLZETWB_cjs.beginGrantSessionChallenge; }
|
|
310
|
+
});
|
|
311
|
+
Object.defineProperty(exports, "buildAuthenticationCredential", {
|
|
312
|
+
enumerable: true,
|
|
313
|
+
get: function () { return chunkTFLZETWB_cjs.buildAuthenticationCredential; }
|
|
314
|
+
});
|
|
315
|
+
Object.defineProperty(exports, "buildAuthenticatorData", {
|
|
316
|
+
enumerable: true,
|
|
317
|
+
get: function () { return chunkTFLZETWB_cjs.buildAuthenticatorData; }
|
|
318
|
+
});
|
|
319
|
+
Object.defineProperty(exports, "buildClientDataJSON", {
|
|
320
|
+
enumerable: true,
|
|
321
|
+
get: function () { return chunkTFLZETWB_cjs.buildClientDataJSON; }
|
|
322
|
+
});
|
|
323
|
+
Object.defineProperty(exports, "buildInstallModuleHash", {
|
|
324
|
+
enumerable: true,
|
|
325
|
+
get: function () { return chunkTFLZETWB_cjs.buildInstallModuleHash; }
|
|
326
|
+
});
|
|
327
|
+
Object.defineProperty(exports, "buildUninstallModuleHash", {
|
|
328
|
+
enumerable: true,
|
|
329
|
+
get: function () { return chunkTFLZETWB_cjs.buildUninstallModuleHash; }
|
|
330
|
+
});
|
|
331
|
+
Object.defineProperty(exports, "computeOapdSalt", {
|
|
332
|
+
enumerable: true,
|
|
333
|
+
get: function () { return chunkTFLZETWB_cjs.computeOapdSalt; }
|
|
334
|
+
});
|
|
335
|
+
Object.defineProperty(exports, "erc8004AddressesForChain", {
|
|
336
|
+
enumerable: true,
|
|
337
|
+
get: function () { return chunkTFLZETWB_cjs.erc8004AddressesForChain; }
|
|
338
|
+
});
|
|
339
|
+
Object.defineProperty(exports, "getOapdAddress", {
|
|
340
|
+
enumerable: true,
|
|
341
|
+
get: function () { return chunkTFLZETWB_cjs.getOapdAddress; }
|
|
342
|
+
});
|
|
343
|
+
Object.defineProperty(exports, "getOapdAddressWithChainId", {
|
|
344
|
+
enumerable: true,
|
|
345
|
+
get: function () { return chunkTFLZETWB_cjs.getOapdAddressWithChainId; }
|
|
346
|
+
});
|
|
347
|
+
Object.defineProperty(exports, "isExecuteUserOpWrapped", {
|
|
348
|
+
enumerable: true,
|
|
349
|
+
get: function () { return chunkTFLZETWB_cjs.isExecuteUserOpWrapped; }
|
|
350
|
+
});
|
|
351
|
+
Object.defineProperty(exports, "isOapdDeployed", {
|
|
352
|
+
enumerable: true,
|
|
353
|
+
get: function () { return chunkTFLZETWB_cjs.isOapdDeployed; }
|
|
354
|
+
});
|
|
355
|
+
Object.defineProperty(exports, "isPendingConfirmation", {
|
|
356
|
+
enumerable: true,
|
|
357
|
+
get: function () { return chunkTFLZETWB_cjs.isPendingConfirmation; }
|
|
358
|
+
});
|
|
359
|
+
Object.defineProperty(exports, "packP256SessionSignature", {
|
|
360
|
+
enumerable: true,
|
|
361
|
+
get: function () { return chunkTFLZETWB_cjs.packP256SessionSignature; }
|
|
362
|
+
});
|
|
363
|
+
Object.defineProperty(exports, "packSecp256k1SessionSignature", {
|
|
364
|
+
enumerable: true,
|
|
365
|
+
get: function () { return chunkTFLZETWB_cjs.packSecp256k1SessionSignature; }
|
|
366
|
+
});
|
|
367
|
+
Object.defineProperty(exports, "runAuthenticationCeremony", {
|
|
368
|
+
enumerable: true,
|
|
369
|
+
get: function () { return chunkTFLZETWB_cjs.runAuthenticationCeremony; }
|
|
370
|
+
});
|
|
371
|
+
Object.defineProperty(exports, "runGrantSessionCeremony", {
|
|
372
|
+
enumerable: true,
|
|
373
|
+
get: function () { return chunkTFLZETWB_cjs.runGrantSessionCeremony; }
|
|
374
|
+
});
|
|
375
|
+
Object.defineProperty(exports, "runWebAuthnCeremony", {
|
|
376
|
+
enumerable: true,
|
|
377
|
+
get: function () { return chunkTFLZETWB_cjs.runWebAuthnCeremony; }
|
|
378
|
+
});
|
|
379
|
+
Object.defineProperty(exports, "sepoliaV07Config", {
|
|
380
|
+
enumerable: true,
|
|
381
|
+
get: function () { return chunkTFLZETWB_cjs.sepoliaV07Config; }
|
|
382
|
+
});
|
|
383
|
+
Object.defineProperty(exports, "validateConfig", {
|
|
384
|
+
enumerable: true,
|
|
385
|
+
get: function () { return chunkTFLZETWB_cjs.validateConfig; }
|
|
386
|
+
});
|
|
387
|
+
Object.defineProperty(exports, "wrapExecuteUserOp", {
|
|
388
|
+
enumerable: true,
|
|
389
|
+
get: function () { return chunkTFLZETWB_cjs.wrapExecuteUserOp; }
|
|
390
|
+
});
|
|
391
|
+
Object.defineProperty(exports, "ALG_BLS", {
|
|
392
|
+
enumerable: true,
|
|
393
|
+
get: function () { return chunkXQROKLZI_cjs.ALG_BLS; }
|
|
394
|
+
});
|
|
395
|
+
Object.defineProperty(exports, "ALG_CUMULATIVE_T2", {
|
|
396
|
+
enumerable: true,
|
|
397
|
+
get: function () { return chunkXQROKLZI_cjs.ALG_CUMULATIVE_T2; }
|
|
398
|
+
});
|
|
399
|
+
Object.defineProperty(exports, "ALG_CUMULATIVE_T3", {
|
|
400
|
+
enumerable: true,
|
|
401
|
+
get: function () { return chunkXQROKLZI_cjs.ALG_CUMULATIVE_T3; }
|
|
402
|
+
});
|
|
403
|
+
Object.defineProperty(exports, "ALG_ECDSA", {
|
|
404
|
+
enumerable: true,
|
|
405
|
+
get: function () { return chunkXQROKLZI_cjs.ALG_ECDSA; }
|
|
406
|
+
});
|
|
407
|
+
Object.defineProperty(exports, "ALG_P256", {
|
|
408
|
+
enumerable: true,
|
|
409
|
+
get: function () { return chunkXQROKLZI_cjs.ALG_P256; }
|
|
410
|
+
});
|
|
411
|
+
Object.defineProperty(exports, "AirAccountClient", {
|
|
412
|
+
enumerable: true,
|
|
413
|
+
get: function () { return chunkXQROKLZI_cjs.AirAccountClient; }
|
|
414
|
+
});
|
|
415
|
+
Object.defineProperty(exports, "BLSManager", {
|
|
416
|
+
enumerable: true,
|
|
417
|
+
get: function () { return chunkXQROKLZI_cjs.BLSManager; }
|
|
418
|
+
});
|
|
419
|
+
Object.defineProperty(exports, "CryptoUtil", {
|
|
420
|
+
enumerable: true,
|
|
421
|
+
get: function () { return chunkXQROKLZI_cjs.CryptoUtil; }
|
|
422
|
+
});
|
|
423
|
+
Object.defineProperty(exports, "DEFAULT_PASSKEY_ROUTES", {
|
|
424
|
+
enumerable: true,
|
|
425
|
+
get: function () { return chunkXQROKLZI_cjs.DEFAULT_PASSKEY_ROUTES; }
|
|
426
|
+
});
|
|
427
|
+
Object.defineProperty(exports, "ERC4337Utils", {
|
|
428
|
+
enumerable: true,
|
|
429
|
+
get: function () { return chunkXQROKLZI_cjs.ERC4337Utils; }
|
|
430
|
+
});
|
|
431
|
+
Object.defineProperty(exports, "PasskeyManager", {
|
|
432
|
+
enumerable: true,
|
|
433
|
+
get: function () { return chunkXQROKLZI_cjs.PasskeyManager; }
|
|
434
|
+
});
|
|
435
|
+
Object.defineProperty(exports, "UserOpBuilder", {
|
|
436
|
+
enumerable: true,
|
|
437
|
+
get: function () { return chunkXQROKLZI_cjs.UserOpBuilder; }
|
|
438
|
+
});
|
|
439
|
+
Object.defineProperty(exports, "YAAAClient", {
|
|
440
|
+
enumerable: true,
|
|
441
|
+
get: function () { return chunkXQROKLZI_cjs.YAAAClient; }
|
|
442
|
+
});
|
|
443
|
+
Object.defineProperty(exports, "algIdForTier", {
|
|
444
|
+
enumerable: true,
|
|
445
|
+
get: function () { return chunkXQROKLZI_cjs.algIdForTier; }
|
|
446
|
+
});
|
|
447
|
+
Object.defineProperty(exports, "resolveTier", {
|
|
448
|
+
enumerable: true,
|
|
449
|
+
get: function () { return chunkXQROKLZI_cjs.resolveTier; }
|
|
450
|
+
});
|
|
451
|
+
//# sourceMappingURL=airaccount.cjs.map
|
|
452
|
+
//# sourceMappingURL=airaccount.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"airaccount.cjs"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ACCOUNT_ABI, AGENT_SESSION_KEY_VALIDATOR_ABI, AIRACCOUNT_ABI, AIRACCOUNT_ADDRESSES, AIRACCOUNT_FACTORY_ABI, AIR_ACCOUNT_COMPOSITE_VALIDATOR_ABI, AIR_ACCOUNT_DELEGATE_ABI, AIR_ACCOUNT_DELEGATE_ADDRESS, ALG_ID, AccountManager, AccountRecord, ActiveRecovery, AgentRegistryService, AgentReputationSummary, AgentSessionConfig, AgentSessionInfo, AirAccountServerClient, AirAccountVersion, BLSSignatureService, BeginCeremonyResponse, BindERC8004AgentWalletParams, BlsConfigRecord, BuildCredentialOptions, CALLDATA_PARSER_REGISTRY_ABI, ConsoleLogger, CreateAgentAccountParams, CreateP256SessionKeyRequest, CreateP256SessionKeyResponse, DEFAULT_CREDENTIAL_ID, DEFAULT_KMS_ENDPOINT, DEFAULT_ORIGIN, DEFAULT_RP_ID, DelegateInitParams, DvtPendingConfirmationError, EIP7702Authorization, EIP7702DelegateService, ENTRYPOINT_ABI_V6, ENTRYPOINT_ABI_V7_V8, ENTRYPOINT_ADDRESSES, ERC20_ABI, ERC8004Service, ERC8004_ADDRESSES, EXECUTE_BATCH_SELECTOR, EXECUTE_SELECTOR, EXECUTE_USER_OP_SELECTOR, EntryPointConfig, EntryPointVersion, EntryPointVersionConfig, EstimateGasParams, EthereumProvider, ExecuteTransferParams, FACTORY_ABI_V6, FACTORY_ABI_V7_V8, FORCE_EXIT_MODULE_ABI, ForceExitService, GLOBAL_GUARD_ABI, GrantP256SessionParams, GrantSessionParams, GuardChecker, GuardState, GuardStateReader, ILogger, ISignerAdapter, IStorageAdapter, InstallModuleParams, KmsAgentService, KmsAttestationManifestResponse, KmsAttestationProofResponse, KmsAttestationResponse, KmsBeginAuthenticationRequest, KmsBeginAuthenticationResponse, KmsBeginGrantSessionAuthRequest, KmsBeginGrantSessionAuthResponse, KmsBeginRegistrationRequest, KmsBeginRegistrationResponse, KmsChangePasskeyResponse, KmsCompleteRegistrationRequest, KmsCompleteRegistrationResponse, KmsCreateAgentKeyRequest, KmsCreateAgentKeyResponse, KmsCreateKeyRequest, KmsCreateKeyResponse, KmsDeleteKeyResponse, KmsDeriveAddressResponse, KmsDescribeKeyResponse, KmsEip712Domain, KmsEip712FieldValue, KmsEip712TypeDef, KmsEthereumTransaction, KmsGetPublicKeyResponse, KmsHealthResponse, KmsHttpClient, KmsHttpClientOptions, KmsKeyStatusResponse, KmsListKeysResponse, KmsManager, KmsMonitorService, KmsPaymentAuth, KmsPaymentSignatureResponse, KmsPaymentSigner, KmsPurgeKeyResponse, KmsQueueStatusResponse, KmsRefreshAgentCredentialRequest, KmsRefreshAgentCredentialResponse, KmsRevokeAgentCredentialRequest, KmsRevokeAgentCredentialResponse, KmsRollbackCounterResponse, KmsSessionService, KmsSignAgentRequest, KmsSignAgentResponse, KmsSignGTokenAuthorizationRequest, KmsSignGrantSessionRequest, KmsSignGrantSessionResponse, KmsSignHashResponse, KmsSignMicropaymentVoucherRequest, KmsSignP256GrantSessionRequest, KmsSignRequest, KmsSignResponse, KmsSignTypedDataRequest, KmsSignTypedDataResponse, KmsSignX402PaymentRequest, KmsSigner, KmsStatsResponse, KmsVersionResponse, L2Type, L2_TYPE, LegacyPasskeyAssertion, LocalWalletSigner, MAX_GUARDIANS, MODULE_TYPE, MemoryStorage, MintAgentIdentityParams, ModuleManager, ModuleTypeId, OapdConfig, P256PasskeySigner, PasskeyAssertionContext, PasskeyCeremonySigner, PaymasterManager, PaymasterPriceStalenessError, PaymasterRecord, PendingExit, PendingWeightChange, QueryAgentReputationParams, RECOVERY_THRESHOLD, RECOVERY_TIMELOCK_SECONDS, RecoveryService, RevokeP256SessionKeyRequest, RevokeP256SessionKeyResponse, RunCeremonyOptions, SESSION_KEY_VALIDATOR_ABI, ServerConfig, SessionInfo, SessionKeyService, SetAgentWalletParams, SignP256UserOpRequest, SignP256UserOpResponse, SilentLogger, SubmitAgentReputationParams, TIER_GUARD_HOOK_ABI, TokenBalance, TokenGuardState, TokenInfo, TokenService, TransferManager, TransferRecord, TransferResult, UninstallModuleParams, VALIDATOR_ABI, WEIGHT_CHANGE_EXPIRY_SECONDS, WEIGHT_CHANGE_THRESHOLD, WEIGHT_CHANGE_TIMELOCK_SECONDS, WalletManager, WebAuthnAssertion, WebAuthnAuthenticationCredential, WeightConfig, WeightedSignatureService, YAAAServerClient, base64UrlDecode, base64UrlEncode, beginAuthenticationChallenge, beginGrantSessionChallenge, buildAuthenticationCredential, buildAuthenticatorData, buildClientDataJSON, buildInstallModuleHash, buildUninstallModuleHash, computeOapdSalt, erc8004AddressesForChain, getOapdAddress, getOapdAddressWithChainId, isExecuteUserOpWrapped, isOapdDeployed, isPendingConfirmation, packP256SessionSignature, packSecp256k1SessionSignature, runAuthenticationCeremony, runGrantSessionCeremony, runWebAuthnCeremony, sepoliaV07Config, validateConfig, wrapExecuteUserOp } from './kms.cjs';
|
|
2
|
+
export { A as ALG_BLS, a as ALG_CUMULATIVE_T2, b as ALG_CUMULATIVE_T3, c as ALG_ECDSA, d as ALG_P256, e as AirAccountClient, f as AirAccountConfig, g as AlgId, B as BLSConfig, h as BLSManager, i as BLSNode, j as BLSSignatureData, k as BeginAuthenticationResponse, l as BeginRegistrationResponse, m as BeginTransactionVerificationResponse, C as CryptoUtil, n as CumulativeT2SignatureData, o as CumulativeT3SignatureData, D as DEFAULT_PASSKEY_ROUTES, E as ERC4337Utils, G as GasEstimate, p as GuardStatus, P as PackedUserOperation, q as PasskeyAuthenticationParams, r as PasskeyInfo, s as PasskeyManager, t as PasskeyRegistrationParams, u as PasskeyRoutes, v as PreCheckResult, T as TierConfig, w as TierLevel, x as TransactionVerificationParams, U as UserOpBuilder, y as UserOperation, Y as YAAAClient, z as YAAAConfig, F as algIdForTier, H as resolveTier } from './tier-router-DeeVg69O.cjs';
|
|
3
|
+
import 'axios';
|
|
4
|
+
import 'viem';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Address, Hex, Account, Hash, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
|
|
3
|
+
type ChannelState = {
|
|
4
|
+
payer: Address;
|
|
5
|
+
payee: Address;
|
|
6
|
+
token: Address;
|
|
7
|
+
authorizedSigner: Address;
|
|
8
|
+
deposit: bigint;
|
|
9
|
+
settled: bigint;
|
|
10
|
+
closeRequestedAt: bigint;
|
|
11
|
+
finalized: boolean;
|
|
12
|
+
};
|
|
13
|
+
type ChannelActions = {
|
|
14
|
+
openChannel: (args: {
|
|
15
|
+
payee: Address;
|
|
16
|
+
token: Address;
|
|
17
|
+
deposit: bigint;
|
|
18
|
+
salt: Hex;
|
|
19
|
+
authorizedSigner: Address;
|
|
20
|
+
account?: Account | Address;
|
|
21
|
+
}) => Promise<Hash>;
|
|
22
|
+
settleChannel: (args: {
|
|
23
|
+
channelId: Hex;
|
|
24
|
+
cumulativeAmount: bigint;
|
|
25
|
+
signature: Hex;
|
|
26
|
+
account?: Account | Address;
|
|
27
|
+
}) => Promise<Hash>;
|
|
28
|
+
closeChannel: (args: {
|
|
29
|
+
channelId: Hex;
|
|
30
|
+
cumulativeAmount: bigint;
|
|
31
|
+
signature: Hex;
|
|
32
|
+
account?: Account | Address;
|
|
33
|
+
}) => Promise<Hash>;
|
|
34
|
+
topUpChannel: (args: {
|
|
35
|
+
channelId: Hex;
|
|
36
|
+
amount: bigint;
|
|
37
|
+
account?: Account | Address;
|
|
38
|
+
}) => Promise<Hash>;
|
|
39
|
+
requestCloseChannel: (args: {
|
|
40
|
+
channelId: Hex;
|
|
41
|
+
account?: Account | Address;
|
|
42
|
+
}) => Promise<Hash>;
|
|
43
|
+
withdrawChannel: (args: {
|
|
44
|
+
channelId: Hex;
|
|
45
|
+
account?: Account | Address;
|
|
46
|
+
}) => Promise<Hash>;
|
|
47
|
+
getChannel: (args: {
|
|
48
|
+
channelId: Hex;
|
|
49
|
+
}) => Promise<ChannelState>;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated The deployed MicroPaymentChannel ABI no longer exposes a `CLOSE_TIMEOUT`
|
|
52
|
+
* constant — it was replaced by the configurable {@link closeTimeout} getter plus the
|
|
53
|
+
* {@link MIN_CLOSE_TIMEOUT}/{@link MAX_CLOSE_TIMEOUT} bounds. This wrapper now delegates
|
|
54
|
+
* to the on-chain `closeTimeout()` getter so it no longer reverts; use {@link closeTimeout}.
|
|
55
|
+
*/
|
|
56
|
+
CLOSE_TIMEOUT: () => Promise<bigint>;
|
|
57
|
+
/** Current configurable close-timeout (seconds, view). ABI: closeTimeout() -> uint64. */
|
|
58
|
+
closeTimeout: () => Promise<bigint>;
|
|
59
|
+
/** Set the configurable close-timeout window (owner-gated). ABI: setCloseTimeout(uint64 _timeout). */
|
|
60
|
+
setCloseTimeout: (args: {
|
|
61
|
+
timeout: bigint;
|
|
62
|
+
account?: Account | Address;
|
|
63
|
+
}) => Promise<Hash>;
|
|
64
|
+
/** Whether a given channelId has already been closed (view). ABI: closedChannels(bytes32) -> bool. */
|
|
65
|
+
closedChannels: (args: {
|
|
66
|
+
channelId: Hex;
|
|
67
|
+
}) => Promise<boolean>;
|
|
68
|
+
/** Upper bound for {@link setCloseTimeout} (view). ABI: MAX_CLOSE_TIMEOUT() -> uint64. */
|
|
69
|
+
MAX_CLOSE_TIMEOUT: () => Promise<bigint>;
|
|
70
|
+
/** Lower bound for {@link setCloseTimeout} (view). ABI: MIN_CLOSE_TIMEOUT() -> uint64. */
|
|
71
|
+
MIN_CLOSE_TIMEOUT: () => Promise<bigint>;
|
|
72
|
+
VOUCHER_TYPEHASH: () => Promise<Hex>;
|
|
73
|
+
version: () => Promise<string>;
|
|
74
|
+
};
|
|
75
|
+
declare const channelActions: (address: Address) => (client: PublicClient | WalletClient) => ChannelActions;
|
|
76
|
+
|
|
77
|
+
export { type ChannelState as C, type ChannelActions as a, channelActions as c };
|
package/dist/channel.cjs
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkGRDC6ZRA_cjs = require('./chunk-GRDC6ZRA.cjs');
|
|
4
|
+
require('./chunk-FTJD2DWE.cjs');
|
|
5
|
+
require('./chunk-S5IKOOUR.cjs');
|
|
6
|
+
require('./chunk-Q7SFCCGT.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "ChannelClient", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunkGRDC6ZRA_cjs.ChannelClient; }
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "VOUCHER_TYPES", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunkGRDC6ZRA_cjs.VOUCHER_TYPES; }
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "getVoucherDomain", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunkGRDC6ZRA_cjs.getVoucherDomain; }
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "signVoucher", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return chunkGRDC6ZRA_cjs.signVoucher; }
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=channel.cjs.map
|
|
27
|
+
//# sourceMappingURL=channel.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"channel.cjs"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Hex, PublicClient, WalletClient, Address, Hash } from 'viem';
|
|
2
|
+
import { C as ChannelState } from './channel-CkRRbzT8.cjs';
|
|
3
|
+
|
|
4
|
+
type VoucherParams = {
|
|
5
|
+
channelId: Hex;
|
|
6
|
+
cumulativeAmount: bigint;
|
|
7
|
+
};
|
|
8
|
+
type SignedVoucher = VoucherParams & {
|
|
9
|
+
signature: Hex;
|
|
10
|
+
};
|
|
11
|
+
type ChannelConfig = {
|
|
12
|
+
payee: `0x${string}`;
|
|
13
|
+
token: `0x${string}`;
|
|
14
|
+
deposit: bigint;
|
|
15
|
+
salt: Hex;
|
|
16
|
+
authorizedSigner: `0x${string}`;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
type ChannelClientConfig = {
|
|
20
|
+
publicClient: PublicClient;
|
|
21
|
+
walletClient: WalletClient;
|
|
22
|
+
channelAddress: Address;
|
|
23
|
+
chainId: number;
|
|
24
|
+
};
|
|
25
|
+
declare class ChannelClient {
|
|
26
|
+
private readonly readActions;
|
|
27
|
+
private readonly writeActions;
|
|
28
|
+
private readonly config;
|
|
29
|
+
constructor(config: ChannelClientConfig);
|
|
30
|
+
openChannel(channelConfig: ChannelConfig): Promise<Hash>;
|
|
31
|
+
signVoucherOffline(channelId: Hex, cumulativeAmount: bigint): Promise<SignedVoucher>;
|
|
32
|
+
settleChannel(voucher: SignedVoucher): Promise<Hash>;
|
|
33
|
+
closeChannel(voucher: SignedVoucher): Promise<Hash>;
|
|
34
|
+
topUpChannel(channelId: Hex, amount: bigint): Promise<Hash>;
|
|
35
|
+
requestClose(channelId: Hex): Promise<Hash>;
|
|
36
|
+
withdraw(channelId: Hex): Promise<Hash>;
|
|
37
|
+
getChannelState(channelId: Hex): Promise<ChannelState>;
|
|
38
|
+
getCloseTimeout(): Promise<bigint>;
|
|
39
|
+
getVersion(): Promise<string>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare const VOUCHER_TYPES: {
|
|
43
|
+
readonly Voucher: readonly [{
|
|
44
|
+
readonly name: "channelId";
|
|
45
|
+
readonly type: "bytes32";
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "cumulativeAmount";
|
|
48
|
+
readonly type: "uint128";
|
|
49
|
+
}];
|
|
50
|
+
};
|
|
51
|
+
declare function getVoucherDomain(chainId: number, verifyingContract: Address): {
|
|
52
|
+
name: string;
|
|
53
|
+
version: string;
|
|
54
|
+
chainId: number;
|
|
55
|
+
verifyingContract: `0x${string}`;
|
|
56
|
+
};
|
|
57
|
+
declare function signVoucher(walletClient: WalletClient, params: {
|
|
58
|
+
channelId: Hex;
|
|
59
|
+
cumulativeAmount: bigint;
|
|
60
|
+
chainId: number;
|
|
61
|
+
verifyingContract: Address;
|
|
62
|
+
}): Promise<Hex>;
|
|
63
|
+
|
|
64
|
+
export { ChannelClient, type ChannelClientConfig, type ChannelConfig, ChannelState, type SignedVoucher, VOUCHER_TYPES, type VoucherParams, getVoucherDomain, signVoucher };
|