lynx-client 0.0.10 → 0.0.11
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/dist/cjs/index.js +5 -1
- package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.js +2 -0
- package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +122 -0
- package/dist/cjs/lib/contractsIntegration/OnBehalfTradingService/index.js +5 -0
- package/dist/cjs/lib/contractsIntegration/deployedContractsConnector.js +17 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.js +2 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.js +773 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +114 -2
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +5 -1
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +28 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.js +2 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts +29 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.js +122 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/index.d.ts +3 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/index.d.ts.map +1 -0
- package/dist/esm/lib/contractsIntegration/OnBehalfTradingService/index.js +5 -0
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts +5 -0
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +17 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts +498 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +54 -4
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts +594 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.js +773 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +91 -2
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +114 -2
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts +28 -0
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/IOnBehalfTradingService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts +29 -0
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/OnBehalfTradingService.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/index.d.ts +3 -0
- package/dist/types/lib/contractsIntegration/OnBehalfTradingService/index.d.ts.map +1 -0
- package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts +5 -0
- package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts +498 -0
- package/dist/types/lib/typechain/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +54 -4
- package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts +594 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/OnBehalfTrading/OnBehalfTradingV1__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +91 -2
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,773 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OnBehalfTradingV1__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "address",
|
|
13
|
+
name: "_registry",
|
|
14
|
+
type: "address",
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
stateMutability: "nonpayable",
|
|
18
|
+
type: "constructor",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
anonymous: false,
|
|
22
|
+
inputs: [
|
|
23
|
+
{
|
|
24
|
+
indexed: true,
|
|
25
|
+
internalType: "address",
|
|
26
|
+
name: "owner",
|
|
27
|
+
type: "address",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
indexed: true,
|
|
31
|
+
internalType: "address",
|
|
32
|
+
name: "spender",
|
|
33
|
+
type: "address",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
name: "AllPermissionsPermanentlyRevoked",
|
|
37
|
+
type: "event",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
anonymous: false,
|
|
41
|
+
inputs: [
|
|
42
|
+
{
|
|
43
|
+
indexed: true,
|
|
44
|
+
internalType: "address",
|
|
45
|
+
name: "caller",
|
|
46
|
+
type: "address",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
indexed: false,
|
|
50
|
+
internalType: "string",
|
|
51
|
+
name: "roleName",
|
|
52
|
+
type: "string",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
name: "DynamicRoleCallerUpdated",
|
|
56
|
+
type: "event",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
anonymous: false,
|
|
60
|
+
inputs: [
|
|
61
|
+
{
|
|
62
|
+
indexed: true,
|
|
63
|
+
internalType: "address",
|
|
64
|
+
name: "token",
|
|
65
|
+
type: "address",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
indexed: false,
|
|
69
|
+
internalType: "uint256",
|
|
70
|
+
name: "newMaxAmount",
|
|
71
|
+
type: "uint256",
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
name: "MaxPermissionAmountUpdatedForToken",
|
|
75
|
+
type: "event",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
anonymous: false,
|
|
79
|
+
inputs: [
|
|
80
|
+
{
|
|
81
|
+
indexed: false,
|
|
82
|
+
internalType: "uint256",
|
|
83
|
+
name: "newMaxDuration",
|
|
84
|
+
type: "uint256",
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
name: "MaxPermissionDurationUpdated",
|
|
88
|
+
type: "event",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
anonymous: false,
|
|
92
|
+
inputs: [
|
|
93
|
+
{
|
|
94
|
+
indexed: false,
|
|
95
|
+
internalType: "address",
|
|
96
|
+
name: "oldAdmin",
|
|
97
|
+
type: "address",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
indexed: false,
|
|
101
|
+
internalType: "address",
|
|
102
|
+
name: "newAdmin",
|
|
103
|
+
type: "address",
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
name: "NewAdmin",
|
|
107
|
+
type: "event",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
anonymous: false,
|
|
111
|
+
inputs: [
|
|
112
|
+
{
|
|
113
|
+
indexed: false,
|
|
114
|
+
internalType: "address",
|
|
115
|
+
name: "oldPendingAdmin",
|
|
116
|
+
type: "address",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
indexed: false,
|
|
120
|
+
internalType: "address",
|
|
121
|
+
name: "newPendingAdmin",
|
|
122
|
+
type: "address",
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
name: "NewPendingAdmin",
|
|
126
|
+
type: "event",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
anonymous: false,
|
|
130
|
+
inputs: [
|
|
131
|
+
{
|
|
132
|
+
indexed: false,
|
|
133
|
+
internalType: "bool",
|
|
134
|
+
name: "isPaused",
|
|
135
|
+
type: "bool",
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
name: "PausedToggled",
|
|
139
|
+
type: "event",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
anonymous: false,
|
|
143
|
+
inputs: [
|
|
144
|
+
{
|
|
145
|
+
indexed: true,
|
|
146
|
+
internalType: "address",
|
|
147
|
+
name: "owner",
|
|
148
|
+
type: "address",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
indexed: true,
|
|
152
|
+
internalType: "address",
|
|
153
|
+
name: "spender",
|
|
154
|
+
type: "address",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
indexed: true,
|
|
158
|
+
internalType: "address",
|
|
159
|
+
name: "token",
|
|
160
|
+
type: "address",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
indexed: false,
|
|
164
|
+
internalType: "uint256",
|
|
165
|
+
name: "amountUsed",
|
|
166
|
+
type: "uint256",
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
indexed: false,
|
|
170
|
+
internalType: "uint256",
|
|
171
|
+
name: "remainingAmount",
|
|
172
|
+
type: "uint256",
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
name: "PermissionCharged",
|
|
176
|
+
type: "event",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
anonymous: false,
|
|
180
|
+
inputs: [
|
|
181
|
+
{
|
|
182
|
+
indexed: true,
|
|
183
|
+
internalType: "address",
|
|
184
|
+
name: "owner",
|
|
185
|
+
type: "address",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
indexed: true,
|
|
189
|
+
internalType: "address",
|
|
190
|
+
name: "spender",
|
|
191
|
+
type: "address",
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
indexed: true,
|
|
195
|
+
internalType: "address",
|
|
196
|
+
name: "token",
|
|
197
|
+
type: "address",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
indexed: false,
|
|
201
|
+
internalType: "uint256",
|
|
202
|
+
name: "amountLimit",
|
|
203
|
+
type: "uint256",
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
indexed: false,
|
|
207
|
+
internalType: "uint256",
|
|
208
|
+
name: "expiryTime",
|
|
209
|
+
type: "uint256",
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
name: "PermissionGranted",
|
|
213
|
+
type: "event",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
anonymous: false,
|
|
217
|
+
inputs: [
|
|
218
|
+
{
|
|
219
|
+
indexed: true,
|
|
220
|
+
internalType: "address",
|
|
221
|
+
name: "owner",
|
|
222
|
+
type: "address",
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
indexed: true,
|
|
226
|
+
internalType: "address",
|
|
227
|
+
name: "spender",
|
|
228
|
+
type: "address",
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
indexed: true,
|
|
232
|
+
internalType: "address",
|
|
233
|
+
name: "token",
|
|
234
|
+
type: "address",
|
|
235
|
+
},
|
|
236
|
+
],
|
|
237
|
+
name: "PermissionRevoked",
|
|
238
|
+
type: "event",
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
inputs: [],
|
|
242
|
+
name: "CONTRACT_NAME",
|
|
243
|
+
outputs: [
|
|
244
|
+
{
|
|
245
|
+
internalType: "string",
|
|
246
|
+
name: "",
|
|
247
|
+
type: "string",
|
|
248
|
+
},
|
|
249
|
+
],
|
|
250
|
+
stateMutability: "view",
|
|
251
|
+
type: "function",
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
inputs: [],
|
|
255
|
+
name: "CONTRACT_VERSION",
|
|
256
|
+
outputs: [
|
|
257
|
+
{
|
|
258
|
+
internalType: "string",
|
|
259
|
+
name: "",
|
|
260
|
+
type: "string",
|
|
261
|
+
},
|
|
262
|
+
],
|
|
263
|
+
stateMutability: "view",
|
|
264
|
+
type: "function",
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
inputs: [],
|
|
268
|
+
name: "_acceptAdmin",
|
|
269
|
+
outputs: [],
|
|
270
|
+
stateMutability: "nonpayable",
|
|
271
|
+
type: "function",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
inputs: [
|
|
275
|
+
{
|
|
276
|
+
internalType: "address",
|
|
277
|
+
name: "newPendingAdmin",
|
|
278
|
+
type: "address",
|
|
279
|
+
},
|
|
280
|
+
],
|
|
281
|
+
name: "_setPendingAdmin",
|
|
282
|
+
outputs: [],
|
|
283
|
+
stateMutability: "nonpayable",
|
|
284
|
+
type: "function",
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
inputs: [],
|
|
288
|
+
name: "admin",
|
|
289
|
+
outputs: [
|
|
290
|
+
{
|
|
291
|
+
internalType: "address",
|
|
292
|
+
name: "",
|
|
293
|
+
type: "address",
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
stateMutability: "view",
|
|
297
|
+
type: "function",
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
inputs: [
|
|
301
|
+
{
|
|
302
|
+
internalType: "address",
|
|
303
|
+
name: "owner",
|
|
304
|
+
type: "address",
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
internalType: "address",
|
|
308
|
+
name: "spender",
|
|
309
|
+
type: "address",
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
internalType: "address",
|
|
313
|
+
name: "token",
|
|
314
|
+
type: "address",
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
internalType: "uint256",
|
|
318
|
+
name: "amount",
|
|
319
|
+
type: "uint256",
|
|
320
|
+
},
|
|
321
|
+
],
|
|
322
|
+
name: "chargePermission",
|
|
323
|
+
outputs: [],
|
|
324
|
+
stateMutability: "nonpayable",
|
|
325
|
+
type: "function",
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
inputs: [
|
|
329
|
+
{
|
|
330
|
+
internalType: "address",
|
|
331
|
+
name: "",
|
|
332
|
+
type: "address",
|
|
333
|
+
},
|
|
334
|
+
],
|
|
335
|
+
name: "dynamicRoleCallers",
|
|
336
|
+
outputs: [
|
|
337
|
+
{
|
|
338
|
+
internalType: "string",
|
|
339
|
+
name: "",
|
|
340
|
+
type: "string",
|
|
341
|
+
},
|
|
342
|
+
],
|
|
343
|
+
stateMutability: "view",
|
|
344
|
+
type: "function",
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
inputs: [],
|
|
348
|
+
name: "getContractName",
|
|
349
|
+
outputs: [
|
|
350
|
+
{
|
|
351
|
+
internalType: "string",
|
|
352
|
+
name: "",
|
|
353
|
+
type: "string",
|
|
354
|
+
},
|
|
355
|
+
],
|
|
356
|
+
stateMutability: "pure",
|
|
357
|
+
type: "function",
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
inputs: [],
|
|
361
|
+
name: "getContractVersion",
|
|
362
|
+
outputs: [
|
|
363
|
+
{
|
|
364
|
+
internalType: "string",
|
|
365
|
+
name: "",
|
|
366
|
+
type: "string",
|
|
367
|
+
},
|
|
368
|
+
],
|
|
369
|
+
stateMutability: "pure",
|
|
370
|
+
type: "function",
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
inputs: [
|
|
374
|
+
{
|
|
375
|
+
internalType: "address",
|
|
376
|
+
name: "owner",
|
|
377
|
+
type: "address",
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
internalType: "address",
|
|
381
|
+
name: "spender",
|
|
382
|
+
type: "address",
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
internalType: "address",
|
|
386
|
+
name: "token",
|
|
387
|
+
type: "address",
|
|
388
|
+
},
|
|
389
|
+
],
|
|
390
|
+
name: "getRemainingAmount",
|
|
391
|
+
outputs: [
|
|
392
|
+
{
|
|
393
|
+
internalType: "uint256",
|
|
394
|
+
name: "",
|
|
395
|
+
type: "uint256",
|
|
396
|
+
},
|
|
397
|
+
],
|
|
398
|
+
stateMutability: "view",
|
|
399
|
+
type: "function",
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
inputs: [
|
|
403
|
+
{
|
|
404
|
+
internalType: "address",
|
|
405
|
+
name: "spender",
|
|
406
|
+
type: "address",
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
internalType: "address",
|
|
410
|
+
name: "token",
|
|
411
|
+
type: "address",
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
internalType: "uint256",
|
|
415
|
+
name: "amountLimit",
|
|
416
|
+
type: "uint256",
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
internalType: "uint256",
|
|
420
|
+
name: "duration",
|
|
421
|
+
type: "uint256",
|
|
422
|
+
},
|
|
423
|
+
],
|
|
424
|
+
name: "grantPermission",
|
|
425
|
+
outputs: [],
|
|
426
|
+
stateMutability: "nonpayable",
|
|
427
|
+
type: "function",
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
inputs: [],
|
|
431
|
+
name: "isPaused",
|
|
432
|
+
outputs: [
|
|
433
|
+
{
|
|
434
|
+
internalType: "bool",
|
|
435
|
+
name: "",
|
|
436
|
+
type: "bool",
|
|
437
|
+
},
|
|
438
|
+
],
|
|
439
|
+
stateMutability: "view",
|
|
440
|
+
type: "function",
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
inputs: [
|
|
444
|
+
{
|
|
445
|
+
internalType: "address",
|
|
446
|
+
name: "owner",
|
|
447
|
+
type: "address",
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
internalType: "address",
|
|
451
|
+
name: "spender",
|
|
452
|
+
type: "address",
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
internalType: "address",
|
|
456
|
+
name: "token",
|
|
457
|
+
type: "address",
|
|
458
|
+
},
|
|
459
|
+
],
|
|
460
|
+
name: "isPermissionValid",
|
|
461
|
+
outputs: [
|
|
462
|
+
{
|
|
463
|
+
internalType: "bool",
|
|
464
|
+
name: "",
|
|
465
|
+
type: "bool",
|
|
466
|
+
},
|
|
467
|
+
],
|
|
468
|
+
stateMutability: "view",
|
|
469
|
+
type: "function",
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
inputs: [
|
|
473
|
+
{
|
|
474
|
+
internalType: "address",
|
|
475
|
+
name: "",
|
|
476
|
+
type: "address",
|
|
477
|
+
},
|
|
478
|
+
],
|
|
479
|
+
name: "maxPermissionAmountPerToken",
|
|
480
|
+
outputs: [
|
|
481
|
+
{
|
|
482
|
+
internalType: "uint256",
|
|
483
|
+
name: "",
|
|
484
|
+
type: "uint256",
|
|
485
|
+
},
|
|
486
|
+
],
|
|
487
|
+
stateMutability: "view",
|
|
488
|
+
type: "function",
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
inputs: [],
|
|
492
|
+
name: "maxPermissionDuration",
|
|
493
|
+
outputs: [
|
|
494
|
+
{
|
|
495
|
+
internalType: "uint256",
|
|
496
|
+
name: "",
|
|
497
|
+
type: "uint256",
|
|
498
|
+
},
|
|
499
|
+
],
|
|
500
|
+
stateMutability: "view",
|
|
501
|
+
type: "function",
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
inputs: [],
|
|
505
|
+
name: "pendingAdmin",
|
|
506
|
+
outputs: [
|
|
507
|
+
{
|
|
508
|
+
internalType: "address",
|
|
509
|
+
name: "",
|
|
510
|
+
type: "address",
|
|
511
|
+
},
|
|
512
|
+
],
|
|
513
|
+
stateMutability: "view",
|
|
514
|
+
type: "function",
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
inputs: [
|
|
518
|
+
{
|
|
519
|
+
internalType: "address",
|
|
520
|
+
name: "",
|
|
521
|
+
type: "address",
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
internalType: "address",
|
|
525
|
+
name: "",
|
|
526
|
+
type: "address",
|
|
527
|
+
},
|
|
528
|
+
],
|
|
529
|
+
name: "permanentlyRevoked",
|
|
530
|
+
outputs: [
|
|
531
|
+
{
|
|
532
|
+
internalType: "bool",
|
|
533
|
+
name: "",
|
|
534
|
+
type: "bool",
|
|
535
|
+
},
|
|
536
|
+
],
|
|
537
|
+
stateMutability: "view",
|
|
538
|
+
type: "function",
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
inputs: [
|
|
542
|
+
{
|
|
543
|
+
internalType: "address",
|
|
544
|
+
name: "",
|
|
545
|
+
type: "address",
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
internalType: "address",
|
|
549
|
+
name: "",
|
|
550
|
+
type: "address",
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
internalType: "address",
|
|
554
|
+
name: "",
|
|
555
|
+
type: "address",
|
|
556
|
+
},
|
|
557
|
+
],
|
|
558
|
+
name: "permissions",
|
|
559
|
+
outputs: [
|
|
560
|
+
{
|
|
561
|
+
internalType: "uint256",
|
|
562
|
+
name: "amountLimit",
|
|
563
|
+
type: "uint256",
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
internalType: "uint256",
|
|
567
|
+
name: "amountUsed",
|
|
568
|
+
type: "uint256",
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
internalType: "uint256",
|
|
572
|
+
name: "expiryTime",
|
|
573
|
+
type: "uint256",
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
internalType: "bool",
|
|
577
|
+
name: "isActive",
|
|
578
|
+
type: "bool",
|
|
579
|
+
},
|
|
580
|
+
],
|
|
581
|
+
stateMutability: "view",
|
|
582
|
+
type: "function",
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
inputs: [],
|
|
586
|
+
name: "registry",
|
|
587
|
+
outputs: [
|
|
588
|
+
{
|
|
589
|
+
internalType: "contract IRegistryV1",
|
|
590
|
+
name: "",
|
|
591
|
+
type: "address",
|
|
592
|
+
},
|
|
593
|
+
],
|
|
594
|
+
stateMutability: "view",
|
|
595
|
+
type: "function",
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
inputs: [
|
|
599
|
+
{
|
|
600
|
+
internalType: "address",
|
|
601
|
+
name: "owner",
|
|
602
|
+
type: "address",
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
internalType: "address",
|
|
606
|
+
name: "spender",
|
|
607
|
+
type: "address",
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
internalType: "address",
|
|
611
|
+
name: "token",
|
|
612
|
+
type: "address",
|
|
613
|
+
},
|
|
614
|
+
],
|
|
615
|
+
name: "requirePermission",
|
|
616
|
+
outputs: [],
|
|
617
|
+
stateMutability: "view",
|
|
618
|
+
type: "function",
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
inputs: [
|
|
622
|
+
{
|
|
623
|
+
internalType: "address",
|
|
624
|
+
name: "spender",
|
|
625
|
+
type: "address",
|
|
626
|
+
},
|
|
627
|
+
],
|
|
628
|
+
name: "revokeAllPermissions",
|
|
629
|
+
outputs: [],
|
|
630
|
+
stateMutability: "nonpayable",
|
|
631
|
+
type: "function",
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
inputs: [
|
|
635
|
+
{
|
|
636
|
+
internalType: "address",
|
|
637
|
+
name: "spender",
|
|
638
|
+
type: "address",
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
internalType: "address",
|
|
642
|
+
name: "token",
|
|
643
|
+
type: "address",
|
|
644
|
+
},
|
|
645
|
+
],
|
|
646
|
+
name: "revokePermission",
|
|
647
|
+
outputs: [],
|
|
648
|
+
stateMutability: "nonpayable",
|
|
649
|
+
type: "function",
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
inputs: [
|
|
653
|
+
{
|
|
654
|
+
internalType: "address",
|
|
655
|
+
name: "caller",
|
|
656
|
+
type: "address",
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
internalType: "string",
|
|
660
|
+
name: "roleName",
|
|
661
|
+
type: "string",
|
|
662
|
+
},
|
|
663
|
+
],
|
|
664
|
+
name: "setDynamicRoleCaller",
|
|
665
|
+
outputs: [],
|
|
666
|
+
stateMutability: "nonpayable",
|
|
667
|
+
type: "function",
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
inputs: [
|
|
671
|
+
{
|
|
672
|
+
internalType: "address[]",
|
|
673
|
+
name: "callers",
|
|
674
|
+
type: "address[]",
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
internalType: "string[]",
|
|
678
|
+
name: "roleNames",
|
|
679
|
+
type: "string[]",
|
|
680
|
+
},
|
|
681
|
+
],
|
|
682
|
+
name: "setDynamicRoleCallers",
|
|
683
|
+
outputs: [],
|
|
684
|
+
stateMutability: "nonpayable",
|
|
685
|
+
type: "function",
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
inputs: [
|
|
689
|
+
{
|
|
690
|
+
internalType: "address",
|
|
691
|
+
name: "token",
|
|
692
|
+
type: "address",
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
internalType: "uint256",
|
|
696
|
+
name: "_maxAmount",
|
|
697
|
+
type: "uint256",
|
|
698
|
+
},
|
|
699
|
+
],
|
|
700
|
+
name: "setMaxPermissionAmountForToken",
|
|
701
|
+
outputs: [],
|
|
702
|
+
stateMutability: "nonpayable",
|
|
703
|
+
type: "function",
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
inputs: [
|
|
707
|
+
{
|
|
708
|
+
internalType: "address[]",
|
|
709
|
+
name: "tokens",
|
|
710
|
+
type: "address[]",
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
internalType: "uint256[]",
|
|
714
|
+
name: "maxAmounts",
|
|
715
|
+
type: "uint256[]",
|
|
716
|
+
},
|
|
717
|
+
],
|
|
718
|
+
name: "setMaxPermissionAmountsForTokens",
|
|
719
|
+
outputs: [],
|
|
720
|
+
stateMutability: "nonpayable",
|
|
721
|
+
type: "function",
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
inputs: [
|
|
725
|
+
{
|
|
726
|
+
internalType: "uint256",
|
|
727
|
+
name: "_maxDuration",
|
|
728
|
+
type: "uint256",
|
|
729
|
+
},
|
|
730
|
+
],
|
|
731
|
+
name: "setMaxPermissionDuration",
|
|
732
|
+
outputs: [],
|
|
733
|
+
stateMutability: "nonpayable",
|
|
734
|
+
type: "function",
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
inputs: [],
|
|
738
|
+
name: "togglePause",
|
|
739
|
+
outputs: [],
|
|
740
|
+
stateMutability: "nonpayable",
|
|
741
|
+
type: "function",
|
|
742
|
+
},
|
|
743
|
+
];
|
|
744
|
+
const _bytecode = "0x608060405262278d006003553480156200001857600080fd5b506040516200246c3803806200246c8339810160408190526200003b91620001cf565b600080546001600160a01b031916331790556001600160a01b0381166200009c5760405162461bcd60e51b815260206004820152601060248201526f494e56414c49445f524547495354525960801b60448201526064015b60405180910390fd5b60405167526567697374727960c01b602082015260280160405160208183030381529060405280519060200120816001600160a01b031663f5f5ba726040518163ffffffff1660e01b8152600401600060405180830381865afa15801562000108573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200013291908101906200023d565b604051602001620001449190620002f5565b6040516020818303038152906040528051906020012014620001a95760405162461bcd60e51b815260206004820152601560248201527f4e4f545f52454749535452595f434f4e54524143540000000000000000000000604482015260640162000093565b600280546001600160a01b0319166001600160a01b039290921691909117905562000313565b600060208284031215620001e257600080fd5b81516001600160a01b0381168114620001fa57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620002345781810151838201526020016200021a565b50506000910152565b6000602082840312156200025057600080fd5b81516001600160401b03808211156200026857600080fd5b818401915084601f8301126200027d57600080fd5b81518181111562000292576200029262000201565b604051601f8201601f19908116603f01168101908382118183101715620002bd57620002bd62000201565b81604052828152876020848701011115620002d757600080fd5b620002ea83602083016020880162000217565b979650505050505050565b600082516200030981846020870162000217565b9190910192915050565b61214980620003236000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80638aa10435116100f9578063ce3707b311610097578063ecd2475b11610071578063ecd2475b1461047e578063ede94e7514610491578063f5f5ba721461049a578063f851a440146104c757600080fd5b8063ce3707b314610443578063e0f3290214610463578063e9c714f21461047657600080fd5b8063b71d1a0c116100d3578063b71d1a0c146103e7578063b7c3a499146103fa578063c224696814610428578063c4ae31681461043b57600080fd5b80638aa10435146103a157806393edb316146103c0578063b187bd26146103d357600080fd5b8063614d08f8116101665780637816050f116101405780637816050f146103455780637b1039991461036857806381e6a99d1461037b5780638416f9b31461038e57600080fd5b8063614d08f8146102ef57806365b003271461031f578063780f15091461033257600080fd5b806326782247116101a2578063267822471461021757806338b903331461024257806345a05a1b1461027157806349836fad1461028457600080fd5b806312dfe61f146101c957806312f4fb4d146101de5780631e3b56d414610204575b600080fd5b6101dc6101d7366004611ae1565b6104da565b005b6101f16101ec366004611afe565b610536565b6040519081526020015b60405180910390f35b6101dc610212366004611b49565b610620565b60015461022a906001600160a01b031681565b6040516001600160a01b0390911681526020016101fb565b6102646040518060400160405280600381526020016203130360ec1b81525081565b6040516101fb9190611bce565b6101dc61027f366004611c69565b610706565b6102cd610292366004611afe565b600660209081526000938452604080852082529284528284209052825290208054600182015460028301546003909301549192909160ff1684565b60408051948552602085019390935291830152151560608201526080016101fb565b610264604051806040016040528060118152602001704f6e426568616c6654726164696e67563160781b81525081565b6101dc61032d366004611cd5565b610901565b6101dc610340366004611d1b565b610c6b565b610358610353366004611afe565b610d20565b60405190151581526020016101fb565b60025461022a906001600160a01b031681565b6101dc610389366004611afe565b610de4565b6101dc61039c366004611d34565b610eb6565b60408051808201909152600381526203130360ec1b6020820152610264565b6101dc6103ce366004611c69565b611499565b60025461035890600160a01b900460ff1681565b6101dc6103f5366004611ae1565b61164b565b610358610408366004611d85565b600760209081526000928352604080842090915290825290205460ff1681565b6101dc610436366004611d85565b6116f3565b6101dc6117d8565b6101f1610451366004611ae1565b60046020526000908152604090205481565b610264610471366004611ae1565b611868565b6101dc611902565b6101dc61048c366004611dbe565b611a20565b6101f160035481565b6040805180820190915260118152704f6e426568616c6654726164696e67563160781b6020820152610264565b60005461022a906001600160a01b031681565b3360008181526007602090815260408083206001600160a01b0386168085529252808320805460ff1916600117905551909183917fd6daf425f865371fa93382a17863784ebef5641f0f5dadcd34f76f3dd04da1f79190a35050565b6001600160a01b03808416600090815260076020908152604080832093861683529290529081205460ff161561056e57506000610619565b6001600160a01b0380851660009081526006602090815260408083208785168452825280832093861683529281529082902082516080810184528154815260018201549281019290925260028101549282019290925260039091015460ff161580156060830152806105f55750806040015142101580156105f55750600019816040015114155b15610604576000915050610619565b602081015181516106159190611e00565b9150505b9392505050565b6000546001600160a01b031633146106535760405162461bcd60e51b815260040161064a90611e19565b60405180910390fd5b6001600160a01b03831661069a5760405162461bcd60e51b815260206004820152600e60248201526d24a72b20a624a22fa1a0a62622a960911b604482015260640161064a565b6001600160a01b03831660009081526005602052604090206106bd828483611ede565b50826001600160a01b03167f13751a120d9bee36b71a5cb6844f0d3be82ff7bdf7e38f96487f9bb79babedac83836040516106f9929190611f9e565b60405180910390a2505050565b6000546001600160a01b031633146107305760405162461bcd60e51b815260040161064a90611e19565b8281146107775760405162461bcd60e51b8152602060048201526015602482015274082a4a482b2be988a9c8ea890be9a92a69a82a8869605b1b604482015260640161064a565b60005b838110156108fa57600085858381811061079657610796611fcd565b90506020020160208101906107ab9190611ae1565b6001600160a01b0316036107f25760405162461bcd60e51b815260206004820152600e60248201526d24a72b20a624a22fa1a0a62622a960911b604482015260640161064a565b82828281811061080457610804611fcd565b90506020028101906108169190611fe3565b6005600088888681811061082c5761082c611fcd565b90506020020160208101906108419190611ae1565b6001600160a01b03168152602081019190915260400160002091610866919083611ede565b5084848281811061087957610879611fcd565b905060200201602081019061088e9190611ae1565b6001600160a01b03167f13751a120d9bee36b71a5cb6844f0d3be82ff7bdf7e38f96487f9bb79babedac8484848181106108ca576108ca611fcd565b90506020028101906108dc9190611fe3565b6040516108ea929190611f9e565b60405180910390a260010161077a565b5050505050565b600254600160a01b900460ff16156109445760405162461bcd60e51b815260206004820152600660248201526514105554d15160d21b604482015260640161064a565b6001600160a01b0384166109905760405162461bcd60e51b81526020600482015260136024820152721253959053125117d4d55097d050d0d3d55395606a1b604482015260640161064a565b336001600160a01b038516036109df5760405162461bcd60e51b815260206004820152601460248201527321a0a72727aa2fa3a920a72a2faa27afa9a2a62360611b604482015260640161064a565b6001600160a01b038316610a055760405162461bcd60e51b815260040161064a9061202a565b600081118015610a1757506003548111155b610a565760405162461bcd60e51b815260206004820152601060248201526f24a72b20a624a22fa22aa920aa24a7a760811b604482015260640161064a565b6001600160a01b03831660009081526004602052604090205433908315801590610a885750801580610a885750808411155b610acb5760405162461bcd60e51b81526020600482015260146024820152731253959053125117d05353d5539517d31253525560621b604482015260640161064a565b6001600160a01b038083166000908152600760209081526040808320938a168352929052205460ff1615610b115760405162461bcd60e51b815260040161064a90612051565b60006000198414610b2b57610b268442612088565b610b2f565b6000195b90506040518060800160405280868152602001600081526020018281526020016001151581525060066000856001600160a01b03166001600160a01b031681526020019081526020016000206000896001600160a01b03166001600160a01b031681526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548160ff021916908315150217905550905050856001600160a01b0316876001600160a01b0316846001600160a01b03167f385eed2fa9dcc7c7bc2f348e2848dffb0f87b9400a6a291ab8caae1341a9d33c8885604051610c5a929190918252602082015260400190565b60405180910390a450505050505050565b6000546001600160a01b03163314610c955760405162461bcd60e51b815260040161064a90611e19565b60008111610ce55760405162461bcd60e51b815260206004820152601960248201527f4455524154494f4e5f4d5553545f42455f504f53495449564500000000000000604482015260640161064a565b60038190556040518181527f0240c0124750287c26072d862a93b7477b70c2790b8cda14d0f58838b152c54f9060200160405180910390a150565b6001600160a01b03808416600090815260076020908152604080832093861683529290529081205460ff1615610d5857506000610619565b6001600160a01b0380851660009081526006602090815260408083208785168452825280832093861683529281529082902082516080810184528154815260018201549281019290925260028101549282019290925260039091015460ff1615801560608301819052906106155750806040015142108061061557506040015160001914949350505050565b6001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff1615610e2a5760405162461bcd60e51b815260040161064a90612051565b6001600160a01b03808416600090815260066020908152604080832086851684528252808320938516835292905220600381015460ff16610e7d5760405162461bcd60e51b815260040161064a9061209b565b60001981600201541480610e945750806002015442105b610eb05760405162461bcd60e51b815260040161064a906120ca565b50505050565b600254600160a01b900460ff1615610ef95760405162461bcd60e51b815260206004820152600660248201526514105554d15160d21b604482015260640161064a565b600260009054906101000a90046001600160a01b03166001600160a01b031663fab337046040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7091906120f6565b6001600160a01b03163303611139576001600160a01b0380851660009081526007602090815260408083209387168352929052205460ff1615610fc55760405162461bcd60e51b815260040161064a90612051565b6001600160a01b03808516600090815260066020908152604080832087851684528252808320938616835292905220600381015460ff166110185760405162461bcd60e51b815260040161064a9061209b565b6000198160020154148061102f5750806002015442105b61104b5760405162461bcd60e51b815260040161064a906120ca565b805460001911156110c75780546001820154611068908490612088565b11156110ad5760405162461bcd60e51b8152602060048201526014602482015273115610d1515114d7d05353d5539517d31253525560621b604482015260640161064a565b818160010160008282546110c19190612088565b90915550505b826001600160a01b0316846001600160a01b0316866001600160a01b03167f6cca74a72fcfc88bc91c00690ff15d1f15ec9bdf2038748416ad3bb1e69205fc858560010154866000015461111b9190611e00565b6040805192835260208301919091520160405180910390a450610eb0565b336000908152600560205260408120805461115390611e53565b80601f016020809104026020016040519081016040528092919081815260200182805461117f90611e53565b80156111cc5780601f106111a1576101008083540402835291602001916111cc565b820191906000526020600020905b8154815290600101906020018083116111af57829003601f168201915b5050505050905060008151111561145b57600254604051632c652ce760e11b81526000916001600160a01b0316906358ca59ce9061120e908590600401611bce565b602060405180830381865afa15801561122b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124f91906120f6565b9050336001600160a01b0382161461129f5760405162461bcd60e51b81526020600482015260136024820152722aa720aaaa2427a924ad22a22fa1a0a62622a960691b604482015260640161064a565b6001600160a01b0380871660009081526007602090815260408083209389168352929052205460ff16156112e55760405162461bcd60e51b815260040161064a90612051565b6001600160a01b03808716600090815260066020908152604080832089851684528252808320938816835292905220600381015460ff166113385760405162461bcd60e51b815260040161064a9061209b565b6000198160020154148061134f5750806002015442105b61136b5760405162461bcd60e51b815260040161064a906120ca565b805460001911156113e75780546001820154611388908690612088565b11156113cd5760405162461bcd60e51b8152602060048201526014602482015273115610d1515114d7d05353d5539517d31253525560621b604482015260640161064a565b838160010160008282546113e19190612088565b90915550505b846001600160a01b0316866001600160a01b0316886001600160a01b03167f6cca74a72fcfc88bc91c00690ff15d1f15ec9bdf2038748416ad3bb1e69205fc878560010154866000015461143b9190611e00565b6040805192835260208301919091520160405180910390a4505050610eb0565b60405162461bcd60e51b81526020600482015260136024820152722aa720aaaa2427a924ad22a22fa1a0a62622a960691b604482015260640161064a565b6000546001600160a01b031633146114c35760405162461bcd60e51b815260040161064a90611e19565b82811461150a5760405162461bcd60e51b8152602060048201526015602482015274082a4a482b2be988a9c8ea890be9a92a69a82a8869605b1b604482015260640161064a565b60005b838110156108fa57600085858381811061152957611529611fcd565b905060200201602081019061153e9190611ae1565b6001600160a01b0316036115645760405162461bcd60e51b815260040161064a9061202a565b82828281811061157657611576611fcd565b905060200201356004600087878581811061159357611593611fcd565b90506020020160208101906115a89190611ae1565b6001600160a01b031681526020810191909152604001600020558484828181106115d4576115d4611fcd565b90506020020160208101906115e99190611ae1565b6001600160a01b03167f48bfd73f78a1304e171cb4497b649148a2835dd4f3c012d80a7fd435ce38297384848481811061162557611625611fcd565b9050602002013560405161163b91815260200190565b60405180910390a260010161150d565b6000546001600160a01b031633146116915760405162461bcd60e51b81526020600482015260096024820152682737ba1020b236b4b760b91b604482015260640161064a565b600180546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a991015b60405180910390a15050565b3360008181526007602090815260408083206001600160a01b038716845290915290205460ff16156117375760405162461bcd60e51b815260040161064a90612051565b6001600160a01b03808216600090815260066020908152604080832087851684528252808320938616835292905220600381015460ff1661178a5760405162461bcd60e51b815260040161064a9061209b565b60038101805460ff191690556040516001600160a01b0380851691868216918516907f788838887194369953cb844429b137b79c87b1f39977d2518066e8ffe75e4a4b90600090a450505050565b6000546001600160a01b031633146118025760405162461bcd60e51b815260040161064a90611e19565b6002805460ff600160a01b808304821615810260ff60a01b1990931692909217928390556040517fda88b5dfaac55549d4ddddd43a09d4b911233df354952ebc9ac2041aa18534369361185e9390049091161515815260200190565b60405180910390a1565b6005602052600090815260409020805461188190611e53565b80601f01602080910402602001604051908101604052809291908181526020018280546118ad90611e53565b80156118fa5780601f106118cf576101008083540402835291602001916118fa565b820191906000526020600020905b8154815290600101906020018083116118dd57829003601f168201915b505050505081565b6001546001600160a01b03163314801561192657506001546001600160a01b031615155b6119725760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420746865204558495354494e472070656e64696e672061646d696e0000604482015260640161064a565b60008054600180546001600160a01b038082166001600160a01b031980861682179096559490911690915560408051919092168082526020820184905292917ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc910160405180910390a1600154604080516001600160a01b03808516825290921660208301527fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a991016116e7565b6000546001600160a01b03163314611a4a5760405162461bcd60e51b815260040161064a90611e19565b6001600160a01b038216611a705760405162461bcd60e51b815260040161064a9061202a565b6001600160a01b03821660008181526004602052604090819020839055517f48bfd73f78a1304e171cb4497b649148a2835dd4f3c012d80a7fd435ce38297390611abd9084815260200190565b60405180910390a25050565b6001600160a01b0381168114611ade57600080fd5b50565b600060208284031215611af357600080fd5b813561061981611ac9565b600080600060608486031215611b1357600080fd5b8335611b1e81611ac9565b92506020840135611b2e81611ac9565b91506040840135611b3e81611ac9565b809150509250925092565b600080600060408486031215611b5e57600080fd5b8335611b6981611ac9565b9250602084013567ffffffffffffffff80821115611b8657600080fd5b818601915086601f830112611b9a57600080fd5b813581811115611ba957600080fd5b876020828501011115611bbb57600080fd5b6020830194508093505050509250925092565b60006020808352835180602085015260005b81811015611bfc57858101830151858201604001528201611be0565b506000604082860101526040601f19601f8301168501019250505092915050565b60008083601f840112611c2f57600080fd5b50813567ffffffffffffffff811115611c4757600080fd5b6020830191508360208260051b8501011115611c6257600080fd5b9250929050565b60008060008060408587031215611c7f57600080fd5b843567ffffffffffffffff80821115611c9757600080fd5b611ca388838901611c1d565b90965094506020870135915080821115611cbc57600080fd5b50611cc987828801611c1d565b95989497509550505050565b60008060008060808587031215611ceb57600080fd5b8435611cf681611ac9565b93506020850135611d0681611ac9565b93969395505050506040820135916060013590565b600060208284031215611d2d57600080fd5b5035919050565b60008060008060808587031215611d4a57600080fd5b8435611d5581611ac9565b93506020850135611d6581611ac9565b92506040850135611d7581611ac9565b9396929550929360600135925050565b60008060408385031215611d9857600080fd5b8235611da381611ac9565b91506020830135611db381611ac9565b809150509250929050565b60008060408385031215611dd157600080fd5b8235611ddc81611ac9565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b81810381811115611e1357611e13611dea565b92915050565b6020808252600a908201526927a7262cafa0a226a4a760b11b604082015260600190565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680611e6757607f821691505b602082108103611e8757634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115611ed9576000816000526020600020601f850160051c81016020861015611eb65750805b601f850160051c820191505b81811015611ed557828155600101611ec2565b5050505b505050565b67ffffffffffffffff831115611ef657611ef6611e3d565b611f0a83611f048354611e53565b83611e8d565b6000601f841160018114611f3e5760008515611f265750838201355b600019600387901b1c1916600186901b1783556108fa565b600083815260209020601f19861690835b82811015611f6f5786850135825560209485019460019092019101611f4f565b5086821015611f8c5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112611ffa57600080fd5b83018035915067ffffffffffffffff82111561201557600080fd5b602001915036819003821315611c6257600080fd5b6020808252600d908201526c24a72b20a624a22faa27a5a2a760991b604082015260600190565b6020808252601f908201527f5355425f4143434f554e545f5045524d414e454e544c595f5245564f4b454400604082015260600190565b80820180821115611e1357611e13611dea565b6020808252601590820152745045524d495353494f4e5f4e4f545f41435449564560581b604082015260600190565b602080825260129082015271141154935254d4d253d397d156141254915160721b604082015260600190565b60006020828403121561210857600080fd5b815161061981611ac956fea26469706673582212205425905932a9bdf460d3f7a30dc7acb6d4962c0271337b8367e5602f391dd49864736f6c63430008180033";
|
|
745
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
746
|
+
class OnBehalfTradingV1__factory extends ethers_1.ContractFactory {
|
|
747
|
+
constructor(...args) {
|
|
748
|
+
if (isSuperArgs(args)) {
|
|
749
|
+
super(...args);
|
|
750
|
+
}
|
|
751
|
+
else {
|
|
752
|
+
super(_abi, _bytecode, args[0]);
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
getDeployTransaction(_registry, overrides) {
|
|
756
|
+
return super.getDeployTransaction(_registry, overrides || {});
|
|
757
|
+
}
|
|
758
|
+
deploy(_registry, overrides) {
|
|
759
|
+
return super.deploy(_registry, overrides || {});
|
|
760
|
+
}
|
|
761
|
+
connect(runner) {
|
|
762
|
+
return super.connect(runner);
|
|
763
|
+
}
|
|
764
|
+
static createInterface() {
|
|
765
|
+
return new ethers_1.Interface(_abi);
|
|
766
|
+
}
|
|
767
|
+
static connect(address, runner) {
|
|
768
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
exports.OnBehalfTradingV1__factory = OnBehalfTradingV1__factory;
|
|
772
|
+
OnBehalfTradingV1__factory.bytecode = _bytecode;
|
|
773
|
+
OnBehalfTradingV1__factory.abi = _abi;
|