@andrewkimjoseph/celina 0.4.0 → 0.4.2

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 (140) hide show
  1. package/bin/wrapper.js +2 -0
  2. package/package.json +5 -44
  3. package/LICENSE +0 -21
  4. package/README.md +0 -292
  5. package/assets/logo-black.png +0 -0
  6. package/assets/logo-yellow.png +0 -0
  7. package/assets/logo.png +0 -0
  8. package/bin/cli.js +0 -2
  9. package/build/abis/aave-pool.d.ts +0 -37
  10. package/build/abis/aave-pool.js +0 -26
  11. package/build/abis/aave-pool.js.map +0 -1
  12. package/build/abis/gooddollar-identity.d.ts +0 -61
  13. package/build/abis/gooddollar-identity.js +0 -38
  14. package/build/abis/gooddollar-identity.js.map +0 -1
  15. package/build/abis/self-registry.d.ts +0 -194
  16. package/build/abis/self-registry.js +0 -120
  17. package/build/abis/self-registry.js.map +0 -1
  18. package/build/clients/celo-client.d.ts +0 -13
  19. package/build/clients/celo-client.js +0 -39
  20. package/build/clients/celo-client.js.map +0 -1
  21. package/build/clients/ens-client.d.ts +0 -10
  22. package/build/clients/ens-client.js +0 -23
  23. package/build/clients/ens-client.js.map +0 -1
  24. package/build/clients/mento-sdk.d.ts +0 -2
  25. package/build/clients/mento-sdk.js +0 -9
  26. package/build/clients/mento-sdk.js.map +0 -1
  27. package/build/clients/self-api.d.ts +0 -82
  28. package/build/clients/self-api.js +0 -242
  29. package/build/clients/self-api.js.map +0 -1
  30. package/build/config/aave.d.ts +0 -11
  31. package/build/config/aave.js +0 -55
  32. package/build/config/aave.js.map +0 -1
  33. package/build/config/celina-tag.d.ts +0 -1
  34. package/build/config/celina-tag.js +0 -3
  35. package/build/config/celina-tag.js.map +0 -1
  36. package/build/config/chains.d.ts +0 -935
  37. package/build/config/chains.js +0 -251
  38. package/build/config/chains.js.map +0 -1
  39. package/build/config/env.d.ts +0 -7
  40. package/build/config/env.js +0 -9
  41. package/build/config/env.js.map +0 -1
  42. package/build/config/gooddollar.d.ts +0 -1
  43. package/build/config/gooddollar.js +0 -2
  44. package/build/config/gooddollar.js.map +0 -1
  45. package/build/config/load-env.d.ts +0 -1
  46. package/build/config/load-env.js +0 -4
  47. package/build/config/load-env.js.map +0 -1
  48. package/build/config/self.d.ts +0 -22
  49. package/build/config/self.js +0 -27
  50. package/build/config/self.js.map +0 -1
  51. package/build/context/app-context.d.ts +0 -28
  52. package/build/context/app-context.js +0 -28
  53. package/build/context/app-context.js.map +0 -1
  54. package/build/index.d.ts +0 -2
  55. package/build/index.js +0 -17
  56. package/build/index.js.map +0 -1
  57. package/build/schemas/common.d.ts +0 -6
  58. package/build/schemas/common.js +0 -24
  59. package/build/schemas/common.js.map +0 -1
  60. package/build/server/create-server.d.ts +0 -2
  61. package/build/server/create-server.js +0 -23
  62. package/build/server/create-server.js.map +0 -1
  63. package/build/server/instructions.d.ts +0 -1
  64. package/build/server/instructions.js +0 -22
  65. package/build/server/instructions.js.map +0 -1
  66. package/build/services/aave.service.d.ts +0 -29
  67. package/build/services/aave.service.js +0 -166
  68. package/build/services/aave.service.js.map +0 -1
  69. package/build/services/account.service.d.ts +0 -13
  70. package/build/services/account.service.js +0 -23
  71. package/build/services/account.service.js.map +0 -1
  72. package/build/services/blockchain.service.d.ts +0 -40
  73. package/build/services/blockchain.service.js +0 -81
  74. package/build/services/blockchain.service.js.map +0 -1
  75. package/build/services/ens.service.d.ts +0 -30
  76. package/build/services/ens.service.js +0 -78
  77. package/build/services/ens.service.js.map +0 -1
  78. package/build/services/gooddollar.service.d.ts +0 -38
  79. package/build/services/gooddollar.service.js +0 -127
  80. package/build/services/gooddollar.service.js.map +0 -1
  81. package/build/services/mento-fx.service.d.ts +0 -71
  82. package/build/services/mento-fx.service.js +0 -261
  83. package/build/services/mento-fx.service.js.map +0 -1
  84. package/build/services/self-session-store.d.ts +0 -19
  85. package/build/services/self-session-store.js +0 -28
  86. package/build/services/self-session-store.js.map +0 -1
  87. package/build/services/self.service.d.ts +0 -247
  88. package/build/services/self.service.js +0 -685
  89. package/build/services/self.service.js.map +0 -1
  90. package/build/services/token.service.d.ts +0 -54
  91. package/build/services/token.service.js +0 -147
  92. package/build/services/token.service.js.map +0 -1
  93. package/build/services/transaction.service.d.ts +0 -24
  94. package/build/services/transaction.service.js +0 -112
  95. package/build/services/transaction.service.js.map +0 -1
  96. package/build/tools/aave.tools.d.ts +0 -2
  97. package/build/tools/aave.tools.js +0 -55
  98. package/build/tools/aave.tools.js.map +0 -1
  99. package/build/tools/blockchain.tools.d.ts +0 -3
  100. package/build/tools/blockchain.tools.js +0 -88
  101. package/build/tools/blockchain.tools.js.map +0 -1
  102. package/build/tools/ens.tools.d.ts +0 -2
  103. package/build/tools/ens.tools.js +0 -27
  104. package/build/tools/ens.tools.js.map +0 -1
  105. package/build/tools/gooddollar.tools.d.ts +0 -2
  106. package/build/tools/gooddollar.tools.js +0 -23
  107. package/build/tools/gooddollar.tools.js.map +0 -1
  108. package/build/tools/helpers.d.ts +0 -3
  109. package/build/tools/helpers.js +0 -16
  110. package/build/tools/helpers.js.map +0 -1
  111. package/build/tools/index.d.ts +0 -5
  112. package/build/tools/index.js +0 -25
  113. package/build/tools/index.js.map +0 -1
  114. package/build/tools/mento-fx.tools.d.ts +0 -2
  115. package/build/tools/mento-fx.tools.js +0 -80
  116. package/build/tools/mento-fx.tools.js.map +0 -1
  117. package/build/tools/self.tools.d.ts +0 -2
  118. package/build/tools/self.tools.js +0 -242
  119. package/build/tools/self.tools.js.map +0 -1
  120. package/build/tools/token.tools.d.ts +0 -2
  121. package/build/tools/token.tools.js +0 -62
  122. package/build/tools/token.tools.js.map +0 -1
  123. package/build/tools/transaction.tools.d.ts +0 -2
  124. package/build/tools/transaction.tools.js +0 -49
  125. package/build/tools/transaction.tools.js.map +0 -1
  126. package/build/tools/types.d.ts +0 -5
  127. package/build/tools/types.js +0 -2
  128. package/build/tools/types.js.map +0 -1
  129. package/build/utils/erc20-allowance-storage.d.ts +0 -7
  130. package/build/utils/erc20-allowance-storage.js +0 -44
  131. package/build/utils/erc20-allowance-storage.js.map +0 -1
  132. package/build/utils/format-date.d.ts +0 -1
  133. package/build/utils/format-date.js +0 -12
  134. package/build/utils/format-date.js.map +0 -1
  135. package/build/utils/self-format.d.ts +0 -16
  136. package/build/utils/self-format.js +0 -59
  137. package/build/utils/self-format.js.map +0 -1
  138. package/build/utils/self-signing.d.ts +0 -4
  139. package/build/utils/self-signing.js +0 -38
  140. package/build/utils/self-signing.js.map +0 -1
