anymal-protocol 1.0.51 → 1.0.53
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 +2 -239
- package/dist/index.mjs +2 -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": [],
|
|
@@ -1224,6 +986,7 @@ function useFetchUserData() {
|
|
|
1224
986
|
showTooltips
|
|
1225
987
|
accountType
|
|
1226
988
|
baseWalletAddress
|
|
989
|
+
stripeCustomerId
|
|
1227
990
|
}
|
|
1228
991
|
}
|
|
1229
992
|
`;
|
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": [],
|
|
@@ -1175,6 +937,7 @@ function useFetchUserData() {
|
|
|
1175
937
|
showTooltips
|
|
1176
938
|
accountType
|
|
1177
939
|
baseWalletAddress
|
|
940
|
+
stripeCustomerId
|
|
1178
941
|
}
|
|
1179
942
|
}
|
|
1180
943
|
`;
|
package/package.json
CHANGED