anymal-protocol 1.0.50 → 1.0.52
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/index.js +77 -239
- package/dist/index.mjs +77 -239
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -70,245 +70,7 @@ var VERIFY_ACCOUNT_ABI = [
|
|
|
70
70
|
}
|
|
71
71
|
];
|
|
72
72
|
var MARKETPLACE_ABI = [{ "inputs": [{ "internalType": "address", "name": "target", "type": "address" }], "name": "AddressEmptyCode", "type": "error" }, { "inputs": [], "name": "ECDSAInvalidSignature", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "length", "type": "uint256" }], "name": "ECDSAInvalidSignatureLength", "type": "error" }, { "inputs": [{ "internalType": "bytes32", "name": "s", "type": "bytes32" }], "name": "ECDSAInvalidSignatureS", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "implementation", "type": "address" }], "name": "ERC1967InvalidImplementation", "type": "error" }, { "inputs": [], "name": "ERC1967NonPayable", "type": "error" }, { "inputs": [], "name": "FailedCall", "type": "error" }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, { "inputs": [], "name": "NotInitializing", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "OwnableInvalidOwner", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "OwnableUnauthorizedAccount", "type": "error" }, { "inputs": [], "name": "UUPSUnauthorizedCallContext", "type": "error" }, { "inputs": [{ "internalType": "bytes32", "name": "slot", "type": "bytes32" }], "name": "UUPSUnsupportedProxiableUUID", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" }], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "string", "name": "orderId", "type": "string" }, { "indexed": true, "internalType": "address", "name": "payer", "type": "address" }, { "indexed": true, "internalType": "string", "name": "pid", "type": "string" }, { "indexed": false, "internalType": "string", "name": "anymalNftId", "type": "string" }, { "indexed": false, "internalType": "uint256", "name": "amountInTokens", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" }], "name": "PartialPaymentMade", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "string", "name": "orderId", "type": "string" }, { "indexed": true, "internalType": "address", "name": "payer", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountInTokens", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" }], "name": "PaymentMade", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "string", "name": "orderId", "type": "string" }, { "indexed": true, "internalType": "address", "name": "payer", "type": "address" }, { "indexed": true, "internalType": "string", "name": "pid", "type": "string" }, { "indexed": false, "internalType": "uint256", "name": "refundedAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" }], "name": "RefundProcessed", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bool", "name": "enabled", "type": "bool" }], "name": "SignatureCheckToggled", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }], "name": "Upgraded", "type": "event" }, { "inputs": [], "name": "UPGRADE_INTERFACE_VERSION", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "authorizer", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_initialOwner", "type": "address" }, { "internalType": "address", "name": "_authorizer", "type": "address" }, { "internalType": "address", "name": "_kibbleToken", "type": "address" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "kibbleToken", "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }, { "internalType": "address", "name": "", "type": "address" }], "name": "paidAmounts", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "string", "name": "orderId", "type": "string" }, { "internalType": "string", "name": "anymalNftId", "type": "string" }, { "internalType": "string", "name": "pid", "type": "string" }, { "internalType": "uint256", "name": "amountInTokens", "type": "uint256" }, { "internalType": "uint256", "name": "maxTokenPayment", "type": "uint256" }, { "internalType": "bytes32", "name": "nonce", "type": "bytes32" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "bytes", "name": "backendSignature", "type": "bytes" }], "name": "partialPay", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "proxiableUUID", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "string", "name": "orderId", "type": "string" }, { "internalType": "address", "name": "payer", "type": "address" }, { "internalType": "string", "name": "pid", "type": "string" }], "name": "refund", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_authorizer", "type": "address" }], "name": "setAuthorizer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "enabled", "type": "bool" }], "name": "setSignatureCheckEnabled", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "signatureCheckEnabled", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newImplementation", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }], "name": "upgradeToAndCall", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "usedNonces", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "withdrawKibble", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
|
|
73
|
-
var ORGANIZATION_BEACON_ABI = [
|
|
74
|
-
{
|
|
75
|
-
"inputs": [
|
|
76
|
-
{
|
|
77
|
-
"internalType": "address",
|
|
78
|
-
"name": "_initialImplementation",
|
|
79
|
-
"type": "address"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"internalType": "address",
|
|
83
|
-
"name": "_initialOwner",
|
|
84
|
-
"type": "address"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"internalType": "address",
|
|
88
|
-
"name": "_anymalNFTProxy",
|
|
89
|
-
"type": "address"
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
|
-
"stateMutability": "nonpayable",
|
|
93
|
-
"type": "constructor"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"inputs": [
|
|
97
|
-
{
|
|
98
|
-
"internalType": "address",
|
|
99
|
-
"name": "implementation",
|
|
100
|
-
"type": "address"
|
|
101
|
-
}
|
|
102
|
-
],
|
|
103
|
-
"name": "BeaconInvalidImplementation",
|
|
104
|
-
"type": "error"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"inputs": [
|
|
108
|
-
{
|
|
109
|
-
"internalType": "address",
|
|
110
|
-
"name": "owner",
|
|
111
|
-
"type": "address"
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
"name": "OwnableInvalidOwner",
|
|
115
|
-
"type": "error"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"inputs": [
|
|
119
|
-
{
|
|
120
|
-
"internalType": "address",
|
|
121
|
-
"name": "account",
|
|
122
|
-
"type": "address"
|
|
123
|
-
}
|
|
124
|
-
],
|
|
125
|
-
"name": "OwnableUnauthorizedAccount",
|
|
126
|
-
"type": "error"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"anonymous": false,
|
|
130
|
-
"inputs": [
|
|
131
|
-
{
|
|
132
|
-
"indexed": true,
|
|
133
|
-
"internalType": "string",
|
|
134
|
-
"name": "pid",
|
|
135
|
-
"type": "string"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"indexed": true,
|
|
139
|
-
"internalType": "string",
|
|
140
|
-
"name": "name",
|
|
141
|
-
"type": "string"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"indexed": false,
|
|
145
|
-
"internalType": "address",
|
|
146
|
-
"name": "proxyAddress",
|
|
147
|
-
"type": "address"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"indexed": false,
|
|
151
|
-
"internalType": "address",
|
|
152
|
-
"name": "networkAdmin",
|
|
153
|
-
"type": "address"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"indexed": false,
|
|
157
|
-
"internalType": "address",
|
|
158
|
-
"name": "userAdmin",
|
|
159
|
-
"type": "address"
|
|
160
|
-
}
|
|
161
|
-
],
|
|
162
|
-
"name": "NewOrganizationCreated",
|
|
163
|
-
"type": "event"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"anonymous": false,
|
|
167
|
-
"inputs": [
|
|
168
|
-
{
|
|
169
|
-
"indexed": true,
|
|
170
|
-
"internalType": "address",
|
|
171
|
-
"name": "previousOwner",
|
|
172
|
-
"type": "address"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"indexed": true,
|
|
176
|
-
"internalType": "address",
|
|
177
|
-
"name": "newOwner",
|
|
178
|
-
"type": "address"
|
|
179
|
-
}
|
|
180
|
-
],
|
|
181
|
-
"name": "OwnershipTransferred",
|
|
182
|
-
"type": "event"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"anonymous": false,
|
|
186
|
-
"inputs": [
|
|
187
|
-
{
|
|
188
|
-
"indexed": true,
|
|
189
|
-
"internalType": "address",
|
|
190
|
-
"name": "implementation",
|
|
191
|
-
"type": "address"
|
|
192
|
-
}
|
|
193
|
-
],
|
|
194
|
-
"name": "Upgraded",
|
|
195
|
-
"type": "event"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"inputs": [],
|
|
199
|
-
"name": "anymalNFTProxy",
|
|
200
|
-
"outputs": [
|
|
201
|
-
{
|
|
202
|
-
"internalType": "address",
|
|
203
|
-
"name": "",
|
|
204
|
-
"type": "address"
|
|
205
|
-
}
|
|
206
|
-
],
|
|
207
|
-
"stateMutability": "view",
|
|
208
|
-
"type": "function"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"inputs": [
|
|
212
|
-
{
|
|
213
|
-
"internalType": "address",
|
|
214
|
-
"name": "_userAdmin",
|
|
215
|
-
"type": "address"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"internalType": "string",
|
|
219
|
-
"name": "_orgName",
|
|
220
|
-
"type": "string"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"internalType": "string",
|
|
224
|
-
"name": "_orgPid",
|
|
225
|
-
"type": "string"
|
|
226
|
-
}
|
|
227
|
-
],
|
|
228
|
-
"name": "createOrganizationProxy",
|
|
229
|
-
"outputs": [
|
|
230
|
-
{
|
|
231
|
-
"internalType": "address",
|
|
232
|
-
"name": "proxyAddress",
|
|
233
|
-
"type": "address"
|
|
234
|
-
}
|
|
235
|
-
],
|
|
236
|
-
"stateMutability": "nonpayable",
|
|
237
|
-
"type": "function"
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
"inputs": [],
|
|
241
|
-
"name": "implementation",
|
|
242
|
-
"outputs": [
|
|
243
|
-
{
|
|
244
|
-
"internalType": "address",
|
|
245
|
-
"name": "",
|
|
246
|
-
"type": "address"
|
|
247
|
-
}
|
|
248
|
-
],
|
|
249
|
-
"stateMutability": "view",
|
|
250
|
-
"type": "function"
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
"inputs": [],
|
|
254
|
-
"name": "owner",
|
|
255
|
-
"outputs": [
|
|
256
|
-
{
|
|
257
|
-
"internalType": "address",
|
|
258
|
-
"name": "",
|
|
259
|
-
"type": "address"
|
|
260
|
-
}
|
|
261
|
-
],
|
|
262
|
-
"stateMutability": "view",
|
|
263
|
-
"type": "function"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
"inputs": [],
|
|
267
|
-
"name": "renounceOwnership",
|
|
268
|
-
"outputs": [],
|
|
269
|
-
"stateMutability": "nonpayable",
|
|
270
|
-
"type": "function"
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
"inputs": [
|
|
274
|
-
{
|
|
275
|
-
"internalType": "address",
|
|
276
|
-
"name": "newOwner",
|
|
277
|
-
"type": "address"
|
|
278
|
-
}
|
|
279
|
-
],
|
|
280
|
-
"name": "transferOwnership",
|
|
281
|
-
"outputs": [],
|
|
282
|
-
"stateMutability": "nonpayable",
|
|
283
|
-
"type": "function"
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
"inputs": [
|
|
287
|
-
{
|
|
288
|
-
"internalType": "address",
|
|
289
|
-
"name": "newImplementation",
|
|
290
|
-
"type": "address"
|
|
291
|
-
}
|
|
292
|
-
],
|
|
293
|
-
"name": "upgradeBeaconTo",
|
|
294
|
-
"outputs": [],
|
|
295
|
-
"stateMutability": "nonpayable",
|
|
296
|
-
"type": "function"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"inputs": [
|
|
300
|
-
{
|
|
301
|
-
"internalType": "address",
|
|
302
|
-
"name": "newImplementation",
|
|
303
|
-
"type": "address"
|
|
304
|
-
}
|
|
305
|
-
],
|
|
306
|
-
"name": "upgradeTo",
|
|
307
|
-
"outputs": [],
|
|
308
|
-
"stateMutability": "nonpayable",
|
|
309
|
-
"type": "function"
|
|
310
|
-
}
|
|
311
|
-
];
|
|
73
|
+
var ORGANIZATION_BEACON_ABI = [{ "inputs": [{ "internalType": "address", "name": "_initialImplementation", "type": "address" }, { "internalType": "address", "name": "_initialOwner", "type": "address" }, { "internalType": "address", "name": "_anymalNFTProxy", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [{ "internalType": "address", "name": "implementation", "type": "address" }], "name": "BeaconInvalidImplementation", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "OwnableInvalidOwner", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "OwnableUnauthorizedAccount", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "string", "name": "pid", "type": "string" }, { "indexed": false, "internalType": "string", "name": "name", "type": "string" }, { "indexed": false, "internalType": "address", "name": "proxyAddress", "type": "address" }, { "indexed": false, "internalType": "address", "name": "networkAdmin", "type": "address" }, { "indexed": false, "internalType": "address", "name": "userAdmin", "type": "address" }], "name": "NewOrganizationCreated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }], "name": "Upgraded", "type": "event" }, { "inputs": [], "name": "anymalNFTProxy", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_userAdmin", "type": "address" }, { "internalType": "string", "name": "_orgName", "type": "string" }, { "internalType": "string", "name": "_orgPid", "type": "string" }], "name": "createOrganizationProxy", "outputs": [{ "internalType": "address", "name": "proxyAddress", "type": "address" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "implementation", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newImplementation", "type": "address" }], "name": "upgradeBeaconTo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newImplementation", "type": "address" }], "name": "upgradeTo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
|
|
312
74
|
var ORGANIZATION_IMPL_ABI = [
|
|
313
75
|
{
|
|
314
76
|
"inputs": [],
|
|
@@ -680,6 +442,29 @@ var ORGANIZATION_IMPL_ABI = [
|
|
|
680
442
|
"stateMutability": "nonpayable",
|
|
681
443
|
"type": "function"
|
|
682
444
|
},
|
|
445
|
+
{
|
|
446
|
+
"inputs": [
|
|
447
|
+
{
|
|
448
|
+
"internalType": "address",
|
|
449
|
+
"name": "token",
|
|
450
|
+
"type": "address"
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"internalType": "address",
|
|
454
|
+
"name": "spender",
|
|
455
|
+
"type": "address"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"internalType": "uint256",
|
|
459
|
+
"name": "amount",
|
|
460
|
+
"type": "uint256"
|
|
461
|
+
}
|
|
462
|
+
],
|
|
463
|
+
"name": "approveERC20",
|
|
464
|
+
"outputs": [],
|
|
465
|
+
"stateMutability": "nonpayable",
|
|
466
|
+
"type": "function"
|
|
467
|
+
},
|
|
683
468
|
{
|
|
684
469
|
"inputs": [
|
|
685
470
|
{
|
|
@@ -871,6 +656,59 @@ var ORGANIZATION_IMPL_ABI = [
|
|
|
871
656
|
"stateMutability": "view",
|
|
872
657
|
"type": "function"
|
|
873
658
|
},
|
|
659
|
+
{
|
|
660
|
+
"inputs": [
|
|
661
|
+
{
|
|
662
|
+
"internalType": "address",
|
|
663
|
+
"name": "partialPaymentModule",
|
|
664
|
+
"type": "address"
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"internalType": "string",
|
|
668
|
+
"name": "orderId",
|
|
669
|
+
"type": "string"
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"internalType": "string",
|
|
673
|
+
"name": "anymalNftId",
|
|
674
|
+
"type": "string"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"internalType": "string",
|
|
678
|
+
"name": "pid",
|
|
679
|
+
"type": "string"
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"internalType": "uint256",
|
|
683
|
+
"name": "amountInTokens",
|
|
684
|
+
"type": "uint256"
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"internalType": "uint256",
|
|
688
|
+
"name": "maxTokenPayment",
|
|
689
|
+
"type": "uint256"
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
"internalType": "bytes32",
|
|
693
|
+
"name": "nonce",
|
|
694
|
+
"type": "bytes32"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"internalType": "uint256",
|
|
698
|
+
"name": "deadline",
|
|
699
|
+
"type": "uint256"
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"internalType": "bytes",
|
|
703
|
+
"name": "backendSignature",
|
|
704
|
+
"type": "bytes"
|
|
705
|
+
}
|
|
706
|
+
],
|
|
707
|
+
"name": "processPartialPayment",
|
|
708
|
+
"outputs": [],
|
|
709
|
+
"stateMutability": "nonpayable",
|
|
710
|
+
"type": "function"
|
|
711
|
+
},
|
|
874
712
|
{
|
|
875
713
|
"inputs": [],
|
|
876
714
|
"name": "reject",
|
package/dist/index.mjs
CHANGED
|
@@ -21,245 +21,7 @@ var VERIFY_ACCOUNT_ABI = [
|
|
|
21
21
|
}
|
|
22
22
|
];
|
|
23
23
|
var MARKETPLACE_ABI = [{ "inputs": [{ "internalType": "address", "name": "target", "type": "address" }], "name": "AddressEmptyCode", "type": "error" }, { "inputs": [], "name": "ECDSAInvalidSignature", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "length", "type": "uint256" }], "name": "ECDSAInvalidSignatureLength", "type": "error" }, { "inputs": [{ "internalType": "bytes32", "name": "s", "type": "bytes32" }], "name": "ECDSAInvalidSignatureS", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "implementation", "type": "address" }], "name": "ERC1967InvalidImplementation", "type": "error" }, { "inputs": [], "name": "ERC1967NonPayable", "type": "error" }, { "inputs": [], "name": "FailedCall", "type": "error" }, { "inputs": [], "name": "InvalidInitialization", "type": "error" }, { "inputs": [], "name": "NotInitializing", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "OwnableInvalidOwner", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "OwnableUnauthorizedAccount", "type": "error" }, { "inputs": [], "name": "UUPSUnauthorizedCallContext", "type": "error" }, { "inputs": [{ "internalType": "bytes32", "name": "slot", "type": "bytes32" }], "name": "UUPSUnsupportedProxiableUUID", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" }], "name": "Initialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "string", "name": "orderId", "type": "string" }, { "indexed": true, "internalType": "address", "name": "payer", "type": "address" }, { "indexed": true, "internalType": "string", "name": "pid", "type": "string" }, { "indexed": false, "internalType": "string", "name": "anymalNftId", "type": "string" }, { "indexed": false, "internalType": "uint256", "name": "amountInTokens", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" }], "name": "PartialPaymentMade", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "string", "name": "orderId", "type": "string" }, { "indexed": true, "internalType": "address", "name": "payer", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountInTokens", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" }], "name": "PaymentMade", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "string", "name": "orderId", "type": "string" }, { "indexed": true, "internalType": "address", "name": "payer", "type": "address" }, { "indexed": true, "internalType": "string", "name": "pid", "type": "string" }, { "indexed": false, "internalType": "uint256", "name": "refundedAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" }], "name": "RefundProcessed", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bool", "name": "enabled", "type": "bool" }], "name": "SignatureCheckToggled", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }], "name": "Upgraded", "type": "event" }, { "inputs": [], "name": "UPGRADE_INTERFACE_VERSION", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "authorizer", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_initialOwner", "type": "address" }, { "internalType": "address", "name": "_authorizer", "type": "address" }, { "internalType": "address", "name": "_kibbleToken", "type": "address" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "kibbleToken", "outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }, { "internalType": "address", "name": "", "type": "address" }], "name": "paidAmounts", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "string", "name": "orderId", "type": "string" }, { "internalType": "string", "name": "anymalNftId", "type": "string" }, { "internalType": "string", "name": "pid", "type": "string" }, { "internalType": "uint256", "name": "amountInTokens", "type": "uint256" }, { "internalType": "uint256", "name": "maxTokenPayment", "type": "uint256" }, { "internalType": "bytes32", "name": "nonce", "type": "bytes32" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "bytes", "name": "backendSignature", "type": "bytes" }], "name": "partialPay", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "proxiableUUID", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "string", "name": "orderId", "type": "string" }, { "internalType": "address", "name": "payer", "type": "address" }, { "internalType": "string", "name": "pid", "type": "string" }], "name": "refund", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_authorizer", "type": "address" }], "name": "setAuthorizer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "enabled", "type": "bool" }], "name": "setSignatureCheckEnabled", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "signatureCheckEnabled", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newImplementation", "type": "address" }, { "internalType": "bytes", "name": "data", "type": "bytes" }], "name": "upgradeToAndCall", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "usedNonces", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "withdrawKibble", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
|
|
24
|
-
var ORGANIZATION_BEACON_ABI = [
|
|
25
|
-
{
|
|
26
|
-
"inputs": [
|
|
27
|
-
{
|
|
28
|
-
"internalType": "address",
|
|
29
|
-
"name": "_initialImplementation",
|
|
30
|
-
"type": "address"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"internalType": "address",
|
|
34
|
-
"name": "_initialOwner",
|
|
35
|
-
"type": "address"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"internalType": "address",
|
|
39
|
-
"name": "_anymalNFTProxy",
|
|
40
|
-
"type": "address"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"stateMutability": "nonpayable",
|
|
44
|
-
"type": "constructor"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"inputs": [
|
|
48
|
-
{
|
|
49
|
-
"internalType": "address",
|
|
50
|
-
"name": "implementation",
|
|
51
|
-
"type": "address"
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
"name": "BeaconInvalidImplementation",
|
|
55
|
-
"type": "error"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"inputs": [
|
|
59
|
-
{
|
|
60
|
-
"internalType": "address",
|
|
61
|
-
"name": "owner",
|
|
62
|
-
"type": "address"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"name": "OwnableInvalidOwner",
|
|
66
|
-
"type": "error"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"inputs": [
|
|
70
|
-
{
|
|
71
|
-
"internalType": "address",
|
|
72
|
-
"name": "account",
|
|
73
|
-
"type": "address"
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
"name": "OwnableUnauthorizedAccount",
|
|
77
|
-
"type": "error"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"anonymous": false,
|
|
81
|
-
"inputs": [
|
|
82
|
-
{
|
|
83
|
-
"indexed": true,
|
|
84
|
-
"internalType": "string",
|
|
85
|
-
"name": "pid",
|
|
86
|
-
"type": "string"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"indexed": true,
|
|
90
|
-
"internalType": "string",
|
|
91
|
-
"name": "name",
|
|
92
|
-
"type": "string"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"indexed": false,
|
|
96
|
-
"internalType": "address",
|
|
97
|
-
"name": "proxyAddress",
|
|
98
|
-
"type": "address"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"indexed": false,
|
|
102
|
-
"internalType": "address",
|
|
103
|
-
"name": "networkAdmin",
|
|
104
|
-
"type": "address"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"indexed": false,
|
|
108
|
-
"internalType": "address",
|
|
109
|
-
"name": "userAdmin",
|
|
110
|
-
"type": "address"
|
|
111
|
-
}
|
|
112
|
-
],
|
|
113
|
-
"name": "NewOrganizationCreated",
|
|
114
|
-
"type": "event"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"anonymous": false,
|
|
118
|
-
"inputs": [
|
|
119
|
-
{
|
|
120
|
-
"indexed": true,
|
|
121
|
-
"internalType": "address",
|
|
122
|
-
"name": "previousOwner",
|
|
123
|
-
"type": "address"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"indexed": true,
|
|
127
|
-
"internalType": "address",
|
|
128
|
-
"name": "newOwner",
|
|
129
|
-
"type": "address"
|
|
130
|
-
}
|
|
131
|
-
],
|
|
132
|
-
"name": "OwnershipTransferred",
|
|
133
|
-
"type": "event"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"anonymous": false,
|
|
137
|
-
"inputs": [
|
|
138
|
-
{
|
|
139
|
-
"indexed": true,
|
|
140
|
-
"internalType": "address",
|
|
141
|
-
"name": "implementation",
|
|
142
|
-
"type": "address"
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
"name": "Upgraded",
|
|
146
|
-
"type": "event"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"inputs": [],
|
|
150
|
-
"name": "anymalNFTProxy",
|
|
151
|
-
"outputs": [
|
|
152
|
-
{
|
|
153
|
-
"internalType": "address",
|
|
154
|
-
"name": "",
|
|
155
|
-
"type": "address"
|
|
156
|
-
}
|
|
157
|
-
],
|
|
158
|
-
"stateMutability": "view",
|
|
159
|
-
"type": "function"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"inputs": [
|
|
163
|
-
{
|
|
164
|
-
"internalType": "address",
|
|
165
|
-
"name": "_userAdmin",
|
|
166
|
-
"type": "address"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"internalType": "string",
|
|
170
|
-
"name": "_orgName",
|
|
171
|
-
"type": "string"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"internalType": "string",
|
|
175
|
-
"name": "_orgPid",
|
|
176
|
-
"type": "string"
|
|
177
|
-
}
|
|
178
|
-
],
|
|
179
|
-
"name": "createOrganizationProxy",
|
|
180
|
-
"outputs": [
|
|
181
|
-
{
|
|
182
|
-
"internalType": "address",
|
|
183
|
-
"name": "proxyAddress",
|
|
184
|
-
"type": "address"
|
|
185
|
-
}
|
|
186
|
-
],
|
|
187
|
-
"stateMutability": "nonpayable",
|
|
188
|
-
"type": "function"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"inputs": [],
|
|
192
|
-
"name": "implementation",
|
|
193
|
-
"outputs": [
|
|
194
|
-
{
|
|
195
|
-
"internalType": "address",
|
|
196
|
-
"name": "",
|
|
197
|
-
"type": "address"
|
|
198
|
-
}
|
|
199
|
-
],
|
|
200
|
-
"stateMutability": "view",
|
|
201
|
-
"type": "function"
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
"inputs": [],
|
|
205
|
-
"name": "owner",
|
|
206
|
-
"outputs": [
|
|
207
|
-
{
|
|
208
|
-
"internalType": "address",
|
|
209
|
-
"name": "",
|
|
210
|
-
"type": "address"
|
|
211
|
-
}
|
|
212
|
-
],
|
|
213
|
-
"stateMutability": "view",
|
|
214
|
-
"type": "function"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"inputs": [],
|
|
218
|
-
"name": "renounceOwnership",
|
|
219
|
-
"outputs": [],
|
|
220
|
-
"stateMutability": "nonpayable",
|
|
221
|
-
"type": "function"
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"inputs": [
|
|
225
|
-
{
|
|
226
|
-
"internalType": "address",
|
|
227
|
-
"name": "newOwner",
|
|
228
|
-
"type": "address"
|
|
229
|
-
}
|
|
230
|
-
],
|
|
231
|
-
"name": "transferOwnership",
|
|
232
|
-
"outputs": [],
|
|
233
|
-
"stateMutability": "nonpayable",
|
|
234
|
-
"type": "function"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"inputs": [
|
|
238
|
-
{
|
|
239
|
-
"internalType": "address",
|
|
240
|
-
"name": "newImplementation",
|
|
241
|
-
"type": "address"
|
|
242
|
-
}
|
|
243
|
-
],
|
|
244
|
-
"name": "upgradeBeaconTo",
|
|
245
|
-
"outputs": [],
|
|
246
|
-
"stateMutability": "nonpayable",
|
|
247
|
-
"type": "function"
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
"inputs": [
|
|
251
|
-
{
|
|
252
|
-
"internalType": "address",
|
|
253
|
-
"name": "newImplementation",
|
|
254
|
-
"type": "address"
|
|
255
|
-
}
|
|
256
|
-
],
|
|
257
|
-
"name": "upgradeTo",
|
|
258
|
-
"outputs": [],
|
|
259
|
-
"stateMutability": "nonpayable",
|
|
260
|
-
"type": "function"
|
|
261
|
-
}
|
|
262
|
-
];
|
|
24
|
+
var ORGANIZATION_BEACON_ABI = [{ "inputs": [{ "internalType": "address", "name": "_initialImplementation", "type": "address" }, { "internalType": "address", "name": "_initialOwner", "type": "address" }, { "internalType": "address", "name": "_anymalNFTProxy", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [{ "internalType": "address", "name": "implementation", "type": "address" }], "name": "BeaconInvalidImplementation", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "OwnableInvalidOwner", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], "name": "OwnableUnauthorizedAccount", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "string", "name": "pid", "type": "string" }, { "indexed": false, "internalType": "string", "name": "name", "type": "string" }, { "indexed": false, "internalType": "address", "name": "proxyAddress", "type": "address" }, { "indexed": false, "internalType": "address", "name": "networkAdmin", "type": "address" }, { "indexed": false, "internalType": "address", "name": "userAdmin", "type": "address" }], "name": "NewOrganizationCreated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "implementation", "type": "address" }], "name": "Upgraded", "type": "event" }, { "inputs": [], "name": "anymalNFTProxy", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_userAdmin", "type": "address" }, { "internalType": "string", "name": "_orgName", "type": "string" }, { "internalType": "string", "name": "_orgPid", "type": "string" }], "name": "createOrganizationProxy", "outputs": [{ "internalType": "address", "name": "proxyAddress", "type": "address" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "implementation", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newImplementation", "type": "address" }], "name": "upgradeBeaconTo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newImplementation", "type": "address" }], "name": "upgradeTo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
|
|
263
25
|
var ORGANIZATION_IMPL_ABI = [
|
|
264
26
|
{
|
|
265
27
|
"inputs": [],
|
|
@@ -631,6 +393,29 @@ var ORGANIZATION_IMPL_ABI = [
|
|
|
631
393
|
"stateMutability": "nonpayable",
|
|
632
394
|
"type": "function"
|
|
633
395
|
},
|
|
396
|
+
{
|
|
397
|
+
"inputs": [
|
|
398
|
+
{
|
|
399
|
+
"internalType": "address",
|
|
400
|
+
"name": "token",
|
|
401
|
+
"type": "address"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"internalType": "address",
|
|
405
|
+
"name": "spender",
|
|
406
|
+
"type": "address"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"internalType": "uint256",
|
|
410
|
+
"name": "amount",
|
|
411
|
+
"type": "uint256"
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
"name": "approveERC20",
|
|
415
|
+
"outputs": [],
|
|
416
|
+
"stateMutability": "nonpayable",
|
|
417
|
+
"type": "function"
|
|
418
|
+
},
|
|
634
419
|
{
|
|
635
420
|
"inputs": [
|
|
636
421
|
{
|
|
@@ -822,6 +607,59 @@ var ORGANIZATION_IMPL_ABI = [
|
|
|
822
607
|
"stateMutability": "view",
|
|
823
608
|
"type": "function"
|
|
824
609
|
},
|
|
610
|
+
{
|
|
611
|
+
"inputs": [
|
|
612
|
+
{
|
|
613
|
+
"internalType": "address",
|
|
614
|
+
"name": "partialPaymentModule",
|
|
615
|
+
"type": "address"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"internalType": "string",
|
|
619
|
+
"name": "orderId",
|
|
620
|
+
"type": "string"
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"internalType": "string",
|
|
624
|
+
"name": "anymalNftId",
|
|
625
|
+
"type": "string"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"internalType": "string",
|
|
629
|
+
"name": "pid",
|
|
630
|
+
"type": "string"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"internalType": "uint256",
|
|
634
|
+
"name": "amountInTokens",
|
|
635
|
+
"type": "uint256"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"internalType": "uint256",
|
|
639
|
+
"name": "maxTokenPayment",
|
|
640
|
+
"type": "uint256"
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"internalType": "bytes32",
|
|
644
|
+
"name": "nonce",
|
|
645
|
+
"type": "bytes32"
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"internalType": "uint256",
|
|
649
|
+
"name": "deadline",
|
|
650
|
+
"type": "uint256"
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"internalType": "bytes",
|
|
654
|
+
"name": "backendSignature",
|
|
655
|
+
"type": "bytes"
|
|
656
|
+
}
|
|
657
|
+
],
|
|
658
|
+
"name": "processPartialPayment",
|
|
659
|
+
"outputs": [],
|
|
660
|
+
"stateMutability": "nonpayable",
|
|
661
|
+
"type": "function"
|
|
662
|
+
},
|
|
825
663
|
{
|
|
826
664
|
"inputs": [],
|
|
827
665
|
"name": "reject",
|
package/package.json
CHANGED