@@ -1,935 +0,0 @@
1
- export declare const CHAIN: {
2
- blockExplorers: {
3
- readonly default: {
4
- readonly name: "Celo Explorer";
5
- readonly url: "https://celoscan.io";
6
- readonly apiUrl: "https://api.celoscan.io/api";
7
- };
8
- };
9
- blockTime: 1000;
10
- contracts: {
11
- readonly multicall3: {
12
- readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
13
- readonly blockCreated: 13112599;
14
- };
15
- };
16
- ensTlds?: readonly string[] | undefined;
17
- id: 42220;
18
- name: "Celo";
19
- nativeCurrency: {
20
- readonly decimals: 18;
21
- readonly name: "CELO";
22
- readonly symbol: "CELO";
23
- };
24
- experimental_preconfirmationTime?: number | undefined | undefined;
25
- rpcUrls: {
26
- readonly default: {
27
- readonly http: readonly ["https://forno.celo.org"];
28
- };
29
- };
30
- sourceId?: number | undefined | undefined;
31
- testnet: false;
32
- custom?: Record<string, unknown> | undefined;
33
- extendSchema?: Record<string, unknown> | undefined;
34
- fees: import("viem").ChainFees<{
35
- readonly block: {
36
- exclude: [] | undefined;
37
- format: (args: import("viem/chains").CeloRpcBlock, action?: string | undefined) => {
38
- baseFeePerGas: bigint | null;
39
- blobGasUsed: bigint;
40
- difficulty: bigint;
41
- excessBlobGas: bigint;
42
- extraData: import("viem").Hex;
43
- gasLimit: bigint;
44
- gasUsed: bigint;
45
- hash: `0x${string}` | null;
46
- logsBloom: `0x${string}` | null;
47
- miner: import("abitype").Address;
48
- mixHash: import("viem").Hash;
49
- nonce: `0x${string}` | null;
50
- number: bigint | null;
51
- parentBeaconBlockRoot?: `0x${string}` | undefined;
52
- parentHash: import("viem").Hash;
53
- receiptsRoot: import("viem").Hex;
54
- sealFields: import("viem").Hex[];
55
- sha3Uncles: import("viem").Hash;
56
- size: bigint;
57
- stateRoot: import("viem").Hash;
58
- timestamp: bigint;
59
- totalDifficulty: bigint | null;
60
- transactions: `0x${string}`[] | import("viem/chains").CeloTransaction<boolean>[];
61
- transactionsRoot: import("viem").Hash;
62
- uncles: import("viem").Hash[];
63
- withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
64
- withdrawalsRoot?: `0x${string}` | undefined;
65
- } & {};
66
- type: "block";
67
- };
68
- readonly transaction: {
69
- exclude: [] | undefined;
70
- format: (args: import("viem/chains").CeloRpcTransaction, action?: string | undefined) => ({
71
- r: import("viem").Hex;
72
- s: import("viem").Hex;
73
- v: bigint;
74
- to: import("abitype").Address | null;
75
- from: import("abitype").Address;
76
- gas: bigint;
77
- nonce: number;
78
- value: bigint;
79
- blockHash: `0x${string}` | null;
80
- blockNumber: bigint | null;
81
- blockTimestamp?: bigint | undefined;
82
- hash: import("viem").Hash;
83
- input: import("viem").Hex;
84
- transactionIndex: number | null;
85
- typeHex: import("viem").Hex | null;
86
- accessList?: undefined | undefined;
87
- authorizationList?: undefined | undefined;
88
- blobVersionedHashes?: undefined | undefined;
89
- chainId?: number | undefined;
90
- yParity?: undefined | undefined;
91
- type: "legacy";
92
- gasPrice: bigint;
93
- maxFeePerBlobGas?: undefined | undefined;
94
- maxFeePerGas?: undefined | undefined;
95
- maxPriorityFeePerGas?: undefined | undefined;
96
- feeCurrency: import("abitype").Address | null;
97
- mint?: undefined;
98
- isSystemTx?: undefined;
99
- sourceHash?: undefined;
100
- gatewayFee?: undefined;
101
- gatewayFeeRecipient?: undefined;
102
- } | {
103
- blockHash: `0x${string}` | null;
104
- blockNumber: bigint | null;
105
- blockTimestamp?: bigint | undefined;
106
- from: import("abitype").Address;
107
- gas: bigint;
108
- hash: import("viem").Hash;
109
- input: import("viem").Hex;
110
- nonce: number;
111
- r: import("viem").Hex;
112
- s: import("viem").Hex;
113
- to: import("abitype").Address | null;
114
- transactionIndex: number | null;
115
- typeHex: import("viem").Hex | null;
116
- v: bigint;
117
- value: bigint;
118
- yParity: number;
119
- accessList: import("viem").AccessList;
120
- authorizationList?: undefined | undefined;
121
- blobVersionedHashes?: undefined | undefined;
122
- chainId: number;
123
- type: "eip2930";
124
- gasPrice: bigint;
125
- maxFeePerBlobGas?: undefined | undefined;
126
- maxFeePerGas?: undefined | undefined;
127
- maxPriorityFeePerGas?: undefined | undefined;
128
- feeCurrency: import("abitype").Address | null;
129
- mint?: undefined;
130
- isSystemTx?: undefined;
131
- sourceHash?: undefined;
132
- gatewayFee?: undefined;
133
- gatewayFeeRecipient?: undefined;
134
- } | {
135
- blockHash: `0x${string}` | null;
136
- blockNumber: bigint | null;
137
- blockTimestamp?: bigint | undefined;
138
- from: import("abitype").Address;
139
- gas: bigint;
140
- hash: import("viem").Hash;
141
- input: import("viem").Hex;
142
- nonce: number;
143
- r: import("viem").Hex;
144
- s: import("viem").Hex;
145
- to: import("abitype").Address | null;
146
- transactionIndex: number | null;
147
- typeHex: import("viem").Hex | null;
148
- v: bigint;
149
- value: bigint;
150
- yParity: number;
151
- accessList: import("viem").AccessList;
152
- authorizationList?: undefined | undefined;
153
- blobVersionedHashes?: undefined | undefined;
154
- chainId: number;
155
- type: "eip1559";
156
- gasPrice?: undefined | undefined;
157
- maxFeePerBlobGas?: undefined | undefined;
158
- maxFeePerGas: bigint;
159
- maxPriorityFeePerGas: bigint;
160
- feeCurrency: import("abitype").Address | null;
161
- mint?: undefined;
162
- isSystemTx?: undefined;
163
- sourceHash?: undefined;
164
- gatewayFee?: undefined;
165
- gatewayFeeRecipient?: undefined;
166
- } | {
167
- blockHash: `0x${string}` | null;
168
- blockNumber: bigint | null;
169
- blockTimestamp?: bigint | undefined;
170
- from: import("abitype").Address;
171
- gas: bigint;
172
- hash: import("viem").Hash;
173
- input: import("viem").Hex;
174
- nonce: number;
175
- r: import("viem").Hex;
176
- s: import("viem").Hex;
177
- to: import("abitype").Address | null;
178
- transactionIndex: number | null;
179
- typeHex: import("viem").Hex | null;
180
- v: bigint;
181
- value: bigint;
182
- yParity: number;
183
- accessList: import("viem").AccessList;
184
- authorizationList?: undefined | undefined;
185
- blobVersionedHashes: readonly import("viem").Hex[];
186
- chainId: number;
187
- type: "eip4844";
188
- gasPrice?: undefined | undefined;
189
- maxFeePerBlobGas: bigint;
190
- maxFeePerGas: bigint;
191
- maxPriorityFeePerGas: bigint;
192
- feeCurrency: import("abitype").Address | null;
193
- mint?: undefined;
194
- isSystemTx?: undefined;
195
- sourceHash?: undefined;
196
- gatewayFee?: undefined;
197
- gatewayFeeRecipient?: undefined;
198
- } | {
199
- blockHash: `0x${string}` | null;
200
- blockNumber: bigint | null;
201
- blockTimestamp?: bigint | undefined;
202
- from: import("abitype").Address;
203
- gas: bigint;
204
- hash: import("viem").Hash;
205
- input: import("viem").Hex;
206
- nonce: number;
207
- r: import("viem").Hex;
208
- s: import("viem").Hex;
209
- to: import("abitype").Address | null;
210
- transactionIndex: number | null;
211
- typeHex: import("viem").Hex | null;
212
- v: bigint;
213
- value: bigint;
214
- yParity: number;
215
- accessList: import("viem").AccessList;
216
- authorizationList: import("viem").SignedAuthorizationList;
217
- blobVersionedHashes?: undefined | undefined;
218
- chainId: number;
219
- type: "eip7702";
220
- gasPrice?: undefined | undefined;
221
- maxFeePerBlobGas?: undefined | undefined;
222
- maxFeePerGas: bigint;
223
- maxPriorityFeePerGas: bigint;
224
- feeCurrency: import("abitype").Address | null;
225
- mint?: undefined;
226
- isSystemTx?: undefined;
227
- sourceHash?: undefined;
228
- gatewayFee?: undefined;
229
- gatewayFeeRecipient?: undefined;
230
- } | {
231
- blockHash: `0x${string}` | null;
232
- blockNumber: bigint | null;
233
- blockTimestamp?: bigint | undefined;
234
- from: import("abitype").Address;
235
- gas: bigint;
236
- hash: import("viem").Hash;
237
- input: import("viem").Hex;
238
- nonce: number;
239
- r: import("viem").Hex;
240
- s: import("viem").Hex;
241
- to: import("abitype").Address | null;
242
- transactionIndex: number | null;
243
- typeHex: import("viem").Hex | null;
244
- v: bigint;
245
- value: bigint;
246
- yParity: number;
247
- gasPrice?: undefined | undefined;
248
- maxFeePerBlobGas?: undefined | undefined;
249
- maxFeePerGas: bigint;
250
- maxPriorityFeePerGas: bigint;
251
- accessList: import("viem").AccessList;
252
- chainId: number;
253
- feeCurrency: import("abitype").Address | null;
254
- gatewayFee: bigint | null;
255
- gatewayFeeRecipient: import("abitype").Address | null;
256
- type: "cip42";
257
- blobVersionedHashes?: undefined;
258
- authorizationList?: undefined;
259
- mint?: undefined;
260
- isSystemTx?: undefined;
261
- sourceHash?: undefined;
262
- } | {
263
- blockHash: `0x${string}` | null;
264
- blockNumber: bigint | null;
265
- blockTimestamp?: bigint | undefined;
266
- from: import("abitype").Address;
267
- gas: bigint;
268
- hash: import("viem").Hash;
269
- input: import("viem").Hex;
270
- nonce: number;
271
- r: import("viem").Hex;
272
- s: import("viem").Hex;
273
- to: import("abitype").Address | null;
274
- transactionIndex: number | null;
275
- typeHex: import("viem").Hex | null;
276
- v: bigint;
277
- value: bigint;
278
- yParity: number;
279
- gasPrice?: undefined | undefined;
280
- maxFeePerBlobGas?: undefined | undefined;
281
- maxFeePerGas: bigint;
282
- maxPriorityFeePerGas: bigint;
283
- accessList: import("viem").AccessList;
284
- chainId: number;
285
- feeCurrency: import("abitype").Address | null;
286
- type: "cip64";
287
- blobVersionedHashes?: undefined;
288
- authorizationList?: undefined;
289
- mint?: undefined;
290
- isSystemTx?: undefined;
291
- sourceHash?: undefined;
292
- gatewayFee?: undefined;
293
- gatewayFeeRecipient?: undefined;
294
- } | {
295
- blockHash: `0x${string}` | null;
296
- blockNumber: bigint | null;
297
- blockTimestamp?: bigint | undefined;
298
- from: import("abitype").Address;
299
- gas: bigint;
300
- hash: import("viem").Hash;
301
- input: import("viem").Hex;
302
- nonce: number;
303
- r: import("viem").Hex;
304
- s: import("viem").Hex;
305
- to: import("abitype").Address | null;
306
- transactionIndex: number | null;
307
- typeHex: import("viem").Hex | null;
308
- v: bigint;
309
- value: bigint;
310
- yParity: number;
311
- gasPrice?: undefined | undefined;
312
- maxFeePerBlobGas?: undefined | undefined;
313
- maxFeePerGas: bigint;
314
- maxPriorityFeePerGas: bigint;
315
- isSystemTx?: boolean;
316
- mint?: bigint | undefined | undefined;
317
- sourceHash: import("viem").Hex;
318
- type: "deposit";
319
- blobVersionedHashes?: undefined;
320
- accessList?: undefined;
321
- authorizationList?: undefined;
322
- chainId?: undefined;
323
- feeCurrency?: undefined;
324
- gatewayFee?: undefined;
325
- gatewayFeeRecipient?: undefined;
326
- }) & {};
327
- type: "transaction";
328
- };
329
- readonly transactionRequest: {
330
- exclude: [] | undefined;
331
- format: (args: import("viem/chains").CeloTransactionRequest, action?: string | undefined) => ({
332
- data?: `0x${string}` | undefined;
333
- from?: `0x${string}` | undefined;
334
- gas?: `0x${string}` | undefined;
335
- nonce?: `0x${string}` | undefined;
336
- to?: `0x${string}` | null | undefined;
337
- type?: "0x0" | undefined;
338
- value?: `0x${string}` | undefined;
339
- gasPrice?: `0x${string}` | undefined;
340
- maxFeePerBlobGas?: undefined | undefined;
341
- maxFeePerGas?: undefined | undefined;
342
- maxPriorityFeePerGas?: undefined | undefined;
343
- blobs?: undefined;
344
- blobVersionedHashes?: undefined;
345
- kzg?: undefined;
346
- accessList?: undefined;
347
- sidecars?: undefined;
348
- authorizationList?: undefined;
349
- feeCurrency?: `0x${string}` | undefined;
350
- } | {
351
- data?: `0x${string}` | undefined;
352
- from?: `0x${string}` | undefined;
353
- gas?: `0x${string}` | undefined;
354
- nonce?: `0x${string}` | undefined;
355
- to?: `0x${string}` | null | undefined;
356
- type?: "0x1" | undefined;
357
- value?: `0x${string}` | undefined;
358
- gasPrice?: `0x${string}` | undefined;
359
- maxFeePerBlobGas?: undefined | undefined;
360
- maxFeePerGas?: undefined | undefined;
361
- maxPriorityFeePerGas?: undefined | undefined;
362
- accessList?: import("viem").AccessList | undefined;
363
- blobs?: undefined;
364
- blobVersionedHashes?: undefined;
365
- kzg?: undefined;
366
- sidecars?: undefined;
367
- authorizationList?: undefined;
368
- feeCurrency?: `0x${string}` | undefined;
369
- } | {
370
- data?: `0x${string}` | undefined;
371
- from?: `0x${string}` | undefined;
372
- gas?: `0x${string}` | undefined;
373
- nonce?: `0x${string}` | undefined;
374
- to?: `0x${string}` | null | undefined;
375
- type?: "0x2" | undefined;
376
- value?: `0x${string}` | undefined;
377
- gasPrice?: undefined | undefined;
378
- maxFeePerBlobGas?: undefined | undefined;
379
- maxFeePerGas?: `0x${string}` | undefined;
380
- maxPriorityFeePerGas?: `0x${string}` | undefined;
381
- accessList?: import("viem").AccessList | undefined;
382
- blobs?: undefined;
383
- blobVersionedHashes?: undefined;
384
- kzg?: undefined;
385
- sidecars?: undefined;
386
- authorizationList?: undefined;
387
- feeCurrency?: `0x${string}` | undefined;
388
- } | {
389
- type?: "0x3" | undefined;
390
- data?: `0x${string}` | undefined;
391
- from?: `0x${string}` | undefined;
392
- gas?: `0x${string}` | undefined;
393
- nonce?: `0x${string}` | undefined;
394
- value?: `0x${string}` | undefined;
395
- to: `0x${string}` | null;
396
- gasPrice?: undefined | undefined;
397
- maxFeePerBlobGas?: `0x${string}` | undefined;
398
- maxFeePerGas?: `0x${string}` | undefined;
399
- maxPriorityFeePerGas?: `0x${string}` | undefined;
400
- accessList?: import("viem").AccessList | undefined;
401
- sidecars?: readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
402
- blobs?: readonly `0x${string}`[] | readonly import("viem").ByteArray[] | undefined;
403
- blobVersionedHashes: readonly import("viem").Hex[];
404
- kzg?: undefined;
405
- authorizationList?: undefined;
406
- feeCurrency?: `0x${string}` | undefined;
407
- } | {
408
- type?: "0x3" | undefined;
409
- data?: `0x${string}` | undefined;
410
- from?: `0x${string}` | undefined;
411
- gas?: `0x${string}` | undefined;
412
- nonce?: `0x${string}` | undefined;
413
- value?: `0x${string}` | undefined;
414
- to: `0x${string}` | null;
415
- gasPrice?: undefined | undefined;
416
- maxFeePerBlobGas?: `0x${string}` | undefined;
417
- maxFeePerGas?: `0x${string}` | undefined;
418
- maxPriorityFeePerGas?: `0x${string}` | undefined;
419
- accessList?: import("viem").AccessList | undefined;
420
- sidecars?: readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
421
- blobs: readonly import("viem").Hex[] | readonly import("viem").ByteArray[];
422
- blobVersionedHashes?: readonly `0x${string}`[] | undefined;
423
- kzg?: import("viem").Kzg | undefined;
424
- authorizationList?: undefined;
425
- feeCurrency?: `0x${string}` | undefined;
426
- } | {
427
- type?: "0x4" | undefined;
428
- gasPrice?: undefined | undefined;
429
- maxFeePerBlobGas?: undefined | undefined;
430
- maxFeePerGas?: `0x${string}` | undefined;
431
- maxPriorityFeePerGas?: `0x${string}` | undefined;
432
- to?: `0x${string}` | null | undefined;
433
- data?: `0x${string}` | undefined;
434
- from?: `0x${string}` | undefined;
435
- gas?: `0x${string}` | undefined;
436
- nonce?: `0x${string}` | undefined;
437
- value?: `0x${string}` | undefined;
438
- accessList?: import("viem").AccessList | undefined;
439
- authorizationList?: import("viem").RpcAuthorizationList | undefined;
440
- blobs?: undefined;
441
- blobVersionedHashes?: undefined;
442
- kzg?: undefined;
443
- sidecars?: undefined;
444
- feeCurrency?: `0x${string}` | undefined;
445
- } | {
446
- data?: `0x${string}` | undefined;
447
- from?: `0x${string}` | undefined;
448
- gas?: `0x${string}` | undefined;
449
- nonce?: `0x${string}` | undefined;
450
- to?: `0x${string}` | null | undefined;
451
- type?: "0x7b" | undefined;
452
- value?: `0x${string}` | undefined;
453
- accessList?: import("viem").AccessList | undefined;
454
- feeCurrency?: `0x${string}` | undefined;
455
- gasPrice?: undefined | undefined;
456
- maxFeePerBlobGas?: undefined | undefined;
457
- maxFeePerGas?: `0x${string}` | undefined;
458
- maxPriorityFeePerGas?: `0x${string}` | undefined;
459
- blobs?: undefined;
460
- blobVersionedHashes?: undefined;
461
- kzg?: undefined;
462
- sidecars?: undefined;
463
- authorizationList?: undefined;
464
- }) & {};
465
- type: "transactionRequest";
466
- };
467
- }>;
468
- formatters: {
469
- readonly block: {
470
- exclude: [] | undefined;
471
- format: (args: import("viem/chains").CeloRpcBlock, action?: string | undefined) => {
472
- baseFeePerGas: bigint | null;
473
- blobGasUsed: bigint;
474
- difficulty: bigint;
475
- excessBlobGas: bigint;
476
- extraData: import("viem").Hex;
477
- gasLimit: bigint;
478
- gasUsed: bigint;
479
- hash: `0x${string}` | null;
480
- logsBloom: `0x${string}` | null;
481
- miner: import("abitype").Address;
482
- mixHash: import("viem").Hash;
483
- nonce: `0x${string}` | null;
484
- number: bigint | null;
485
- parentBeaconBlockRoot?: `0x${string}` | undefined;
486
- parentHash: import("viem").Hash;
487
- receiptsRoot: import("viem").Hex;
488
- sealFields: import("viem").Hex[];
489
- sha3Uncles: import("viem").Hash;
490
- size: bigint;
491
- stateRoot: import("viem").Hash;
492
- timestamp: bigint;
493
- totalDifficulty: bigint | null;
494
- transactions: `0x${string}`[] | import("viem/chains").CeloTransaction<boolean>[];
495
- transactionsRoot: import("viem").Hash;
496
- uncles: import("viem").Hash[];
497
- withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
498
- withdrawalsRoot?: `0x${string}` | undefined;
499
- } & {};
500
- type: "block";
501
- };
502
- readonly transaction: {
503
- exclude: [] | undefined;
504
- format: (args: import("viem/chains").CeloRpcTransaction, action?: string | undefined) => ({
505
- r: import("viem").Hex;
506
- s: import("viem").Hex;
507
- v: bigint;
508
- to: import("abitype").Address | null;
509
- from: import("abitype").Address;
510
- gas: bigint;
511
- nonce: number;
512
- value: bigint;
513
- blockHash: `0x${string}` | null;
514
- blockNumber: bigint | null;
515
- blockTimestamp?: bigint | undefined;
516
- hash: import("viem").Hash;
517
- input: import("viem").Hex;
518
- transactionIndex: number | null;
519
- typeHex: import("viem").Hex | null;
520
- accessList?: undefined | undefined;
521
- authorizationList?: undefined | undefined;
522
- blobVersionedHashes?: undefined | undefined;
523
- chainId?: number | undefined;
524
- yParity?: undefined | undefined;
525
- type: "legacy";
526
- gasPrice: bigint;
527
- maxFeePerBlobGas?: undefined | undefined;
528
- maxFeePerGas?: undefined | undefined;
529
- maxPriorityFeePerGas?: undefined | undefined;
530
- feeCurrency: import("abitype").Address | null;
531
- mint?: undefined;
532
- isSystemTx?: undefined;
533
- sourceHash?: undefined;
534
- gatewayFee?: undefined;
535
- gatewayFeeRecipient?: undefined;
536
- } | {
537
- blockHash: `0x${string}` | null;
538
- blockNumber: bigint | null;
539
- blockTimestamp?: bigint | undefined;
540
- from: import("abitype").Address;
541
- gas: bigint;
542
- hash: import("viem").Hash;
543
- input: import("viem").Hex;
544
- nonce: number;
545
- r: import("viem").Hex;
546
- s: import("viem").Hex;
547
- to: import("abitype").Address | null;
548
- transactionIndex: number | null;
549
- typeHex: import("viem").Hex | null;
550
- v: bigint;
551
- value: bigint;
552
- yParity: number;
553
- accessList: import("viem").AccessList;
554
- authorizationList?: undefined | undefined;
555
- blobVersionedHashes?: undefined | undefined;
556
- chainId: number;
557
- type: "eip2930";
558
- gasPrice: bigint;
559
- maxFeePerBlobGas?: undefined | undefined;
560
- maxFeePerGas?: undefined | undefined;
561
- maxPriorityFeePerGas?: undefined | undefined;
562
- feeCurrency: import("abitype").Address | null;
563
- mint?: undefined;
564
- isSystemTx?: undefined;
565
- sourceHash?: undefined;
566
- gatewayFee?: undefined;
567
- gatewayFeeRecipient?: undefined;
568
- } | {
569
- blockHash: `0x${string}` | null;
570
- blockNumber: bigint | null;
571
- blockTimestamp?: bigint | undefined;
572
- from: import("abitype").Address;
573
- gas: bigint;
574
- hash: import("viem").Hash;
575
- input: import("viem").Hex;
576
- nonce: number;
577
- r: import("viem").Hex;
578
- s: import("viem").Hex;
579
- to: import("abitype").Address | null;
580
- transactionIndex: number | null;
581
- typeHex: import("viem").Hex | null;
582
- v: bigint;
583
- value: bigint;
584
- yParity: number;
585
- accessList: import("viem").AccessList;
586
- authorizationList?: undefined | undefined;
587
- blobVersionedHashes?: undefined | undefined;
588
- chainId: number;
589
- type: "eip1559";
590
- gasPrice?: undefined | undefined;
591
- maxFeePerBlobGas?: undefined | undefined;
592
- maxFeePerGas: bigint;
593
- maxPriorityFeePerGas: bigint;
594
- feeCurrency: import("abitype").Address | null;
595
- mint?: undefined;
596
- isSystemTx?: undefined;
597
- sourceHash?: undefined;
598
- gatewayFee?: undefined;
599
- gatewayFeeRecipient?: undefined;
600
- } | {
601
- blockHash: `0x${string}` | null;
602
- blockNumber: bigint | null;
603
- blockTimestamp?: bigint | undefined;
604
- from: import("abitype").Address;
605
- gas: bigint;
606
- hash: import("viem").Hash;
607
- input: import("viem").Hex;
608
- nonce: number;
609
- r: import("viem").Hex;
610
- s: import("viem").Hex;
611
- to: import("abitype").Address | null;
612
- transactionIndex: number | null;
613
- typeHex: import("viem").Hex | null;
614
- v: bigint;
615
- value: bigint;
616
- yParity: number;
617
- accessList: import("viem").AccessList;
618
- authorizationList?: undefined | undefined;
619
- blobVersionedHashes: readonly import("viem").Hex[];
620
- chainId: number;
621
- type: "eip4844";
622
- gasPrice?: undefined | undefined;
623
- maxFeePerBlobGas: bigint;
624
- maxFeePerGas: bigint;
625
- maxPriorityFeePerGas: bigint;
626
- feeCurrency: import("abitype").Address | null;
627
- mint?: undefined;
628
- isSystemTx?: undefined;
629
- sourceHash?: undefined;
630
- gatewayFee?: undefined;
631
- gatewayFeeRecipient?: undefined;
632
- } | {
633
- blockHash: `0x${string}` | null;
634
- blockNumber: bigint | null;
635
- blockTimestamp?: bigint | undefined;
636
- from: import("abitype").Address;
637
- gas: bigint;
638
- hash: import("viem").Hash;
639
- input: import("viem").Hex;
640
- nonce: number;
641
- r: import("viem").Hex;
642
- s: import("viem").Hex;
643
- to: import("abitype").Address | null;
644
- transactionIndex: number | null;
645
- typeHex: import("viem").Hex | null;
646
- v: bigint;
647
- value: bigint;
648
- yParity: number;
649
- accessList: import("viem").AccessList;
650
- authorizationList: import("viem").SignedAuthorizationList;
651
- blobVersionedHashes?: undefined | undefined;
652
- chainId: number;
653
- type: "eip7702";
654
- gasPrice?: undefined | undefined;
655
- maxFeePerBlobGas?: undefined | undefined;
656
- maxFeePerGas: bigint;
657
- maxPriorityFeePerGas: bigint;
658
- feeCurrency: import("abitype").Address | null;
659
- mint?: undefined;
660
- isSystemTx?: undefined;
661
- sourceHash?: undefined;
662
- gatewayFee?: undefined;
663
- gatewayFeeRecipient?: undefined;
664
- } | {
665
- blockHash: `0x${string}` | null;
666
- blockNumber: bigint | null;
667
- blockTimestamp?: bigint | undefined;
668
- from: import("abitype").Address;
669
- gas: bigint;
670
- hash: import("viem").Hash;
671
- input: import("viem").Hex;
672
- nonce: number;
673
- r: import("viem").Hex;
674
- s: import("viem").Hex;
675
- to: import("abitype").Address | null;
676
- transactionIndex: number | null;
677
- typeHex: import("viem").Hex | null;
678
- v: bigint;
679
- value: bigint;
680
- yParity: number;
681
- gasPrice?: undefined | undefined;
682
- maxFeePerBlobGas?: undefined | undefined;
683
- maxFeePerGas: bigint;
684
- maxPriorityFeePerGas: bigint;
685
- accessList: import("viem").AccessList;
686
- chainId: number;
687
- feeCurrency: import("abitype").Address | null;
688
- gatewayFee: bigint | null;
689
- gatewayFeeRecipient: import("abitype").Address | null;
690
- type: "cip42";
691
- blobVersionedHashes?: undefined;
692
- authorizationList?: undefined;
693
- mint?: undefined;
694
- isSystemTx?: undefined;
695
- sourceHash?: undefined;
696
- } | {
697
- blockHash: `0x${string}` | null;
698
- blockNumber: bigint | null;
699
- blockTimestamp?: bigint | undefined;
700
- from: import("abitype").Address;
701
- gas: bigint;
702
- hash: import("viem").Hash;
703
- input: import("viem").Hex;
704
- nonce: number;
705
- r: import("viem").Hex;
706
- s: import("viem").Hex;
707
- to: import("abitype").Address | null;
708
- transactionIndex: number | null;
709
- typeHex: import("viem").Hex | null;
710
- v: bigint;
711
- value: bigint;
712
- yParity: number;
713
- gasPrice?: undefined | undefined;
714
- maxFeePerBlobGas?: undefined | undefined;
715
- maxFeePerGas: bigint;
716
- maxPriorityFeePerGas: bigint;
717
- accessList: import("viem").AccessList;
718
- chainId: number;
719
- feeCurrency: import("abitype").Address | null;
720
- type: "cip64";
721
- blobVersionedHashes?: undefined;
722
- authorizationList?: undefined;
723
- mint?: undefined;
724
- isSystemTx?: undefined;
725
- sourceHash?: undefined;
726
- gatewayFee?: undefined;
727
- gatewayFeeRecipient?: undefined;
728
- } | {
729
- blockHash: `0x${string}` | null;
730
- blockNumber: bigint | null;
731
- blockTimestamp?: bigint | undefined;
732
- from: import("abitype").Address;
733
- gas: bigint;
734
- hash: import("viem").Hash;
735
- input: import("viem").Hex;
736
- nonce: number;
737
- r: import("viem").Hex;
738
- s: import("viem").Hex;
739
- to: import("abitype").Address | null;
740
- transactionIndex: number | null;
741
- typeHex: import("viem").Hex | null;
742
- v: bigint;
743
- value: bigint;
744
- yParity: number;
745
- gasPrice?: undefined | undefined;
746
- maxFeePerBlobGas?: undefined | undefined;
747
- maxFeePerGas: bigint;
748
- maxPriorityFeePerGas: bigint;
749
- isSystemTx?: boolean;
750
- mint?: bigint | undefined | undefined;
751
- sourceHash: import("viem").Hex;
752
- type: "deposit";
753
- blobVersionedHashes?: undefined;
754
- accessList?: undefined;
755
- authorizationList?: undefined;
756
- chainId?: undefined;
757
- feeCurrency?: undefined;
758
- gatewayFee?: undefined;
759
- gatewayFeeRecipient?: undefined;
760
- }) & {};
761
- type: "transaction";
762
- };
763
- readonly transactionRequest: {
764
- exclude: [] | undefined;
765
- format: (args: import("viem/chains").CeloTransactionRequest, action?: string | undefined) => ({
766
- data?: `0x${string}` | undefined;
767
- from?: `0x${string}` | undefined;
768
- gas?: `0x${string}` | undefined;
769
- nonce?: `0x${string}` | undefined;
770
- to?: `0x${string}` | null | undefined;
771
- type?: "0x0" | undefined;
772
- value?: `0x${string}` | undefined;
773
- gasPrice?: `0x${string}` | undefined;
774
- maxFeePerBlobGas?: undefined | undefined;
775
- maxFeePerGas?: undefined | undefined;
776
- maxPriorityFeePerGas?: undefined | undefined;
777
- blobs?: undefined;
778
- blobVersionedHashes?: undefined;
779
- kzg?: undefined;
780
- accessList?: undefined;
781
- sidecars?: undefined;
782
- authorizationList?: undefined;
783
- feeCurrency?: `0x${string}` | undefined;
784
- } | {
785
- data?: `0x${string}` | undefined;
786
- from?: `0x${string}` | undefined;
787
- gas?: `0x${string}` | undefined;
788
- nonce?: `0x${string}` | undefined;
789
- to?: `0x${string}` | null | undefined;
790
- type?: "0x1" | undefined;
791
- value?: `0x${string}` | undefined;
792
- gasPrice?: `0x${string}` | undefined;
793
- maxFeePerBlobGas?: undefined | undefined;
794
- maxFeePerGas?: undefined | undefined;
795
- maxPriorityFeePerGas?: undefined | undefined;
796
- accessList?: import("viem").AccessList | undefined;
797
- blobs?: undefined;
798
- blobVersionedHashes?: undefined;
799
- kzg?: undefined;
800
- sidecars?: undefined;
801
- authorizationList?: undefined;
802
- feeCurrency?: `0x${string}` | undefined;
803
- } | {
804
- data?: `0x${string}` | undefined;
805
- from?: `0x${string}` | undefined;
806
- gas?: `0x${string}` | undefined;
807
- nonce?: `0x${string}` | undefined;
808
- to?: `0x${string}` | null | undefined;
809
- type?: "0x2" | undefined;
810
- value?: `0x${string}` | undefined;
811
- gasPrice?: undefined | undefined;
812
- maxFeePerBlobGas?: undefined | undefined;
813
- maxFeePerGas?: `0x${string}` | undefined;
814
- maxPriorityFeePerGas?: `0x${string}` | undefined;
815
- accessList?: import("viem").AccessList | undefined;
816
- blobs?: undefined;
817
- blobVersionedHashes?: undefined;
818
- kzg?: undefined;
819
- sidecars?: undefined;
820
- authorizationList?: undefined;
821
- feeCurrency?: `0x${string}` | undefined;
822
- } | {
823
- type?: "0x3" | undefined;
824
- data?: `0x${string}` | undefined;
825
- from?: `0x${string}` | undefined;
826
- gas?: `0x${string}` | undefined;
827
- nonce?: `0x${string}` | undefined;
828
- value?: `0x${string}` | undefined;
829
- to: `0x${string}` | null;
830
- gasPrice?: undefined | undefined;
831
- maxFeePerBlobGas?: `0x${string}` | undefined;
832
- maxFeePerGas?: `0x${string}` | undefined;
833
- maxPriorityFeePerGas?: `0x${string}` | undefined;
834
- accessList?: import("viem").AccessList | undefined;
835
- sidecars?: readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
836
- blobs?: readonly `0x${string}`[] | readonly import("viem").ByteArray[] | undefined;
837
- blobVersionedHashes: readonly import("viem").Hex[];
838
- kzg?: undefined;
839
- authorizationList?: undefined;
840
- feeCurrency?: `0x${string}` | undefined;
841
- } | {
842
- type?: "0x3" | undefined;
843
- data?: `0x${string}` | undefined;
844
- from?: `0x${string}` | undefined;
845
- gas?: `0x${string}` | undefined;
846
- nonce?: `0x${string}` | undefined;
847
- value?: `0x${string}` | undefined;
848
- to: `0x${string}` | null;
849
- gasPrice?: undefined | undefined;
850
- maxFeePerBlobGas?: `0x${string}` | undefined;
851
- maxFeePerGas?: `0x${string}` | undefined;
852
- maxPriorityFeePerGas?: `0x${string}` | undefined;
853
- accessList?: import("viem").AccessList | undefined;
854
- sidecars?: readonly import("viem").BlobSidecar<`0x${string}`>[] | undefined;
855
- blobs: readonly import("viem").Hex[] | readonly import("viem").ByteArray[];
856
- blobVersionedHashes?: readonly `0x${string}`[] | undefined;
857
- kzg?: import("viem").Kzg | undefined;
858
- authorizationList?: undefined;
859
- feeCurrency?: `0x${string}` | undefined;
860
- } | {
861
- type?: "0x4" | undefined;
862
- gasPrice?: undefined | undefined;
863
- maxFeePerBlobGas?: undefined | undefined;
864
- maxFeePerGas?: `0x${string}` | undefined;
865
- maxPriorityFeePerGas?: `0x${string}` | undefined;
866
- to?: `0x${string}` | null | undefined;
867
- data?: `0x${string}` | undefined;
868
- from?: `0x${string}` | undefined;
869
- gas?: `0x${string}` | undefined;
870
- nonce?: `0x${string}` | undefined;
871
- value?: `0x${string}` | undefined;
872
- accessList?: import("viem").AccessList | undefined;
873
- authorizationList?: import("viem").RpcAuthorizationList | undefined;
874
- blobs?: undefined;
875
- blobVersionedHashes?: undefined;
876
- kzg?: undefined;
877
- sidecars?: undefined;
878
- feeCurrency?: `0x${string}` | undefined;
879
- } | {
880
- data?: `0x${string}` | undefined;
881
- from?: `0x${string}` | undefined;
882
- gas?: `0x${string}` | undefined;
883
- nonce?: `0x${string}` | undefined;
884
- to?: `0x${string}` | null | undefined;
885
- type?: "0x7b" | undefined;
886
- value?: `0x${string}` | undefined;
887
- accessList?: import("viem").AccessList | undefined;
888
- feeCurrency?: `0x${string}` | undefined;
889
- gasPrice?: undefined | undefined;
890
- maxFeePerBlobGas?: undefined | undefined;
891
- maxFeePerGas?: `0x${string}` | undefined;
892
- maxPriorityFeePerGas?: `0x${string}` | undefined;
893
- blobs?: undefined;
894
- blobVersionedHashes?: undefined;
895
- kzg?: undefined;
896
- sidecars?: undefined;
897
- authorizationList?: undefined;
898
- }) & {};
899
- type: "transactionRequest";
900
- };
901
- };
902
- prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
903
- phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
904
- }) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
905
- phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
906
- }) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
907
- runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
908
- }] | undefined;
909
- serializers: {
910
- readonly transaction: typeof import("viem/chains").serializeTransactionCelo;
911
- };
912
- verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
913
- };
914
- export declare const DEFAULT_RPC_URL = "https://forno.celo.org";
915
- /** Mento collateral address for native CELO (used by @mento-protocol/mento-sdk). */
916
- export declare const MENTO_CELO_ADDRESS: "0x471EcE3750Da237f93B8E339c536989b8978a438";
917
- export type KnownToken = {
918
- symbol: string;
919
- address: `0x${string}` | "native";
920
- decimals: number;
921
- aliases?: string[];
922
- issuer?: string;
923
- useCase?: string;
924
- };
925
- export declare const KNOWN_TOKENS: KnownToken[];
926
- export type Stablecoin = KnownToken & {
927
- address: `0x${string}`;
928
- issuer: string;
929
- useCase: string;
930
- };
931
- export declare const STABLECOINS: Stablecoin[];
932
- export declare const KNOWN_TOKEN_SYMBOLS: string[];
933
- export declare function findKnownToken(token: string): KnownToken | undefined;
934
- export declare function toMentoTokenAddress(address: `0x${string}` | "native"): `0x${string}`;
935
- export declare function resolveStablecoins(symbols?: string[]): Stablecoin[];