@sudobility/contracts 0.15.1 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/README.md +2 -3
  2. package/artifacts/contracts/Mailer.sol/Mailer.d.ts +2 -185
  3. package/artifacts/contracts/Mailer.sol/Mailer.dbg.json +1 -1
  4. package/artifacts/contracts/Mailer.sol/Mailer.json +2 -185
  5. package/artifacts/contracts/MockUSDC.sol/MockUSDC.dbg.json +1 -1
  6. package/artifacts/contracts/interfaces/IERC20.sol/IERC20.dbg.json +1 -1
  7. package/dist/evm/src/evm/index.d.ts +1 -1
  8. package/dist/evm/src/evm/index.d.ts.map +1 -1
  9. package/dist/evm/src/evm/index.js +4 -4
  10. package/dist/evm/src/evm/index.js.map +1 -1
  11. package/dist/evm/src/evm/mailer-client.d.ts +210 -0
  12. package/dist/evm/src/evm/mailer-client.d.ts.map +1 -0
  13. package/dist/evm/src/evm/mailer-client.js +417 -0
  14. package/dist/evm/src/evm/mailer-client.js.map +1 -0
  15. package/dist/evm/typechain-types/Mailer.d.ts +10 -128
  16. package/dist/evm/typechain-types/Mailer.d.ts.map +1 -1
  17. package/dist/evm/typechain-types/factories/Mailer__factory.d.ts +1 -145
  18. package/dist/evm/typechain-types/factories/Mailer__factory.d.ts.map +1 -1
  19. package/dist/evm/typechain-types/factories/Mailer__factory.js +1 -184
  20. package/dist/evm/typechain-types/factories/Mailer__factory.js.map +1 -1
  21. package/dist/solana/solana/index.d.ts +1 -1
  22. package/dist/solana/solana/index.d.ts.map +1 -1
  23. package/dist/solana/solana/index.js +1 -4
  24. package/dist/solana/solana/index.js.map +1 -1
  25. package/dist/solana/solana/mailer-client.d.ts +209 -0
  26. package/dist/solana/solana/mailer-client.d.ts.map +1 -0
  27. package/dist/solana/solana/mailer-client.js +728 -0
  28. package/dist/solana/solana/mailer-client.js.map +1 -0
  29. package/dist/solana/solana/types.d.ts +2 -3
  30. package/dist/solana/solana/types.d.ts.map +1 -1
  31. package/dist/solana/solana/types.js.map +1 -1
  32. package/dist/unified/src/evm/index.d.ts +1 -1
  33. package/dist/unified/src/evm/index.d.ts.map +1 -1
  34. package/dist/unified/src/evm/index.js +4 -4
  35. package/dist/unified/src/evm/index.js.map +1 -1
  36. package/dist/unified/src/evm/mailer-client.d.ts +210 -0
  37. package/dist/unified/src/evm/mailer-client.d.ts.map +1 -0
  38. package/dist/unified/src/evm/mailer-client.js +417 -0
  39. package/dist/unified/src/evm/mailer-client.js.map +1 -0
  40. package/dist/unified/src/react/context/MailerProvider.d.ts +20 -26
  41. package/dist/unified/src/react/context/MailerProvider.d.ts.map +1 -1
  42. package/dist/unified/src/react/context/MailerProvider.js +26 -26
  43. package/dist/unified/src/react/context/MailerProvider.js.map +1 -1
  44. package/dist/unified/src/react/hooks/useMailerMutations.d.ts +192 -225
  45. package/dist/unified/src/react/hooks/useMailerMutations.d.ts.map +1 -1
  46. package/dist/unified/src/react/hooks/useMailerMutations.js +266 -263
  47. package/dist/unified/src/react/hooks/useMailerMutations.js.map +1 -1
  48. package/dist/unified/src/react/hooks/useMailerQueries.d.ts +63 -117
  49. package/dist/unified/src/react/hooks/useMailerQueries.d.ts.map +1 -1
  50. package/dist/unified/src/react/hooks/useMailerQueries.js +104 -239
  51. package/dist/unified/src/react/hooks/useMailerQueries.js.map +1 -1
  52. package/dist/unified/src/react/index.d.ts +3 -5
  53. package/dist/unified/src/react/index.d.ts.map +1 -1
  54. package/dist/unified/src/react/index.js +26 -41
  55. package/dist/unified/src/react/index.js.map +1 -1
  56. package/dist/unified/src/solana/index.d.ts +1 -1
  57. package/dist/unified/src/solana/index.d.ts.map +1 -1
  58. package/dist/unified/src/solana/index.js +1 -4
  59. package/dist/unified/src/solana/index.js.map +1 -1
  60. package/dist/unified/src/solana/mailer-client.d.ts +209 -0
  61. package/dist/unified/src/solana/mailer-client.d.ts.map +1 -0
  62. package/dist/unified/src/solana/mailer-client.js +728 -0
  63. package/dist/unified/src/solana/mailer-client.js.map +1 -0
  64. package/dist/unified/src/solana/types.d.ts +2 -3
  65. package/dist/unified/src/solana/types.d.ts.map +1 -1
  66. package/dist/unified/src/solana/types.js.map +1 -1
  67. package/dist/unified/src/unified/index.d.ts +1 -1
  68. package/dist/unified/src/unified/index.d.ts.map +1 -1
  69. package/dist/unified/src/unified/onchain-mailer-client.d.ts +247 -192
  70. package/dist/unified/src/unified/onchain-mailer-client.d.ts.map +1 -1
  71. package/dist/unified/src/unified/onchain-mailer-client.js +1462 -551
  72. package/dist/unified/src/unified/onchain-mailer-client.js.map +1 -1
  73. package/dist/unified/src/unified/types.d.ts +6 -23
  74. package/dist/unified/src/unified/types.d.ts.map +1 -1
  75. package/dist/unified/src/utils/chain-config.d.ts +2 -4
  76. package/dist/unified/src/utils/chain-config.d.ts.map +1 -1
  77. package/dist/unified/src/utils/chain-config.js +36 -46
  78. package/dist/unified/src/utils/chain-config.js.map +1 -1
  79. package/dist/unified/typechain-types/Mailer.d.ts +10 -128
  80. package/dist/unified/typechain-types/Mailer.d.ts.map +1 -1
  81. package/dist/unified/typechain-types/factories/Mailer__factory.d.ts +1 -145
  82. package/dist/unified/typechain-types/factories/Mailer__factory.d.ts.map +1 -1
  83. package/dist/unified/typechain-types/factories/Mailer__factory.js +1 -184
  84. package/dist/unified/typechain-types/factories/Mailer__factory.js.map +1 -1
  85. package/dist/unified-esm/src/evm/index.d.ts +1 -1
  86. package/dist/unified-esm/src/evm/index.d.ts.map +1 -1
  87. package/dist/unified-esm/src/evm/index.js +2 -2
  88. package/dist/unified-esm/src/evm/index.js.map +1 -1
  89. package/dist/unified-esm/src/evm/mailer-client.d.ts +210 -0
  90. package/dist/unified-esm/src/evm/mailer-client.d.ts.map +1 -0
  91. package/dist/unified-esm/src/evm/mailer-client.js +413 -0
  92. package/dist/unified-esm/src/evm/mailer-client.js.map +1 -0
  93. package/dist/unified-esm/src/react/context/MailerProvider.d.ts +20 -26
  94. package/dist/unified-esm/src/react/context/MailerProvider.d.ts.map +1 -1
  95. package/dist/unified-esm/src/react/context/MailerProvider.js +26 -25
  96. package/dist/unified-esm/src/react/context/MailerProvider.js.map +1 -1
  97. package/dist/unified-esm/src/react/hooks/useMailerMutations.d.ts +192 -225
  98. package/dist/unified-esm/src/react/hooks/useMailerMutations.d.ts.map +1 -1
  99. package/dist/unified-esm/src/react/hooks/useMailerMutations.js +262 -254
  100. package/dist/unified-esm/src/react/hooks/useMailerMutations.js.map +1 -1
  101. package/dist/unified-esm/src/react/hooks/useMailerQueries.d.ts +63 -117
  102. package/dist/unified-esm/src/react/hooks/useMailerQueries.d.ts.map +1 -1
  103. package/dist/unified-esm/src/react/hooks/useMailerQueries.js +102 -232
  104. package/dist/unified-esm/src/react/hooks/useMailerQueries.js.map +1 -1
  105. package/dist/unified-esm/src/react/index.d.ts +3 -5
  106. package/dist/unified-esm/src/react/index.d.ts.map +1 -1
  107. package/dist/unified-esm/src/react/index.js +5 -9
  108. package/dist/unified-esm/src/react/index.js.map +1 -1
  109. package/dist/unified-esm/src/solana/index.d.ts +1 -1
  110. package/dist/unified-esm/src/solana/index.d.ts.map +1 -1
  111. package/dist/unified-esm/src/solana/index.js +1 -2
  112. package/dist/unified-esm/src/solana/index.js.map +1 -1
  113. package/dist/unified-esm/src/solana/mailer-client.d.ts +209 -0
  114. package/dist/unified-esm/src/solana/mailer-client.d.ts.map +1 -0
  115. package/dist/unified-esm/src/solana/mailer-client.js +724 -0
  116. package/dist/unified-esm/src/solana/mailer-client.js.map +1 -0
  117. package/dist/unified-esm/src/solana/types.d.ts +2 -3
  118. package/dist/unified-esm/src/solana/types.d.ts.map +1 -1
  119. package/dist/unified-esm/src/solana/types.js.map +1 -1
  120. package/dist/unified-esm/src/unified/index.d.ts +1 -1
  121. package/dist/unified-esm/src/unified/index.d.ts.map +1 -1
  122. package/dist/unified-esm/src/unified/onchain-mailer-client.d.ts +247 -192
  123. package/dist/unified-esm/src/unified/onchain-mailer-client.d.ts.map +1 -1
  124. package/dist/unified-esm/src/unified/onchain-mailer-client.js +1462 -551
  125. package/dist/unified-esm/src/unified/onchain-mailer-client.js.map +1 -1
  126. package/dist/unified-esm/src/unified/types.d.ts +6 -23
  127. package/dist/unified-esm/src/unified/types.d.ts.map +1 -1
  128. package/dist/unified-esm/src/utils/chain-config.d.ts +2 -4
  129. package/dist/unified-esm/src/utils/chain-config.d.ts.map +1 -1
  130. package/dist/unified-esm/src/utils/chain-config.js +35 -46
  131. package/dist/unified-esm/src/utils/chain-config.js.map +1 -1
  132. package/dist/unified-esm/typechain-types/Mailer.d.ts +10 -128
  133. package/dist/unified-esm/typechain-types/Mailer.d.ts.map +1 -1
  134. package/dist/unified-esm/typechain-types/factories/Mailer__factory.d.ts +1 -145
  135. package/dist/unified-esm/typechain-types/factories/Mailer__factory.d.ts.map +1 -1
  136. package/dist/unified-esm/typechain-types/factories/Mailer__factory.js +1 -184
  137. package/dist/unified-esm/typechain-types/factories/Mailer__factory.js.map +1 -1
  138. package/package.json +10 -17
  139. package/programs/mailer/src/lib.rs +145 -764
  140. package/programs/mailer/tests/integration_tests.rs +65 -586
  141. package/typechain-types/Mailer.ts +8 -215
  142. package/typechain-types/factories/Mailer__factory.ts +1 -184
  143. package/dist/evm/src/evm/evm-mailer-client.d.ts +0 -1062
  144. package/dist/evm/src/evm/evm-mailer-client.d.ts.map +0 -1
  145. package/dist/evm/src/evm/evm-mailer-client.js +0 -924
  146. package/dist/evm/src/evm/evm-mailer-client.js.map +0 -1
  147. package/dist/solana/solana/solana-mailer-client.d.ts +0 -209
  148. package/dist/solana/solana/solana-mailer-client.d.ts.map +0 -1
  149. package/dist/solana/solana/solana-mailer-client.js +0 -1004
  150. package/dist/solana/solana/solana-mailer-client.js.map +0 -1
  151. package/dist/unified/src/evm/evm-mailer-client.d.ts +0 -1062
  152. package/dist/unified/src/evm/evm-mailer-client.d.ts.map +0 -1
  153. package/dist/unified/src/evm/evm-mailer-client.js +0 -924
  154. package/dist/unified/src/evm/evm-mailer-client.js.map +0 -1
  155. package/dist/unified/src/solana/solana-mailer-client.d.ts +0 -209
  156. package/dist/unified/src/solana/solana-mailer-client.d.ts.map +0 -1
  157. package/dist/unified/src/solana/solana-mailer-client.js +0 -1004
  158. package/dist/unified/src/solana/solana-mailer-client.js.map +0 -1
  159. package/dist/unified-esm/src/evm/evm-mailer-client.d.ts +0 -1062
  160. package/dist/unified-esm/src/evm/evm-mailer-client.d.ts.map +0 -1
  161. package/dist/unified-esm/src/evm/evm-mailer-client.js +0 -920
  162. package/dist/unified-esm/src/evm/evm-mailer-client.js.map +0 -1
  163. package/dist/unified-esm/src/solana/solana-mailer-client.d.ts +0 -209
  164. package/dist/unified-esm/src/solana/solana-mailer-client.d.ts.map +0 -1
  165. package/dist/unified-esm/src/solana/solana-mailer-client.js +0 -1000
  166. package/dist/unified-esm/src/solana/solana-mailer-client.js.map +0 -1
