@zkp2p/contracts-v2 0.2.0-rc.5 → 0.2.0-rc.6
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/_cjs/abis/baseStaging/EscrowV2.js +108 -18
- package/_cjs/abis/baseStaging/EscrowV2.json +108 -18
- package/_cjs/abis/baseStaging/OrchestratorV2.js +99 -17
- package/_cjs/abis/baseStaging/OrchestratorV2.json +99 -17
- package/_cjs/abis/baseStaging/SignatureGatingPreIntentHook.js +15 -8
- package/_cjs/abis/baseStaging/SignatureGatingPreIntentHook.json +15 -8
- package/_cjs/addresses/base.js +1 -1
- package/_cjs/addresses/base.json +1 -1
- package/_cjs/addresses/baseStaging.js +4 -4
- package/_cjs/addresses/baseStaging.json +4 -4
- package/_cjs/addresses/index.json +1 -1
- package/_cjs/constants/index.json +1 -1
- package/_cjs/paymentMethods/base.js +1 -1
- package/_cjs/paymentMethods/base.json +1 -1
- package/_cjs/paymentMethods/baseSepolia.js +1 -1
- package/_cjs/paymentMethods/baseSepolia.json +1 -1
- package/_cjs/paymentMethods/baseStaging.js +1 -1
- package/_cjs/paymentMethods/baseStaging.json +1 -1
- package/_cjs/paymentMethods/index.json +1 -1
- package/_cjs/types/contracts/EscrowV2.js +121 -4
- package/_cjs/types/contracts/OrchestratorV2.js +47 -13
- package/_cjs/types/contracts/ProtocolViewerV2.js +15 -6
- package/_cjs/types/contracts/hooks/SignatureGatingPreIntentHook.js +16 -7
- package/_cjs/types/contracts/hooks/WhitelistPreIntentHook.js +16 -7
- package/_cjs/types/contracts/interfaces/IEscrowV2.js +120 -3
- package/_cjs/types/contracts/interfaces/IOrchestratorV2.js +47 -13
- package/_cjs/types/contracts/interfaces/IPreIntentHook.js +16 -7
- package/_cjs/types/contracts/interfaces/IProtocolViewerV2.js +15 -6
- package/_cjs/types/contracts/interfaces/IReferralFee.js +55 -0
- package/_cjs/types/contracts/interfaces/index.js +1 -0
- package/_cjs/types/contracts/lib/ReferralFeeLib.js +55 -0
- package/_cjs/types/contracts/lib/index.js +4 -0
- package/_esm/abis/baseStaging/EscrowV2.js +108 -18
- package/_esm/abis/baseStaging/EscrowV2.json +108 -18
- package/_esm/abis/baseStaging/OrchestratorV2.js +99 -17
- package/_esm/abis/baseStaging/OrchestratorV2.json +99 -17
- package/_esm/abis/baseStaging/SignatureGatingPreIntentHook.js +15 -8
- package/_esm/abis/baseStaging/SignatureGatingPreIntentHook.json +15 -8
- package/_esm/addresses/base.js +1 -1
- package/_esm/addresses/base.json +1 -1
- package/_esm/addresses/baseStaging.js +4 -4
- package/_esm/addresses/baseStaging.json +4 -4
- package/_esm/addresses/index.json +1 -1
- package/_esm/constants/index.json +1 -1
- package/_esm/paymentMethods/base.js +1 -1
- package/_esm/paymentMethods/base.json +1 -1
- package/_esm/paymentMethods/baseSepolia.js +1 -1
- package/_esm/paymentMethods/baseSepolia.json +1 -1
- package/_esm/paymentMethods/baseStaging.js +1 -1
- package/_esm/paymentMethods/baseStaging.json +1 -1
- package/_esm/paymentMethods/index.json +1 -1
- package/_esm/types/contracts/EscrowV2.js +121 -4
- package/_esm/types/contracts/OrchestratorV2.js +47 -13
- package/_esm/types/contracts/ProtocolViewerV2.js +15 -6
- package/_esm/types/contracts/hooks/SignatureGatingPreIntentHook.js +16 -7
- package/_esm/types/contracts/hooks/WhitelistPreIntentHook.js +16 -7
- package/_esm/types/contracts/interfaces/IEscrowV2.js +120 -3
- package/_esm/types/contracts/interfaces/IOrchestratorV2.js +47 -13
- package/_esm/types/contracts/interfaces/IPreIntentHook.js +16 -7
- package/_esm/types/contracts/interfaces/IProtocolViewerV2.js +15 -6
- package/_esm/types/contracts/interfaces/IReferralFee.js +55 -0
- package/_esm/types/contracts/interfaces/index.js +1 -0
- package/_esm/types/contracts/lib/ReferralFeeLib.js +55 -0
- package/_esm/types/contracts/lib/index.js +4 -0
- package/abis/baseStaging/EscrowV2.json +108 -18
- package/abis/baseStaging/OrchestratorV2.json +99 -17
- package/abis/baseStaging/SignatureGatingPreIntentHook.json +15 -8
- package/addresses/base.json +1 -1
- package/addresses/baseStaging.json +4 -4
- package/addresses/index.json +1 -1
- package/constants/index.json +1 -1
- package/package.json +1 -1
- package/paymentMethods/base.json +1 -1
- package/paymentMethods/baseSepolia.json +1 -1
- package/paymentMethods/baseStaging.json +1 -1
- package/paymentMethods/index.json +1 -1
- package/types/contracts/EscrowV2.ts +121 -4
- package/types/contracts/OrchestratorV2.ts +47 -13
- package/types/contracts/ProtocolViewerV2.ts +15 -6
- package/types/contracts/hooks/SignatureGatingPreIntentHook.ts +16 -7
- package/types/contracts/hooks/WhitelistPreIntentHook.ts +16 -7
- package/types/contracts/interfaces/IEscrowV2.ts +120 -3
- package/types/contracts/interfaces/IOrchestratorV2.ts +47 -13
- package/types/contracts/interfaces/IPreIntentHook.ts +16 -7
- package/types/contracts/interfaces/IProtocolViewerV2.ts +15 -6
- package/types/contracts/interfaces/IReferralFee.ts +55 -0
- package/types/contracts/interfaces/index.ts +1 -0
- package/types/contracts/lib/ReferralFeeLib.ts +55 -0
- package/types/contracts/lib/index.ts +4 -0
|
@@ -58,8 +58,7 @@ export declare namespace IOrchestratorV2 {
|
|
|
58
58
|
fiatCurrency: PromiseOrValue<BytesLike>;
|
|
59
59
|
conversionRate: PromiseOrValue<BigNumberish>;
|
|
60
60
|
payeeId: PromiseOrValue<BytesLike>;
|
|
61
|
-
|
|
62
|
-
referrerFee: PromiseOrValue<BigNumberish>;
|
|
61
|
+
referralFees: IReferralFee.ReferralFeeStruct[];
|
|
63
62
|
postIntentHook: PromiseOrValue<string>;
|
|
64
63
|
data: PromiseOrValue<BytesLike>;
|
|
65
64
|
};
|
|
@@ -75,8 +74,7 @@ export declare namespace IOrchestratorV2 {
|
|
|
75
74
|
string,
|
|
76
75
|
BigNumber,
|
|
77
76
|
string,
|
|
78
|
-
|
|
79
|
-
BigNumber,
|
|
77
|
+
IReferralFee.ReferralFeeStructOutput[],
|
|
80
78
|
string,
|
|
81
79
|
string
|
|
82
80
|
] & {
|
|
@@ -90,8 +88,7 @@ export declare namespace IOrchestratorV2 {
|
|
|
90
88
|
fiatCurrency: string;
|
|
91
89
|
conversionRate: BigNumber;
|
|
92
90
|
payeeId: string;
|
|
93
|
-
|
|
94
|
-
referrerFee: BigNumber;
|
|
91
|
+
referralFees: IReferralFee.ReferralFeeStructOutput[];
|
|
95
92
|
postIntentHook: string;
|
|
96
93
|
data: string;
|
|
97
94
|
};
|
|
@@ -104,8 +101,7 @@ export declare namespace IOrchestratorV2 {
|
|
|
104
101
|
paymentMethod: PromiseOrValue<BytesLike>;
|
|
105
102
|
fiatCurrency: PromiseOrValue<BytesLike>;
|
|
106
103
|
conversionRate: PromiseOrValue<BigNumberish>;
|
|
107
|
-
|
|
108
|
-
referrerFee: PromiseOrValue<BigNumberish>;
|
|
104
|
+
referralFees: IReferralFee.ReferralFeeStruct[];
|
|
109
105
|
gatingServiceSignature: PromiseOrValue<BytesLike>;
|
|
110
106
|
signatureExpiration: PromiseOrValue<BigNumberish>;
|
|
111
107
|
postIntentHook: PromiseOrValue<string>;
|
|
@@ -121,8 +117,7 @@ export declare namespace IOrchestratorV2 {
|
|
|
121
117
|
string,
|
|
122
118
|
string,
|
|
123
119
|
BigNumber,
|
|
124
|
-
|
|
125
|
-
BigNumber,
|
|
120
|
+
IReferralFee.ReferralFeeStructOutput[],
|
|
126
121
|
string,
|
|
127
122
|
BigNumber,
|
|
128
123
|
string,
|
|
@@ -136,8 +131,7 @@ export declare namespace IOrchestratorV2 {
|
|
|
136
131
|
paymentMethod: string;
|
|
137
132
|
fiatCurrency: string;
|
|
138
133
|
conversionRate: BigNumber;
|
|
139
|
-
|
|
140
|
-
referrerFee: BigNumber;
|
|
134
|
+
referralFees: IReferralFee.ReferralFeeStructOutput[];
|
|
141
135
|
gatingServiceSignature: string;
|
|
142
136
|
signatureExpiration: BigNumber;
|
|
143
137
|
postIntentHook: string;
|
|
@@ -146,6 +140,18 @@ export declare namespace IOrchestratorV2 {
|
|
|
146
140
|
};
|
|
147
141
|
}
|
|
148
142
|
|
|
143
|
+
export declare namespace IReferralFee {
|
|
144
|
+
export type ReferralFeeStruct = {
|
|
145
|
+
recipient: PromiseOrValue<string>;
|
|
146
|
+
fee: PromiseOrValue<BigNumberish>;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
export type ReferralFeeStructOutput = [string, BigNumber] & {
|
|
150
|
+
recipient: string;
|
|
151
|
+
fee: BigNumber;
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
149
155
|
export interface IOrchestratorV2Interface extends utils.Interface {
|
|
150
156
|
functions: {
|
|
151
157
|
"cancelIntent(bytes32)": FunctionFragment;
|
|
@@ -159,7 +165,7 @@ export interface IOrchestratorV2Interface extends utils.Interface {
|
|
|
159
165
|
"releaseFundsToPayer(bytes32)": FunctionFragment;
|
|
160
166
|
"setDepositPreIntentHook(address,uint256,address)": FunctionFragment;
|
|
161
167
|
"setDepositWhitelistHook(address,uint256,address)": FunctionFragment;
|
|
162
|
-
"signalIntent((address,uint256,uint256,address,bytes32,bytes32,uint256,address,uint256,bytes,uint256,address,bytes,bytes))": FunctionFragment;
|
|
168
|
+
"signalIntent((address,uint256,uint256,address,bytes32,bytes32,uint256,(address,uint256)[],bytes,uint256,address,bytes,bytes))": FunctionFragment;
|
|
163
169
|
};
|
|
164
170
|
|
|
165
171
|
getFunction(
|
|
@@ -289,6 +295,7 @@ export interface IOrchestratorV2Interface extends utils.Interface {
|
|
|
289
295
|
"IntentFulfilled(bytes32,address,uint256,bool)": EventFragment;
|
|
290
296
|
"IntentManagerFeeSnapshotted(bytes32,address,uint256)": EventFragment;
|
|
291
297
|
"IntentPruned(bytes32)": EventFragment;
|
|
298
|
+
"IntentReferralFeeDistributed(bytes32,address,uint256)": EventFragment;
|
|
292
299
|
"IntentSignaled(bytes32,address,uint256,bytes32,address,address,uint256,bytes32,uint256,uint256)": EventFragment;
|
|
293
300
|
"PartialManualReleaseDelayUpdated(uint256)": EventFragment;
|
|
294
301
|
"PaymentVerifierRegistryUpdated(address)": EventFragment;
|
|
@@ -308,6 +315,9 @@ export interface IOrchestratorV2Interface extends utils.Interface {
|
|
|
308
315
|
nameOrSignatureOrTopic: "IntentManagerFeeSnapshotted"
|
|
309
316
|
): EventFragment;
|
|
310
317
|
getEvent(nameOrSignatureOrTopic: "IntentPruned"): EventFragment;
|
|
318
|
+
getEvent(
|
|
319
|
+
nameOrSignatureOrTopic: "IntentReferralFeeDistributed"
|
|
320
|
+
): EventFragment;
|
|
311
321
|
getEvent(nameOrSignatureOrTopic: "IntentSignaled"): EventFragment;
|
|
312
322
|
getEvent(
|
|
313
323
|
nameOrSignatureOrTopic: "PartialManualReleaseDelayUpdated"
|
|
@@ -405,6 +415,19 @@ export type IntentPrunedEvent = TypedEvent<[string], IntentPrunedEventObject>;
|
|
|
405
415
|
|
|
406
416
|
export type IntentPrunedEventFilter = TypedEventFilter<IntentPrunedEvent>;
|
|
407
417
|
|
|
418
|
+
export interface IntentReferralFeeDistributedEventObject {
|
|
419
|
+
intentHash: string;
|
|
420
|
+
feeRecipient: string;
|
|
421
|
+
feeAmount: BigNumber;
|
|
422
|
+
}
|
|
423
|
+
export type IntentReferralFeeDistributedEvent = TypedEvent<
|
|
424
|
+
[string, string, BigNumber],
|
|
425
|
+
IntentReferralFeeDistributedEventObject
|
|
426
|
+
>;
|
|
427
|
+
|
|
428
|
+
export type IntentReferralFeeDistributedEventFilter =
|
|
429
|
+
TypedEventFilter<IntentReferralFeeDistributedEvent>;
|
|
430
|
+
|
|
408
431
|
export interface IntentSignaledEventObject {
|
|
409
432
|
intentHash: string;
|
|
410
433
|
escrow: string;
|
|
@@ -790,6 +813,17 @@ export interface IOrchestratorV2 extends BaseContract {
|
|
|
790
813
|
intentHash?: PromiseOrValue<BytesLike> | null
|
|
791
814
|
): IntentPrunedEventFilter;
|
|
792
815
|
|
|
816
|
+
"IntentReferralFeeDistributed(bytes32,address,uint256)"(
|
|
817
|
+
intentHash?: PromiseOrValue<BytesLike> | null,
|
|
818
|
+
feeRecipient?: PromiseOrValue<string> | null,
|
|
819
|
+
feeAmount?: null
|
|
820
|
+
): IntentReferralFeeDistributedEventFilter;
|
|
821
|
+
IntentReferralFeeDistributed(
|
|
822
|
+
intentHash?: PromiseOrValue<BytesLike> | null,
|
|
823
|
+
feeRecipient?: PromiseOrValue<string> | null,
|
|
824
|
+
feeAmount?: null
|
|
825
|
+
): IntentReferralFeeDistributedEventFilter;
|
|
826
|
+
|
|
793
827
|
"IntentSignaled(bytes32,address,uint256,bytes32,address,address,uint256,bytes32,uint256,uint256)"(
|
|
794
828
|
intentHash?: PromiseOrValue<BytesLike> | null,
|
|
795
829
|
escrow?: PromiseOrValue<string> | null,
|
|
@@ -23,6 +23,18 @@ import type {
|
|
|
23
23
|
PromiseOrValue,
|
|
24
24
|
} from "../../common";
|
|
25
25
|
|
|
26
|
+
export declare namespace IReferralFee {
|
|
27
|
+
export type ReferralFeeStruct = {
|
|
28
|
+
recipient: PromiseOrValue<string>;
|
|
29
|
+
fee: PromiseOrValue<BigNumberish>;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type ReferralFeeStructOutput = [string, BigNumber] & {
|
|
33
|
+
recipient: string;
|
|
34
|
+
fee: BigNumber;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
26
38
|
export declare namespace IPreIntentHook {
|
|
27
39
|
export type PreIntentContextStruct = {
|
|
28
40
|
taker: PromiseOrValue<string>;
|
|
@@ -33,8 +45,7 @@ export declare namespace IPreIntentHook {
|
|
|
33
45
|
paymentMethod: PromiseOrValue<BytesLike>;
|
|
34
46
|
fiatCurrency: PromiseOrValue<BytesLike>;
|
|
35
47
|
conversionRate: PromiseOrValue<BigNumberish>;
|
|
36
|
-
|
|
37
|
-
referrerFee: PromiseOrValue<BigNumberish>;
|
|
48
|
+
referralFees: IReferralFee.ReferralFeeStruct[];
|
|
38
49
|
preIntentHookData: PromiseOrValue<BytesLike>;
|
|
39
50
|
};
|
|
40
51
|
|
|
@@ -47,8 +58,7 @@ export declare namespace IPreIntentHook {
|
|
|
47
58
|
string,
|
|
48
59
|
string,
|
|
49
60
|
BigNumber,
|
|
50
|
-
|
|
51
|
-
BigNumber,
|
|
61
|
+
IReferralFee.ReferralFeeStructOutput[],
|
|
52
62
|
string
|
|
53
63
|
] & {
|
|
54
64
|
taker: string;
|
|
@@ -59,15 +69,14 @@ export declare namespace IPreIntentHook {
|
|
|
59
69
|
paymentMethod: string;
|
|
60
70
|
fiatCurrency: string;
|
|
61
71
|
conversionRate: BigNumber;
|
|
62
|
-
|
|
63
|
-
referrerFee: BigNumber;
|
|
72
|
+
referralFees: IReferralFee.ReferralFeeStructOutput[];
|
|
64
73
|
preIntentHookData: string;
|
|
65
74
|
};
|
|
66
75
|
}
|
|
67
76
|
|
|
68
77
|
export interface IPreIntentHookInterface extends utils.Interface {
|
|
69
78
|
functions: {
|
|
70
|
-
"validateSignalIntent((address,address,uint256,uint256,address,bytes32,bytes32,uint256,address,uint256,bytes))": FunctionFragment;
|
|
79
|
+
"validateSignalIntent((address,address,uint256,uint256,address,bytes32,bytes32,uint256,(address,uint256)[],bytes))": FunctionFragment;
|
|
71
80
|
};
|
|
72
81
|
|
|
73
82
|
getFunction(nameOrSignatureOrTopic: "validateSignalIntent"): FunctionFragment;
|
|
@@ -21,6 +21,18 @@ import type {
|
|
|
21
21
|
PromiseOrValue,
|
|
22
22
|
} from "../../common";
|
|
23
23
|
|
|
24
|
+
export declare namespace IReferralFee {
|
|
25
|
+
export type ReferralFeeStruct = {
|
|
26
|
+
recipient: PromiseOrValue<string>;
|
|
27
|
+
fee: PromiseOrValue<BigNumberish>;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type ReferralFeeStructOutput = [string, BigNumber] & {
|
|
31
|
+
recipient: string;
|
|
32
|
+
fee: BigNumber;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
24
36
|
export declare namespace IOrchestratorV2 {
|
|
25
37
|
export type IntentStruct = {
|
|
26
38
|
owner: PromiseOrValue<string>;
|
|
@@ -33,8 +45,7 @@ export declare namespace IOrchestratorV2 {
|
|
|
33
45
|
fiatCurrency: PromiseOrValue<BytesLike>;
|
|
34
46
|
conversionRate: PromiseOrValue<BigNumberish>;
|
|
35
47
|
payeeId: PromiseOrValue<BytesLike>;
|
|
36
|
-
|
|
37
|
-
referrerFee: PromiseOrValue<BigNumberish>;
|
|
48
|
+
referralFees: IReferralFee.ReferralFeeStruct[];
|
|
38
49
|
postIntentHook: PromiseOrValue<string>;
|
|
39
50
|
data: PromiseOrValue<BytesLike>;
|
|
40
51
|
};
|
|
@@ -50,8 +61,7 @@ export declare namespace IOrchestratorV2 {
|
|
|
50
61
|
string,
|
|
51
62
|
BigNumber,
|
|
52
63
|
string,
|
|
53
|
-
|
|
54
|
-
BigNumber,
|
|
64
|
+
IReferralFee.ReferralFeeStructOutput[],
|
|
55
65
|
string,
|
|
56
66
|
string
|
|
57
67
|
] & {
|
|
@@ -65,8 +75,7 @@ export declare namespace IOrchestratorV2 {
|
|
|
65
75
|
fiatCurrency: string;
|
|
66
76
|
conversionRate: BigNumber;
|
|
67
77
|
payeeId: string;
|
|
68
|
-
|
|
69
|
-
referrerFee: BigNumber;
|
|
78
|
+
referralFees: IReferralFee.ReferralFeeStructOutput[];
|
|
70
79
|
postIntentHook: string;
|
|
71
80
|
data: string;
|
|
72
81
|
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type { BaseContract, Signer, utils } from "ethers";
|
|
5
|
+
|
|
6
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
TypedEventFilter,
|
|
9
|
+
TypedEvent,
|
|
10
|
+
TypedListener,
|
|
11
|
+
OnEvent,
|
|
12
|
+
} from "../../common";
|
|
13
|
+
|
|
14
|
+
export interface IReferralFeeInterface extends utils.Interface {
|
|
15
|
+
functions: {};
|
|
16
|
+
|
|
17
|
+
events: {};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface IReferralFee extends BaseContract {
|
|
21
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
22
|
+
attach(addressOrName: string): this;
|
|
23
|
+
deployed(): Promise<this>;
|
|
24
|
+
|
|
25
|
+
interface: IReferralFeeInterface;
|
|
26
|
+
|
|
27
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
28
|
+
event: TypedEventFilter<TEvent>,
|
|
29
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
30
|
+
toBlock?: string | number | undefined
|
|
31
|
+
): Promise<Array<TEvent>>;
|
|
32
|
+
|
|
33
|
+
listeners<TEvent extends TypedEvent>(
|
|
34
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
35
|
+
): Array<TypedListener<TEvent>>;
|
|
36
|
+
listeners(eventName?: string): Array<Listener>;
|
|
37
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
38
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
39
|
+
): this;
|
|
40
|
+
removeAllListeners(eventName?: string): this;
|
|
41
|
+
off: OnEvent<this>;
|
|
42
|
+
on: OnEvent<this>;
|
|
43
|
+
once: OnEvent<this>;
|
|
44
|
+
removeListener: OnEvent<this>;
|
|
45
|
+
|
|
46
|
+
functions: {};
|
|
47
|
+
|
|
48
|
+
callStatic: {};
|
|
49
|
+
|
|
50
|
+
filters: {};
|
|
51
|
+
|
|
52
|
+
estimateGas: {};
|
|
53
|
+
|
|
54
|
+
populateTransaction: {};
|
|
55
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type { BaseContract, Signer, utils } from "ethers";
|
|
5
|
+
|
|
6
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
TypedEventFilter,
|
|
9
|
+
TypedEvent,
|
|
10
|
+
TypedListener,
|
|
11
|
+
OnEvent,
|
|
12
|
+
} from "../../common";
|
|
13
|
+
|
|
14
|
+
export interface ReferralFeeLibInterface extends utils.Interface {
|
|
15
|
+
functions: {};
|
|
16
|
+
|
|
17
|
+
events: {};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface ReferralFeeLib extends BaseContract {
|
|
21
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
22
|
+
attach(addressOrName: string): this;
|
|
23
|
+
deployed(): Promise<this>;
|
|
24
|
+
|
|
25
|
+
interface: ReferralFeeLibInterface;
|
|
26
|
+
|
|
27
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
28
|
+
event: TypedEventFilter<TEvent>,
|
|
29
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
30
|
+
toBlock?: string | number | undefined
|
|
31
|
+
): Promise<Array<TEvent>>;
|
|
32
|
+
|
|
33
|
+
listeners<TEvent extends TypedEvent>(
|
|
34
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
35
|
+
): Array<TypedListener<TEvent>>;
|
|
36
|
+
listeners(eventName?: string): Array<Listener>;
|
|
37
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
38
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
39
|
+
): this;
|
|
40
|
+
removeAllListeners(eventName?: string): this;
|
|
41
|
+
off: OnEvent<this>;
|
|
42
|
+
on: OnEvent<this>;
|
|
43
|
+
once: OnEvent<this>;
|
|
44
|
+
removeListener: OnEvent<this>;
|
|
45
|
+
|
|
46
|
+
functions: {};
|
|
47
|
+
|
|
48
|
+
callStatic: {};
|
|
49
|
+
|
|
50
|
+
filters: {};
|
|
51
|
+
|
|
52
|
+
estimateGas: {};
|
|
53
|
+
|
|
54
|
+
populateTransaction: {};
|
|
55
|
+
}
|
|
@@ -327,9 +327,9 @@ const data = [
|
|
|
327
327
|
{
|
|
328
328
|
"inputs": [
|
|
329
329
|
{
|
|
330
|
-
"internalType": "
|
|
330
|
+
"internalType": "int16",
|
|
331
331
|
"name": "spreadBps",
|
|
332
|
-
"type": "
|
|
332
|
+
"type": "int16"
|
|
333
333
|
}
|
|
334
334
|
],
|
|
335
335
|
"name": "InvalidSpread",
|
|
@@ -765,9 +765,9 @@ const data = [
|
|
|
765
765
|
},
|
|
766
766
|
{
|
|
767
767
|
"indexed": false,
|
|
768
|
-
"internalType": "
|
|
768
|
+
"internalType": "int16",
|
|
769
769
|
"name": "spreadBps",
|
|
770
|
-
"type": "
|
|
770
|
+
"type": "int16"
|
|
771
771
|
},
|
|
772
772
|
{
|
|
773
773
|
"indexed": false,
|
|
@@ -1319,9 +1319,9 @@ const data = [
|
|
|
1319
1319
|
"type": "bytes"
|
|
1320
1320
|
},
|
|
1321
1321
|
{
|
|
1322
|
-
"internalType": "
|
|
1322
|
+
"internalType": "int16",
|
|
1323
1323
|
"name": "spreadBps",
|
|
1324
|
-
"type": "
|
|
1324
|
+
"type": "int16"
|
|
1325
1325
|
},
|
|
1326
1326
|
{
|
|
1327
1327
|
"internalType": "uint32",
|
|
@@ -1421,9 +1421,9 @@ const data = [
|
|
|
1421
1421
|
"type": "bytes"
|
|
1422
1422
|
},
|
|
1423
1423
|
{
|
|
1424
|
-
"internalType": "
|
|
1424
|
+
"internalType": "int16",
|
|
1425
1425
|
"name": "spreadBps",
|
|
1426
|
-
"type": "
|
|
1426
|
+
"type": "int16"
|
|
1427
1427
|
},
|
|
1428
1428
|
{
|
|
1429
1429
|
"internalType": "uint32",
|
|
@@ -1555,9 +1555,9 @@ const data = [
|
|
|
1555
1555
|
"type": "bytes"
|
|
1556
1556
|
},
|
|
1557
1557
|
{
|
|
1558
|
-
"internalType": "
|
|
1558
|
+
"internalType": "int16",
|
|
1559
1559
|
"name": "spreadBps",
|
|
1560
|
-
"type": "
|
|
1560
|
+
"type": "int16"
|
|
1561
1561
|
},
|
|
1562
1562
|
{
|
|
1563
1563
|
"internalType": "uint32",
|
|
@@ -1600,6 +1600,29 @@ const data = [
|
|
|
1600
1600
|
"stateMutability": "nonpayable",
|
|
1601
1601
|
"type": "function"
|
|
1602
1602
|
},
|
|
1603
|
+
{
|
|
1604
|
+
"inputs": [
|
|
1605
|
+
{
|
|
1606
|
+
"internalType": "uint256",
|
|
1607
|
+
"name": "_depositId",
|
|
1608
|
+
"type": "uint256"
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
"internalType": "bytes32[]",
|
|
1612
|
+
"name": "_paymentMethods",
|
|
1613
|
+
"type": "bytes32[]"
|
|
1614
|
+
},
|
|
1615
|
+
{
|
|
1616
|
+
"internalType": "bytes32[][]",
|
|
1617
|
+
"name": "_currencyCodes",
|
|
1618
|
+
"type": "bytes32[][]"
|
|
1619
|
+
}
|
|
1620
|
+
],
|
|
1621
|
+
"name": "deactivateCurrenciesBatch",
|
|
1622
|
+
"outputs": [],
|
|
1623
|
+
"stateMutability": "nonpayable",
|
|
1624
|
+
"type": "function"
|
|
1625
|
+
},
|
|
1603
1626
|
{
|
|
1604
1627
|
"inputs": [
|
|
1605
1628
|
{
|
|
@@ -1724,9 +1747,9 @@ const data = [
|
|
|
1724
1747
|
"type": "bytes"
|
|
1725
1748
|
},
|
|
1726
1749
|
{
|
|
1727
|
-
"internalType": "
|
|
1750
|
+
"internalType": "int16",
|
|
1728
1751
|
"name": "spreadBps",
|
|
1729
|
-
"type": "
|
|
1752
|
+
"type": "int16"
|
|
1730
1753
|
},
|
|
1731
1754
|
{
|
|
1732
1755
|
"internalType": "uint32",
|
|
@@ -2100,9 +2123,9 @@ const data = [
|
|
|
2100
2123
|
"type": "bytes"
|
|
2101
2124
|
},
|
|
2102
2125
|
{
|
|
2103
|
-
"internalType": "
|
|
2126
|
+
"internalType": "int16",
|
|
2104
2127
|
"name": "spreadBps",
|
|
2105
|
-
"type": "
|
|
2128
|
+
"type": "int16"
|
|
2106
2129
|
},
|
|
2107
2130
|
{
|
|
2108
2131
|
"internalType": "uint32",
|
|
@@ -2685,9 +2708,9 @@ const data = [
|
|
|
2685
2708
|
"type": "bytes"
|
|
2686
2709
|
},
|
|
2687
2710
|
{
|
|
2688
|
-
"internalType": "
|
|
2711
|
+
"internalType": "int16",
|
|
2689
2712
|
"name": "spreadBps",
|
|
2690
|
-
"type": "
|
|
2713
|
+
"type": "int16"
|
|
2691
2714
|
},
|
|
2692
2715
|
{
|
|
2693
2716
|
"internalType": "uint32",
|
|
@@ -2735,9 +2758,9 @@ const data = [
|
|
|
2735
2758
|
"type": "bytes"
|
|
2736
2759
|
},
|
|
2737
2760
|
{
|
|
2738
|
-
"internalType": "
|
|
2761
|
+
"internalType": "int16",
|
|
2739
2762
|
"name": "spreadBps",
|
|
2740
|
-
"type": "
|
|
2763
|
+
"type": "int16"
|
|
2741
2764
|
},
|
|
2742
2765
|
{
|
|
2743
2766
|
"internalType": "uint32",
|
|
@@ -2911,6 +2934,73 @@ const data = [
|
|
|
2911
2934
|
"stateMutability": "nonpayable",
|
|
2912
2935
|
"type": "function"
|
|
2913
2936
|
},
|
|
2937
|
+
{
|
|
2938
|
+
"inputs": [
|
|
2939
|
+
{
|
|
2940
|
+
"internalType": "uint256",
|
|
2941
|
+
"name": "_depositId",
|
|
2942
|
+
"type": "uint256"
|
|
2943
|
+
},
|
|
2944
|
+
{
|
|
2945
|
+
"internalType": "bytes32[]",
|
|
2946
|
+
"name": "_paymentMethods",
|
|
2947
|
+
"type": "bytes32[]"
|
|
2948
|
+
},
|
|
2949
|
+
{
|
|
2950
|
+
"components": [
|
|
2951
|
+
{
|
|
2952
|
+
"internalType": "bytes32",
|
|
2953
|
+
"name": "code",
|
|
2954
|
+
"type": "bytes32"
|
|
2955
|
+
},
|
|
2956
|
+
{
|
|
2957
|
+
"internalType": "uint256",
|
|
2958
|
+
"name": "minConversionRate",
|
|
2959
|
+
"type": "uint256"
|
|
2960
|
+
},
|
|
2961
|
+
{
|
|
2962
|
+
"internalType": "bool",
|
|
2963
|
+
"name": "updateOracle",
|
|
2964
|
+
"type": "bool"
|
|
2965
|
+
},
|
|
2966
|
+
{
|
|
2967
|
+
"components": [
|
|
2968
|
+
{
|
|
2969
|
+
"internalType": "address",
|
|
2970
|
+
"name": "adapter",
|
|
2971
|
+
"type": "address"
|
|
2972
|
+
},
|
|
2973
|
+
{
|
|
2974
|
+
"internalType": "bytes",
|
|
2975
|
+
"name": "adapterConfig",
|
|
2976
|
+
"type": "bytes"
|
|
2977
|
+
},
|
|
2978
|
+
{
|
|
2979
|
+
"internalType": "int16",
|
|
2980
|
+
"name": "spreadBps",
|
|
2981
|
+
"type": "int16"
|
|
2982
|
+
},
|
|
2983
|
+
{
|
|
2984
|
+
"internalType": "uint32",
|
|
2985
|
+
"name": "maxStaleness",
|
|
2986
|
+
"type": "uint32"
|
|
2987
|
+
}
|
|
2988
|
+
],
|
|
2989
|
+
"internalType": "struct IEscrowV2.OracleRateConfig",
|
|
2990
|
+
"name": "oracleRateConfig",
|
|
2991
|
+
"type": "tuple"
|
|
2992
|
+
}
|
|
2993
|
+
],
|
|
2994
|
+
"internalType": "struct IEscrowV2.CurrencyRateUpdate[][]",
|
|
2995
|
+
"name": "_updates",
|
|
2996
|
+
"type": "tuple[][]"
|
|
2997
|
+
}
|
|
2998
|
+
],
|
|
2999
|
+
"name": "updateCurrencyConfigBatch",
|
|
3000
|
+
"outputs": [],
|
|
3001
|
+
"stateMutability": "nonpayable",
|
|
3002
|
+
"type": "function"
|
|
3003
|
+
},
|
|
2914
3004
|
{
|
|
2915
3005
|
"inputs": [
|
|
2916
3006
|
{
|