@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.
Files changed (89) hide show
  1. package/_cjs/abis/baseStaging/EscrowV2.js +108 -18
  2. package/_cjs/abis/baseStaging/EscrowV2.json +108 -18
  3. package/_cjs/abis/baseStaging/OrchestratorV2.js +99 -17
  4. package/_cjs/abis/baseStaging/OrchestratorV2.json +99 -17
  5. package/_cjs/abis/baseStaging/SignatureGatingPreIntentHook.js +15 -8
  6. package/_cjs/abis/baseStaging/SignatureGatingPreIntentHook.json +15 -8
  7. package/_cjs/addresses/base.js +1 -1
  8. package/_cjs/addresses/base.json +1 -1
  9. package/_cjs/addresses/baseStaging.js +4 -4
  10. package/_cjs/addresses/baseStaging.json +4 -4
  11. package/_cjs/addresses/index.json +1 -1
  12. package/_cjs/constants/index.json +1 -1
  13. package/_cjs/paymentMethods/base.js +1 -1
  14. package/_cjs/paymentMethods/base.json +1 -1
  15. package/_cjs/paymentMethods/baseSepolia.js +1 -1
  16. package/_cjs/paymentMethods/baseSepolia.json +1 -1
  17. package/_cjs/paymentMethods/baseStaging.js +1 -1
  18. package/_cjs/paymentMethods/baseStaging.json +1 -1
  19. package/_cjs/paymentMethods/index.json +1 -1
  20. package/_cjs/types/contracts/EscrowV2.js +121 -4
  21. package/_cjs/types/contracts/OrchestratorV2.js +47 -13
  22. package/_cjs/types/contracts/ProtocolViewerV2.js +15 -6
  23. package/_cjs/types/contracts/hooks/SignatureGatingPreIntentHook.js +16 -7
  24. package/_cjs/types/contracts/hooks/WhitelistPreIntentHook.js +16 -7
  25. package/_cjs/types/contracts/interfaces/IEscrowV2.js +120 -3
  26. package/_cjs/types/contracts/interfaces/IOrchestratorV2.js +47 -13
  27. package/_cjs/types/contracts/interfaces/IPreIntentHook.js +16 -7
  28. package/_cjs/types/contracts/interfaces/IProtocolViewerV2.js +15 -6
  29. package/_cjs/types/contracts/interfaces/IReferralFee.js +55 -0
  30. package/_cjs/types/contracts/interfaces/index.js +1 -0
  31. package/_cjs/types/contracts/lib/ReferralFeeLib.js +55 -0
  32. package/_cjs/types/contracts/lib/index.js +4 -0
  33. package/_esm/abis/baseStaging/EscrowV2.js +108 -18
  34. package/_esm/abis/baseStaging/EscrowV2.json +108 -18
  35. package/_esm/abis/baseStaging/OrchestratorV2.js +99 -17
  36. package/_esm/abis/baseStaging/OrchestratorV2.json +99 -17
  37. package/_esm/abis/baseStaging/SignatureGatingPreIntentHook.js +15 -8
  38. package/_esm/abis/baseStaging/SignatureGatingPreIntentHook.json +15 -8
  39. package/_esm/addresses/base.js +1 -1
  40. package/_esm/addresses/base.json +1 -1
  41. package/_esm/addresses/baseStaging.js +4 -4
  42. package/_esm/addresses/baseStaging.json +4 -4
  43. package/_esm/addresses/index.json +1 -1
  44. package/_esm/constants/index.json +1 -1
  45. package/_esm/paymentMethods/base.js +1 -1
  46. package/_esm/paymentMethods/base.json +1 -1
  47. package/_esm/paymentMethods/baseSepolia.js +1 -1
  48. package/_esm/paymentMethods/baseSepolia.json +1 -1
  49. package/_esm/paymentMethods/baseStaging.js +1 -1
  50. package/_esm/paymentMethods/baseStaging.json +1 -1
  51. package/_esm/paymentMethods/index.json +1 -1
  52. package/_esm/types/contracts/EscrowV2.js +121 -4
  53. package/_esm/types/contracts/OrchestratorV2.js +47 -13
  54. package/_esm/types/contracts/ProtocolViewerV2.js +15 -6
  55. package/_esm/types/contracts/hooks/SignatureGatingPreIntentHook.js +16 -7
  56. package/_esm/types/contracts/hooks/WhitelistPreIntentHook.js +16 -7
  57. package/_esm/types/contracts/interfaces/IEscrowV2.js +120 -3
  58. package/_esm/types/contracts/interfaces/IOrchestratorV2.js +47 -13
  59. package/_esm/types/contracts/interfaces/IPreIntentHook.js +16 -7
  60. package/_esm/types/contracts/interfaces/IProtocolViewerV2.js +15 -6
  61. package/_esm/types/contracts/interfaces/IReferralFee.js +55 -0
  62. package/_esm/types/contracts/interfaces/index.js +1 -0
  63. package/_esm/types/contracts/lib/ReferralFeeLib.js +55 -0
  64. package/_esm/types/contracts/lib/index.js +4 -0
  65. package/abis/baseStaging/EscrowV2.json +108 -18
  66. package/abis/baseStaging/OrchestratorV2.json +99 -17
  67. package/abis/baseStaging/SignatureGatingPreIntentHook.json +15 -8
  68. package/addresses/base.json +1 -1
  69. package/addresses/baseStaging.json +4 -4
  70. package/addresses/index.json +1 -1
  71. package/constants/index.json +1 -1
  72. package/package.json +1 -1
  73. package/paymentMethods/base.json +1 -1
  74. package/paymentMethods/baseSepolia.json +1 -1
  75. package/paymentMethods/baseStaging.json +1 -1
  76. package/paymentMethods/index.json +1 -1
  77. package/types/contracts/EscrowV2.ts +121 -4
  78. package/types/contracts/OrchestratorV2.ts +47 -13
  79. package/types/contracts/ProtocolViewerV2.ts +15 -6
  80. package/types/contracts/hooks/SignatureGatingPreIntentHook.ts +16 -7
  81. package/types/contracts/hooks/WhitelistPreIntentHook.ts +16 -7
  82. package/types/contracts/interfaces/IEscrowV2.ts +120 -3
  83. package/types/contracts/interfaces/IOrchestratorV2.ts +47 -13
  84. package/types/contracts/interfaces/IPreIntentHook.ts +16 -7
  85. package/types/contracts/interfaces/IProtocolViewerV2.ts +15 -6
  86. package/types/contracts/interfaces/IReferralFee.ts +55 -0
  87. package/types/contracts/interfaces/index.ts +1 -0
  88. package/types/contracts/lib/ReferralFeeLib.ts +55 -0
  89. 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
