@sudobility/contracts 0.14.0 → 1.9.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/README.md +2 -3
- package/artifacts/contracts/Mailer.sol/Mailer.dbg.json +1 -1
- package/artifacts/contracts/Mailer.sol/Mailer.json +2 -278
- package/artifacts/contracts/MockUSDC.sol/MockUSDC.dbg.json +1 -1
- package/artifacts/contracts/interfaces/IERC20.sol/IERC20.dbg.json +1 -1
- package/dist/evm/src/evm/index.d.ts +1 -1
- package/dist/evm/src/evm/index.d.ts.map +1 -1
- package/dist/evm/src/evm/index.js +1 -1
- package/dist/evm/src/evm/index.js.map +1 -1
- package/dist/evm/src/evm/mailer-client.d.ts +180 -936
- package/dist/evm/src/evm/mailer-client.d.ts.map +1 -1
- package/dist/evm/src/evm/mailer-client.js +249 -451
- package/dist/evm/src/evm/mailer-client.js.map +1 -1
- package/dist/evm/typechain-types/Mailer.d.ts +10 -177
- package/dist/evm/typechain-types/Mailer.d.ts.map +1 -1
- package/dist/evm/typechain-types/factories/Mailer__factory.d.ts +1 -216
- package/dist/evm/typechain-types/factories/Mailer__factory.d.ts.map +1 -1
- package/dist/evm/typechain-types/factories/Mailer__factory.js +1 -277
- package/dist/evm/typechain-types/factories/Mailer__factory.js.map +1 -1
- package/dist/solana/solana/index.d.ts +1 -1
- package/dist/solana/solana/index.d.ts.map +1 -1
- package/dist/solana/solana/index.js +1 -3
- package/dist/solana/solana/index.js.map +1 -1
- package/dist/solana/solana/mailer-client.d.ts +18 -91
- package/dist/solana/solana/mailer-client.d.ts.map +1 -1
- package/dist/solana/solana/mailer-client.js +55 -316
- package/dist/solana/solana/mailer-client.js.map +1 -1
- package/dist/unified/src/evm/index.d.ts +1 -1
- package/dist/unified/src/evm/index.d.ts.map +1 -1
- package/dist/unified/src/evm/index.js +1 -1
- package/dist/unified/src/evm/index.js.map +1 -1
- package/dist/unified/src/evm/mailer-client.d.ts +180 -936
- package/dist/unified/src/evm/mailer-client.d.ts.map +1 -1
- package/dist/unified/src/evm/mailer-client.js +249 -451
- package/dist/unified/src/evm/mailer-client.js.map +1 -1
- package/dist/unified/src/react/hooks/useMailerMutations.d.ts +1 -1
- package/dist/unified/src/react/hooks/useMailerMutations.js +1 -1
- package/dist/unified/src/solana/index.d.ts +1 -1
- package/dist/unified/src/solana/index.d.ts.map +1 -1
- package/dist/unified/src/solana/index.js +1 -3
- package/dist/unified/src/solana/index.js.map +1 -1
- package/dist/unified/src/solana/mailer-client.d.ts +18 -91
- package/dist/unified/src/solana/mailer-client.d.ts.map +1 -1
- package/dist/unified/src/solana/mailer-client.js +55 -316
- package/dist/unified/src/solana/mailer-client.js.map +1 -1
- package/dist/unified/src/unified/index.d.ts +1 -1
- package/dist/unified/src/unified/index.d.ts.map +1 -1
- package/dist/unified/src/unified/onchain-mailer-client.d.ts +251 -111
- package/dist/unified/src/unified/onchain-mailer-client.d.ts.map +1 -1
- package/dist/unified/src/unified/onchain-mailer-client.js +1375 -744
- package/dist/unified/src/unified/onchain-mailer-client.js.map +1 -1
- package/dist/unified/src/unified/types.d.ts +6 -16
- package/dist/unified/src/unified/types.d.ts.map +1 -1
- package/dist/unified/src/utils/chain-config.d.ts +2 -4
- package/dist/unified/src/utils/chain-config.d.ts.map +1 -1
- package/dist/unified/src/utils/chain-config.js +36 -46
- package/dist/unified/src/utils/chain-config.js.map +1 -1
- package/dist/unified/typechain-types/Mailer.d.ts +10 -177
- package/dist/unified/typechain-types/Mailer.d.ts.map +1 -1
- package/dist/unified/typechain-types/factories/Mailer__factory.d.ts +1 -216
- package/dist/unified/typechain-types/factories/Mailer__factory.d.ts.map +1 -1
- package/dist/unified/typechain-types/factories/Mailer__factory.js +1 -277
- package/dist/unified/typechain-types/factories/Mailer__factory.js.map +1 -1
- package/dist/unified-esm/src/evm/index.d.ts +1 -1
- package/dist/unified-esm/src/evm/index.d.ts.map +1 -1
- package/dist/unified-esm/src/evm/index.js +1 -1
- package/dist/unified-esm/src/evm/index.js.map +1 -1
- package/dist/unified-esm/src/evm/mailer-client.d.ts +180 -936
- package/dist/unified-esm/src/evm/mailer-client.d.ts.map +1 -1
- package/dist/unified-esm/src/evm/mailer-client.js +251 -453
- package/dist/unified-esm/src/evm/mailer-client.js.map +1 -1
- package/dist/unified-esm/src/react/hooks/useMailerMutations.d.ts +1 -1
- package/dist/unified-esm/src/react/hooks/useMailerMutations.js +1 -1
- package/dist/unified-esm/src/solana/index.d.ts +1 -1
- package/dist/unified-esm/src/solana/index.d.ts.map +1 -1
- package/dist/unified-esm/src/solana/index.js +1 -1
- package/dist/unified-esm/src/solana/index.js.map +1 -1
- package/dist/unified-esm/src/solana/mailer-client.d.ts +18 -91
- package/dist/unified-esm/src/solana/mailer-client.d.ts.map +1 -1
- package/dist/unified-esm/src/solana/mailer-client.js +56 -317
- package/dist/unified-esm/src/solana/mailer-client.js.map +1 -1
- package/dist/unified-esm/src/unified/index.d.ts +1 -1
- package/dist/unified-esm/src/unified/index.d.ts.map +1 -1
- package/dist/unified-esm/src/unified/onchain-mailer-client.d.ts +251 -111
- package/dist/unified-esm/src/unified/onchain-mailer-client.d.ts.map +1 -1
- package/dist/unified-esm/src/unified/onchain-mailer-client.js +1379 -748
- package/dist/unified-esm/src/unified/onchain-mailer-client.js.map +1 -1
- package/dist/unified-esm/src/unified/types.d.ts +6 -16
- package/dist/unified-esm/src/unified/types.d.ts.map +1 -1
- package/dist/unified-esm/src/utils/chain-config.d.ts +2 -4
- package/dist/unified-esm/src/utils/chain-config.d.ts.map +1 -1
- package/dist/unified-esm/src/utils/chain-config.js +35 -46
- package/dist/unified-esm/src/utils/chain-config.js.map +1 -1
- package/dist/unified-esm/typechain-types/Mailer.d.ts +10 -177
- package/dist/unified-esm/typechain-types/Mailer.d.ts.map +1 -1
- package/dist/unified-esm/typechain-types/factories/Mailer__factory.d.ts +1 -216
- package/dist/unified-esm/typechain-types/factories/Mailer__factory.d.ts.map +1 -1
- package/dist/unified-esm/typechain-types/factories/Mailer__factory.js +1 -277
- package/dist/unified-esm/typechain-types/factories/Mailer__factory.js.map +1 -1
- package/package.json +9 -20
- package/programs/mailer/src/lib.rs +171 -1026
- package/programs/mailer/tests/integration_tests.rs +65 -586
- package/typechain-types/Mailer.ts +8 -319
- package/typechain-types/factories/Mailer__factory.ts +1 -277
- package/artifacts/contracts/Mailer.sol/Mailer.d.ts +0 -1146
- package/artifacts/contracts/Mailer.sol/artifacts.d.ts +0 -21
- package/artifacts/contracts/MockUSDC.sol/MockUSDC.d.ts +0 -284
- package/artifacts/contracts/MockUSDC.sol/artifacts.d.ts +0 -21
- package/artifacts/contracts/interfaces/IERC20.sol/IERC20.d.ts +0 -157
- package/artifacts/contracts/interfaces/IERC20.sol/artifacts.d.ts +0 -21
|
@@ -32,13 +32,10 @@ export interface MailerInterface extends Interface {
|
|
|
32
32
|
| "claimExpiredShares"
|
|
33
33
|
| "claimOwnerShare"
|
|
34
34
|
| "claimRecipientShare"
|
|
35
|
-
| "clearCustomFeePercentage"
|
|
36
|
-
| "customFeeDiscount"
|
|
37
35
|
| "delegateTo"
|
|
38
36
|
| "delegationFee"
|
|
39
37
|
| "distributeClaimableFunds"
|
|
40
38
|
| "emergencyUnpause"
|
|
41
|
-
| "getCustomFeePercentage"
|
|
42
39
|
| "getDelegationFee"
|
|
43
40
|
| "getFee"
|
|
44
41
|
| "getOwnerClaimable"
|
|
@@ -48,20 +45,15 @@ export interface MailerInterface extends Interface {
|
|
|
48
45
|
| "ownerClaimable"
|
|
49
46
|
| "pause"
|
|
50
47
|
| "paused"
|
|
51
|
-
| "permissions"
|
|
52
48
|
| "recipientClaims"
|
|
53
49
|
| "rejectDelegation"
|
|
54
|
-
| "removePermission"
|
|
55
50
|
| "send"
|
|
56
51
|
| "sendFee"
|
|
57
52
|
| "sendPrepared"
|
|
58
53
|
| "sendPreparedToEmailAddress"
|
|
59
|
-
| "sendThroughWebhook"
|
|
60
54
|
| "sendToEmailAddress"
|
|
61
|
-
| "setCustomFeePercentage"
|
|
62
55
|
| "setDelegationFee"
|
|
63
56
|
| "setFee"
|
|
64
|
-
| "setPermission"
|
|
65
57
|
| "unpause"
|
|
66
58
|
| "usdcToken"
|
|
67
59
|
): FunctionFragment;
|
|
@@ -70,7 +62,6 @@ export interface MailerInterface extends Interface {
|
|
|
70
62
|
nameOrSignatureOrTopic:
|
|
71
63
|
| "ContractPaused"
|
|
72
64
|
| "ContractUnpaused"
|
|
73
|
-
| "CustomFeePercentageSet"
|
|
74
65
|
| "DelegationFeeUpdated"
|
|
75
66
|
| "DelegationSet"
|
|
76
67
|
| "EmergencyUnpaused"
|
|
@@ -80,13 +71,10 @@ export interface MailerInterface extends Interface {
|
|
|
80
71
|
| "MailSent"
|
|
81
72
|
| "MailSentToEmail"
|
|
82
73
|
| "OwnerClaimed"
|
|
83
|
-
| "PermissionGranted"
|
|
84
|
-
| "PermissionRevoked"
|
|
85
74
|
| "PreparedMailSent"
|
|
86
75
|
| "PreparedMailSentToEmail"
|
|
87
76
|
| "RecipientClaimed"
|
|
88
77
|
| "SharesRecorded"
|
|
89
|
-
| "WebhookMailSent"
|
|
90
78
|
): EventFragment;
|
|
91
79
|
|
|
92
80
|
encodeFunctionData(
|
|
@@ -113,14 +101,6 @@ export interface MailerInterface extends Interface {
|
|
|
113
101
|
functionFragment: "claimRecipientShare",
|
|
114
102
|
values?: undefined
|
|
115
103
|
): string;
|
|
116
|
-
encodeFunctionData(
|
|
117
|
-
functionFragment: "clearCustomFeePercentage",
|
|
118
|
-
values: [AddressLike]
|
|
119
|
-
): string;
|
|
120
|
-
encodeFunctionData(
|
|
121
|
-
functionFragment: "customFeeDiscount",
|
|
122
|
-
values: [AddressLike]
|
|
123
|
-
): string;
|
|
124
104
|
encodeFunctionData(
|
|
125
105
|
functionFragment: "delegateTo",
|
|
126
106
|
values: [AddressLike]
|
|
@@ -137,10 +117,6 @@ export interface MailerInterface extends Interface {
|
|
|
137
117
|
functionFragment: "emergencyUnpause",
|
|
138
118
|
values?: undefined
|
|
139
119
|
): string;
|
|
140
|
-
encodeFunctionData(
|
|
141
|
-
functionFragment: "getCustomFeePercentage",
|
|
142
|
-
values: [AddressLike]
|
|
143
|
-
): string;
|
|
144
120
|
encodeFunctionData(
|
|
145
121
|
functionFragment: "getDelegationFee",
|
|
146
122
|
values?: undefined
|
|
@@ -162,10 +138,6 @@ export interface MailerInterface extends Interface {
|
|
|
162
138
|
): string;
|
|
163
139
|
encodeFunctionData(functionFragment: "pause", values?: undefined): string;
|
|
164
140
|
encodeFunctionData(functionFragment: "paused", values?: undefined): string;
|
|
165
|
-
encodeFunctionData(
|
|
166
|
-
functionFragment: "permissions",
|
|
167
|
-
values: [AddressLike, AddressLike]
|
|
168
|
-
): string;
|
|
169
141
|
encodeFunctionData(
|
|
170
142
|
functionFragment: "recipientClaims",
|
|
171
143
|
values: [AddressLike]
|
|
@@ -174,34 +146,22 @@ export interface MailerInterface extends Interface {
|
|
|
174
146
|
functionFragment: "rejectDelegation",
|
|
175
147
|
values: [AddressLike]
|
|
176
148
|
): string;
|
|
177
|
-
encodeFunctionData(
|
|
178
|
-
functionFragment: "removePermission",
|
|
179
|
-
values: [AddressLike]
|
|
180
|
-
): string;
|
|
181
149
|
encodeFunctionData(
|
|
182
150
|
functionFragment: "send",
|
|
183
|
-
values: [AddressLike, string, string,
|
|
151
|
+
values: [AddressLike, string, string, boolean, boolean]
|
|
184
152
|
): string;
|
|
185
153
|
encodeFunctionData(functionFragment: "sendFee", values?: undefined): string;
|
|
186
154
|
encodeFunctionData(
|
|
187
155
|
functionFragment: "sendPrepared",
|
|
188
|
-
values: [AddressLike, string,
|
|
156
|
+
values: [AddressLike, string, boolean, boolean]
|
|
189
157
|
): string;
|
|
190
158
|
encodeFunctionData(
|
|
191
159
|
functionFragment: "sendPreparedToEmailAddress",
|
|
192
|
-
values: [string, string
|
|
193
|
-
): string;
|
|
194
|
-
encodeFunctionData(
|
|
195
|
-
functionFragment: "sendThroughWebhook",
|
|
196
|
-
values: [AddressLike, string, AddressLike, boolean, boolean]
|
|
160
|
+
values: [string, string]
|
|
197
161
|
): string;
|
|
198
162
|
encodeFunctionData(
|
|
199
163
|
functionFragment: "sendToEmailAddress",
|
|
200
|
-
values: [string, string, string
|
|
201
|
-
): string;
|
|
202
|
-
encodeFunctionData(
|
|
203
|
-
functionFragment: "setCustomFeePercentage",
|
|
204
|
-
values: [AddressLike, BigNumberish]
|
|
164
|
+
values: [string, string, string]
|
|
205
165
|
): string;
|
|
206
166
|
encodeFunctionData(
|
|
207
167
|
functionFragment: "setDelegationFee",
|
|
@@ -211,10 +171,6 @@ export interface MailerInterface extends Interface {
|
|
|
211
171
|
functionFragment: "setFee",
|
|
212
172
|
values: [BigNumberish]
|
|
213
173
|
): string;
|
|
214
|
-
encodeFunctionData(
|
|
215
|
-
functionFragment: "setPermission",
|
|
216
|
-
values: [AddressLike]
|
|
217
|
-
): string;
|
|
218
174
|
encodeFunctionData(functionFragment: "unpause", values?: undefined): string;
|
|
219
175
|
encodeFunctionData(functionFragment: "usdcToken", values?: undefined): string;
|
|
220
176
|
|
|
@@ -242,14 +198,6 @@ export interface MailerInterface extends Interface {
|
|
|
242
198
|
functionFragment: "claimRecipientShare",
|
|
243
199
|
data: BytesLike
|
|
244
200
|
): Result;
|
|
245
|
-
decodeFunctionResult(
|
|
246
|
-
functionFragment: "clearCustomFeePercentage",
|
|
247
|
-
data: BytesLike
|
|
248
|
-
): Result;
|
|
249
|
-
decodeFunctionResult(
|
|
250
|
-
functionFragment: "customFeeDiscount",
|
|
251
|
-
data: BytesLike
|
|
252
|
-
): Result;
|
|
253
201
|
decodeFunctionResult(functionFragment: "delegateTo", data: BytesLike): Result;
|
|
254
202
|
decodeFunctionResult(
|
|
255
203
|
functionFragment: "delegationFee",
|
|
@@ -263,10 +211,6 @@ export interface MailerInterface extends Interface {
|
|
|
263
211
|
functionFragment: "emergencyUnpause",
|
|
264
212
|
data: BytesLike
|
|
265
213
|
): Result;
|
|
266
|
-
decodeFunctionResult(
|
|
267
|
-
functionFragment: "getCustomFeePercentage",
|
|
268
|
-
data: BytesLike
|
|
269
|
-
): Result;
|
|
270
214
|
decodeFunctionResult(
|
|
271
215
|
functionFragment: "getDelegationFee",
|
|
272
216
|
data: BytesLike
|
|
@@ -288,10 +232,6 @@ export interface MailerInterface extends Interface {
|
|
|
288
232
|
): Result;
|
|
289
233
|
decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result;
|
|
290
234
|
decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result;
|
|
291
|
-
decodeFunctionResult(
|
|
292
|
-
functionFragment: "permissions",
|
|
293
|
-
data: BytesLike
|
|
294
|
-
): Result;
|
|
295
235
|
decodeFunctionResult(
|
|
296
236
|
functionFragment: "recipientClaims",
|
|
297
237
|
data: BytesLike
|
|
@@ -300,10 +240,6 @@ export interface MailerInterface extends Interface {
|
|
|
300
240
|
functionFragment: "rejectDelegation",
|
|
301
241
|
data: BytesLike
|
|
302
242
|
): Result;
|
|
303
|
-
decodeFunctionResult(
|
|
304
|
-
functionFragment: "removePermission",
|
|
305
|
-
data: BytesLike
|
|
306
|
-
): Result;
|
|
307
243
|
decodeFunctionResult(functionFragment: "send", data: BytesLike): Result;
|
|
308
244
|
decodeFunctionResult(functionFragment: "sendFee", data: BytesLike): Result;
|
|
309
245
|
decodeFunctionResult(
|
|
@@ -314,27 +250,15 @@ export interface MailerInterface extends Interface {
|
|
|
314
250
|
functionFragment: "sendPreparedToEmailAddress",
|
|
315
251
|
data: BytesLike
|
|
316
252
|
): Result;
|
|
317
|
-
decodeFunctionResult(
|
|
318
|
-
functionFragment: "sendThroughWebhook",
|
|
319
|
-
data: BytesLike
|
|
320
|
-
): Result;
|
|
321
253
|
decodeFunctionResult(
|
|
322
254
|
functionFragment: "sendToEmailAddress",
|
|
323
255
|
data: BytesLike
|
|
324
256
|
): Result;
|
|
325
|
-
decodeFunctionResult(
|
|
326
|
-
functionFragment: "setCustomFeePercentage",
|
|
327
|
-
data: BytesLike
|
|
328
|
-
): Result;
|
|
329
257
|
decodeFunctionResult(
|
|
330
258
|
functionFragment: "setDelegationFee",
|
|
331
259
|
data: BytesLike
|
|
332
260
|
): Result;
|
|
333
261
|
decodeFunctionResult(functionFragment: "setFee", data: BytesLike): Result;
|
|
334
|
-
decodeFunctionResult(
|
|
335
|
-
functionFragment: "setPermission",
|
|
336
|
-
data: BytesLike
|
|
337
|
-
): Result;
|
|
338
262
|
decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result;
|
|
339
263
|
decodeFunctionResult(functionFragment: "usdcToken", data: BytesLike): Result;
|
|
340
264
|
}
|
|
@@ -359,19 +283,6 @@ export namespace ContractUnpausedEvent {
|
|
|
359
283
|
export type LogDescription = TypedLogDescription<Event>;
|
|
360
284
|
}
|
|
361
285
|
|
|
362
|
-
export namespace CustomFeePercentageSetEvent {
|
|
363
|
-
export type InputTuple = [account: AddressLike, percentage: BigNumberish];
|
|
364
|
-
export type OutputTuple = [account: string, percentage: bigint];
|
|
365
|
-
export interface OutputObject {
|
|
366
|
-
account: string;
|
|
367
|
-
percentage: bigint;
|
|
368
|
-
}
|
|
369
|
-
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
370
|
-
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
371
|
-
export type Log = TypedEventLog<Event>;
|
|
372
|
-
export type LogDescription = TypedLogDescription<Event>;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
286
|
export namespace DelegationFeeUpdatedEvent {
|
|
376
287
|
export type InputTuple = [oldFee: BigNumberish, newFee: BigNumberish];
|
|
377
288
|
export type OutputTuple = [oldFee: bigint, newFee: bigint];
|
|
@@ -515,32 +426,6 @@ export namespace OwnerClaimedEvent {
|
|
|
515
426
|
export type LogDescription = TypedLogDescription<Event>;
|
|
516
427
|
}
|
|
517
428
|
|
|
518
|
-
export namespace PermissionGrantedEvent {
|
|
519
|
-
export type InputTuple = [contractAddress: AddressLike, wallet: AddressLike];
|
|
520
|
-
export type OutputTuple = [contractAddress: string, wallet: string];
|
|
521
|
-
export interface OutputObject {
|
|
522
|
-
contractAddress: string;
|
|
523
|
-
wallet: string;
|
|
524
|
-
}
|
|
525
|
-
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
526
|
-
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
527
|
-
export type Log = TypedEventLog<Event>;
|
|
528
|
-
export type LogDescription = TypedLogDescription<Event>;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
export namespace PermissionRevokedEvent {
|
|
532
|
-
export type InputTuple = [contractAddress: AddressLike, wallet: AddressLike];
|
|
533
|
-
export type OutputTuple = [contractAddress: string, wallet: string];
|
|
534
|
-
export interface OutputObject {
|
|
535
|
-
contractAddress: string;
|
|
536
|
-
wallet: string;
|
|
537
|
-
}
|
|
538
|
-
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
539
|
-
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
540
|
-
export type Log = TypedEventLog<Event>;
|
|
541
|
-
export type LogDescription = TypedLogDescription<Event>;
|
|
542
|
-
}
|
|
543
|
-
|
|
544
429
|
export namespace PreparedMailSentEvent {
|
|
545
430
|
export type InputTuple = [
|
|
546
431
|
from: AddressLike,
|
|
@@ -618,34 +503,6 @@ export namespace SharesRecordedEvent {
|
|
|
618
503
|
export type LogDescription = TypedLogDescription<Event>;
|
|
619
504
|
}
|
|
620
505
|
|
|
621
|
-
export namespace WebhookMailSentEvent {
|
|
622
|
-
export type InputTuple = [
|
|
623
|
-
from: AddressLike,
|
|
624
|
-
to: AddressLike,
|
|
625
|
-
webhookId: string,
|
|
626
|
-
revenueShareToReceiver: boolean,
|
|
627
|
-
resolveSenderToName: boolean
|
|
628
|
-
];
|
|
629
|
-
export type OutputTuple = [
|
|
630
|
-
from: string,
|
|
631
|
-
to: string,
|
|
632
|
-
webhookId: string,
|
|
633
|
-
revenueShareToReceiver: boolean,
|
|
634
|
-
resolveSenderToName: boolean
|
|
635
|
-
];
|
|
636
|
-
export interface OutputObject {
|
|
637
|
-
from: string;
|
|
638
|
-
to: string;
|
|
639
|
-
webhookId: string;
|
|
640
|
-
revenueShareToReceiver: boolean;
|
|
641
|
-
resolveSenderToName: boolean;
|
|
642
|
-
}
|
|
643
|
-
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
644
|
-
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
645
|
-
export type Log = TypedEventLog<Event>;
|
|
646
|
-
export type LogDescription = TypedLogDescription<Event>;
|
|
647
|
-
}
|
|
648
|
-
|
|
649
506
|
export interface Mailer extends BaseContract {
|
|
650
507
|
connect(runner?: ContractRunner | null): Mailer;
|
|
651
508
|
waitForDeployment(): Promise<this>;
|
|
@@ -705,14 +562,6 @@ export interface Mailer extends BaseContract {
|
|
|
705
562
|
|
|
706
563
|
claimRecipientShare: TypedContractMethod<[], [void], "nonpayable">;
|
|
707
564
|
|
|
708
|
-
clearCustomFeePercentage: TypedContractMethod<
|
|
709
|
-
[account: AddressLike],
|
|
710
|
-
[void],
|
|
711
|
-
"nonpayable"
|
|
712
|
-
>;
|
|
713
|
-
|
|
714
|
-
customFeeDiscount: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
715
|
-
|
|
716
565
|
delegateTo: TypedContractMethod<
|
|
717
566
|
[delegate: AddressLike],
|
|
718
567
|
[void],
|
|
@@ -729,12 +578,6 @@ export interface Mailer extends BaseContract {
|
|
|
729
578
|
|
|
730
579
|
emergencyUnpause: TypedContractMethod<[], [void], "nonpayable">;
|
|
731
580
|
|
|
732
|
-
getCustomFeePercentage: TypedContractMethod<
|
|
733
|
-
[account: AddressLike],
|
|
734
|
-
[bigint],
|
|
735
|
-
"view"
|
|
736
|
-
>;
|
|
737
|
-
|
|
738
581
|
getDelegationFee: TypedContractMethod<[], [bigint], "view">;
|
|
739
582
|
|
|
740
583
|
getFee: TypedContractMethod<[], [bigint], "view">;
|
|
@@ -763,12 +606,6 @@ export interface Mailer extends BaseContract {
|
|
|
763
606
|
|
|
764
607
|
paused: TypedContractMethod<[], [boolean], "view">;
|
|
765
608
|
|
|
766
|
-
permissions: TypedContractMethod<
|
|
767
|
-
[arg0: AddressLike, arg1: AddressLike],
|
|
768
|
-
[boolean],
|
|
769
|
-
"view"
|
|
770
|
-
>;
|
|
771
|
-
|
|
772
609
|
recipientClaims: TypedContractMethod<
|
|
773
610
|
[arg0: AddressLike],
|
|
774
611
|
[[bigint, bigint] & { amount: bigint; timestamp: bigint }],
|
|
@@ -781,18 +618,11 @@ export interface Mailer extends BaseContract {
|
|
|
781
618
|
"nonpayable"
|
|
782
619
|
>;
|
|
783
620
|
|
|
784
|
-
removePermission: TypedContractMethod<
|
|
785
|
-
[contractAddress: AddressLike],
|
|
786
|
-
[void],
|
|
787
|
-
"nonpayable"
|
|
788
|
-
>;
|
|
789
|
-
|
|
790
621
|
send: TypedContractMethod<
|
|
791
622
|
[
|
|
792
623
|
to: AddressLike,
|
|
793
624
|
subject: string,
|
|
794
625
|
body: string,
|
|
795
|
-
payer: AddressLike,
|
|
796
626
|
revenueShareToReceiver: boolean,
|
|
797
627
|
resolveSenderToName: boolean
|
|
798
628
|
],
|
|
@@ -806,7 +636,6 @@ export interface Mailer extends BaseContract {
|
|
|
806
636
|
[
|
|
807
637
|
to: AddressLike,
|
|
808
638
|
mailId: string,
|
|
809
|
-
payer: AddressLike,
|
|
810
639
|
revenueShareToReceiver: boolean,
|
|
811
640
|
resolveSenderToName: boolean
|
|
812
641
|
],
|
|
@@ -815,31 +644,13 @@ export interface Mailer extends BaseContract {
|
|
|
815
644
|
>;
|
|
816
645
|
|
|
817
646
|
sendPreparedToEmailAddress: TypedContractMethod<
|
|
818
|
-
[toEmail: string, mailId: string
|
|
819
|
-
[void],
|
|
820
|
-
"nonpayable"
|
|
821
|
-
>;
|
|
822
|
-
|
|
823
|
-
sendThroughWebhook: TypedContractMethod<
|
|
824
|
-
[
|
|
825
|
-
to: AddressLike,
|
|
826
|
-
webhookId: string,
|
|
827
|
-
payer: AddressLike,
|
|
828
|
-
revenueShareToReceiver: boolean,
|
|
829
|
-
resolveSenderToName: boolean
|
|
830
|
-
],
|
|
647
|
+
[toEmail: string, mailId: string],
|
|
831
648
|
[void],
|
|
832
649
|
"nonpayable"
|
|
833
650
|
>;
|
|
834
651
|
|
|
835
652
|
sendToEmailAddress: TypedContractMethod<
|
|
836
|
-
[toEmail: string, subject: string, body: string
|
|
837
|
-
[void],
|
|
838
|
-
"nonpayable"
|
|
839
|
-
>;
|
|
840
|
-
|
|
841
|
-
setCustomFeePercentage: TypedContractMethod<
|
|
842
|
-
[account: AddressLike, percentage: BigNumberish],
|
|
653
|
+
[toEmail: string, subject: string, body: string],
|
|
843
654
|
[void],
|
|
844
655
|
"nonpayable"
|
|
845
656
|
>;
|
|
@@ -852,12 +663,6 @@ export interface Mailer extends BaseContract {
|
|
|
852
663
|
|
|
853
664
|
setFee: TypedContractMethod<[usdcAmount: BigNumberish], [void], "nonpayable">;
|
|
854
665
|
|
|
855
|
-
setPermission: TypedContractMethod<
|
|
856
|
-
[contractAddress: AddressLike],
|
|
857
|
-
[void],
|
|
858
|
-
"nonpayable"
|
|
859
|
-
>;
|
|
860
|
-
|
|
861
666
|
unpause: TypedContractMethod<[], [void], "nonpayable">;
|
|
862
667
|
|
|
863
668
|
usdcToken: TypedContractMethod<[], [string], "view">;
|
|
@@ -884,12 +689,6 @@ export interface Mailer extends BaseContract {
|
|
|
884
689
|
getFunction(
|
|
885
690
|
nameOrSignature: "claimRecipientShare"
|
|
886
691
|
): TypedContractMethod<[], [void], "nonpayable">;
|
|
887
|
-
getFunction(
|
|
888
|
-
nameOrSignature: "clearCustomFeePercentage"
|
|
889
|
-
): TypedContractMethod<[account: AddressLike], [void], "nonpayable">;
|
|
890
|
-
getFunction(
|
|
891
|
-
nameOrSignature: "customFeeDiscount"
|
|
892
|
-
): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
|
893
692
|
getFunction(
|
|
894
693
|
nameOrSignature: "delegateTo"
|
|
895
694
|
): TypedContractMethod<[delegate: AddressLike], [void], "nonpayable">;
|
|
@@ -902,9 +701,6 @@ export interface Mailer extends BaseContract {
|
|
|
902
701
|
getFunction(
|
|
903
702
|
nameOrSignature: "emergencyUnpause"
|
|
904
703
|
): TypedContractMethod<[], [void], "nonpayable">;
|
|
905
|
-
getFunction(
|
|
906
|
-
nameOrSignature: "getCustomFeePercentage"
|
|
907
|
-
): TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
908
704
|
getFunction(
|
|
909
705
|
nameOrSignature: "getDelegationFee"
|
|
910
706
|
): TypedContractMethod<[], [bigint], "view">;
|
|
@@ -942,13 +738,6 @@ export interface Mailer extends BaseContract {
|
|
|
942
738
|
getFunction(
|
|
943
739
|
nameOrSignature: "paused"
|
|
944
740
|
): TypedContractMethod<[], [boolean], "view">;
|
|
945
|
-
getFunction(
|
|
946
|
-
nameOrSignature: "permissions"
|
|
947
|
-
): TypedContractMethod<
|
|
948
|
-
[arg0: AddressLike, arg1: AddressLike],
|
|
949
|
-
[boolean],
|
|
950
|
-
"view"
|
|
951
|
-
>;
|
|
952
741
|
getFunction(
|
|
953
742
|
nameOrSignature: "recipientClaims"
|
|
954
743
|
): TypedContractMethod<
|
|
@@ -963,9 +752,6 @@ export interface Mailer extends BaseContract {
|
|
|
963
752
|
[void],
|
|
964
753
|
"nonpayable"
|
|
965
754
|
>;
|
|
966
|
-
getFunction(
|
|
967
|
-
nameOrSignature: "removePermission"
|
|
968
|
-
): TypedContractMethod<[contractAddress: AddressLike], [void], "nonpayable">;
|
|
969
755
|
getFunction(
|
|
970
756
|
nameOrSignature: "send"
|
|
971
757
|
): TypedContractMethod<
|
|
@@ -973,7 +759,6 @@ export interface Mailer extends BaseContract {
|
|
|
973
759
|
to: AddressLike,
|
|
974
760
|
subject: string,
|
|
975
761
|
body: string,
|
|
976
|
-
payer: AddressLike,
|
|
977
762
|
revenueShareToReceiver: boolean,
|
|
978
763
|
resolveSenderToName: boolean
|
|
979
764
|
],
|
|
@@ -989,7 +774,6 @@ export interface Mailer extends BaseContract {
|
|
|
989
774
|
[
|
|
990
775
|
to: AddressLike,
|
|
991
776
|
mailId: string,
|
|
992
|
-
payer: AddressLike,
|
|
993
777
|
revenueShareToReceiver: boolean,
|
|
994
778
|
resolveSenderToName: boolean
|
|
995
779
|
],
|
|
@@ -999,34 +783,14 @@ export interface Mailer extends BaseContract {
|
|
|
999
783
|
getFunction(
|
|
1000
784
|
nameOrSignature: "sendPreparedToEmailAddress"
|
|
1001
785
|
): TypedContractMethod<
|
|
1002
|
-
[toEmail: string, mailId: string
|
|
1003
|
-
[void],
|
|
1004
|
-
"nonpayable"
|
|
1005
|
-
>;
|
|
1006
|
-
getFunction(
|
|
1007
|
-
nameOrSignature: "sendThroughWebhook"
|
|
1008
|
-
): TypedContractMethod<
|
|
1009
|
-
[
|
|
1010
|
-
to: AddressLike,
|
|
1011
|
-
webhookId: string,
|
|
1012
|
-
payer: AddressLike,
|
|
1013
|
-
revenueShareToReceiver: boolean,
|
|
1014
|
-
resolveSenderToName: boolean
|
|
1015
|
-
],
|
|
786
|
+
[toEmail: string, mailId: string],
|
|
1016
787
|
[void],
|
|
1017
788
|
"nonpayable"
|
|
1018
789
|
>;
|
|
1019
790
|
getFunction(
|
|
1020
791
|
nameOrSignature: "sendToEmailAddress"
|
|
1021
792
|
): TypedContractMethod<
|
|
1022
|
-
[toEmail: string, subject: string, body: string
|
|
1023
|
-
[void],
|
|
1024
|
-
"nonpayable"
|
|
1025
|
-
>;
|
|
1026
|
-
getFunction(
|
|
1027
|
-
nameOrSignature: "setCustomFeePercentage"
|
|
1028
|
-
): TypedContractMethod<
|
|
1029
|
-
[account: AddressLike, percentage: BigNumberish],
|
|
793
|
+
[toEmail: string, subject: string, body: string],
|
|
1030
794
|
[void],
|
|
1031
795
|
"nonpayable"
|
|
1032
796
|
>;
|
|
@@ -1036,9 +800,6 @@ export interface Mailer extends BaseContract {
|
|
|
1036
800
|
getFunction(
|
|
1037
801
|
nameOrSignature: "setFee"
|
|
1038
802
|
): TypedContractMethod<[usdcAmount: BigNumberish], [void], "nonpayable">;
|
|
1039
|
-
getFunction(
|
|
1040
|
-
nameOrSignature: "setPermission"
|
|
1041
|
-
): TypedContractMethod<[contractAddress: AddressLike], [void], "nonpayable">;
|
|
1042
803
|
getFunction(
|
|
1043
804
|
nameOrSignature: "unpause"
|
|
1044
805
|
): TypedContractMethod<[], [void], "nonpayable">;
|
|
@@ -1060,13 +821,6 @@ export interface Mailer extends BaseContract {
|
|
|
1060
821
|
ContractUnpausedEvent.OutputTuple,
|
|
1061
822
|
ContractUnpausedEvent.OutputObject
|
|
1062
823
|
>;
|
|
1063
|
-
getEvent(
|
|
1064
|
-
key: "CustomFeePercentageSet"
|
|
1065
|
-
): TypedContractEvent<
|
|
1066
|
-
CustomFeePercentageSetEvent.InputTuple,
|
|
1067
|
-
CustomFeePercentageSetEvent.OutputTuple,
|
|
1068
|
-
CustomFeePercentageSetEvent.OutputObject
|
|
1069
|
-
>;
|
|
1070
824
|
getEvent(
|
|
1071
825
|
key: "DelegationFeeUpdated"
|
|
1072
826
|
): TypedContractEvent<
|
|
@@ -1130,20 +884,6 @@ export interface Mailer extends BaseContract {
|
|
|
1130
884
|
OwnerClaimedEvent.OutputTuple,
|
|
1131
885
|
OwnerClaimedEvent.OutputObject
|
|
1132
886
|
>;
|
|
1133
|
-
getEvent(
|
|
1134
|
-
key: "PermissionGranted"
|
|
1135
|
-
): TypedContractEvent<
|
|
1136
|
-
PermissionGrantedEvent.InputTuple,
|
|
1137
|
-
PermissionGrantedEvent.OutputTuple,
|
|
1138
|
-
PermissionGrantedEvent.OutputObject
|
|
1139
|
-
>;
|
|
1140
|
-
getEvent(
|
|
1141
|
-
key: "PermissionRevoked"
|
|
1142
|
-
): TypedContractEvent<
|
|
1143
|
-
PermissionRevokedEvent.InputTuple,
|
|
1144
|
-
PermissionRevokedEvent.OutputTuple,
|
|
1145
|
-
PermissionRevokedEvent.OutputObject
|
|
1146
|
-
>;
|
|
1147
887
|
getEvent(
|
|
1148
888
|
key: "PreparedMailSent"
|
|
1149
889
|
): TypedContractEvent<
|
|
@@ -1172,13 +912,6 @@ export interface Mailer extends BaseContract {
|
|
|
1172
912
|
SharesRecordedEvent.OutputTuple,
|
|
1173
913
|
SharesRecordedEvent.OutputObject
|
|
1174
914
|
>;
|
|
1175
|
-
getEvent(
|
|
1176
|
-
key: "WebhookMailSent"
|
|
1177
|
-
): TypedContractEvent<
|
|
1178
|
-
WebhookMailSentEvent.InputTuple,
|
|
1179
|
-
WebhookMailSentEvent.OutputTuple,
|
|
1180
|
-
WebhookMailSentEvent.OutputObject
|
|
1181
|
-
>;
|
|
1182
915
|
|
|
1183
916
|
filters: {
|
|
1184
917
|
"ContractPaused()": TypedContractEvent<
|
|
@@ -1203,17 +936,6 @@ export interface Mailer extends BaseContract {
|
|
|
1203
936
|
ContractUnpausedEvent.OutputObject
|
|
1204
937
|
>;
|
|
1205
938
|
|
|
1206
|
-
"CustomFeePercentageSet(address,uint256)": TypedContractEvent<
|
|
1207
|
-
CustomFeePercentageSetEvent.InputTuple,
|
|
1208
|
-
CustomFeePercentageSetEvent.OutputTuple,
|
|
1209
|
-
CustomFeePercentageSetEvent.OutputObject
|
|
1210
|
-
>;
|
|
1211
|
-
CustomFeePercentageSet: TypedContractEvent<
|
|
1212
|
-
CustomFeePercentageSetEvent.InputTuple,
|
|
1213
|
-
CustomFeePercentageSetEvent.OutputTuple,
|
|
1214
|
-
CustomFeePercentageSetEvent.OutputObject
|
|
1215
|
-
>;
|
|
1216
|
-
|
|
1217
939
|
"DelegationFeeUpdated(uint256,uint256)": TypedContractEvent<
|
|
1218
940
|
DelegationFeeUpdatedEvent.InputTuple,
|
|
1219
941
|
DelegationFeeUpdatedEvent.OutputTuple,
|
|
@@ -1313,28 +1035,6 @@ export interface Mailer extends BaseContract {
|
|
|
1313
1035
|
OwnerClaimedEvent.OutputObject
|
|
1314
1036
|
>;
|
|
1315
1037
|
|
|
1316
|
-
"PermissionGranted(address,address)": TypedContractEvent<
|
|
1317
|
-
PermissionGrantedEvent.InputTuple,
|
|
1318
|
-
PermissionGrantedEvent.OutputTuple,
|
|
1319
|
-
PermissionGrantedEvent.OutputObject
|
|
1320
|
-
>;
|
|
1321
|
-
PermissionGranted: TypedContractEvent<
|
|
1322
|
-
PermissionGrantedEvent.InputTuple,
|
|
1323
|
-
PermissionGrantedEvent.OutputTuple,
|
|
1324
|
-
PermissionGrantedEvent.OutputObject
|
|
1325
|
-
>;
|
|
1326
|
-
|
|
1327
|
-
"PermissionRevoked(address,address)": TypedContractEvent<
|
|
1328
|
-
PermissionRevokedEvent.InputTuple,
|
|
1329
|
-
PermissionRevokedEvent.OutputTuple,
|
|
1330
|
-
PermissionRevokedEvent.OutputObject
|
|
1331
|
-
>;
|
|
1332
|
-
PermissionRevoked: TypedContractEvent<
|
|
1333
|
-
PermissionRevokedEvent.InputTuple,
|
|
1334
|
-
PermissionRevokedEvent.OutputTuple,
|
|
1335
|
-
PermissionRevokedEvent.OutputObject
|
|
1336
|
-
>;
|
|
1337
|
-
|
|
1338
1038
|
"PreparedMailSent(address,address,string,bool,bool)": TypedContractEvent<
|
|
1339
1039
|
PreparedMailSentEvent.InputTuple,
|
|
1340
1040
|
PreparedMailSentEvent.OutputTuple,
|
|
@@ -1378,16 +1078,5 @@ export interface Mailer extends BaseContract {
|
|
|
1378
1078
|
SharesRecordedEvent.OutputTuple,
|
|
1379
1079
|
SharesRecordedEvent.OutputObject
|
|
1380
1080
|
>;
|
|
1381
|
-
|
|
1382
|
-
"WebhookMailSent(address,address,string,bool,bool)": TypedContractEvent<
|
|
1383
|
-
WebhookMailSentEvent.InputTuple,
|
|
1384
|
-
WebhookMailSentEvent.OutputTuple,
|
|
1385
|
-
WebhookMailSentEvent.OutputObject
|
|
1386
|
-
>;
|
|
1387
|
-
WebhookMailSent: TypedContractEvent<
|
|
1388
|
-
WebhookMailSentEvent.InputTuple,
|
|
1389
|
-
WebhookMailSentEvent.OutputTuple,
|
|
1390
|
-
WebhookMailSentEvent.OutputObject
|
|
1391
|
-
>;
|
|
1392
1081
|
};
|
|
1393
1082
|
}
|