viem 2.55.19 → 2.56.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/CHANGELOG.md +57 -0
- package/_cjs/chains/definitions/berachainBepolia.js +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/errors/version.js.map +1 -1
- package/_cjs/tempo/Abis.js +4851 -2166
- package/_cjs/tempo/Abis.js.map +1 -1
- package/_cjs/tempo/Addresses.js +31 -1
- package/_cjs/tempo/Addresses.js.map +1 -1
- package/_cjs/tempo/Decorator.js +3 -2
- package/_cjs/tempo/Decorator.js.map +1 -1
- package/_cjs/tempo/Selectors.js +197 -61
- package/_cjs/tempo/Selectors.js.map +1 -1
- package/_cjs/tempo/Storage.js +6 -6
- package/_cjs/tempo/Storage.js.map +1 -1
- package/_cjs/tempo/Transport.js +21 -0
- package/_cjs/tempo/Transport.js.map +1 -1
- package/_cjs/tempo/Zone.js +51 -0
- package/_cjs/tempo/Zone.js.map +1 -0
- package/_cjs/tempo/actions/earn/deployment.js +59 -21
- package/_cjs/tempo/actions/earn/deployment.js.map +1 -1
- package/_cjs/tempo/actions/earn.js +2 -3
- package/_cjs/tempo/actions/earn.js.map +1 -1
- package/_cjs/tempo/actions/zone.js +65 -28
- package/_cjs/tempo/actions/zone.js.map +1 -1
- package/_cjs/tempo/index.js +3 -3
- package/_cjs/tempo/index.js.map +1 -1
- package/_esm/chains/definitions/berachainBepolia.js +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/errors/version.js.map +1 -1
- package/_esm/tempo/Abis.js +5419 -2732
- package/_esm/tempo/Abis.js.map +1 -1
- package/_esm/tempo/Addresses.js +36 -0
- package/_esm/tempo/Addresses.js.map +1 -1
- package/_esm/tempo/Decorator.js +3 -2
- package/_esm/tempo/Decorator.js.map +1 -1
- package/_esm/tempo/Selectors.js +197 -61
- package/_esm/tempo/Selectors.js.map +1 -1
- package/_esm/tempo/Storage.js +7 -7
- package/_esm/tempo/Storage.js.map +1 -1
- package/_esm/tempo/Transport.js +37 -0
- package/_esm/tempo/Transport.js.map +1 -1
- package/_esm/tempo/Zone.js +48 -0
- package/_esm/tempo/Zone.js.map +1 -0
- package/_esm/tempo/actions/earn/deployment.js +66 -25
- package/_esm/tempo/actions/earn/deployment.js.map +1 -1
- package/_esm/tempo/actions/earn.js +2 -3
- package/_esm/tempo/actions/earn.js.map +1 -1
- package/_esm/tempo/actions/zone.js +111 -66
- package/_esm/tempo/actions/zone.js.map +1 -1
- package/_esm/tempo/index.js +2 -2
- package/_esm/tempo/index.js.map +1 -1
- package/_types/chains/definitions/berachainBepolia.d.ts +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/errors/version.d.ts.map +1 -1
- package/_types/tempo/Abis.d.ts +31049 -6004
- package/_types/tempo/Abis.d.ts.map +1 -1
- package/_types/tempo/Addresses.d.ts +11 -0
- package/_types/tempo/Addresses.d.ts.map +1 -1
- package/_types/tempo/Decorator.d.ts +30 -22
- package/_types/tempo/Decorator.d.ts.map +1 -1
- package/_types/tempo/Selectors.d.ts +196 -60
- package/_types/tempo/Selectors.d.ts.map +1 -1
- package/_types/tempo/Storage.d.ts +1 -1
- package/_types/tempo/Storage.d.ts.map +1 -1
- package/_types/tempo/Transport.d.ts +24 -0
- package/_types/tempo/Transport.d.ts.map +1 -1
- package/_types/tempo/Zone.d.ts +6824 -0
- package/_types/tempo/Zone.d.ts.map +1 -0
- package/_types/tempo/actions/channel.d.ts +72 -0
- package/_types/tempo/actions/channel.d.ts.map +1 -1
- package/_types/tempo/actions/dex.d.ts +260 -0
- package/_types/tempo/actions/dex.d.ts.map +1 -1
- package/_types/tempo/actions/earn/deployment.d.ts +86 -278
- package/_types/tempo/actions/earn/deployment.d.ts.map +1 -1
- package/_types/tempo/actions/earn.d.ts +540 -16
- package/_types/tempo/actions/earn.d.ts.map +1 -1
- package/_types/tempo/actions/policy.d.ts +108 -0
- package/_types/tempo/actions/policy.d.ts.map +1 -1
- package/_types/tempo/actions/receivePolicy.d.ts +27 -0
- package/_types/tempo/actions/receivePolicy.d.ts.map +1 -1
- package/_types/tempo/actions/zone.d.ts +165 -82
- package/_types/tempo/actions/zone.d.ts.map +1 -1
- package/_types/tempo/index.d.ts +3 -2
- package/_types/tempo/index.d.ts.map +1 -1
- package/chains/definitions/berachainBepolia.ts +1 -1
- package/errors/version.ts +1 -1
- package/package.json +1 -6
- package/tempo/Abis.ts +5408 -2710
- package/tempo/Addresses.ts +40 -0
- package/tempo/Decorator.ts +39 -28
- package/tempo/Selectors.ts +218 -71
- package/tempo/Storage.ts +5 -8
- package/tempo/Transport.ts +57 -0
- package/tempo/Zone.ts +60 -0
- package/tempo/actions/earn/deployment.ts +74 -30
- package/tempo/actions/earn.ts +2 -3
- package/tempo/actions/zone.ts +188 -84
- package/tempo/index.ts +12 -6
- package/_cjs/tempo/zones/Abis.js +0 -213
- package/_cjs/tempo/zones/Abis.js.map +0 -1
- package/_cjs/tempo/zones/Addresses.js +0 -17
- package/_cjs/tempo/zones/Addresses.js.map +0 -1
- package/_cjs/tempo/zones/index.js +0 -13
- package/_cjs/tempo/zones/index.js.map +0 -1
- package/_cjs/tempo/zones/transport.js +0 -24
- package/_cjs/tempo/zones/transport.js.map +0 -1
- package/_cjs/tempo/zones/zone.js +0 -82
- package/_cjs/tempo/zones/zone.js.map +0 -1
- package/_esm/tempo/zones/Abis.js +0 -210
- package/_esm/tempo/zones/Abis.js.map +0 -1
- package/_esm/tempo/zones/Addresses.js +0 -14
- package/_esm/tempo/zones/Addresses.js.map +0 -1
- package/_esm/tempo/zones/index.js +0 -6
- package/_esm/tempo/zones/index.js.map +0 -1
- package/_esm/tempo/zones/transport.js +0 -39
- package/_esm/tempo/zones/transport.js.map +0 -1
- package/_esm/tempo/zones/zone.js +0 -78
- package/_esm/tempo/zones/zone.js.map +0 -1
- package/_types/tempo/zones/Abis.d.ts +0 -383
- package/_types/tempo/zones/Abis.d.ts.map +0 -1
- package/_types/tempo/zones/Addresses.d.ts +0 -13
- package/_types/tempo/zones/Addresses.d.ts.map +0 -1
- package/_types/tempo/zones/index.d.ts +0 -5
- package/_types/tempo/zones/index.d.ts.map +0 -1
- package/_types/tempo/zones/transport.d.ts +0 -26
- package/_types/tempo/zones/transport.d.ts.map +0 -1
- package/_types/tempo/zones/zone.d.ts +0 -3176
- package/_types/tempo/zones/zone.d.ts.map +0 -1
- package/tempo/zones/Abis.ts +0 -211
- package/tempo/zones/Addresses.ts +0 -15
- package/tempo/zones/index.ts +0 -10
- package/tempo/zones/package.json +0 -6
- package/tempo/zones/transport.ts +0 -58
- package/tempo/zones/zone.ts +0 -113
|
@@ -33,6 +33,10 @@ export declare const nativeMultisig: {
|
|
|
33
33
|
readonly isMultisigAccount: "0x9fbf029a";
|
|
34
34
|
readonly updateConfig: "0xe175d479";
|
|
35
35
|
};
|
|
36
|
+
export declare const currentCommittee: {
|
|
37
|
+
readonly getCommitteeMembers: "0xb2a275f9";
|
|
38
|
+
readonly setCommitteeMembers: "0x229bdd9c";
|
|
39
|
+
};
|
|
36
40
|
export declare const nonce: {
|
|
37
41
|
readonly getNonce: "0x89535803";
|
|
38
42
|
};
|
|
@@ -56,6 +60,8 @@ export declare const stablecoinDex: {
|
|
|
56
60
|
readonly PRICE_SCALE: "0xc33f59d3";
|
|
57
61
|
readonly TICK_SPACING: "0x46ca626b";
|
|
58
62
|
readonly balanceOf: "0xf7888aec";
|
|
63
|
+
readonly bookIndexForKey: "0x61285475";
|
|
64
|
+
readonly bookKeyForIndex: "0x3c047a7a";
|
|
59
65
|
readonly books: "0x0c0dee70";
|
|
60
66
|
readonly cancel: "0x81649d06";
|
|
61
67
|
readonly cancelStaleOrder: "0x928b0e7f";
|
|
@@ -69,6 +75,8 @@ export declare const stablecoinDex: {
|
|
|
69
75
|
readonly priceToTick: "0x87b4e352";
|
|
70
76
|
readonly quoteSwapExactAmountIn: "0xe7c98f1a";
|
|
71
77
|
readonly quoteSwapExactAmountOut: "0x1576fa0e";
|
|
78
|
+
readonly setBookIndex: "0xaecbd005";
|
|
79
|
+
readonly storageCredits: "0x4d65338b";
|
|
72
80
|
readonly swapExactAmountIn: "0xf8856c0f";
|
|
73
81
|
readonly swapExactAmountOut: "0xf0122b75";
|
|
74
82
|
readonly tickToPrice: "0x269a311d";
|
|
@@ -81,6 +89,53 @@ export declare const storageCredits: {
|
|
|
81
89
|
readonly setBudget: "0xffe295c3";
|
|
82
90
|
readonly setMode: "0x21175b4a";
|
|
83
91
|
};
|
|
92
|
+
export declare const feeManager: {
|
|
93
|
+
readonly collectedFees: "0x4c97f766";
|
|
94
|
+
readonly distributeFees: "0xa6c07924";
|
|
95
|
+
readonly setUserToken: "0xe7897444";
|
|
96
|
+
readonly setValidatorToken: "0xb60d2ddb";
|
|
97
|
+
readonly userTokens: "0xed498fa8";
|
|
98
|
+
readonly validatorTokens: "0x6dc54a7a";
|
|
99
|
+
};
|
|
100
|
+
export declare const feeAmm: {
|
|
101
|
+
readonly M: "0x693f917e";
|
|
102
|
+
readonly MIN_LIQUIDITY: "0x21b77d63";
|
|
103
|
+
readonly N: "0xc9e525df";
|
|
104
|
+
readonly SCALE: "0xeced5526";
|
|
105
|
+
readonly burn: "0xfa291e53";
|
|
106
|
+
readonly getPool: "0x531aa03e";
|
|
107
|
+
readonly getPoolId: "0x2ef61c21";
|
|
108
|
+
readonly liquidityBalances: "0x4fb5bf7f";
|
|
109
|
+
readonly mint: "0xf1aa8cb8";
|
|
110
|
+
readonly pools: "0xb5217bb4";
|
|
111
|
+
readonly rebalanceSwap: "0x1bd94ac7";
|
|
112
|
+
readonly totalSupply: "0xb524abcf";
|
|
113
|
+
};
|
|
114
|
+
export declare const tip20ChannelReserve: {
|
|
115
|
+
readonly CLOSE_GRACE_PERIOD: "0x956c8327";
|
|
116
|
+
readonly VOUCHER_TYPEHASH: "0x94739e87";
|
|
117
|
+
readonly close: "0x73b57f74";
|
|
118
|
+
readonly computeChannelId: "0x185eeeac";
|
|
119
|
+
readonly domainSeparator: "0xf698da25";
|
|
120
|
+
readonly getChannel: "0xeef95313";
|
|
121
|
+
readonly getChannelState: "0xd18da8b1";
|
|
122
|
+
readonly getChannelStatesBatch: "0xd1f4cda2";
|
|
123
|
+
readonly getVoucherDigest: "0xf3b349e8";
|
|
124
|
+
readonly open: "0xedc53b00";
|
|
125
|
+
readonly requestClose: "0x675402e5";
|
|
126
|
+
readonly settle: "0x97fb5104";
|
|
127
|
+
readonly storageCredits: "0x4d65338b";
|
|
128
|
+
readonly topUp: "0xdc48471e";
|
|
129
|
+
readonly withdraw: "0x41e2c664";
|
|
130
|
+
};
|
|
131
|
+
export declare const tip20Factory: {
|
|
132
|
+
readonly createToken: {
|
|
133
|
+
readonly 'createToken(string,string,string,address,address,bytes32)': "0x68130445";
|
|
134
|
+
readonly 'createToken(string,string,string,address,address,bytes32,string)': "0x5323d222";
|
|
135
|
+
};
|
|
136
|
+
readonly getTokenAddress: "0x9ed7cd64";
|
|
137
|
+
readonly isTIP20: "0x35ec42c9";
|
|
138
|
+
};
|
|
84
139
|
export declare const tip20: {
|
|
85
140
|
readonly BURN_BLOCKED_ROLE: "0x32ad9be8";
|
|
86
141
|
readonly DOMAIN_SEPARATOR: "0x3644e515";
|
|
@@ -133,30 +188,6 @@ export declare const tip20: {
|
|
|
133
188
|
readonly unpause: "0x3f4ba83a";
|
|
134
189
|
readonly userRewardInfo: "0x360b8ed9";
|
|
135
190
|
};
|
|
136
|
-
export declare const tip20ChannelReserve: {
|
|
137
|
-
readonly CLOSE_GRACE_PERIOD: "0x956c8327";
|
|
138
|
-
readonly VOUCHER_TYPEHASH: "0x94739e87";
|
|
139
|
-
readonly close: "0x73b57f74";
|
|
140
|
-
readonly computeChannelId: "0x185eeeac";
|
|
141
|
-
readonly domainSeparator: "0xf698da25";
|
|
142
|
-
readonly getChannel: "0xeef95313";
|
|
143
|
-
readonly getChannelState: "0xd18da8b1";
|
|
144
|
-
readonly getChannelStatesBatch: "0xd1f4cda2";
|
|
145
|
-
readonly getVoucherDigest: "0xf3b349e8";
|
|
146
|
-
readonly open: "0xedc53b00";
|
|
147
|
-
readonly requestClose: "0x675402e5";
|
|
148
|
-
readonly settle: "0x97fb5104";
|
|
149
|
-
readonly topUp: "0xdc48471e";
|
|
150
|
-
readonly withdraw: "0x41e2c664";
|
|
151
|
-
};
|
|
152
|
-
export declare const tip20Factory: {
|
|
153
|
-
readonly createToken: {
|
|
154
|
-
readonly 'createToken(string,string,string,address,address,bytes32)': "0x68130445";
|
|
155
|
-
readonly 'createToken(string,string,string,address,address,bytes32,string)': "0x5323d222";
|
|
156
|
-
};
|
|
157
|
-
readonly getTokenAddress: "0x9ed7cd64";
|
|
158
|
-
readonly isTIP20: "0x35ec42c9";
|
|
159
|
-
};
|
|
160
191
|
export declare const tip403Registry: {
|
|
161
192
|
readonly compoundPolicyData: "0xb6266019";
|
|
162
193
|
readonly createCompoundPolicy: "0x5da414ee";
|
|
@@ -166,6 +197,7 @@ export declare const tip403Registry: {
|
|
|
166
197
|
readonly isAuthorizedMintRecipient: "0xb389e305";
|
|
167
198
|
readonly isAuthorizedRecipient: "0x6fbc13d6";
|
|
168
199
|
readonly isAuthorizedSender: "0x14abd81d";
|
|
200
|
+
readonly migrateTransferPolicyIds: "0xa783dc99";
|
|
169
201
|
readonly modifyPolicyBlacklist: "0xc62b27d4";
|
|
170
202
|
readonly modifyPolicyWhitelist: "0x71ec67a3";
|
|
171
203
|
readonly policyData: "0x50214329";
|
|
@@ -174,44 +206,9 @@ export declare const tip403Registry: {
|
|
|
174
206
|
readonly receivePolicy: "0xe111e611";
|
|
175
207
|
readonly setPolicyAdmin: "0x25f7d376";
|
|
176
208
|
readonly setReceivePolicy: "0xdda03d86";
|
|
209
|
+
readonly tokenTransferPolicyId: "0x23143aff";
|
|
177
210
|
readonly validateReceivePolicy: "0xb72b0c59";
|
|
178
211
|
};
|
|
179
|
-
export declare const feeManager: {
|
|
180
|
-
readonly collectedFees: "0x4c97f766";
|
|
181
|
-
readonly distributeFees: "0xa6c07924";
|
|
182
|
-
readonly setUserToken: "0xe7897444";
|
|
183
|
-
readonly setValidatorToken: "0xb60d2ddb";
|
|
184
|
-
readonly userTokens: "0xed498fa8";
|
|
185
|
-
readonly validatorTokens: "0x6dc54a7a";
|
|
186
|
-
};
|
|
187
|
-
export declare const feeAmm: {
|
|
188
|
-
readonly M: "0x693f917e";
|
|
189
|
-
readonly MIN_LIQUIDITY: "0x21b77d63";
|
|
190
|
-
readonly N: "0xc9e525df";
|
|
191
|
-
readonly SCALE: "0xeced5526";
|
|
192
|
-
readonly burn: "0xfa291e53";
|
|
193
|
-
readonly getPool: "0x531aa03e";
|
|
194
|
-
readonly getPoolId: "0x2ef61c21";
|
|
195
|
-
readonly liquidityBalances: "0x4fb5bf7f";
|
|
196
|
-
readonly mint: "0xf1aa8cb8";
|
|
197
|
-
readonly pools: "0xb5217bb4";
|
|
198
|
-
readonly rebalanceSwap: "0x1bd94ac7";
|
|
199
|
-
readonly totalSupply: "0xb524abcf";
|
|
200
|
-
};
|
|
201
|
-
export declare const validatorConfig: {
|
|
202
|
-
readonly addValidator: "0xffb4822e";
|
|
203
|
-
readonly changeOwner: "0xa6f9dae1";
|
|
204
|
-
readonly changeValidatorStatus: "0xa1b3f4a9";
|
|
205
|
-
readonly changeValidatorStatusByIndex: "0x5aa3d0e1";
|
|
206
|
-
readonly getNextFullDkgCeremony: "0x281a69ec";
|
|
207
|
-
readonly getValidators: "0xb7ab4db5";
|
|
208
|
-
readonly owner: "0x8da5cb5b";
|
|
209
|
-
readonly setNextFullDkgCeremony: "0xc3576d46";
|
|
210
|
-
readonly updateValidator: "0x09970c76";
|
|
211
|
-
readonly validatorCount: "0x0f43a677";
|
|
212
|
-
readonly validators: "0xfa52c7d8";
|
|
213
|
-
readonly validatorsArray: "0x031fadbd";
|
|
214
|
-
};
|
|
215
212
|
export declare const validatorConfigV2: {
|
|
216
213
|
readonly addValidator: "0x6dcf616a";
|
|
217
214
|
readonly deactivateValidator: "0x8f289544";
|
|
@@ -233,4 +230,143 @@ export declare const validatorConfigV2: {
|
|
|
233
230
|
readonly validatorByPublicKey: "0x1b425d5e";
|
|
234
231
|
readonly validatorCount: "0x0f43a677";
|
|
235
232
|
};
|
|
233
|
+
export declare const validatorConfig: {
|
|
234
|
+
readonly addValidator: "0xffb4822e";
|
|
235
|
+
readonly changeOwner: "0xa6f9dae1";
|
|
236
|
+
readonly changeValidatorStatus: "0xa1b3f4a9";
|
|
237
|
+
readonly changeValidatorStatusByIndex: "0x5aa3d0e1";
|
|
238
|
+
readonly getNextFullDkgCeremony: "0x281a69ec";
|
|
239
|
+
readonly getValidators: "0xb7ab4db5";
|
|
240
|
+
readonly owner: "0x8da5cb5b";
|
|
241
|
+
readonly setNextFullDkgCeremony: "0xc3576d46";
|
|
242
|
+
readonly updateValidator: "0x09970c76";
|
|
243
|
+
readonly validatorCount: "0x0f43a677";
|
|
244
|
+
readonly validators: "0xfa52c7d8";
|
|
245
|
+
readonly validatorsArray: "0x031fadbd";
|
|
246
|
+
};
|
|
247
|
+
export declare const zoneFactory: {
|
|
248
|
+
readonly createZone: {
|
|
249
|
+
readonly 'createZone((address,address,address,address,(bytes32,bytes32,uint64),string))': "0x2d45796a";
|
|
250
|
+
readonly 'createZone((address,bool,bool,address[],address[],address,address[],uint8,string))': "0x89677d9e";
|
|
251
|
+
};
|
|
252
|
+
readonly isZonePortal: "0x01b290d3";
|
|
253
|
+
readonly nextZoneId: "0x266db436";
|
|
254
|
+
readonly owner: "0x8da5cb5b";
|
|
255
|
+
readonly transferOwnership: "0xf2fde38b";
|
|
256
|
+
readonly verifier: "0x2b7ac3f3";
|
|
257
|
+
readonly zones: "0x90b7f6fd";
|
|
258
|
+
};
|
|
259
|
+
export declare const zonePortal: {
|
|
260
|
+
readonly FIXED_DEPOSIT_GAS: "0xf706cfbf";
|
|
261
|
+
readonly MAX_DEPOSITS_PER_TEMPO_BLOCK: "0x1bf00ca8";
|
|
262
|
+
readonly MAX_GAS_FEE_RATE: "0xf490ca96";
|
|
263
|
+
readonly MAX_TOKENS_ENABLED_PER_TEMPO_BLOCK: "0x3fcf7df4";
|
|
264
|
+
readonly MAX_TOKEN_METADATA_BYTES: "0x996329a2";
|
|
265
|
+
readonly MAX_WITHDRAWAL_GAS_LIMIT: "0x86f47e55";
|
|
266
|
+
readonly abdicate: "0xbf4c5411";
|
|
267
|
+
readonly abdicationEffectiveAt: "0x04a3b098";
|
|
268
|
+
readonly acceptAdmin: "0x0e18b681";
|
|
269
|
+
readonly admin: "0xf851a440";
|
|
270
|
+
readonly areDepositsActive: "0x37f981d8";
|
|
271
|
+
readonly blockHash: "0xf22a195e";
|
|
272
|
+
readonly bouncebackGas: "0xfb2f1206";
|
|
273
|
+
readonly calculateBouncebackFee: "0x83a146b3";
|
|
274
|
+
readonly calculateDepositFee: "0x8976248d";
|
|
275
|
+
readonly claimRefund: "0xbffa55d5";
|
|
276
|
+
readonly currentDepositQueueHash: "0x45c5d2fb";
|
|
277
|
+
readonly deliverWithdrawal: "0x005d97ef";
|
|
278
|
+
readonly deposit: {
|
|
279
|
+
readonly 'deposit(address,address,uint128,bytes32,address)': "0x09a0a234";
|
|
280
|
+
readonly 'deposit(address,uint128,uint256,(bytes32,uint8,bytes,bytes12,bytes16),address)': "0x03dd6f34";
|
|
281
|
+
};
|
|
282
|
+
readonly depositCount: "0x2dfdf0b5";
|
|
283
|
+
readonly depositEncrypted: "0xb01f22e4";
|
|
284
|
+
readonly enableToken: "0xc690908a";
|
|
285
|
+
readonly enabledTokenAt: "0xb02690f2";
|
|
286
|
+
readonly enabledTokenCount: "0xe4717849";
|
|
287
|
+
readonly encryptionKeyAt: "0x9a97784b";
|
|
288
|
+
readonly encryptionKeyAtBlock: "0x39dc015d";
|
|
289
|
+
readonly encryptionKeyCount: "0x4256ce38";
|
|
290
|
+
readonly hasRole: "0x95a8c58d";
|
|
291
|
+
readonly initialize: "0x86829b82";
|
|
292
|
+
readonly isAccessEnforced: "0x71649b6e";
|
|
293
|
+
readonly isEncryptionKeyValid: "0x9ecd4cc0";
|
|
294
|
+
readonly isGatewayOpen: "0x1b32199b";
|
|
295
|
+
readonly isSequencer: "0x6d46e987";
|
|
296
|
+
readonly isTokenEnabled: "0x748538d9";
|
|
297
|
+
readonly lastProcessedDepositNumber: "0xe84abe69";
|
|
298
|
+
readonly lastSyncedTempoBlockNumber: "0xbe2a63ee";
|
|
299
|
+
readonly leader: "0x40eedabb";
|
|
300
|
+
readonly leaderActivationTempoBlock: "0xb83c755f";
|
|
301
|
+
readonly leaderEpoch: "0x3a6b889b";
|
|
302
|
+
readonly maxTempoGasRate: "0x8d8bd5fb";
|
|
303
|
+
readonly messenger: "0x3cb747bf";
|
|
304
|
+
readonly pause: "0x8456cb59";
|
|
305
|
+
readonly pauseDeposits: "0x27c71b50";
|
|
306
|
+
readonly pauseExpiry: "0xf125af6b";
|
|
307
|
+
readonly paused: "0x5c975abb";
|
|
308
|
+
readonly pendingAdmin: "0x26782247";
|
|
309
|
+
readonly processWithdrawals: "0x91aa3f04";
|
|
310
|
+
readonly refunds: "0x857e85f8";
|
|
311
|
+
readonly resume: "0x046f7da2";
|
|
312
|
+
readonly resumeDeposits: "0x00ebfdb4";
|
|
313
|
+
readonly rpcUrl: "0x959f47c3";
|
|
314
|
+
readonly sequencerAt: "0x129c8240";
|
|
315
|
+
readonly sequencerCount: "0x84b71123";
|
|
316
|
+
readonly sequencerEncryptionKey: "0x3488ce0d";
|
|
317
|
+
readonly sequencerSetVersion: "0x83888ecc";
|
|
318
|
+
readonly sequencerThreshold: "0x1950dd11";
|
|
319
|
+
readonly setAccessMode: "0xf6087442";
|
|
320
|
+
readonly setAllowedAccount: "0x90f59598";
|
|
321
|
+
readonly setBouncebackGas: "0xe09eae10";
|
|
322
|
+
readonly setGateway: "0x10cea857";
|
|
323
|
+
readonly setGatewayMode: "0x0f3804b8";
|
|
324
|
+
readonly setLeader: "0x4fdf2ec2";
|
|
325
|
+
readonly setMaxTempoGasRate: "0x78d8599e";
|
|
326
|
+
readonly setPauseGuardian: "0x35577962";
|
|
327
|
+
readonly setRpcUrl: "0x652ef10b";
|
|
328
|
+
readonly setSequencerEncryptionKey: "0xef10b187";
|
|
329
|
+
readonly setSequencerSet: "0x86012b45";
|
|
330
|
+
readonly setZoneGasRate: "0x0e86bbdc";
|
|
331
|
+
readonly submitBatch: "0x78fb159b";
|
|
332
|
+
readonly tokenConfig: "0xfe136c4e";
|
|
333
|
+
readonly tokenEnablementHash: "0xb456c0dd";
|
|
334
|
+
readonly transferAdmin: "0x75829def";
|
|
335
|
+
readonly verifier: "0x2b7ac3f3";
|
|
336
|
+
readonly withdrawalBatchIndex: "0x2c37826e";
|
|
337
|
+
readonly withdrawalQueueHead: "0x94ce88b0";
|
|
338
|
+
readonly withdrawalQueueSlot: "0xcfaabb4d";
|
|
339
|
+
readonly withdrawalQueueTail: "0x8081a8b2";
|
|
340
|
+
readonly zoneGasRate: "0xecf79a4e";
|
|
341
|
+
readonly zoneHeight: "0x430f8b4f";
|
|
342
|
+
readonly zoneId: "0xd179978a";
|
|
343
|
+
};
|
|
344
|
+
export declare const zoneOutbox: {
|
|
345
|
+
readonly AUTHENTICATED_WITHDRAWAL_CIPHERTEXT_LENGTH: "0x43c3cb83";
|
|
346
|
+
readonly MAX_CALLBACK_DATA_SIZE: "0x53a8d739";
|
|
347
|
+
readonly MAX_WITHDRAWAL_GAS_LIMIT: "0x86f47e55";
|
|
348
|
+
readonly REVEAL_TO_KEY_LENGTH: "0x378fa8fa";
|
|
349
|
+
readonly WITHDRAWAL_BASE_GAS: "0xc9b6ca9b";
|
|
350
|
+
readonly calculateWithdrawalFee: "0x7b9c9aa4";
|
|
351
|
+
readonly consumeFallbackRecipient: "0xa3a124c3";
|
|
352
|
+
readonly enqueueDepositBounceBack: "0xe2e3ee5c";
|
|
353
|
+
readonly finalizeWithdrawalBatch: "0xce7025e9";
|
|
354
|
+
readonly getPendingWithdrawals: "0xc37fc8a8";
|
|
355
|
+
readonly lastBatch: "0x48aa4108";
|
|
356
|
+
readonly lastFallbackNonce: "0x3d1c5a93";
|
|
357
|
+
readonly lastFinalizedTimestamp: "0x413e9cde";
|
|
358
|
+
readonly maxWithdrawalsPerBlock: "0x545525f1";
|
|
359
|
+
readonly nextWithdrawalIndex: "0xbba9282e";
|
|
360
|
+
readonly pendingWithdrawalsCount: "0xd93af1d2";
|
|
361
|
+
readonly requestWithdrawal: "0xb3b200aa";
|
|
362
|
+
readonly setMaxWithdrawalsPerBlock: "0xb9d1fd68";
|
|
363
|
+
readonly setTempoGasRate: "0x79fa3289";
|
|
364
|
+
readonly tempoGasRate: "0x34065272";
|
|
365
|
+
};
|
|
366
|
+
export declare const zoneMessenger: {
|
|
367
|
+
readonly relayMessage: "0x11da5261";
|
|
368
|
+
};
|
|
369
|
+
export declare const zoneVerifier: {
|
|
370
|
+
readonly verify: "0x7106a43e";
|
|
371
|
+
};
|
|
236
372
|
//# sourceMappingURL=Selectors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Selectors.d.ts","sourceRoot":"","sources":["../../tempo/Selectors.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;CAyBiB,CAAA;AAE7C,eAAO,MAAM,eAAe;;;;;;;;CAQuC,CAAA;AAEnE,eAAO,MAAM,cAAc;;;;;CAKuC,CAAA;AAElE,eAAO,MAAM,KAAK;;CAEuC,CAAA;AAEzD,eAAO,MAAM,kBAAkB;;;;CAIuC,CAAA;AAEtE,eAAO,MAAM,iBAAiB;;;;;CAKuC,CAAA;AAErE,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"Selectors.d.ts","sourceRoot":"","sources":["../../tempo/Selectors.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;CAyBiB,CAAA;AAE7C,eAAO,MAAM,eAAe;;;;;;;;CAQuC,CAAA;AAEnE,eAAO,MAAM,cAAc;;;;;CAKuC,CAAA;AAElE,e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|
|
15
15
|
*
|
|
16
16
|
* const storage = Storage.from(Storage.memory(), { key: 'tempo' })
|
|
17
17
|
* await storage.setItem('foo', 'bar')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Storage.d.ts","sourceRoot":"","sources":["../../tempo/Storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,MAAM,MAAM,OAAO,GAAG;IACpB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAA;IAC7D,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,CAAA;IACvD,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,CAAA;CAC5C,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,IAAI,CAAC,OAAY,GAAG,OAAO,CA0B1E;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,KAAK,OAAO,GAAG;QACb,gDAAgD;QAChD,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KACzB,CAAA;CACF;AAED,sDAAsD;AACtD,wBAAgB,MAAM,CAAC,OAAO,GAAE,IAAI,CAAC,OAAY,GAAG,OAAO,CAgB1D;AAED,+DAA+D;AAC/D,wBAAgB,OAAO,CAAC,OAAO,GAAE,IAAI,CAAC,OAAY,GAAG,OAAO,CAiB3D;AAID;;;;;;;;GAQG;AACH,wBAAgB,cAAc,IAAI,OAAO,
|
|
1
|
+
{"version":3,"file":"Storage.d.ts","sourceRoot":"","sources":["../../tempo/Storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,MAAM,MAAM,OAAO,GAAG;IACpB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAA;IAC7D,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,CAAA;IACvD,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,CAAA;CAC5C,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,IAAI,CAAC,OAAY,GAAG,OAAO,CA0B1E;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,KAAK,OAAO,GAAG;QACb,gDAAgD;QAChD,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KACzB,CAAA;CACF;AAED,sDAAsD;AACtD,wBAAgB,MAAM,CAAC,OAAO,GAAE,IAAI,CAAC,OAAY,GAAG,OAAO,CAgB1D;AAED,+DAA+D;AAC/D,wBAAgB,OAAO,CAAC,OAAO,GAAE,IAAI,CAAC,OAAY,GAAG,OAAO,CAiB3D;AAID;;;;;;;;GAQG;AACH,wBAAgB,cAAc,IAAI,OAAO,CAOxC"}
|
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
import type { LocalAccount } from '../accounts/types.js';
|
|
2
2
|
import { type Transport } from '../clients/transports/createTransport.js';
|
|
3
|
+
import { type HttpTransport, type HttpTransportConfig } from '../clients/transports/http.js';
|
|
4
|
+
import type { Storage } from './Storage.js';
|
|
5
|
+
export type HttpConfig = Omit<HttpTransportConfig, 'batch' | 'raw' | 'rpcSchema'> & {
|
|
6
|
+
/** Storage for reading Zone authorization tokens. Defaults to sessionStorage (web) or memory (server). */
|
|
7
|
+
storage?: Storage | undefined;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Creates an HTTP transport with support for Zone authentication tokens.
|
|
11
|
+
*
|
|
12
|
+
* Reads the authorization token from Storage and injects the
|
|
13
|
+
* `X-Authorization-Token` header on every request.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* import { createPublicClient } from 'viem'
|
|
18
|
+
* import { http, Zone } from 'viem/tempo'
|
|
19
|
+
*
|
|
20
|
+
* const client = createPublicClient({
|
|
21
|
+
* chain: Zone.a,
|
|
22
|
+
* transport: http(),
|
|
23
|
+
* })
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare function http(url?: string | undefined, config?: HttpConfig): HttpTransport;
|
|
3
27
|
type RelayProxyParameters = {
|
|
4
28
|
/** Policy for how the relay should handle sponsored transactions. Defaults to `'sign-only'`. */
|
|
5
29
|
policy?: 'sign-only' | 'sign-and-broadcast' | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transport.d.ts","sourceRoot":"","sources":["../../tempo/Transport.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAKxD,OAAO,EAEL,KAAK,SAAS,EACf,MAAM,0CAA0C,CAAA;
|
|
1
|
+
{"version":3,"file":"Transport.d.ts","sourceRoot":"","sources":["../../tempo/Transport.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAKxD,OAAO,EAEL,KAAK,SAAS,EACf,MAAM,0CAA0C,CAAA;AACjD,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,mBAAmB,EAEzB,MAAM,+BAA+B,CAAA;AAGtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAI3C,MAAM,MAAM,UAAU,GAAG,IAAI,CAC3B,mBAAmB,EACnB,OAAO,GAAG,KAAK,GAAG,WAAW,CAC9B,GAAG;IACF,0GAA0G;IAC1G,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B,CAAA;AAED;;;;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