- referrer: PromiseOrValue<string>;
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
- string,
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
- referrer: string;
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
- referrer: PromiseOrValue<string>;
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
- string,
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
- referrer: string;
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
- referrer: PromiseOrValue<string>;
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
- string,
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
- referrer: string;
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
- referrer: PromiseOrValue<string>;
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
- string,
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
- referrer: string;
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
- referrer: PromiseOrValue<string>;
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
- string,
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
- referrer: string;
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
 
@@ -166,11 +166,31 @@ 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 IEscrowV2Interface extends utils.Interface {
172
191
  functions: {
173
192
  "clearRateManager(uint256)": FunctionFragment;
193
+ "deactivateCurrenciesBatch(uint256,bytes32[],bytes32[][])": FunctionFragment;
174
194
  "depositTo(address,(address,uint256,(uint256,uint256),bytes32[],(address,bytes32,bytes)[],tuple[][],address,address,bool))": FunctionFragment;
175
195
  "extendIntentExpiry(uint256,bytes32,uint256)": FunctionFragment;
176
196
  "getDeposit(uint256)": FunctionFragment;
@@ -189,17 +209,19 @@ export interface IEscrowV2Interface extends utils.Interface {
189
209
  "getManagerFee(uint256)": FunctionFragment;
190
210
  "lockFunds(uint256,bytes32,uint256)": FunctionFragment;
191
211
  "removeOracleRateConfig(uint256,bytes32,bytes32)": FunctionFragment;
192
- "setOracleRateConfig(uint256,bytes32,bytes32,(address,bytes,uint16,uint32))": FunctionFragment;
212
+ "setOracleRateConfig(uint256,bytes32,bytes32,(address,bytes,int16,uint32))": FunctionFragment;
193
213
  "setOracleRateConfigBatch(uint256,bytes32[],bytes32[][],tuple[][])": FunctionFragment;
194
214
  "setOrchestratorRegistry(address)": FunctionFragment;
195
215
  "setRateManager(uint256,address,bytes32)": FunctionFragment;
196
216
  "unlockAndTransferFunds(uint256,bytes32,uint256,address)": FunctionFragment;
197
217
  "unlockFunds(uint256,bytes32)": FunctionFragment;
218
+ "updateCurrencyConfigBatch(uint256,bytes32[],tuple[][])": FunctionFragment;
198
219
  };
199
220
 
200
221
  getFunction(
201
222
  nameOrSignatureOrTopic:
202
223
  | "clearRateManager"
224
+ | "deactivateCurrenciesBatch"
203
225
  | "depositTo"
204
226
  | "extendIntentExpiry"
205
227
  | "getDeposit"
@@ -224,12 +246,21 @@ export interface IEscrowV2Interface extends utils.Interface {
224
246
  | "setRateManager"
225
247
  | "unlockAndTransferFunds"
226
248
  | "unlockFunds"
249
+ | "updateCurrencyConfigBatch"
227
250
  ): FunctionFragment;
228
251
 
229
252
  encodeFunctionData(
230
253
  functionFragment: "clearRateManager",
231
254
  values: [PromiseOrValue<BigNumberish>]
232
255
  ): string;
256
+ encodeFunctionData(
257
+ functionFragment: "deactivateCurrenciesBatch",
258
+ values: [
259
+ PromiseOrValue<BigNumberish>,
260
+ PromiseOrValue<BytesLike>[],
261
+ PromiseOrValue<BytesLike>[][]
262
+ ]
263
+ ): string;
233
264
  encodeFunctionData(
234
265
  functionFragment: "depositTo",
235
266
  values: [PromiseOrValue<string>, IEscrowV2.CreateDepositParamsStruct]
@@ -369,11 +400,23 @@ export interface IEscrowV2Interface extends utils.Interface {
369
400
  functionFragment: "unlockFunds",
370
401
  values: [PromiseOrValue<BigNumberish>, PromiseOrValue<BytesLike>]
371
402
  ): string;
403
+ encodeFunctionData(
404
+ functionFragment: "updateCurrencyConfigBatch",
405
+ values: [
406
+ PromiseOrValue<BigNumberish>,
407
+ PromiseOrValue<BytesLike>[],
408
+ IEscrowV2.CurrencyRateUpdateStruct[][]
409
+ ]
410
+ ): string;
372
411
 
373
412
  decodeFunctionResult(
374
413
  functionFragment: "clearRateManager",
375
414
  data: BytesLike
376
415
  ): Result;
416
+ decodeFunctionResult(
417
+ functionFragment: "deactivateCurrenciesBatch",
418
+ data: BytesLike
419
+ ): Result;
377
420
  decodeFunctionResult(functionFragment: "depositTo", data: BytesLike): Result;
378
421
  decodeFunctionResult(
379
422
  functionFragment: "extendIntentExpiry",
@@ -461,6 +504,10 @@ export interface IEscrowV2Interface extends utils.Interface {
461
504
  functionFragment: "unlockFunds",
462
505
  data: BytesLike
463
506
  ): Result;
507
+ decodeFunctionResult(
508
+ functionFragment: "updateCurrencyConfigBatch",
509
+ data: BytesLike
510
+ ): Result;
464
511
 
465
512
  events: {
466
513
  "DepositAcceptingIntentsUpdated(uint256,bool)": EventFragment;
@@ -472,7 +519,7 @@ export interface IEscrowV2Interface extends utils.Interface {
472
519
  "DepositIntentAmountRangeUpdated(uint256,tuple)": EventFragment;
473
520
  "DepositMinConversionRateUpdated(uint256,bytes32,bytes32,uint256)": EventFragment;
474
521
  "DepositOracleRateConfigRemoved(uint256,bytes32,bytes32)": EventFragment;
475
- "DepositOracleRateConfigSet(uint256,bytes32,bytes32,address,bytes,uint16,uint32)": EventFragment;
522
+ "DepositOracleRateConfigSet(uint256,bytes32,bytes32,address,bytes,int16,uint32)": EventFragment;
476
523
  "DepositPaymentMethodActiveUpdated(uint256,bytes32,bool)": EventFragment;
477
524
  "DepositPaymentMethodAdded(uint256,bytes32,bytes32,address)": EventFragment;
478
525
  "DepositRateManagerCleared(uint256,address,bytes32)": EventFragment;
@@ -967,6 +1014,13 @@ export interface IEscrowV2 extends BaseContract {
967
1014
  overrides?: Overrides & { from?: PromiseOrValue<string> }
968
1015
  ): Promise<ContractTransaction>;
969
1016
 
1017
+ deactivateCurrenciesBatch(
1018
+ _depositId: PromiseOrValue<BigNumberish>,
1019
+ _paymentMethods: PromiseOrValue<BytesLike>[],
1020
+ _currencyCodes: PromiseOrValue<BytesLike>[][],
1021
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1022
+ ): Promise<ContractTransaction>;
1023
+
970
1024
  depositTo(
971
1025
  _depositor: PromiseOrValue<string>,
972
1026
  _params: IEscrowV2.CreateDepositParamsStruct,
@@ -1123,6 +1177,13 @@ export interface IEscrowV2 extends BaseContract {
1123
1177
  _intentHash: PromiseOrValue<BytesLike>,
1124
1178
  overrides?: Overrides & { from?: PromiseOrValue<string> }
1125
1179
  ): Promise<ContractTransaction>;
1180
+
1181
+ updateCurrencyConfigBatch(
1182
+ _depositId: PromiseOrValue<BigNumberish>,
1183
+ _paymentMethods: PromiseOrValue<BytesLike>[],
1184
+ _updates: IEscrowV2.CurrencyRateUpdateStruct[][],
1185
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1186
+ ): Promise<ContractTransaction>;
1126
1187
  };
1127
1188
 
1128
1189
  clearRateManager(
@@ -1130,6 +1191,13 @@ export interface IEscrowV2 extends BaseContract {
1130
1191
  overrides?: Overrides & { from?: PromiseOrValue<string> }
1131
1192
  ): Promise<ContractTransaction>;
1132
1193
 
1194
+ deactivateCurrenciesBatch(
1195
+ _depositId: PromiseOrValue<BigNumberish>,
1196
+ _paymentMethods: PromiseOrValue<BytesLike>[],
1197
+ _currencyCodes: PromiseOrValue<BytesLike>[][],
1198
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1199
+ ): Promise<ContractTransaction>;
1200
+
1133
1201
  depositTo(
1134
1202
  _depositor: PromiseOrValue<string>,
1135
1203
  _params: IEscrowV2.CreateDepositParamsStruct,
@@ -1285,12 +1353,26 @@ export interface IEscrowV2 extends BaseContract {
1285
1353
  overrides?: Overrides & { from?: PromiseOrValue<string> }
1286
1354
  ): Promise<ContractTransaction>;
1287
1355
 
1356
+ updateCurrencyConfigBatch(
1357
+ _depositId: PromiseOrValue<BigNumberish>,
1358
+ _paymentMethods: PromiseOrValue<BytesLike>[],
1359
+ _updates: IEscrowV2.CurrencyRateUpdateStruct[][],
1360
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1361
+ ): Promise<ContractTransaction>;
1362
+
1288
1363
  callStatic: {
1289
1364
  clearRateManager(
1290
1365
  _depositId: PromiseOrValue<BigNumberish>,
1291
1366
  overrides?: CallOverrides
1292
1367
  ): Promise<void>;
1293
1368
 
1369
+ deactivateCurrenciesBatch(
1370
+ _depositId: PromiseOrValue<BigNumberish>,
1371
+ _paymentMethods: PromiseOrValue<BytesLike>[],
1372
+ _currencyCodes: PromiseOrValue<BytesLike>[][],
1373
+ overrides?: CallOverrides
1374
+ ): Promise<void>;
1375
+
1294
1376
  depositTo(
1295
1377
  _depositor: PromiseOrValue<string>,
1296
1378
  _params: IEscrowV2.CreateDepositParamsStruct,
@@ -1447,6 +1529,13 @@ export interface IEscrowV2 extends BaseContract {
1447
1529
  _intentHash: PromiseOrValue<BytesLike>,
1448
1530
  overrides?: CallOverrides
1449
1531
  ): Promise<void>;
1532
+
1533
+ updateCurrencyConfigBatch(
1534
+ _depositId: PromiseOrValue<BigNumberish>,
1535
+ _paymentMethods: PromiseOrValue<BytesLike>[],
1536
+ _updates: IEscrowV2.CurrencyRateUpdateStruct[][],
1537
+ overrides?: CallOverrides
1538
+ ): Promise<void>;
1450
1539
  };
1451
1540
 
1452
1541
  filters: {
@@ -1542,7 +1631,7 @@ export interface IEscrowV2 extends BaseContract {
1542
1631
  currencyCode?: PromiseOrValue<BytesLike> | null
1543
1632
  ): DepositOracleRateConfigRemovedEventFilter;
1544
1633
 
1545
- "DepositOracleRateConfigSet(uint256,bytes32,bytes32,address,bytes,uint16,uint32)"(
1634
+ "DepositOracleRateConfigSet(uint256,bytes32,bytes32,address,bytes,int16,uint32)"(
1546
1635
  depositId?: PromiseOrValue<BigNumberish> | null,
1547
1636
  paymentMethod?: PromiseOrValue<BytesLike> | null,
1548
1637
  currencyCode?: PromiseOrValue<BytesLike> | null,
@@ -1768,6 +1857,13 @@ export interface IEscrowV2 extends BaseContract {
1768
1857
  overrides?: Overrides & { from?: PromiseOrValue<string> }
1769
1858
  ): Promise<BigNumber>;
1770
1859
 
1860
+ deactivateCurrenciesBatch(
1861
+ _depositId: PromiseOrValue<BigNumberish>,
1862
+ _paymentMethods: PromiseOrValue<BytesLike>[],
1863
+ _currencyCodes: PromiseOrValue<BytesLike>[][],
1864
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1865
+ ): Promise<BigNumber>;
1866
+
1771
1867
  depositTo(
1772
1868
  _depositor: PromiseOrValue<string>,
1773
1869
  _params: IEscrowV2.CreateDepositParamsStruct,
@@ -1917,6 +2013,13 @@ export interface IEscrowV2 extends BaseContract {
1917
2013
  _intentHash: PromiseOrValue<BytesLike>,
1918
2014
  overrides?: Overrides & { from?: PromiseOrValue<string> }
1919
2015
  ): Promise<BigNumber>;
2016
+
2017
+ updateCurrencyConfigBatch(
2018
+ _depositId: PromiseOrValue<BigNumberish>,
2019
+ _paymentMethods: PromiseOrValue<BytesLike>[],
2020
+ _updates: IEscrowV2.CurrencyRateUpdateStruct[][],
2021
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
2022
+ ): Promise<BigNumber>;
1920
2023
  };
1921
2024
 
1922
2025
  populateTransaction: {
@@ -1925,6 +2028,13 @@ export interface IEscrowV2 extends BaseContract {
1925
2028
  overrides?: Overrides & { from?: PromiseOrValue<string> }
1926
2029
  ): Promise<PopulatedTransaction>;
1927
2030
 
2031
+ deactivateCurrenciesBatch(
2032
+ _depositId: PromiseOrValue<BigNumberish>,
2033
+ _paymentMethods: PromiseOrValue<BytesLike>[],
2034
+ _currencyCodes: PromiseOrValue<BytesLike>[][],
2035
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
2036
+ ): Promise<PopulatedTransaction>;
2037
+
1928
2038
  depositTo(
1929
2039
  _depositor: PromiseOrValue<string>,
1930
2040
  _params: IEscrowV2.CreateDepositParamsStruct,
@@ -2074,5 +2184,12 @@ export interface IEscrowV2 extends BaseContract {
2074
2184
  _intentHash: PromiseOrValue<BytesLike>,
2075
2185
  overrides?: Overrides & { from?: PromiseOrValue<string> }
2076
2186
  ): Promise<PopulatedTransaction>;
2187
+
2188
+ updateCurrencyConfigBatch(
2189
+ _depositId: PromiseOrValue<BigNumberish>,
2190
+ _paymentMethods: PromiseOrValue<BytesLike>[],
2191
+ _updates: IEscrowV2.CurrencyRateUpdateStruct[][],
2192
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
2193
+ ): Promise<PopulatedTransaction>;
2077
2194
  };
2078
2195
  }