@zkp2p/contracts-v2 0.2.0-rc.5 → 0.2.0-rc.7
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/base/EscrowV2.js +108 -18
- package/_cjs/abis/base/EscrowV2.json +108 -18
- package/_cjs/abis/base/OrchestratorV2.js +99 -17
- package/_cjs/abis/base/OrchestratorV2.json +99 -17
- package/_cjs/abis/base/SignatureGatingPreIntentHook.js +15 -8
- package/_cjs/abis/base/SignatureGatingPreIntentHook.json +15 -8
- 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 +4 -4
- package/_cjs/addresses/base.json +4 -4
- 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/base/EscrowV2.js +108 -18
- package/_esm/abis/base/EscrowV2.json +108 -18
- package/_esm/abis/base/OrchestratorV2.js +99 -17
- package/_esm/abis/base/OrchestratorV2.json +99 -17
- package/_esm/abis/base/SignatureGatingPreIntentHook.js +15 -8
- package/_esm/abis/base/SignatureGatingPreIntentHook.json +15 -8
- 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 +4 -4
- package/_esm/addresses/base.json +4 -4
- 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/base/EscrowV2.json +108 -18
- package/abis/base/OrchestratorV2.json +99 -17
- package/abis/base/SignatureGatingPreIntentHook.json +15 -8
- 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 +4 -4
- 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
|
@@ -166,16 +166,36 @@ export declare namespace IEscrowV2 {
|
|
|
166
166
|
timestamp: BigNumber;
|
|
167
167
|
expiryTime: BigNumber;
|
|
168
168
|
};
|
|
169
|
+
|
|
170
|
+
export type CurrencyRateUpdateStruct = {
|
|
171
|
+
code: PromiseOrValue<BytesLike>;
|
|
172
|
+
minConversionRate: PromiseOrValue<BigNumberish>;
|
|
173
|
+
updateOracle: PromiseOrValue<boolean>;
|
|
174
|
+
oracleRateConfig: IEscrowV2.OracleRateConfigStruct;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
export type CurrencyRateUpdateStructOutput = [
|
|
178
|
+
string,
|
|
179
|
+
BigNumber,
|
|
180
|
+
boolean,
|
|
181
|
+
IEscrowV2.OracleRateConfigStructOutput
|
|
182
|
+
] & {
|
|
183
|
+
code: string;
|
|
184
|
+
minConversionRate: BigNumber;
|
|
185
|
+
updateOracle: boolean;
|
|
186
|
+
oracleRateConfig: IEscrowV2.OracleRateConfigStructOutput;
|
|
187
|
+
};
|
|
169
188
|
}
|
|
170
189
|
|
|
171
190
|
export interface EscrowV2Interface extends utils.Interface {
|
|
172
191
|
functions: {
|
|
173
|
-
"addCurrencies(uint256,bytes32,(bytes32,uint256,(address,bytes,
|
|
192
|
+
"addCurrencies(uint256,bytes32,(bytes32,uint256,(address,bytes,int16,uint32))[])": FunctionFragment;
|
|
174
193
|
"addFunds(uint256,uint256)": FunctionFragment;
|
|
175
194
|
"addPaymentMethods(uint256,bytes32[],(address,bytes32,bytes)[],tuple[][])": FunctionFragment;
|
|
176
195
|
"chainId()": FunctionFragment;
|
|
177
196
|
"clearRateManager(uint256)": FunctionFragment;
|
|
178
197
|
"createDeposit((address,uint256,(uint256,uint256),bytes32[],(address,bytes32,bytes)[],tuple[][],address,address,bool))": FunctionFragment;
|
|
198
|
+
"deactivateCurrenciesBatch(uint256,bytes32[],bytes32[][])": FunctionFragment;
|
|
179
199
|
"deactivateCurrency(uint256,bytes32,bytes32)": FunctionFragment;
|
|
180
200
|
"depositCounter()": FunctionFragment;
|
|
181
201
|
"depositTo(address,(address,uint256,(uint256,uint256),bytes32[],(address,bytes32,bytes)[],tuple[][],address,address,bool))": FunctionFragment;
|
|
@@ -219,7 +239,7 @@ export interface EscrowV2Interface extends utils.Interface {
|
|
|
219
239
|
"setIntentExpirationPeriod(uint256)": FunctionFragment;
|
|
220
240
|
"setIntentRange(uint256,(uint256,uint256))": FunctionFragment;
|
|
221
241
|
"setMaxIntentsPerDeposit(uint256)": FunctionFragment;
|
|
222
|
-
"setOracleRateConfig(uint256,bytes32,bytes32,(address,bytes,
|
|
242
|
+
"setOracleRateConfig(uint256,bytes32,bytes32,(address,bytes,int16,uint32))": FunctionFragment;
|
|
223
243
|
"setOracleRateConfigBatch(uint256,bytes32[],bytes32[][],tuple[][])": FunctionFragment;
|
|
224
244
|
"setOrchestratorRegistry(address)": FunctionFragment;
|
|
225
245
|
"setPaymentMethodActive(uint256,bytes32,bool)": FunctionFragment;
|
|
@@ -230,6 +250,7 @@ export interface EscrowV2Interface extends utils.Interface {
|
|
|
230
250
|
"unlockAndTransferFunds(uint256,bytes32,uint256,address)": FunctionFragment;
|
|
231
251
|
"unlockFunds(uint256,bytes32)": FunctionFragment;
|
|
232
252
|
"unpauseEscrow()": FunctionFragment;
|
|
253
|
+
"updateCurrencyConfigBatch(uint256,bytes32[],tuple[][])": FunctionFragment;
|
|
233
254
|
"withdrawDeposit(uint256)": FunctionFragment;
|
|
234
255
|
};
|
|
235
256
|
|
|
@@ -241,6 +262,7 @@ export interface EscrowV2Interface extends utils.Interface {
|
|
|
241
262
|
| "chainId"
|
|
242
263
|
| "clearRateManager"
|
|
243
264
|
| "createDeposit"
|
|
265
|
+
| "deactivateCurrenciesBatch"
|
|
244
266
|
| "deactivateCurrency"
|
|
245
267
|
| "depositCounter"
|
|
246
268
|
| "depositTo"
|
|
@@ -295,6 +317,7 @@ export interface EscrowV2Interface extends utils.Interface {
|
|
|
295
317
|
| "unlockAndTransferFunds"
|
|
296
318
|
| "unlockFunds"
|
|
297
319
|
| "unpauseEscrow"
|
|
320
|
+
| "updateCurrencyConfigBatch"
|
|
298
321
|
| "withdrawDeposit"
|
|
299
322
|
): FunctionFragment;
|
|
300
323
|
|
|
@@ -328,6 +351,14 @@ export interface EscrowV2Interface extends utils.Interface {
|
|
|
328
351
|
functionFragment: "createDeposit",
|
|
329
352
|
values: [IEscrowV2.CreateDepositParamsStruct]
|
|
330
353
|
): string;
|
|
354
|
+
encodeFunctionData(
|
|
355
|
+
functionFragment: "deactivateCurrenciesBatch",
|
|
356
|
+
values: [
|
|
357
|
+
PromiseOrValue<BigNumberish>,
|
|
358
|
+
PromiseOrValue<BytesLike>[],
|
|
359
|
+
PromiseOrValue<BytesLike>[][]
|
|
360
|
+
]
|
|
361
|
+
): string;
|
|
331
362
|
encodeFunctionData(
|
|
332
363
|
functionFragment: "deactivateCurrency",
|
|
333
364
|
values: [
|
|
@@ -598,6 +629,14 @@ export interface EscrowV2Interface extends utils.Interface {
|
|
|
598
629
|
functionFragment: "unpauseEscrow",
|
|
599
630
|
values?: undefined
|
|
600
631
|
): string;
|
|
632
|
+
encodeFunctionData(
|
|
633
|
+
functionFragment: "updateCurrencyConfigBatch",
|
|
634
|
+
values: [
|
|
635
|
+
PromiseOrValue<BigNumberish>,
|
|
636
|
+
PromiseOrValue<BytesLike>[],
|
|
637
|
+
IEscrowV2.CurrencyRateUpdateStruct[][]
|
|
638
|
+
]
|
|
639
|
+
): string;
|
|
601
640
|
encodeFunctionData(
|
|
602
641
|
functionFragment: "withdrawDeposit",
|
|
603
642
|
values: [PromiseOrValue<BigNumberish>]
|
|
@@ -621,6 +660,10 @@ export interface EscrowV2Interface extends utils.Interface {
|
|
|
621
660
|
functionFragment: "createDeposit",
|
|
622
661
|
data: BytesLike
|
|
623
662
|
): Result;
|
|
663
|
+
decodeFunctionResult(
|
|
664
|
+
functionFragment: "deactivateCurrenciesBatch",
|
|
665
|
+
data: BytesLike
|
|
666
|
+
): Result;
|
|
624
667
|
decodeFunctionResult(
|
|
625
668
|
functionFragment: "deactivateCurrency",
|
|
626
669
|
data: BytesLike
|
|
@@ -822,6 +865,10 @@ export interface EscrowV2Interface extends utils.Interface {
|
|
|
822
865
|
functionFragment: "unpauseEscrow",
|
|
823
866
|
data: BytesLike
|
|
824
867
|
): Result;
|
|
868
|
+
decodeFunctionResult(
|
|
869
|
+
functionFragment: "updateCurrencyConfigBatch",
|
|
870
|
+
data: BytesLike
|
|
871
|
+
): Result;
|
|
825
872
|
decodeFunctionResult(
|
|
826
873
|
functionFragment: "withdrawDeposit",
|
|
827
874
|
data: BytesLike
|
|
@@ -837,7 +884,7 @@ export interface EscrowV2Interface extends utils.Interface {
|
|
|
837
884
|
"DepositIntentAmountRangeUpdated(uint256,tuple)": EventFragment;
|
|
838
885
|
"DepositMinConversionRateUpdated(uint256,bytes32,bytes32,uint256)": EventFragment;
|
|
839
886
|
"DepositOracleRateConfigRemoved(uint256,bytes32,bytes32)": EventFragment;
|
|
840
|
-
"DepositOracleRateConfigSet(uint256,bytes32,bytes32,address,bytes,
|
|
887
|
+
"DepositOracleRateConfigSet(uint256,bytes32,bytes32,address,bytes,int16,uint32)": EventFragment;
|
|
841
888
|
"DepositPaymentMethodActiveUpdated(uint256,bytes32,bool)": EventFragment;
|
|
842
889
|
"DepositPaymentMethodAdded(uint256,bytes32,bytes32,address)": EventFragment;
|
|
843
890
|
"DepositRateManagerCleared(uint256,address,bytes32)": EventFragment;
|
|
@@ -1392,6 +1439,13 @@ export interface EscrowV2 extends BaseContract {
|
|
|
1392
1439
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1393
1440
|
): Promise<ContractTransaction>;
|
|
1394
1441
|
|
|
1442
|
+
deactivateCurrenciesBatch(
|
|
1443
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
1444
|
+
_paymentMethods: PromiseOrValue<BytesLike>[],
|
|
1445
|
+
_currencyCodes: PromiseOrValue<BytesLike>[][],
|
|
1446
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1447
|
+
): Promise<ContractTransaction>;
|
|
1448
|
+
|
|
1395
1449
|
deactivateCurrency(
|
|
1396
1450
|
_depositId: PromiseOrValue<BigNumberish>,
|
|
1397
1451
|
_paymentMethod: PromiseOrValue<BytesLike>,
|
|
@@ -1684,6 +1738,13 @@ export interface EscrowV2 extends BaseContract {
|
|
|
1684
1738
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1685
1739
|
): Promise<ContractTransaction>;
|
|
1686
1740
|
|
|
1741
|
+
updateCurrencyConfigBatch(
|
|
1742
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
1743
|
+
_paymentMethods: PromiseOrValue<BytesLike>[],
|
|
1744
|
+
_updates: IEscrowV2.CurrencyRateUpdateStruct[][],
|
|
1745
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1746
|
+
): Promise<ContractTransaction>;
|
|
1747
|
+
|
|
1687
1748
|
withdrawDeposit(
|
|
1688
1749
|
_depositId: PromiseOrValue<BigNumberish>,
|
|
1689
1750
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
@@ -1723,6 +1784,13 @@ export interface EscrowV2 extends BaseContract {
|
|
|
1723
1784
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1724
1785
|
): Promise<ContractTransaction>;
|
|
1725
1786
|
|
|
1787
|
+
deactivateCurrenciesBatch(
|
|
1788
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
1789
|
+
_paymentMethods: PromiseOrValue<BytesLike>[],
|
|
1790
|
+
_currencyCodes: PromiseOrValue<BytesLike>[][],
|
|
1791
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
1792
|
+
): Promise<ContractTransaction>;
|
|
1793
|
+
|
|
1726
1794
|
deactivateCurrency(
|
|
1727
1795
|
_depositId: PromiseOrValue<BigNumberish>,
|
|
1728
1796
|
_paymentMethod: PromiseOrValue<BytesLike>,
|
|
@@ -2013,6 +2081,13 @@ export interface EscrowV2 extends BaseContract {
|
|
|
2013
2081
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2014
2082
|
): Promise<ContractTransaction>;
|
|
2015
2083
|
|
|
2084
|
+
updateCurrencyConfigBatch(
|
|
2085
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
2086
|
+
_paymentMethods: PromiseOrValue<BytesLike>[],
|
|
2087
|
+
_updates: IEscrowV2.CurrencyRateUpdateStruct[][],
|
|
2088
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2089
|
+
): Promise<ContractTransaction>;
|
|
2090
|
+
|
|
2016
2091
|
withdrawDeposit(
|
|
2017
2092
|
_depositId: PromiseOrValue<BigNumberish>,
|
|
2018
2093
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
@@ -2052,6 +2127,13 @@ export interface EscrowV2 extends BaseContract {
|
|
|
2052
2127
|
overrides?: CallOverrides
|
|
2053
2128
|
): Promise<void>;
|
|
2054
2129
|
|
|
2130
|
+
deactivateCurrenciesBatch(
|
|
2131
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
2132
|
+
_paymentMethods: PromiseOrValue<BytesLike>[],
|
|
2133
|
+
_currencyCodes: PromiseOrValue<BytesLike>[][],
|
|
2134
|
+
overrides?: CallOverrides
|
|
2135
|
+
): Promise<void>;
|
|
2136
|
+
|
|
2055
2137
|
deactivateCurrency(
|
|
2056
2138
|
_depositId: PromiseOrValue<BigNumberish>,
|
|
2057
2139
|
_paymentMethod: PromiseOrValue<BytesLike>,
|
|
@@ -2338,6 +2420,13 @@ export interface EscrowV2 extends BaseContract {
|
|
|
2338
2420
|
|
|
2339
2421
|
unpauseEscrow(overrides?: CallOverrides): Promise<void>;
|
|
2340
2422
|
|
|
2423
|
+
updateCurrencyConfigBatch(
|
|
2424
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
2425
|
+
_paymentMethods: PromiseOrValue<BytesLike>[],
|
|
2426
|
+
_updates: IEscrowV2.CurrencyRateUpdateStruct[][],
|
|
2427
|
+
overrides?: CallOverrides
|
|
2428
|
+
): Promise<void>;
|
|
2429
|
+
|
|
2341
2430
|
withdrawDeposit(
|
|
2342
2431
|
_depositId: PromiseOrValue<BigNumberish>,
|
|
2343
2432
|
overrides?: CallOverrides
|
|
@@ -2437,7 +2526,7 @@ export interface EscrowV2 extends BaseContract {
|
|
|
2437
2526
|
currencyCode?: PromiseOrValue<BytesLike> | null
|
|
2438
2527
|
): DepositOracleRateConfigRemovedEventFilter;
|
|
2439
2528
|
|
|
2440
|
-
"DepositOracleRateConfigSet(uint256,bytes32,bytes32,address,bytes,
|
|
2529
|
+
"DepositOracleRateConfigSet(uint256,bytes32,bytes32,address,bytes,int16,uint32)"(
|
|
2441
2530
|
depositId?: PromiseOrValue<BigNumberish> | null,
|
|
2442
2531
|
paymentMethod?: PromiseOrValue<BytesLike> | null,
|
|
2443
2532
|
currencyCode?: PromiseOrValue<BytesLike> | null,
|
|
@@ -2706,6 +2795,13 @@ export interface EscrowV2 extends BaseContract {
|
|
|
2706
2795
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2707
2796
|
): Promise<BigNumber>;
|
|
2708
2797
|
|
|
2798
|
+
deactivateCurrenciesBatch(
|
|
2799
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
2800
|
+
_paymentMethods: PromiseOrValue<BytesLike>[],
|
|
2801
|
+
_currencyCodes: PromiseOrValue<BytesLike>[][],
|
|
2802
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2803
|
+
): Promise<BigNumber>;
|
|
2804
|
+
|
|
2709
2805
|
deactivateCurrency(
|
|
2710
2806
|
_depositId: PromiseOrValue<BigNumberish>,
|
|
2711
2807
|
_paymentMethod: PromiseOrValue<BytesLike>,
|
|
@@ -2991,6 +3087,13 @@ export interface EscrowV2 extends BaseContract {
|
|
|
2991
3087
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2992
3088
|
): Promise<BigNumber>;
|
|
2993
3089
|
|
|
3090
|
+
updateCurrencyConfigBatch(
|
|
3091
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
3092
|
+
_paymentMethods: PromiseOrValue<BytesLike>[],
|
|
3093
|
+
_updates: IEscrowV2.CurrencyRateUpdateStruct[][],
|
|
3094
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
3095
|
+
): Promise<BigNumber>;
|
|
3096
|
+
|
|
2994
3097
|
withdrawDeposit(
|
|
2995
3098
|
_depositId: PromiseOrValue<BigNumberish>,
|
|
2996
3099
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
@@ -3031,6 +3134,13 @@ export interface EscrowV2 extends BaseContract {
|
|
|
3031
3134
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
3032
3135
|
): Promise<PopulatedTransaction>;
|
|
3033
3136
|
|
|
3137
|
+
deactivateCurrenciesBatch(
|
|
3138
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
3139
|
+
_paymentMethods: PromiseOrValue<BytesLike>[],
|
|
3140
|
+
_currencyCodes: PromiseOrValue<BytesLike>[][],
|
|
3141
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
3142
|
+
): Promise<PopulatedTransaction>;
|
|
3143
|
+
|
|
3034
3144
|
deactivateCurrency(
|
|
3035
3145
|
_depositId: PromiseOrValue<BigNumberish>,
|
|
3036
3146
|
_paymentMethod: PromiseOrValue<BytesLike>,
|
|
@@ -3324,6 +3434,13 @@ export interface EscrowV2 extends BaseContract {
|
|
|
3324
3434
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
3325
3435
|
): Promise<PopulatedTransaction>;
|
|
3326
3436
|
|
|
3437
|
+
updateCurrencyConfigBatch(
|
|
3438
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
3439
|
+
_paymentMethods: PromiseOrValue<BytesLike>[],
|
|
3440
|
+
_updates: IEscrowV2.CurrencyRateUpdateStruct[][],
|
|
3441
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
3442
|
+
): Promise<PopulatedTransaction>;
|
|
3443
|
+
|
|
3327
3444
|
withdrawDeposit(
|
|
3328
3445
|
_depositId: PromiseOrValue<BigNumberish>,
|
|
3329
3446
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
@@ -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 OrchestratorV2Interface extends utils.Interface {
|
|
150
156
|
functions: {
|
|
151
157
|
"allowMultipleIntents()": FunctionFragment;
|
|
@@ -177,7 +183,7 @@ export interface OrchestratorV2Interface extends utils.Interface {
|
|
|
177
183
|
"setProtocolFee(uint256)": FunctionFragment;
|
|
178
184
|
"setProtocolFeeRecipient(address)": FunctionFragment;
|
|
179
185
|
"setRelayerRegistry(address)": FunctionFragment;
|
|
180
|
-
"signalIntent((address,uint256,uint256,address,bytes32,bytes32,uint256,address,uint256,bytes,uint256,address,bytes,bytes))": FunctionFragment;
|
|
186
|
+
"signalIntent((address,uint256,uint256,address,bytes32,bytes32,uint256,(address,uint256)[],bytes,uint256,address,bytes,bytes))": FunctionFragment;
|
|
181
187
|
"transferOwnership(address)": FunctionFragment;
|
|
182
188
|
"unpauseOrchestrator()": FunctionFragment;
|
|
183
189
|
};
|
|
@@ -471,6 +477,7 @@ export interface OrchestratorV2Interface extends utils.Interface {
|
|
|
471
477
|
"IntentFulfilled(bytes32,address,uint256,bool)": EventFragment;
|
|
472
478
|
"IntentManagerFeeSnapshotted(bytes32,address,uint256)": EventFragment;
|
|
473
479
|
"IntentPruned(bytes32)": EventFragment;
|
|
480
|
+
"IntentReferralFeeDistributed(bytes32,address,uint256)": EventFragment;
|
|
474
481
|
"IntentSignaled(bytes32,address,uint256,bytes32,address,address,uint256,bytes32,uint256,uint256)": EventFragment;
|
|
475
482
|
"OwnershipTransferred(address,address)": EventFragment;
|
|
476
483
|
"PartialManualReleaseDelayUpdated(uint256)": EventFragment;
|
|
@@ -493,6 +500,9 @@ export interface OrchestratorV2Interface extends utils.Interface {
|
|
|
493
500
|
nameOrSignatureOrTopic: "IntentManagerFeeSnapshotted"
|
|
494
501
|
): EventFragment;
|
|
495
502
|
getEvent(nameOrSignatureOrTopic: "IntentPruned"): EventFragment;
|
|
503
|
+
getEvent(
|
|
504
|
+
nameOrSignatureOrTopic: "IntentReferralFeeDistributed"
|
|
505
|
+
): EventFragment;
|
|
496
506
|
getEvent(nameOrSignatureOrTopic: "IntentSignaled"): EventFragment;
|
|
497
507
|
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
|
|
498
508
|
getEvent(
|
|
@@ -593,6 +603,19 @@ export type IntentPrunedEvent = TypedEvent<[string], IntentPrunedEventObject>;
|
|
|
593
603
|
|
|
594
604
|
export type IntentPrunedEventFilter = TypedEventFilter<IntentPrunedEvent>;
|
|
595
605
|
|
|
606
|
+
export interface IntentReferralFeeDistributedEventObject {
|
|
607
|
+
intentHash: string;
|
|
608
|
+
feeRecipient: string;
|
|
609
|
+
feeAmount: BigNumber;
|
|
610
|
+
}
|
|
611
|
+
export type IntentReferralFeeDistributedEvent = TypedEvent<
|
|
612
|
+
[string, string, BigNumber],
|
|
613
|
+
IntentReferralFeeDistributedEventObject
|
|
614
|
+
>;
|
|
615
|
+
|
|
616
|
+
export type IntentReferralFeeDistributedEventFilter =
|
|
617
|
+
TypedEventFilter<IntentReferralFeeDistributedEvent>;
|
|
618
|
+
|
|
596
619
|
export interface IntentSignaledEventObject {
|
|
597
620
|
intentHash: string;
|
|
598
621
|
escrow: string;
|
|
@@ -1199,6 +1222,17 @@ export interface OrchestratorV2 extends BaseContract {
|
|
|
1199
1222
|
intentHash?: PromiseOrValue<BytesLike> | null
|
|
1200
1223
|
): IntentPrunedEventFilter;
|
|
1201
1224
|
|
|
1225
|
+
"IntentReferralFeeDistributed(bytes32,address,uint256)"(
|
|
1226
|
+
intentHash?: PromiseOrValue<BytesLike> | null,
|
|
1227
|
+
feeRecipient?: PromiseOrValue<string> | null,
|
|
1228
|
+
feeAmount?: null
|
|
1229
|
+
): IntentReferralFeeDistributedEventFilter;
|
|
1230
|
+
IntentReferralFeeDistributed(
|
|
1231
|
+
intentHash?: PromiseOrValue<BytesLike> | null,
|
|
1232
|
+
feeRecipient?: PromiseOrValue<string> | null,
|
|
1233
|
+
feeAmount?: null
|
|
1234
|
+
): IntentReferralFeeDistributedEventFilter;
|
|
1235
|
+
|
|
1202
1236
|
"IntentSignaled(bytes32,address,uint256,bytes32,address,address,uint256,bytes32,uint256,uint256)"(
|
|
1203
1237
|
intentHash?: PromiseOrValue<BytesLike> | null,
|
|
1204
1238
|
escrow?: PromiseOrValue<string> | null,
|
|
@@ -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
|
};
|
|
@@ -27,6 +27,18 @@ import type {
|
|
|
27
27
|
PromiseOrValue,
|
|
28
28
|
} from "../../common";
|
|
29
29
|
|
|
30
|
+
export declare namespace IReferralFee {
|
|
31
|
+
export type ReferralFeeStruct = {
|
|
32
|
+
recipient: PromiseOrValue<string>;
|
|
33
|
+
fee: PromiseOrValue<BigNumberish>;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type ReferralFeeStructOutput = [string, BigNumber] & {
|
|
37
|
+
recipient: string;
|
|
38
|
+
fee: BigNumber;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
30
42
|
export declare namespace IPreIntentHook {
|
|
31
43
|
export type PreIntentContextStruct = {
|
|
32
44
|
taker: PromiseOrValue<string>;
|
|
@@ -37,8 +49,7 @@ export declare namespace IPreIntentHook {
|
|
|
37
49
|
paymentMethod: PromiseOrValue<BytesLike>;
|
|
38
50
|
fiatCurrency: PromiseOrValue<BytesLike>;
|
|
39
51
|
conversionRate: PromiseOrValue<BigNumberish>;
|
|
40
|
-
|
|
41
|
-
referrerFee: PromiseOrValue<BigNumberish>;
|
|
52
|
+
referralFees: IReferralFee.ReferralFeeStruct[];
|
|
42
53
|
preIntentHookData: PromiseOrValue<BytesLike>;
|
|
43
54
|
};
|
|
44
55
|
|
|
@@ -51,8 +62,7 @@ export declare namespace IPreIntentHook {
|
|
|
51
62
|
string,
|
|
52
63
|
string,
|
|
53
64
|
BigNumber,
|
|
54
|
-
|
|
55
|
-
BigNumber,
|
|
65
|
+
IReferralFee.ReferralFeeStructOutput[],
|
|
56
66
|
string
|
|
57
67
|
] & {
|
|
58
68
|
taker: string;
|
|
@@ -63,8 +73,7 @@ export declare namespace IPreIntentHook {
|
|
|
63
73
|
paymentMethod: string;
|
|
64
74
|
fiatCurrency: string;
|
|
65
75
|
conversionRate: BigNumber;
|
|
66
|
-
|
|
67
|
-
referrerFee: BigNumber;
|
|
76
|
+
referralFees: IReferralFee.ReferralFeeStructOutput[];
|
|
68
77
|
preIntentHookData: string;
|
|
69
78
|
};
|
|
70
79
|
}
|
|
@@ -76,7 +85,7 @@ export interface SignatureGatingPreIntentHookInterface extends utils.Interface {
|
|
|
76
85
|
"getDepositSigner(address,uint256)": FunctionFragment;
|
|
77
86
|
"orchestratorRegistry()": FunctionFragment;
|
|
78
87
|
"setDepositSigner(address,uint256,address)": FunctionFragment;
|
|
79
|
-
"validateSignalIntent((address,address,uint256,uint256,address,bytes32,bytes32,uint256,address,uint256,bytes))": FunctionFragment;
|
|
88
|
+
"validateSignalIntent((address,address,uint256,uint256,address,bytes32,bytes32,uint256,(address,uint256)[],bytes))": FunctionFragment;
|
|
80
89
|
};
|
|
81
90
|
|
|
82
91
|
getFunction(
|
|
@@ -27,6 +27,18 @@ import type {
|
|
|
27
27
|
PromiseOrValue,
|
|
28
28
|
} from "../../common";
|
|
29
29
|
|
|
30
|
+
export declare namespace IReferralFee {
|
|
31
|
+
export type ReferralFeeStruct = {
|
|
32
|
+
recipient: PromiseOrValue<string>;
|
|
33
|
+
fee: PromiseOrValue<BigNumberish>;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type ReferralFeeStructOutput = [string, BigNumber] & {
|
|
37
|
+
recipient: string;
|
|
38
|
+
fee: BigNumber;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
30
42
|
export declare namespace IPreIntentHook {
|
|
31
43
|
export type PreIntentContextStruct = {
|
|
32
44
|
taker: PromiseOrValue<string>;
|
|
@@ -37,8 +49,7 @@ export declare namespace IPreIntentHook {
|
|
|
37
49
|
paymentMethod: PromiseOrValue<BytesLike>;
|
|
38
50
|
fiatCurrency: PromiseOrValue<BytesLike>;
|
|
39
51
|
conversionRate: PromiseOrValue<BigNumberish>;
|
|
40
|
-
|
|
41
|
-
referrerFee: PromiseOrValue<BigNumberish>;
|
|
52
|
+
referralFees: IReferralFee.ReferralFeeStruct[];
|
|
42
53
|
preIntentHookData: PromiseOrValue<BytesLike>;
|
|
43
54
|
};
|
|
44
55
|
|
|
@@ -51,8 +62,7 @@ export declare namespace IPreIntentHook {
|
|
|
51
62
|
string,
|
|
52
63
|
string,
|
|
53
64
|
BigNumber,
|
|
54
|
-
|
|
55
|
-
BigNumber,
|
|
65
|
+
IReferralFee.ReferralFeeStructOutput[],
|
|
56
66
|
string
|
|
57
67
|
] & {
|
|
58
68
|
taker: string;
|
|
@@ -63,8 +73,7 @@ export declare namespace IPreIntentHook {
|
|
|
63
73
|
paymentMethod: string;
|
|
64
74
|
fiatCurrency: string;
|
|
65
75
|
conversionRate: BigNumber;
|
|
66
|
-
|
|
67
|
-
referrerFee: BigNumber;
|
|
76
|
+
referralFees: IReferralFee.ReferralFeeStructOutput[];
|
|
68
77
|
preIntentHookData: string;
|
|
69
78
|
};
|
|
70
79
|
}
|
|
@@ -75,7 +84,7 @@ export interface WhitelistPreIntentHookInterface extends utils.Interface {
|
|
|
75
84
|
"isWhitelisted(address,uint256,address)": FunctionFragment;
|
|
76
85
|
"orchestratorRegistry()": FunctionFragment;
|
|
77
86
|
"removeFromWhitelist(address,uint256,address[])": FunctionFragment;
|
|
78
|
-
"validateSignalIntent((address,address,uint256,uint256,address,bytes32,bytes32,uint256,address,uint256,bytes))": FunctionFragment;
|
|
87
|
+
"validateSignalIntent((address,address,uint256,uint256,address,bytes32,bytes32,uint256,(address,uint256)[],bytes))": FunctionFragment;
|
|
79
88
|
"whitelist(address,uint256,address)": FunctionFragment;
|
|
80
89
|
};
|
|
81
90
|
|