@@ -1,1062 +0,0 @@
1
- import { Address, Hash, PublicClient, WalletClient } from 'viem';
2
- import { ChainInfo } from '@sudobility/configs';
3
- type RecipientClaim = {
4
- amount: bigint;
5
- expiresAt: bigint;
6
- isExpired: boolean;
7
- };
8
- /**
9
- * Gas estimation options for transactions
10
- */
11
- export interface GasOptions {
12
- /**
13
- * Gas multiplier to apply to estimated gas (e.g., 1.2 for 20% buffer)
14
- * @default 1.2
15
- */
16
- gasMultiplier?: number;
17
- /**
18
- * Maximum gas limit to use (prevents excessive gas usage)
19
- */
20
- maxGasLimit?: bigint;
21
- /**
22
- * Skip gas estimation and use provided gas limit
23
- */
24
- gasLimit?: bigint;
25
- /**
26
- * Max fee per gas for EIP-1559 transactions
27
- */
28
- maxFeePerGas?: bigint;
29
- /**
30
- * Max priority fee per gas for EIP-1559 transactions
31
- */
32
- maxPriorityFeePerGas?: bigint;
33
- }
34
- /**
35
- * Transaction result with gas estimation details
36
- */
37
- export interface TransactionResult {
38
- /**
39
- * Transaction hash
40
- */
41
- hash: Hash;
42
- /**
43
- * Estimated gas used
44
- */
45
- estimatedGas?: bigint;
46
- /**
47
- * Actual gas limit used
48
- */
49
- gasLimit?: bigint;
50
- /**
51
- * Gas actually used by transaction (from receipt)
52
- */
53
- gasUsed?: bigint;
54
- }
55
- /**
56
- * EVM Wallet interface
57
- */
58
- export interface EVMWallet {
59
- walletClient: WalletClient;
60
- publicClient?: PublicClient;
61
- }
62
- /**
63
- * Stateless EVM Mailer client.
64
- * All methods take wallet and chainInfo as parameters.
65
- * No state is stored in the instance.
66
- */
67
- export declare class EVMMailerClient {
68
- static readonly abi: readonly [{
69
- readonly inputs: readonly [{
70
- readonly internalType: "address";
71
- readonly name: "_usdcToken";
72
- readonly type: "address";
73
- }, {
74
- readonly internalType: "address";
75
- readonly name: "_owner";
76
- readonly type: "address";
77
- }];
78
- readonly stateMutability: "nonpayable";
79
- readonly type: "constructor";
80
- }, {
81
- readonly inputs: readonly [];
82
- readonly name: "ClaimPeriodNotExpired";
83
- readonly type: "error";
84
- }, {
85
- readonly inputs: readonly [];
86
- readonly name: "ContractIsPaused";
87
- readonly type: "error";
88
- }, {
89
- readonly inputs: readonly [];
90
- readonly name: "ContractNotPaused";
91
- readonly type: "error";
92
- }, {
93
- readonly inputs: readonly [];
94
- readonly name: "FeePaymentRequired";
95
- readonly type: "error";
96
- }, {
97
- readonly inputs: readonly [];
98
- readonly name: "InvalidAddress";
99
- readonly type: "error";
100
- }, {
101
- readonly inputs: readonly [];
102
- readonly name: "InvalidPercentage";
103
- readonly type: "error";
104
- }, {
105
- readonly inputs: readonly [];
106
- readonly name: "MathOverflow";
107
- readonly type: "error";
108
- }, {
109
- readonly inputs: readonly [];
110
- readonly name: "NoClaimableAmount";
111
- readonly type: "error";
112
- }, {
113
- readonly inputs: readonly [];
114
- readonly name: "OnlyOwner";
115
- readonly type: "error";
116
- }, {
117
- readonly inputs: readonly [];
118
- readonly name: "ReentrancyGuard";
119
- readonly type: "error";
120
- }, {
121
- readonly inputs: readonly [];
122
- readonly name: "TransferFailed";
123
- readonly type: "error";
124
- }, {
125
- readonly inputs: readonly [];
126
- readonly name: "UnpermittedPayer";
127
- readonly type: "error";
128
- }, {
129
- readonly anonymous: false;
130
- readonly inputs: readonly [];
131
- readonly name: "ContractPaused";
132
- readonly type: "event";
133
- }, {
134
- readonly anonymous: false;
135
- readonly inputs: readonly [];
136
- readonly name: "ContractUnpaused";
137
- readonly type: "event";
138
- }, {
139
- readonly anonymous: false;
140
- readonly inputs: readonly [{
141
- readonly indexed: true;
142
- readonly internalType: "address";
143
- readonly name: "account";
144
- readonly type: "address";
145
- }, {
146
- readonly indexed: false;
147
- readonly internalType: "uint256";
148
- readonly name: "percentage";
149
- readonly type: "uint256";
150
- }];
151
- readonly name: "CustomFeePercentageSet";
152
- readonly type: "event";
153
- }, {
154
- readonly anonymous: false;
155
- readonly inputs: readonly [{
156
- readonly indexed: false;
157
- readonly internalType: "uint256";
158
- readonly name: "oldFee";
159
- readonly type: "uint256";
160
- }, {
161
- readonly indexed: false;
162
- readonly internalType: "uint256";
163
- readonly name: "newFee";
164
- readonly type: "uint256";
165
- }];
166
- readonly name: "DelegationFeeUpdated";
167
- readonly type: "event";
168
- }, {
169
- readonly anonymous: false;
170
- readonly inputs: readonly [{
171
- readonly indexed: true;
172
- readonly internalType: "address";
173
- readonly name: "delegator";
174
- readonly type: "address";
175
- }, {
176
- readonly indexed: true;
177
- readonly internalType: "address";
178
- readonly name: "delegate";
179
- readonly type: "address";
180
- }];
181
- readonly name: "DelegationSet";
182
- readonly type: "event";
183
- }, {
184
- readonly anonymous: false;
185
- readonly inputs: readonly [];
186
- readonly name: "EmergencyUnpaused";
187
- readonly type: "event";
188
- }, {
189
- readonly anonymous: false;
190
- readonly inputs: readonly [{
191
- readonly indexed: true;
192
- readonly internalType: "address";
193
- readonly name: "recipient";
194
- readonly type: "address";
195
- }, {
196
- readonly indexed: false;
197
- readonly internalType: "uint256";
198
- readonly name: "amount";
199
- readonly type: "uint256";
200
- }];
201
- readonly name: "ExpiredSharesClaimed";
202
- readonly type: "event";
203
- }, {
204
- readonly anonymous: false;
205
- readonly inputs: readonly [{
206
- readonly indexed: false;
207
- readonly internalType: "uint256";
208
- readonly name: "oldFee";
209
- readonly type: "uint256";
210
- }, {
211
- readonly indexed: false;
212
- readonly internalType: "uint256";
213
- readonly name: "newFee";
214
- readonly type: "uint256";
215
- }];
216
- readonly name: "FeeUpdated";
217
- readonly type: "event";
218
- }, {
219
- readonly anonymous: false;
220
- readonly inputs: readonly [{
221
- readonly indexed: true;
222
- readonly internalType: "address";
223
- readonly name: "recipient";
224
- readonly type: "address";
225
- }, {
226
- readonly indexed: false;
227
- readonly internalType: "uint256";
228
- readonly name: "amount";
229
- readonly type: "uint256";
230
- }];
231
- readonly name: "FundsDistributed";
232
- readonly type: "event";
233
- }, {
234
- readonly anonymous: false;
235
- readonly inputs: readonly [{
236
- readonly indexed: true;
237
- readonly internalType: "address";
238
- readonly name: "from";
239
- readonly type: "address";
240
- }, {
241
- readonly indexed: true;
242
- readonly internalType: "address";
243
- readonly name: "to";
244
- readonly type: "address";
245
- }, {
246
- readonly indexed: false;
247
- readonly internalType: "string";
248
- readonly name: "subject";
249
- readonly type: "string";
250
- }, {
251
- readonly indexed: false;
252
- readonly internalType: "string";
253
- readonly name: "body";
254
- readonly type: "string";
255
- }, {
256
- readonly indexed: false;
257
- readonly internalType: "bool";
258
- readonly name: "revenueShareToReceiver";
259
- readonly type: "bool";
260
- }, {
261
- readonly indexed: false;
262
- readonly internalType: "bool";
263
- readonly name: "resolveSenderToName";
264
- readonly type: "bool";
265
- }];
266
- readonly name: "MailSent";
267
- readonly type: "event";
268
- }, {
269
- readonly anonymous: false;
270
- readonly inputs: readonly [{
271
- readonly indexed: true;
272
- readonly internalType: "address";
273
- readonly name: "from";
274
- readonly type: "address";
275
- }, {
276
- readonly indexed: false;
277
- readonly internalType: "string";
278
- readonly name: "toEmail";
279
- readonly type: "string";
280
- }, {
281
- readonly indexed: false;
282
- readonly internalType: "string";
283
- readonly name: "subject";
284
- readonly type: "string";
285
- }, {
286
- readonly indexed: false;
287
- readonly internalType: "string";
288
- readonly name: "body";
289
- readonly type: "string";
290
- }];
291
- readonly name: "MailSentToEmail";
292
- readonly type: "event";
293
- }, {
294
- readonly anonymous: false;
295
- readonly inputs: readonly [{
296
- readonly indexed: false;
297
- readonly internalType: "uint256";
298
- readonly name: "amount";
299
- readonly type: "uint256";
300
- }];
301
- readonly name: "OwnerClaimed";
302
- readonly type: "event";
303
- }, {
304
- readonly anonymous: false;
305
- readonly inputs: readonly [{
306
- readonly indexed: true;
307
- readonly internalType: "address";
308
- readonly name: "contractAddress";
309
- readonly type: "address";
310
- }, {
311
- readonly indexed: true;
312
- readonly internalType: "address";
313
- readonly name: "wallet";
314
- readonly type: "address";
315
- }];
316
- readonly name: "PermissionGranted";
317
- readonly type: "event";
318
- }, {
319
- readonly anonymous: false;
320
- readonly inputs: readonly [{
321
- readonly indexed: true;
322
- readonly internalType: "address";
323
- readonly name: "contractAddress";
324
- readonly type: "address";
325
- }, {
326
- readonly indexed: true;
327
- readonly internalType: "address";
328
- readonly name: "wallet";
329
- readonly type: "address";
330
- }];
331
- readonly name: "PermissionRevoked";
332
- readonly type: "event";
333
- }, {
334
- readonly anonymous: false;
335
- readonly inputs: readonly [{
336
- readonly indexed: true;
337
- readonly internalType: "address";
338
- readonly name: "from";
339
- readonly type: "address";
340
- }, {
341
- readonly indexed: true;
342
- readonly internalType: "address";
343
- readonly name: "to";
344
- readonly type: "address";
345
- }, {
346
- readonly indexed: true;
347
- readonly internalType: "string";
348
- readonly name: "mailId";
349
- readonly type: "string";
350
- }, {
351
- readonly indexed: false;
352
- readonly internalType: "bool";
353
- readonly name: "revenueShareToReceiver";
354
- readonly type: "bool";
355
- }, {
356
- readonly indexed: false;
357
- readonly internalType: "bool";
358
- readonly name: "resolveSenderToName";
359
- readonly type: "bool";
360
- }];
361
- readonly name: "PreparedMailSent";
362
- readonly type: "event";
363
- }, {
364
- readonly anonymous: false;
365
- readonly inputs: readonly [{
366
- readonly indexed: true;
367
- readonly internalType: "address";
368
- readonly name: "from";
369
- readonly type: "address";
370
- }, {
371
- readonly indexed: false;
372
- readonly internalType: "string";
373
- readonly name: "toEmail";
374
- readonly type: "string";
375
- }, {
376
- readonly indexed: true;
377
- readonly internalType: "string";
378
- readonly name: "mailId";
379
- readonly type: "string";
380
- }];
381
- readonly name: "PreparedMailSentToEmail";
382
- readonly type: "event";
383
- }, {
384
- readonly anonymous: false;
385
- readonly inputs: readonly [{
386
- readonly indexed: true;
387
- readonly internalType: "address";
388
- readonly name: "recipient";
389
- readonly type: "address";
390
- }, {
391
- readonly indexed: false;
392
- readonly internalType: "uint256";
393
- readonly name: "amount";
394
- readonly type: "uint256";
395
- }];
396
- readonly name: "RecipientClaimed";
397
- readonly type: "event";
398
- }, {
399
- readonly anonymous: false;
400
- readonly inputs: readonly [{
401
- readonly indexed: true;
402
- readonly internalType: "address";
403
- readonly name: "recipient";
404
- readonly type: "address";
405
- }, {
406
- readonly indexed: false;
407
- readonly internalType: "uint256";
408
- readonly name: "recipientAmount";
409
- readonly type: "uint256";
410
- }, {
411
- readonly indexed: false;
412
- readonly internalType: "uint256";
413
- readonly name: "ownerAmount";
414
- readonly type: "uint256";
415
- }];
416
- readonly name: "SharesRecorded";
417
- readonly type: "event";
418
- }, {
419
- readonly anonymous: false;
420
- readonly inputs: readonly [{
421
- readonly indexed: true;
422
- readonly internalType: "address";
423
- readonly name: "from";
424
- readonly type: "address";
425
- }, {
426
- readonly indexed: true;
427
- readonly internalType: "address";
428
- readonly name: "to";
429
- readonly type: "address";
430
- }, {
431
- readonly indexed: true;
432
- readonly internalType: "string";
433
- readonly name: "webhookId";
434
- readonly type: "string";
435
- }, {
436
- readonly indexed: false;
437
- readonly internalType: "bool";
438
- readonly name: "revenueShareToReceiver";
439
- readonly type: "bool";
440
- }, {
441
- readonly indexed: false;
442
- readonly internalType: "bool";
443
- readonly name: "resolveSenderToName";
444
- readonly type: "bool";
445
- }];
446
- readonly name: "WebhookMailSent";
447
- readonly type: "event";
448
- }, {
449
- readonly inputs: readonly [];
450
- readonly name: "CLAIM_PERIOD";
451
- readonly outputs: readonly [{
452
- readonly internalType: "uint256";
453
- readonly name: "";
454
- readonly type: "uint256";
455
- }];
456
- readonly stateMutability: "view";
457
- readonly type: "function";
458
- }, {
459
- readonly inputs: readonly [];
460
- readonly name: "OWNER_SHARE";
461
- readonly outputs: readonly [{
462
- readonly internalType: "uint256";
463
- readonly name: "";
464
- readonly type: "uint256";
465
- }];
466
- readonly stateMutability: "view";
467
- readonly type: "function";
468
- }, {
469
- readonly inputs: readonly [];
470
- readonly name: "RECIPIENT_SHARE";
471
- readonly outputs: readonly [{
472
- readonly internalType: "uint256";
473
- readonly name: "";
474
- readonly type: "uint256";
475
- }];
476
- readonly stateMutability: "view";
477
- readonly type: "function";
478
- }, {
479
- readonly inputs: readonly [{
480
- readonly internalType: "address";
481
- readonly name: "recipient";
482
- readonly type: "address";
483
- }];
484
- readonly name: "claimExpiredShares";
485
- readonly outputs: readonly [];
486
- readonly stateMutability: "nonpayable";
487
- readonly type: "function";
488
- }, {
489
- readonly inputs: readonly [];
490
- readonly name: "claimOwnerShare";
491
- readonly outputs: readonly [];
492
- readonly stateMutability: "nonpayable";
493
- readonly type: "function";
494
- }, {
495
- readonly inputs: readonly [];
496
- readonly name: "claimRecipientShare";
497
- readonly outputs: readonly [];
498
- readonly stateMutability: "nonpayable";
499
- readonly type: "function";
500
- }, {
501
- readonly inputs: readonly [{
502
- readonly internalType: "address";
503
- readonly name: "account";
504
- readonly type: "address";
505
- }];
506
- readonly name: "clearCustomFeePercentage";
507
- readonly outputs: readonly [];
508
- readonly stateMutability: "nonpayable";
509
- readonly type: "function";
510
- }, {
511
- readonly inputs: readonly [{
512
- readonly internalType: "address";
513
- readonly name: "";
514
- readonly type: "address";
515
- }];
516
- readonly name: "customFeeDiscount";
517
- readonly outputs: readonly [{
518
- readonly internalType: "uint256";
519
- readonly name: "";
520
- readonly type: "uint256";
521
- }];
522
- readonly stateMutability: "view";
523
- readonly type: "function";
524
- }, {
525
- readonly inputs: readonly [{
526
- readonly internalType: "address";
527
- readonly name: "delegate";
528
- readonly type: "address";
529
- }];
530
- readonly name: "delegateTo";
531
- readonly outputs: readonly [];
532
- readonly stateMutability: "nonpayable";
533
- readonly type: "function";
534
- }, {
535
- readonly inputs: readonly [];
536
- readonly name: "delegationFee";
537
- readonly outputs: readonly [{
538
- readonly internalType: "uint256";
539
- readonly name: "";
540
- readonly type: "uint256";
541
- }];
542
- readonly stateMutability: "view";
543
- readonly type: "function";
544
- }, {
545
- readonly inputs: readonly [{
546
- readonly internalType: "address";
547
- readonly name: "recipient";
548
- readonly type: "address";
549
- }];
550
- readonly name: "distributeClaimableFunds";
551
- readonly outputs: readonly [];
552
- readonly stateMutability: "nonpayable";
553
- readonly type: "function";
554
- }, {
555
- readonly inputs: readonly [];
556
- readonly name: "emergencyUnpause";
557
- readonly outputs: readonly [];
558
- readonly stateMutability: "nonpayable";
559
- readonly type: "function";
560
- }, {
561
- readonly inputs: readonly [{
562
- readonly internalType: "address";
563
- readonly name: "account";
564
- readonly type: "address";
565
- }];
566
- readonly name: "getCustomFeePercentage";
567
- readonly outputs: readonly [{
568
- readonly internalType: "uint256";
569
- readonly name: "";
570
- readonly type: "uint256";
571
- }];
572
- readonly stateMutability: "view";
573
- readonly type: "function";
574
- }, {
575
- readonly inputs: readonly [];
576
- readonly name: "getDelegationFee";
577
- readonly outputs: readonly [{
578
- readonly internalType: "uint256";
579
- readonly name: "";
580
- readonly type: "uint256";
581
- }];
582
- readonly stateMutability: "view";
583
- readonly type: "function";
584
- }, {
585
- readonly inputs: readonly [];
586
- readonly name: "getFee";
587
- readonly outputs: readonly [{
588
- readonly internalType: "uint256";
589
- readonly name: "";
590
- readonly type: "uint256";
591
- }];
592
- readonly stateMutability: "view";
593
- readonly type: "function";
594
- }, {
595
- readonly inputs: readonly [];
596
- readonly name: "getOwnerClaimable";
597
- readonly outputs: readonly [{
598
- readonly internalType: "uint256";
599
- readonly name: "";
600
- readonly type: "uint256";
601
- }];
602
- readonly stateMutability: "view";
603
- readonly type: "function";
604
- }, {
605
- readonly inputs: readonly [{
606
- readonly internalType: "address";
607
- readonly name: "recipient";
608
- readonly type: "address";
609
- }];
610
- readonly name: "getRecipientClaimable";
611
- readonly outputs: readonly [{
612
- readonly internalType: "uint256";
613
- readonly name: "amount";
614
- readonly type: "uint256";
615
- }, {
616
- readonly internalType: "uint256";
617
- readonly name: "expiresAt";
618
- readonly type: "uint256";
619
- }, {
620
- readonly internalType: "bool";
621
- readonly name: "isExpired";
622
- readonly type: "bool";
623
- }];
624
- readonly stateMutability: "view";
625
- readonly type: "function";
626
- }, {
627
- readonly inputs: readonly [];
628
- readonly name: "isPaused";
629
- readonly outputs: readonly [{
630
- readonly internalType: "bool";
631
- readonly name: "";
632
- readonly type: "bool";
633
- }];
634
- readonly stateMutability: "view";
635
- readonly type: "function";
636
- }, {
637
- readonly inputs: readonly [];
638
- readonly name: "owner";
639
- readonly outputs: readonly [{
640
- readonly internalType: "address";
641
- readonly name: "";
642
- readonly type: "address";
643
- }];
644
- readonly stateMutability: "view";
645
- readonly type: "function";
646
- }, {
647
- readonly inputs: readonly [];
648
- readonly name: "ownerClaimable";
649
- readonly outputs: readonly [{
650
- readonly internalType: "uint256";
651
- readonly name: "";
652
- readonly type: "uint256";
653
- }];
654
- readonly stateMutability: "view";
655
- readonly type: "function";
656
- }, {
657
- readonly inputs: readonly [];
658
- readonly name: "pause";
659
- readonly outputs: readonly [];
660
- readonly stateMutability: "nonpayable";
661
- readonly type: "function";
662
- }, {
663
- readonly inputs: readonly [];
664
- readonly name: "paused";
665
- readonly outputs: readonly [{
666
- readonly internalType: "bool";
667
- readonly name: "";
668
- readonly type: "bool";
669
- }];
670
- readonly stateMutability: "view";
671
- readonly type: "function";
672
- }, {
673
- readonly inputs: readonly [{
674
- readonly internalType: "address";
675
- readonly name: "";
676
- readonly type: "address";
677
- }, {
678
- readonly internalType: "address";
679
- readonly name: "";
680
- readonly type: "address";
681
- }];
682
- readonly name: "permissions";
683
- readonly outputs: readonly [{
684
- readonly internalType: "bool";
685
- readonly name: "";
686
- readonly type: "bool";
687
- }];
688
- readonly stateMutability: "view";
689
- readonly type: "function";
690
- }, {
691
- readonly inputs: readonly [{
692
- readonly internalType: "address";
693
- readonly name: "";
694
- readonly type: "address";
695
- }];
696
- readonly name: "recipientClaims";
697
- readonly outputs: readonly [{
698
- readonly internalType: "uint256";
699
- readonly name: "amount";
700
- readonly type: "uint256";
701
- }, {
702
- readonly internalType: "uint256";
703
- readonly name: "timestamp";
704
- readonly type: "uint256";
705
- }];
706
- readonly stateMutability: "view";
707
- readonly type: "function";
708
- }, {
709
- readonly inputs: readonly [{
710
- readonly internalType: "address";
711
- readonly name: "delegatingAddress";
712
- readonly type: "address";
713
- }];
714
- readonly name: "rejectDelegation";
715
- readonly outputs: readonly [];
716
- readonly stateMutability: "nonpayable";
717
- readonly type: "function";
718
- }, {
719
- readonly inputs: readonly [{
720
- readonly internalType: "address";
721
- readonly name: "contractAddress";
722
- readonly type: "address";
723
- }];
724
- readonly name: "removePermission";
725
- readonly outputs: readonly [];
726
- readonly stateMutability: "nonpayable";
727
- readonly type: "function";
728
- }, {
729
- readonly inputs: readonly [{
730
- readonly internalType: "address";
731
- readonly name: "to";
732
- readonly type: "address";
733
- }, {
734
- readonly internalType: "string";
735
- readonly name: "subject";
736
- readonly type: "string";
737
- }, {
738
- readonly internalType: "string";
739
- readonly name: "body";
740
- readonly type: "string";
741
- }, {
742
- readonly internalType: "address";
743
- readonly name: "payer";
744
- readonly type: "address";
745
- }, {
746
- readonly internalType: "bool";
747
- readonly name: "revenueShareToReceiver";
748
- readonly type: "bool";
749
- }, {
750
- readonly internalType: "bool";
751
- readonly name: "resolveSenderToName";
752
- readonly type: "bool";
753
- }];
754
- readonly name: "send";
755
- readonly outputs: readonly [];
756
- readonly stateMutability: "nonpayable";
757
- readonly type: "function";
758
- }, {
759
- readonly inputs: readonly [];
760
- readonly name: "sendFee";
761
- readonly outputs: readonly [{
762
- readonly internalType: "uint256";
763
- readonly name: "";
764
- readonly type: "uint256";
765
- }];
766
- readonly stateMutability: "view";
767
- readonly type: "function";
768
- }, {
769
- readonly inputs: readonly [{
770
- readonly internalType: "address";
771
- readonly name: "to";
772
- readonly type: "address";
773
- }, {
774
- readonly internalType: "string";
775
- readonly name: "mailId";
776
- readonly type: "string";
777
- }, {
778
- readonly internalType: "address";
779
- readonly name: "payer";
780
- readonly type: "address";
781
- }, {
782
- readonly internalType: "bool";
783
- readonly name: "revenueShareToReceiver";
784
- readonly type: "bool";
785
- }, {
786
- readonly internalType: "bool";
787
- readonly name: "resolveSenderToName";
788
- readonly type: "bool";
789
- }];
790
- readonly name: "sendPrepared";
791
- readonly outputs: readonly [];
792
- readonly stateMutability: "nonpayable";
793
- readonly type: "function";
794
- }, {
795
- readonly inputs: readonly [{
796
- readonly internalType: "string";
797
- readonly name: "toEmail";
798
- readonly type: "string";
799
- }, {
800
- readonly internalType: "string";
801
- readonly name: "mailId";
802
- readonly type: "string";
803
- }, {
804
- readonly internalType: "address";
805
- readonly name: "payer";
806
- readonly type: "address";
807
- }];
808
- readonly name: "sendPreparedToEmailAddress";
809
- readonly outputs: readonly [];
810
- readonly stateMutability: "nonpayable";
811
- readonly type: "function";
812
- }, {
813
- readonly inputs: readonly [{
814
- readonly internalType: "address";
815
- readonly name: "to";
816
- readonly type: "address";
817
- }, {
818
- readonly internalType: "string";
819
- readonly name: "webhookId";
820
- readonly type: "string";
821
- }, {
822
- readonly internalType: "address";
823
- readonly name: "payer";
824
- readonly type: "address";
825
- }, {
826
- readonly internalType: "bool";
827
- readonly name: "revenueShareToReceiver";
828
- readonly type: "bool";
829
- }, {
830
- readonly internalType: "bool";
831
- readonly name: "resolveSenderToName";
832
- readonly type: "bool";
833
- }];
834
- readonly name: "sendThroughWebhook";
835
- readonly outputs: readonly [];
836
- readonly stateMutability: "nonpayable";
837
- readonly type: "function";
838
- }, {
839
- readonly inputs: readonly [{
840
- readonly internalType: "string";
841
- readonly name: "toEmail";
842
- readonly type: "string";
843
- }, {
844
- readonly internalType: "string";
845
- readonly name: "subject";
846
- readonly type: "string";
847
- }, {
848
- readonly internalType: "string";
849
- readonly name: "body";
850
- readonly type: "string";
851
- }, {
852
- readonly internalType: "address";
853
- readonly name: "payer";
854
- readonly type: "address";
855
- }];
856
- readonly name: "sendToEmailAddress";
857
- readonly outputs: readonly [];
858
- readonly stateMutability: "nonpayable";
859
- readonly type: "function";
860
- }, {
861
- readonly inputs: readonly [{
862
- readonly internalType: "address";
863
- readonly name: "account";
864
- readonly type: "address";
865
- }, {
866
- readonly internalType: "uint256";
867
- readonly name: "percentage";
868
- readonly type: "uint256";
869
- }];
870
- readonly name: "setCustomFeePercentage";
871
- readonly outputs: readonly [];
872
- readonly stateMutability: "nonpayable";
873
- readonly type: "function";
874
- }, {
875
- readonly inputs: readonly [{
876
- readonly internalType: "uint256";
877
- readonly name: "usdcAmount";
878
- readonly type: "uint256";
879
- }];
880
- readonly name: "setDelegationFee";
881
- readonly outputs: readonly [];
882
- readonly stateMutability: "nonpayable";
883
- readonly type: "function";
884
- }, {
885
- readonly inputs: readonly [{
886
- readonly internalType: "uint256";
887
- readonly name: "usdcAmount";
888
- readonly type: "uint256";
889
- }];
890
- readonly name: "setFee";
891
- readonly outputs: readonly [];
892
- readonly stateMutability: "nonpayable";
893
- readonly type: "function";
894
- }, {
895
- readonly inputs: readonly [{
896
- readonly internalType: "address";
897
- readonly name: "contractAddress";
898
- readonly type: "address";
899
- }];
900
- readonly name: "setPermission";
901
- readonly outputs: readonly [];
902
- readonly stateMutability: "nonpayable";
903
- readonly type: "function";
904
- }, {
905
- readonly inputs: readonly [];
906
- readonly name: "unpause";
907
- readonly outputs: readonly [];
908
- readonly stateMutability: "nonpayable";
909
- readonly type: "function";
910
- }, {
911
- readonly inputs: readonly [];
912
- readonly name: "usdcToken";
913
- readonly outputs: readonly [{
914
- readonly internalType: "contract IERC20";
915
- readonly name: "";
916
- readonly type: "address";
917
- }];
918
- readonly stateMutability: "view";
919
- readonly type: "function";
920
- }];
921
- static readonly bytecode: `0x${string}`;
922
- private readonly defaultGasMultiplier;
923
- private readonly defaultGasLimits;
924
- /**
925
- * Ensure publicClient is provided
926
- */
927
- private ensurePublicClient;
928
- /**
929
- * Switch chain if needed for EVM wallet
930
- */
931
- private switchChainIfNeeded;
932
- /**
933
- * Helper method to estimate gas for a transaction with optional buffer
934
- */
935
- private estimateGasWithBuffer;
936
- /**
937
- * Helper method to build transaction parameters with gas options
938
- */
939
- private buildTxParams;
940
- /**
941
- * Deploy a fresh Mailer contract instance
942
- */
943
- deploy(connectedWallet: EVMWallet, chainInfo: ChainInfo, ownerAddress: string | Address, gasOptions?: GasOptions): Promise<TransactionResult>;
944
- /**
945
- * Core message send with explicit payer control
946
- */
947
- send(connectedWallet: EVMWallet, chainInfo: ChainInfo, to: Address | string, subject: string, body: string, payer: Address | string, revenueShareToReceiver: boolean, resolveSenderToName: boolean, gasOptions?: GasOptions): Promise<TransactionResult>;
948
- /**
949
- * Send a prepared message
950
- */
951
- sendPrepared(connectedWallet: EVMWallet, chainInfo: ChainInfo, to: Address | string, mailId: string, payer: Address | string, revenueShareToReceiver: boolean, resolveSenderToName: boolean, gasOptions?: GasOptions): Promise<TransactionResult>;
952
- /**
953
- * Send through webhook
954
- */
955
- sendThroughWebhook(connectedWallet: EVMWallet, chainInfo: ChainInfo, to: Address | string, webhookId: string, payer: Address | string, revenueShareToReceiver: boolean, resolveSenderToName: boolean, gasOptions?: GasOptions): Promise<TransactionResult>;
956
- /**
957
- * Send to email address
958
- */
959
- sendToEmailAddress(connectedWallet: EVMWallet, chainInfo: ChainInfo, toEmail: string, subject: string, body: string, payer: Address | string, gasOptions?: GasOptions): Promise<TransactionResult>;
960
- /**
961
- * Send prepared to email address
962
- */
963
- sendPreparedToEmailAddress(connectedWallet: EVMWallet, chainInfo: ChainInfo, toEmail: string, mailId: string, payer: Address | string, gasOptions?: GasOptions): Promise<TransactionResult>;
964
- /**
965
- * Get the current send fee
966
- */
967
- getSendFee(chainInfo: ChainInfo, publicClient?: PublicClient): Promise<bigint>;
968
- /**
969
- * Set the send fee (owner only)
970
- */
971
- setFee(connectedWallet: EVMWallet, chainInfo: ChainInfo, usdcAmount: number | bigint, gasOptions?: GasOptions): Promise<TransactionResult>;
972
- /**
973
- * Get USDC token address
974
- */
975
- getUsdcToken(chainInfo: ChainInfo, publicClient?: PublicClient): Promise<Address>;
976
- /**
977
- * Get contract owner
978
- */
979
- getOwner(chainInfo: ChainInfo, publicClient?: PublicClient): Promise<Address>;
980
- /**
981
- * Claim recipient share
982
- */
983
- claimRecipientShare(connectedWallet: EVMWallet, chainInfo: ChainInfo, gasOptions?: GasOptions): Promise<TransactionResult>;
984
- /**
985
- * Claim owner share (owner only)
986
- */
987
- claimOwnerShare(connectedWallet: EVMWallet, chainInfo: ChainInfo, gasOptions?: GasOptions): Promise<TransactionResult>;
988
- /**
989
- * Claim expired shares (owner only)
990
- */
991
- claimExpiredShares(connectedWallet: EVMWallet, chainInfo: ChainInfo, recipient: Address | string, gasOptions?: GasOptions): Promise<TransactionResult>;
992
- /**
993
- * Get recipient claimable info
994
- */
995
- getRecipientClaimable(recipient: Address | string, chainInfo: ChainInfo, publicClient?: PublicClient): Promise<RecipientClaim>;
996
- /**
997
- * Get owner claimable amount
998
- */
999
- getOwnerClaimable(chainInfo: ChainInfo, publicClient?: PublicClient): Promise<bigint>;
1000
- /**
1001
- * Delegate to another address
1002
- */
1003
- delegateTo(connectedWallet: EVMWallet, chainInfo: ChainInfo, delegate: Address | string | null, gasOptions?: GasOptions): Promise<TransactionResult>;
1004
- /**
1005
- * Reject delegation
1006
- */
1007
- rejectDelegation(connectedWallet: EVMWallet, chainInfo: ChainInfo, delegatingAddress: Address | string, gasOptions?: GasOptions): Promise<TransactionResult>;
1008
- /**
1009
- * Get delegation fee
1010
- */
1011
- getDelegationFee(chainInfo: ChainInfo, publicClient?: PublicClient): Promise<bigint>;
1012
- /**
1013
- * Set delegation fee (owner only)
1014
- */
1015
- setDelegationFee(connectedWallet: EVMWallet, chainInfo: ChainInfo, usdcAmount: number | bigint, gasOptions?: GasOptions): Promise<TransactionResult>;
1016
- /**
1017
- * Set custom fee percentage
1018
- */
1019
- setCustomFeePercentage(connectedWallet: EVMWallet, chainInfo: ChainInfo, account: Address | string, percentage: number, gasOptions?: GasOptions): Promise<TransactionResult>;
1020
- /**
1021
- * Clear custom fee percentage
1022
- */
1023
- clearCustomFeePercentage(connectedWallet: EVMWallet, chainInfo: ChainInfo, account: Address | string, gasOptions?: GasOptions): Promise<TransactionResult>;
1024
- /**
1025
- * Get custom fee percentage
1026
- */
1027
- getCustomFeePercentage(chainInfo: ChainInfo, account: Address | string, publicClient?: PublicClient): Promise<number>;
1028
- /**
1029
- * Set permission for a contract to use caller's USDC for sending messages
1030
- */
1031
- setPermission(connectedWallet: EVMWallet, chainInfo: ChainInfo, contractAddress: Address | string, gasOptions?: GasOptions): Promise<TransactionResult>;
1032
- /**
1033
- * Remove permission
1034
- */
1035
- removePermission(connectedWallet: EVMWallet, chainInfo: ChainInfo, contractAddress: Address | string, gasOptions?: GasOptions): Promise<TransactionResult>;
1036
- /**
1037
- * Check if permission exists
1038
- */
1039
- hasPermission(contractAddress: Address | string, wallet: Address | string, chainInfo: ChainInfo, publicClient?: PublicClient): Promise<boolean>;
1040
- /**
1041
- * Pause the contract (owner only)
1042
- */
1043
- pause(connectedWallet: EVMWallet, chainInfo: ChainInfo, gasOptions?: GasOptions): Promise<TransactionResult>;
1044
- /**
1045
- * Unpause the contract (owner only)
1046
- */
1047
- unpause(connectedWallet: EVMWallet, chainInfo: ChainInfo, gasOptions?: GasOptions): Promise<TransactionResult>;
1048
- /**
1049
- * Emergency unpause (owner only)
1050
- */
1051
- emergencyUnpause(connectedWallet: EVMWallet, chainInfo: ChainInfo, gasOptions?: GasOptions): Promise<TransactionResult>;
1052
- /**
1053
- * Check if contract is paused
1054
- */
1055
- isPaused(chainInfo: ChainInfo, publicClient?: PublicClient): Promise<boolean>;
1056
- /**
1057
- * Distribute claimable funds when paused (anyone can call)
1058
- */
1059
- distributeClaimableFunds(connectedWallet: EVMWallet, chainInfo: ChainInfo, recipient: Address | string, gasOptions?: GasOptions): Promise<TransactionResult>;
1060
- }
1061
- export {};
1062
- //# sourceMappingURL=evm-mailer-client.d.ts.map