@aastar/sdk 0.24.2 → 0.26.0
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/UserClient-5PQP6APK.js +6 -0
- package/dist/{UserClient-DPJ6E2XL.js.map → UserClient-5PQP6APK.js.map} +1 -1
- package/dist/UserClient-CD7R3335.cjs +15 -0
- package/dist/{UserClient-4MRK2D7W.cjs.map → UserClient-CD7R3335.cjs.map} +1 -1
- package/dist/account.cjs +8 -8
- package/dist/account.js +3 -3
- package/dist/addresses-D12T3kLs.d.cts +210 -0
- package/dist/addresses-D12T3kLs.d.ts +210 -0
- package/dist/admin.cjs +4 -4
- package/dist/admin.js +3 -3
- package/dist/airaccount.cjs +135 -103
- package/dist/airaccount.d.cts +1 -1
- package/dist/airaccount.d.ts +1 -1
- package/dist/airaccount.js +3 -3
- package/dist/channel.cjs +7 -7
- package/dist/channel.js +3 -3
- package/dist/{chunk-S7IUUQ5E.cjs → chunk-2RHBOBL7.cjs} +6 -6
- package/dist/{chunk-S7IUUQ5E.cjs.map → chunk-2RHBOBL7.cjs.map} +1 -1
- package/dist/{chunk-BPAAWQQA.js → chunk-4GJSK7E6.js} +557 -115
- package/dist/chunk-4GJSK7E6.js.map +1 -0
- package/dist/{chunk-EEWLL7GE.js → chunk-6DZCDV4Q.js} +2137 -13
- package/dist/chunk-6DZCDV4Q.js.map +1 -0
- package/dist/{chunk-MCDFQ5JH.cjs → chunk-7HTUDNH3.cjs} +11 -11
- package/dist/{chunk-MCDFQ5JH.cjs.map → chunk-7HTUDNH3.cjs.map} +1 -1
- package/dist/{chunk-UJPW54CK.js → chunk-7JVL5CU3.js} +3 -3
- package/dist/{chunk-UJPW54CK.js.map → chunk-7JVL5CU3.js.map} +1 -1
- package/dist/{chunk-7FLPD3V4.js → chunk-A4FO6FKN.js} +3 -3
- package/dist/{chunk-7FLPD3V4.js.map → chunk-A4FO6FKN.js.map} +1 -1
- package/dist/{chunk-MANVOQY7.cjs → chunk-CI4UJW5Y.cjs} +5 -5
- package/dist/{chunk-MANVOQY7.cjs.map → chunk-CI4UJW5Y.cjs.map} +1 -1
- package/dist/{chunk-PUE5GEKK.js → chunk-COTHBCR2.js} +3 -3
- package/dist/{chunk-PUE5GEKK.js.map → chunk-COTHBCR2.js.map} +1 -1
- package/dist/{chunk-TQIRRSGL.cjs → chunk-FIMXPANS.cjs} +4 -4
- package/dist/{chunk-TQIRRSGL.cjs.map → chunk-FIMXPANS.cjs.map} +1 -1
- package/dist/{chunk-MXJEULSE.cjs → chunk-G33MXEHU.cjs} +29 -2
- package/dist/chunk-G33MXEHU.cjs.map +1 -0
- package/dist/{chunk-FUY4MHPM.cjs → chunk-GASCTLKR.cjs} +9 -9
- package/dist/{chunk-FUY4MHPM.cjs.map → chunk-GASCTLKR.cjs.map} +1 -1
- package/dist/{chunk-W73Y6JWZ.js → chunk-IG4BG25C.js} +6 -6
- package/dist/{chunk-W73Y6JWZ.js.map → chunk-IG4BG25C.js.map} +1 -1
- package/dist/{chunk-TGEVD7OR.cjs → chunk-J3UAXGNP.cjs} +16 -16
- package/dist/{chunk-TGEVD7OR.cjs.map → chunk-J3UAXGNP.cjs.map} +1 -1
- package/dist/{chunk-Y5QM4LI4.js → chunk-JCEUTCFZ.js} +4 -4
- package/dist/{chunk-Y5QM4LI4.js.map → chunk-JCEUTCFZ.js.map} +1 -1
- package/dist/{chunk-IB3KOSHW.cjs → chunk-KOWTQJIX.cjs} +2177 -49
- package/dist/chunk-KOWTQJIX.cjs.map +1 -0
- package/dist/chunk-L6D2AGTF.js +500 -0
- package/dist/chunk-L6D2AGTF.js.map +1 -0
- package/dist/{chunk-KYXXIKEI.cjs → chunk-LRPAX5AG.cjs} +32 -32
- package/dist/{chunk-KYXXIKEI.cjs.map → chunk-LRPAX5AG.cjs.map} +1 -1
- package/dist/{chunk-UCLK6LTB.js → chunk-MBWBHKUE.js} +28 -3
- package/dist/chunk-MBWBHKUE.js.map +1 -0
- package/dist/{chunk-3FRNYRWI.cjs → chunk-NHDZQPDE.cjs} +26 -26
- package/dist/{chunk-3FRNYRWI.cjs.map → chunk-NHDZQPDE.cjs.map} +1 -1
- package/dist/{chunk-HP44S5U5.cjs → chunk-OBPTMV5W.cjs} +5 -5
- package/dist/{chunk-HP44S5U5.cjs.map → chunk-OBPTMV5W.cjs.map} +1 -1
- package/dist/{chunk-SX5GUCTF.js → chunk-QTXPAGNX.js} +9 -9
- package/dist/{chunk-SX5GUCTF.js.map → chunk-QTXPAGNX.js.map} +1 -1
- package/dist/{chunk-PTVXBXZX.js → chunk-UANSP3OK.js} +3 -3
- package/dist/{chunk-PTVXBXZX.js.map → chunk-UANSP3OK.js.map} +1 -1
- package/dist/{chunk-P3B6UTED.js → chunk-UTSFTWFC.js} +3 -3
- package/dist/{chunk-P3B6UTED.js.map → chunk-UTSFTWFC.js.map} +1 -1
- package/dist/{chunk-4Q6FADF6.cjs → chunk-UZE7IPOK.cjs} +571 -121
- package/dist/chunk-UZE7IPOK.cjs.map +1 -0
- package/dist/chunk-WTURYJEA.cjs +504 -0
- package/dist/chunk-WTURYJEA.cjs.map +1 -0
- package/dist/{chunk-XBZGVJ5K.js → chunk-YR7CTWY6.js} +3 -3
- package/dist/{chunk-XBZGVJ5K.js.map → chunk-YR7CTWY6.js.map} +1 -1
- package/dist/{contract-addresses-RABD77VP.cjs → contract-addresses-6K6IB5OB.cjs} +13 -13
- package/dist/{contract-addresses-RABD77VP.cjs.map → contract-addresses-6K6IB5OB.cjs.map} +1 -1
- package/dist/{contract-addresses-TVXSRQ7I.js → contract-addresses-CHZ7PK5H.js} +3 -3
- package/dist/{contract-addresses-TVXSRQ7I.js.map → contract-addresses-CHZ7PK5H.js.map} +1 -1
- package/dist/core.cjs +285 -261
- package/dist/core.d.cts +6 -175
- package/dist/core.d.ts +6 -175
- package/dist/core.js +2 -2
- package/dist/dapp.cjs +6 -6
- package/dist/dapp.js +3 -3
- package/dist/enduser.cjs +7 -7
- package/dist/enduser.js +4 -4
- package/dist/identity.cjs +6 -6
- package/dist/identity.js +3 -3
- package/dist/index.cjs +406 -374
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +17 -17
- package/dist/kms.cjs +135 -103
- package/dist/kms.d.cts +330 -26
- package/dist/kms.d.ts +330 -26
- package/dist/kms.js +3 -3
- package/dist/operator.cjs +7 -7
- package/dist/operator.js +3 -3
- package/dist/paymaster.cjs +16 -16
- package/dist/paymaster.js +3 -3
- package/dist/{src-VO7TXJPG.cjs → src-DNURNUIA.cjs} +287 -263
- package/dist/src-DNURNUIA.cjs.map +1 -0
- package/dist/{src-RM6DDR7K.cjs → src-DZDH3BSU.cjs} +18 -18
- package/dist/src-DZDH3BSU.cjs.map +1 -0
- package/dist/{src-HKOFZ4V3.js → src-EVM7OESP.js} +5 -5
- package/dist/src-EVM7OESP.js.map +1 -0
- package/dist/src-FY3KAPPC.js +5 -0
- package/dist/src-FY3KAPPC.js.map +1 -0
- package/dist/tokens.cjs +12 -4
- package/dist/tokens.d.cts +133 -1
- package/dist/tokens.d.ts +133 -1
- package/dist/tokens.js +3 -3
- package/dist/x402.cjs +26 -26
- package/dist/x402.js +3 -3
- package/package.json +1 -1
- package/dist/UserClient-4MRK2D7W.cjs +0 -15
- package/dist/UserClient-DPJ6E2XL.js +0 -6
- package/dist/chunk-4Q6FADF6.cjs.map +0 -1
- package/dist/chunk-BPAAWQQA.js.map +0 -1
- package/dist/chunk-EEWLL7GE.js.map +0 -1
- package/dist/chunk-IB3KOSHW.cjs.map +0 -1
- package/dist/chunk-MXJEULSE.cjs.map +0 -1
- package/dist/chunk-O2CN77MV.js +0 -226
- package/dist/chunk-O2CN77MV.js.map +0 -1
- package/dist/chunk-UCLK6LTB.js.map +0 -1
- package/dist/chunk-V23XPVHO.cjs +0 -228
- package/dist/chunk-V23XPVHO.cjs.map +0 -1
- package/dist/src-HKOFZ4V3.js.map +0 -1
- package/dist/src-L2BLX34S.js +0 -5
- package/dist/src-L2BLX34S.js.map +0 -1
- package/dist/src-RM6DDR7K.cjs.map +0 -1
- package/dist/src-VO7TXJPG.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkG33MXEHU_cjs = require('./chunk-G33MXEHU.cjs');
|
|
4
4
|
var viem = require('viem');
|
|
5
5
|
var chains = require('viem/chains');
|
|
6
6
|
var nc = require('crypto');
|
|
@@ -60,39 +60,39 @@ var SEPOLIA_CONTRACTS = {
|
|
|
60
60
|
// ========================================
|
|
61
61
|
// Core System (AOA+ Mode)
|
|
62
62
|
// ========================================
|
|
63
|
-
core:
|
|
63
|
+
core: chunkG33MXEHU_cjs.CORE_ADDRESSES,
|
|
64
64
|
// ========================================
|
|
65
65
|
// Token System
|
|
66
66
|
// ========================================
|
|
67
|
-
tokens:
|
|
67
|
+
tokens: chunkG33MXEHU_cjs.TOKEN_ADDRESSES,
|
|
68
68
|
// ========================================
|
|
69
69
|
// Test Tokens (For Development & Testing)
|
|
70
70
|
// ========================================
|
|
71
|
-
testTokens:
|
|
71
|
+
testTokens: chunkG33MXEHU_cjs.TEST_TOKEN_ADDRESSES,
|
|
72
72
|
// ========================================
|
|
73
73
|
// Test Accounts (For Development & Testing)
|
|
74
74
|
// ========================================
|
|
75
|
-
testAccounts:
|
|
75
|
+
testAccounts: chunkG33MXEHU_cjs.TEST_ACCOUNT_ADDRESSES,
|
|
76
76
|
// ========================================
|
|
77
77
|
// Paymaster V4_1 (AOA Mode - Independent Paymaster)
|
|
78
78
|
// ========================================
|
|
79
|
-
paymaster:
|
|
79
|
+
paymaster: chunkG33MXEHU_cjs.PAYMASTER_ADDRESSES,
|
|
80
80
|
// ========================================
|
|
81
81
|
// DVT/BLS Monitoring System
|
|
82
82
|
// ========================================
|
|
83
|
-
monitoring:
|
|
83
|
+
monitoring: chunkG33MXEHU_cjs.MONITORING_ADDRESSES,
|
|
84
84
|
// ========================================
|
|
85
85
|
// Official Dependencies
|
|
86
86
|
// ========================================
|
|
87
|
-
official:
|
|
87
|
+
official: chunkG33MXEHU_cjs.OFFICIAL_ADDRESSES,
|
|
88
88
|
// ========================================
|
|
89
89
|
// Test Communities (For Development & Testing)
|
|
90
90
|
// ========================================
|
|
91
91
|
communities: {
|
|
92
92
|
/** AAStar Community - Test community for development (registered: 2025-11-01) */
|
|
93
93
|
aastar: {
|
|
94
|
-
owner:
|
|
95
|
-
gasToken:
|
|
94
|
+
owner: chunkG33MXEHU_cjs.COMMUNITY_OWNERS.aastarOwner,
|
|
95
|
+
gasToken: chunkG33MXEHU_cjs.TEST_TOKEN_ADDRESSES.aPNTs,
|
|
96
96
|
ensName: "aastar.eth",
|
|
97
97
|
name: "AAStar",
|
|
98
98
|
stake: "50"
|
|
@@ -100,8 +100,8 @@ var SEPOLIA_CONTRACTS = {
|
|
|
100
100
|
},
|
|
101
101
|
/** BreadCommunity - Test community for development (registered: 2025-11-03) */
|
|
102
102
|
breadCommunity: {
|
|
103
|
-
owner:
|
|
104
|
-
gasToken:
|
|
103
|
+
owner: chunkG33MXEHU_cjs.COMMUNITY_OWNERS.breadCommunityOwner,
|
|
104
|
+
gasToken: chunkG33MXEHU_cjs.TEST_TOKEN_ADDRESSES.bPNTs,
|
|
105
105
|
ensName: "bread.eth",
|
|
106
106
|
name: "BreadCommunity",
|
|
107
107
|
stake: "50"
|
|
@@ -221,7 +221,7 @@ var SEPOLIA_V2_VERSIONS = {
|
|
|
221
221
|
version: "2.0.0",
|
|
222
222
|
versionCode: 2e4,
|
|
223
223
|
deployedAt: "2025-11-01",
|
|
224
|
-
address:
|
|
224
|
+
address: chunkG33MXEHU_cjs.CORE_ADDRESSES.gToken,
|
|
225
225
|
features: [
|
|
226
226
|
"VERSION interface",
|
|
227
227
|
"ERC20 governance token",
|
|
@@ -234,7 +234,7 @@ var SEPOLIA_V2_VERSIONS = {
|
|
|
234
234
|
version: "2.3.3",
|
|
235
235
|
versionCode: 20303,
|
|
236
236
|
deployedAt: "2024-11-24",
|
|
237
|
-
address:
|
|
237
|
+
address: chunkG33MXEHU_cjs.CORE_ADDRESSES.superPaymaster,
|
|
238
238
|
features: [
|
|
239
239
|
"VERSION interface",
|
|
240
240
|
"Unified architecture",
|
|
@@ -257,7 +257,7 @@ var SEPOLIA_V2_VERSIONS = {
|
|
|
257
257
|
version: "2.2.1",
|
|
258
258
|
versionCode: 20201,
|
|
259
259
|
deployedAt: "2025-11-09",
|
|
260
|
-
address:
|
|
260
|
+
address: chunkG33MXEHU_cjs.CORE_ADDRESSES.registry,
|
|
261
261
|
features: [
|
|
262
262
|
"VERSION interface",
|
|
263
263
|
"allowPermissionlessMint defaults to true",
|
|
@@ -274,7 +274,7 @@ var SEPOLIA_V2_VERSIONS = {
|
|
|
274
274
|
version: "2.0.1",
|
|
275
275
|
versionCode: 20001,
|
|
276
276
|
deployedAt: "2025-11-05",
|
|
277
|
-
address:
|
|
277
|
+
address: chunkG33MXEHU_cjs.CORE_ADDRESSES.gTokenStaking,
|
|
278
278
|
features: [
|
|
279
279
|
"VERSION interface",
|
|
280
280
|
"User-level slash tracking",
|
|
@@ -291,7 +291,7 @@ var SEPOLIA_V2_VERSIONS = {
|
|
|
291
291
|
version: "1.0.0",
|
|
292
292
|
versionCode: 1e4,
|
|
293
293
|
deployedAt: "2025-11-01",
|
|
294
|
-
address:
|
|
294
|
+
address: chunkG33MXEHU_cjs.CORE_ADDRESSES.paymasterFactory,
|
|
295
295
|
features: [
|
|
296
296
|
"EIP-1167 Minimal Proxy",
|
|
297
297
|
"Version management",
|
|
@@ -310,7 +310,7 @@ var SEPOLIA_V2_VERSIONS = {
|
|
|
310
310
|
version: "2.0.0",
|
|
311
311
|
versionCode: 2e4,
|
|
312
312
|
deployedAt: "2025-11-01",
|
|
313
|
-
address:
|
|
313
|
+
address: chunkG33MXEHU_cjs.TOKEN_ADDRESSES.xPNTsFactory,
|
|
314
314
|
features: [
|
|
315
315
|
"VERSION interface",
|
|
316
316
|
"Unified architecture",
|
|
@@ -324,7 +324,7 @@ var SEPOLIA_V2_VERSIONS = {
|
|
|
324
324
|
version: "2.4.5",
|
|
325
325
|
versionCode: 20405,
|
|
326
326
|
deployedAt: "2024-11-24",
|
|
327
|
-
address:
|
|
327
|
+
address: chunkG33MXEHU_cjs.CORE_ADDRESSES.mySBT,
|
|
328
328
|
features: [
|
|
329
329
|
'IVersioned interface: version() returns 2004005, versionString() returns "v2.4.5"',
|
|
330
330
|
'VERSION constants: VERSION="2.4.5", VERSION_CODE=20405',
|
|
@@ -355,7 +355,7 @@ var SEPOLIA_V2_VERSIONS = {
|
|
|
355
355
|
version: "2.0.0",
|
|
356
356
|
versionCode: 2e4,
|
|
357
357
|
deployedAt: "2025-11-01",
|
|
358
|
-
address:
|
|
358
|
+
address: chunkG33MXEHU_cjs.TEST_TOKEN_ADDRESSES.aPNTs,
|
|
359
359
|
features: [
|
|
360
360
|
"VERSION interface",
|
|
361
361
|
"AAStar community gas token",
|
|
@@ -368,7 +368,7 @@ var SEPOLIA_V2_VERSIONS = {
|
|
|
368
368
|
version: "2.0.0",
|
|
369
369
|
versionCode: 2e4,
|
|
370
370
|
deployedAt: "2025-11-03",
|
|
371
|
-
address:
|
|
371
|
+
address: chunkG33MXEHU_cjs.TEST_TOKEN_ADDRESSES.bPNTs,
|
|
372
372
|
features: [
|
|
373
373
|
"VERSION interface",
|
|
374
374
|
"BreadCommunity gas token",
|
|
@@ -386,7 +386,7 @@ var SEPOLIA_V2_VERSIONS = {
|
|
|
386
386
|
version: "2.0.0",
|
|
387
387
|
versionCode: 2e4,
|
|
388
388
|
deployedAt: "2025-11-01",
|
|
389
|
-
address:
|
|
389
|
+
address: chunkG33MXEHU_cjs.MONITORING_ADDRESSES.dvtValidator,
|
|
390
390
|
features: [
|
|
391
391
|
"VERSION interface",
|
|
392
392
|
"Distributed validator technology",
|
|
@@ -399,7 +399,7 @@ var SEPOLIA_V2_VERSIONS = {
|
|
|
399
399
|
version: "2.0.0",
|
|
400
400
|
versionCode: 2e4,
|
|
401
401
|
deployedAt: "2025-11-01",
|
|
402
|
-
address:
|
|
402
|
+
address: chunkG33MXEHU_cjs.MONITORING_ADDRESSES.blsAggregator,
|
|
403
403
|
features: [
|
|
404
404
|
"VERSION interface",
|
|
405
405
|
"BLS signature aggregation",
|
|
@@ -533,9 +533,9 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
|
533
533
|
var AASTAR_COMMUNITY = {
|
|
534
534
|
name: "AAstar Community",
|
|
535
535
|
ensName: "aastar.eth",
|
|
536
|
-
address:
|
|
537
|
-
xPNTsToken:
|
|
538
|
-
supportedSBTs: [
|
|
536
|
+
address: chunkG33MXEHU_cjs.TEST_COMMUNITIES.aastar,
|
|
537
|
+
xPNTsToken: chunkG33MXEHU_cjs.TEST_TOKEN_ADDRESSES.aPNTs,
|
|
538
|
+
supportedSBTs: [chunkG33MXEHU_cjs.CORE_ADDRESSES.mySBT],
|
|
539
539
|
nodeType: 1 /* PAYMASTER_SUPER */,
|
|
540
540
|
isActive: true,
|
|
541
541
|
allowPermissionlessMint: true,
|
|
@@ -547,9 +547,9 @@ var AASTAR_COMMUNITY = {
|
|
|
547
547
|
var BREAD_COMMUNITY = {
|
|
548
548
|
name: "Bread Community",
|
|
549
549
|
ensName: "bread.eth",
|
|
550
|
-
address:
|
|
551
|
-
xPNTsToken:
|
|
552
|
-
supportedSBTs: [
|
|
550
|
+
address: chunkG33MXEHU_cjs.TEST_COMMUNITIES.bread,
|
|
551
|
+
xPNTsToken: chunkG33MXEHU_cjs.TEST_TOKEN_ADDRESSES.bPNTs,
|
|
552
|
+
supportedSBTs: [chunkG33MXEHU_cjs.CORE_ADDRESSES.mySBT],
|
|
553
553
|
nodeType: 0 /* PAYMASTER_AOA */,
|
|
554
554
|
isActive: true,
|
|
555
555
|
allowPermissionlessMint: false,
|
|
@@ -559,8 +559,8 @@ var BREAD_COMMUNITY = {
|
|
|
559
559
|
// 2025-11-08
|
|
560
560
|
};
|
|
561
561
|
var COMMUNITIES = {
|
|
562
|
-
[
|
|
563
|
-
[
|
|
562
|
+
[chunkG33MXEHU_cjs.TEST_COMMUNITIES.aastar]: AASTAR_COMMUNITY,
|
|
563
|
+
[chunkG33MXEHU_cjs.TEST_COMMUNITIES.bread]: BREAD_COMMUNITY
|
|
564
564
|
};
|
|
565
565
|
function getCommunityConfig(address) {
|
|
566
566
|
return COMMUNITIES[address.toLowerCase()];
|
|
@@ -30003,6 +30003,2126 @@ var AirAccountExtension_default = {
|
|
|
30003
30003
|
]
|
|
30004
30004
|
};
|
|
30005
30005
|
|
|
30006
|
+
// ../core/src/abis/ERC20.json
|
|
30007
|
+
var ERC20_default = [
|
|
30008
|
+
{
|
|
30009
|
+
type: "function",
|
|
30010
|
+
name: "name",
|
|
30011
|
+
inputs: [],
|
|
30012
|
+
outputs: [{ name: "", type: "string" }],
|
|
30013
|
+
stateMutability: "view"
|
|
30014
|
+
},
|
|
30015
|
+
{
|
|
30016
|
+
type: "function",
|
|
30017
|
+
name: "symbol",
|
|
30018
|
+
inputs: [],
|
|
30019
|
+
outputs: [{ name: "", type: "string" }],
|
|
30020
|
+
stateMutability: "view"
|
|
30021
|
+
},
|
|
30022
|
+
{
|
|
30023
|
+
type: "function",
|
|
30024
|
+
name: "decimals",
|
|
30025
|
+
inputs: [],
|
|
30026
|
+
outputs: [{ name: "", type: "uint8" }],
|
|
30027
|
+
stateMutability: "view"
|
|
30028
|
+
},
|
|
30029
|
+
{
|
|
30030
|
+
type: "function",
|
|
30031
|
+
name: "totalSupply",
|
|
30032
|
+
inputs: [],
|
|
30033
|
+
outputs: [{ name: "", type: "uint256" }],
|
|
30034
|
+
stateMutability: "view"
|
|
30035
|
+
},
|
|
30036
|
+
{
|
|
30037
|
+
type: "function",
|
|
30038
|
+
name: "balanceOf",
|
|
30039
|
+
inputs: [{ name: "account", type: "address" }],
|
|
30040
|
+
outputs: [{ name: "", type: "uint256" }],
|
|
30041
|
+
stateMutability: "view"
|
|
30042
|
+
},
|
|
30043
|
+
{
|
|
30044
|
+
type: "function",
|
|
30045
|
+
name: "allowance",
|
|
30046
|
+
inputs: [
|
|
30047
|
+
{ name: "owner", type: "address" },
|
|
30048
|
+
{ name: "spender", type: "address" }
|
|
30049
|
+
],
|
|
30050
|
+
outputs: [{ name: "", type: "uint256" }],
|
|
30051
|
+
stateMutability: "view"
|
|
30052
|
+
},
|
|
30053
|
+
{
|
|
30054
|
+
type: "function",
|
|
30055
|
+
name: "approve",
|
|
30056
|
+
inputs: [
|
|
30057
|
+
{ name: "spender", type: "address" },
|
|
30058
|
+
{ name: "amount", type: "uint256" }
|
|
30059
|
+
],
|
|
30060
|
+
outputs: [{ name: "", type: "bool" }],
|
|
30061
|
+
stateMutability: "nonpayable"
|
|
30062
|
+
},
|
|
30063
|
+
{
|
|
30064
|
+
type: "function",
|
|
30065
|
+
name: "transfer",
|
|
30066
|
+
inputs: [
|
|
30067
|
+
{ name: "to", type: "address" },
|
|
30068
|
+
{ name: "amount", type: "uint256" }
|
|
30069
|
+
],
|
|
30070
|
+
outputs: [{ name: "", type: "bool" }],
|
|
30071
|
+
stateMutability: "nonpayable"
|
|
30072
|
+
},
|
|
30073
|
+
{
|
|
30074
|
+
type: "function",
|
|
30075
|
+
name: "transferFrom",
|
|
30076
|
+
inputs: [
|
|
30077
|
+
{ name: "from", type: "address" },
|
|
30078
|
+
{ name: "to", type: "address" },
|
|
30079
|
+
{ name: "amount", type: "uint256" }
|
|
30080
|
+
],
|
|
30081
|
+
outputs: [{ name: "", type: "bool" }],
|
|
30082
|
+
stateMutability: "nonpayable"
|
|
30083
|
+
}
|
|
30084
|
+
];
|
|
30085
|
+
|
|
30086
|
+
// ../core/src/abis/SaleContractV2.json
|
|
30087
|
+
var SaleContractV2_default = [
|
|
30088
|
+
{
|
|
30089
|
+
type: "constructor",
|
|
30090
|
+
inputs: [
|
|
30091
|
+
{
|
|
30092
|
+
name: "gTokenAddress",
|
|
30093
|
+
type: "address",
|
|
30094
|
+
internalType: "address"
|
|
30095
|
+
},
|
|
30096
|
+
{
|
|
30097
|
+
name: "_treasury",
|
|
30098
|
+
type: "address",
|
|
30099
|
+
internalType: "address"
|
|
30100
|
+
},
|
|
30101
|
+
{
|
|
30102
|
+
name: "_initialOwner",
|
|
30103
|
+
type: "address",
|
|
30104
|
+
internalType: "address"
|
|
30105
|
+
}
|
|
30106
|
+
],
|
|
30107
|
+
stateMutability: "nonpayable"
|
|
30108
|
+
},
|
|
30109
|
+
{
|
|
30110
|
+
type: "function",
|
|
30111
|
+
name: "AUTO_STEP_BPS",
|
|
30112
|
+
inputs: [],
|
|
30113
|
+
outputs: [
|
|
30114
|
+
{
|
|
30115
|
+
name: "",
|
|
30116
|
+
type: "uint16",
|
|
30117
|
+
internalType: "uint16"
|
|
30118
|
+
}
|
|
30119
|
+
],
|
|
30120
|
+
stateMutability: "view"
|
|
30121
|
+
},
|
|
30122
|
+
{
|
|
30123
|
+
type: "function",
|
|
30124
|
+
name: "VERSION",
|
|
30125
|
+
inputs: [],
|
|
30126
|
+
outputs: [
|
|
30127
|
+
{
|
|
30128
|
+
name: "",
|
|
30129
|
+
type: "uint256",
|
|
30130
|
+
internalType: "uint256"
|
|
30131
|
+
}
|
|
30132
|
+
],
|
|
30133
|
+
stateMutability: "view"
|
|
30134
|
+
},
|
|
30135
|
+
{
|
|
30136
|
+
type: "function",
|
|
30137
|
+
name: "acceptedTokens",
|
|
30138
|
+
inputs: [
|
|
30139
|
+
{
|
|
30140
|
+
name: "",
|
|
30141
|
+
type: "address",
|
|
30142
|
+
internalType: "address"
|
|
30143
|
+
}
|
|
30144
|
+
],
|
|
30145
|
+
outputs: [
|
|
30146
|
+
{
|
|
30147
|
+
name: "",
|
|
30148
|
+
type: "bool",
|
|
30149
|
+
internalType: "bool"
|
|
30150
|
+
}
|
|
30151
|
+
],
|
|
30152
|
+
stateMutability: "view"
|
|
30153
|
+
},
|
|
30154
|
+
{
|
|
30155
|
+
type: "function",
|
|
30156
|
+
name: "addMilestone",
|
|
30157
|
+
inputs: [
|
|
30158
|
+
{
|
|
30159
|
+
name: "priceUSD",
|
|
30160
|
+
type: "uint256",
|
|
30161
|
+
internalType: "uint256"
|
|
30162
|
+
},
|
|
30163
|
+
{
|
|
30164
|
+
name: "revenueCap",
|
|
30165
|
+
type: "uint256",
|
|
30166
|
+
internalType: "uint256"
|
|
30167
|
+
}
|
|
30168
|
+
],
|
|
30169
|
+
outputs: [],
|
|
30170
|
+
stateMutability: "nonpayable"
|
|
30171
|
+
},
|
|
30172
|
+
{
|
|
30173
|
+
type: "function",
|
|
30174
|
+
name: "addMilestoneAutoStep",
|
|
30175
|
+
inputs: [
|
|
30176
|
+
{
|
|
30177
|
+
name: "revenueCap",
|
|
30178
|
+
type: "uint256",
|
|
30179
|
+
internalType: "uint256"
|
|
30180
|
+
}
|
|
30181
|
+
],
|
|
30182
|
+
outputs: [],
|
|
30183
|
+
stateMutability: "nonpayable"
|
|
30184
|
+
},
|
|
30185
|
+
{
|
|
30186
|
+
type: "function",
|
|
30187
|
+
name: "advanceMilestone",
|
|
30188
|
+
inputs: [],
|
|
30189
|
+
outputs: [],
|
|
30190
|
+
stateMutability: "nonpayable"
|
|
30191
|
+
},
|
|
30192
|
+
{
|
|
30193
|
+
type: "function",
|
|
30194
|
+
name: "availableInventory",
|
|
30195
|
+
inputs: [],
|
|
30196
|
+
outputs: [
|
|
30197
|
+
{
|
|
30198
|
+
name: "",
|
|
30199
|
+
type: "uint256",
|
|
30200
|
+
internalType: "uint256"
|
|
30201
|
+
}
|
|
30202
|
+
],
|
|
30203
|
+
stateMutability: "view"
|
|
30204
|
+
},
|
|
30205
|
+
{
|
|
30206
|
+
type: "function",
|
|
30207
|
+
name: "buyTokens",
|
|
30208
|
+
inputs: [
|
|
30209
|
+
{
|
|
30210
|
+
name: "usdAmount",
|
|
30211
|
+
type: "uint256",
|
|
30212
|
+
internalType: "uint256"
|
|
30213
|
+
},
|
|
30214
|
+
{
|
|
30215
|
+
name: "paymentToken",
|
|
30216
|
+
type: "address",
|
|
30217
|
+
internalType: "address"
|
|
30218
|
+
},
|
|
30219
|
+
{
|
|
30220
|
+
name: "minTokensOut",
|
|
30221
|
+
type: "uint256",
|
|
30222
|
+
internalType: "uint256"
|
|
30223
|
+
}
|
|
30224
|
+
],
|
|
30225
|
+
outputs: [],
|
|
30226
|
+
stateMutability: "nonpayable"
|
|
30227
|
+
},
|
|
30228
|
+
{
|
|
30229
|
+
type: "function",
|
|
30230
|
+
name: "currentMilestone",
|
|
30231
|
+
inputs: [],
|
|
30232
|
+
outputs: [
|
|
30233
|
+
{
|
|
30234
|
+
name: "",
|
|
30235
|
+
type: "uint256",
|
|
30236
|
+
internalType: "uint256"
|
|
30237
|
+
}
|
|
30238
|
+
],
|
|
30239
|
+
stateMutability: "view"
|
|
30240
|
+
},
|
|
30241
|
+
{
|
|
30242
|
+
type: "function",
|
|
30243
|
+
name: "gToken",
|
|
30244
|
+
inputs: [],
|
|
30245
|
+
outputs: [
|
|
30246
|
+
{
|
|
30247
|
+
name: "",
|
|
30248
|
+
type: "address",
|
|
30249
|
+
internalType: "contract IERC20"
|
|
30250
|
+
}
|
|
30251
|
+
],
|
|
30252
|
+
stateMutability: "view"
|
|
30253
|
+
},
|
|
30254
|
+
{
|
|
30255
|
+
type: "function",
|
|
30256
|
+
name: "getAllMilestones",
|
|
30257
|
+
inputs: [],
|
|
30258
|
+
outputs: [
|
|
30259
|
+
{
|
|
30260
|
+
name: "",
|
|
30261
|
+
type: "tuple[]",
|
|
30262
|
+
internalType: "struct SaleContractV2.Milestone[]",
|
|
30263
|
+
components: [
|
|
30264
|
+
{
|
|
30265
|
+
name: "priceUSD",
|
|
30266
|
+
type: "uint256",
|
|
30267
|
+
internalType: "uint256"
|
|
30268
|
+
},
|
|
30269
|
+
{
|
|
30270
|
+
name: "revenueCap",
|
|
30271
|
+
type: "uint256",
|
|
30272
|
+
internalType: "uint256"
|
|
30273
|
+
}
|
|
30274
|
+
]
|
|
30275
|
+
}
|
|
30276
|
+
],
|
|
30277
|
+
stateMutability: "view"
|
|
30278
|
+
},
|
|
30279
|
+
{
|
|
30280
|
+
type: "function",
|
|
30281
|
+
name: "getCurrentPriceUSD",
|
|
30282
|
+
inputs: [],
|
|
30283
|
+
outputs: [
|
|
30284
|
+
{
|
|
30285
|
+
name: "",
|
|
30286
|
+
type: "uint256",
|
|
30287
|
+
internalType: "uint256"
|
|
30288
|
+
}
|
|
30289
|
+
],
|
|
30290
|
+
stateMutability: "view"
|
|
30291
|
+
},
|
|
30292
|
+
{
|
|
30293
|
+
type: "function",
|
|
30294
|
+
name: "getMilestone",
|
|
30295
|
+
inputs: [
|
|
30296
|
+
{
|
|
30297
|
+
name: "index",
|
|
30298
|
+
type: "uint256",
|
|
30299
|
+
internalType: "uint256"
|
|
30300
|
+
}
|
|
30301
|
+
],
|
|
30302
|
+
outputs: [
|
|
30303
|
+
{
|
|
30304
|
+
name: "priceUSD",
|
|
30305
|
+
type: "uint256",
|
|
30306
|
+
internalType: "uint256"
|
|
30307
|
+
},
|
|
30308
|
+
{
|
|
30309
|
+
name: "revenueCap",
|
|
30310
|
+
type: "uint256",
|
|
30311
|
+
internalType: "uint256"
|
|
30312
|
+
}
|
|
30313
|
+
],
|
|
30314
|
+
stateMutability: "view"
|
|
30315
|
+
},
|
|
30316
|
+
{
|
|
30317
|
+
type: "function",
|
|
30318
|
+
name: "getMilestoneCount",
|
|
30319
|
+
inputs: [],
|
|
30320
|
+
outputs: [
|
|
30321
|
+
{
|
|
30322
|
+
name: "",
|
|
30323
|
+
type: "uint256",
|
|
30324
|
+
internalType: "uint256"
|
|
30325
|
+
}
|
|
30326
|
+
],
|
|
30327
|
+
stateMutability: "view"
|
|
30328
|
+
},
|
|
30329
|
+
{
|
|
30330
|
+
type: "function",
|
|
30331
|
+
name: "getTokensForUSD",
|
|
30332
|
+
inputs: [
|
|
30333
|
+
{
|
|
30334
|
+
name: "usdAmount",
|
|
30335
|
+
type: "uint256",
|
|
30336
|
+
internalType: "uint256"
|
|
30337
|
+
}
|
|
30338
|
+
],
|
|
30339
|
+
outputs: [
|
|
30340
|
+
{
|
|
30341
|
+
name: "",
|
|
30342
|
+
type: "uint256",
|
|
30343
|
+
internalType: "uint256"
|
|
30344
|
+
}
|
|
30345
|
+
],
|
|
30346
|
+
stateMutability: "view"
|
|
30347
|
+
},
|
|
30348
|
+
{
|
|
30349
|
+
type: "function",
|
|
30350
|
+
name: "isWhitelisted",
|
|
30351
|
+
inputs: [
|
|
30352
|
+
{
|
|
30353
|
+
name: "",
|
|
30354
|
+
type: "address",
|
|
30355
|
+
internalType: "address"
|
|
30356
|
+
}
|
|
30357
|
+
],
|
|
30358
|
+
outputs: [
|
|
30359
|
+
{
|
|
30360
|
+
name: "",
|
|
30361
|
+
type: "bool",
|
|
30362
|
+
internalType: "bool"
|
|
30363
|
+
}
|
|
30364
|
+
],
|
|
30365
|
+
stateMutability: "view"
|
|
30366
|
+
},
|
|
30367
|
+
{
|
|
30368
|
+
type: "function",
|
|
30369
|
+
name: "owner",
|
|
30370
|
+
inputs: [],
|
|
30371
|
+
outputs: [
|
|
30372
|
+
{
|
|
30373
|
+
name: "",
|
|
30374
|
+
type: "address",
|
|
30375
|
+
internalType: "address"
|
|
30376
|
+
}
|
|
30377
|
+
],
|
|
30378
|
+
stateMutability: "view"
|
|
30379
|
+
},
|
|
30380
|
+
{
|
|
30381
|
+
type: "function",
|
|
30382
|
+
name: "pause",
|
|
30383
|
+
inputs: [],
|
|
30384
|
+
outputs: [],
|
|
30385
|
+
stateMutability: "nonpayable"
|
|
30386
|
+
},
|
|
30387
|
+
{
|
|
30388
|
+
type: "function",
|
|
30389
|
+
name: "paused",
|
|
30390
|
+
inputs: [],
|
|
30391
|
+
outputs: [
|
|
30392
|
+
{
|
|
30393
|
+
name: "",
|
|
30394
|
+
type: "bool",
|
|
30395
|
+
internalType: "bool"
|
|
30396
|
+
}
|
|
30397
|
+
],
|
|
30398
|
+
stateMutability: "view"
|
|
30399
|
+
},
|
|
30400
|
+
{
|
|
30401
|
+
type: "function",
|
|
30402
|
+
name: "perPersonCapUSD",
|
|
30403
|
+
inputs: [],
|
|
30404
|
+
outputs: [
|
|
30405
|
+
{
|
|
30406
|
+
name: "",
|
|
30407
|
+
type: "uint256",
|
|
30408
|
+
internalType: "uint256"
|
|
30409
|
+
}
|
|
30410
|
+
],
|
|
30411
|
+
stateMutability: "view"
|
|
30412
|
+
},
|
|
30413
|
+
{
|
|
30414
|
+
type: "function",
|
|
30415
|
+
name: "recoverToken",
|
|
30416
|
+
inputs: [
|
|
30417
|
+
{
|
|
30418
|
+
name: "token",
|
|
30419
|
+
type: "address",
|
|
30420
|
+
internalType: "address"
|
|
30421
|
+
}
|
|
30422
|
+
],
|
|
30423
|
+
outputs: [],
|
|
30424
|
+
stateMutability: "nonpayable"
|
|
30425
|
+
},
|
|
30426
|
+
{
|
|
30427
|
+
type: "function",
|
|
30428
|
+
name: "renounceOwnership",
|
|
30429
|
+
inputs: [],
|
|
30430
|
+
outputs: [],
|
|
30431
|
+
stateMutability: "nonpayable"
|
|
30432
|
+
},
|
|
30433
|
+
{
|
|
30434
|
+
type: "function",
|
|
30435
|
+
name: "setPaymentToken",
|
|
30436
|
+
inputs: [
|
|
30437
|
+
{
|
|
30438
|
+
name: "token",
|
|
30439
|
+
type: "address",
|
|
30440
|
+
internalType: "address"
|
|
30441
|
+
},
|
|
30442
|
+
{
|
|
30443
|
+
name: "accepted",
|
|
30444
|
+
type: "bool",
|
|
30445
|
+
internalType: "bool"
|
|
30446
|
+
}
|
|
30447
|
+
],
|
|
30448
|
+
outputs: [],
|
|
30449
|
+
stateMutability: "nonpayable"
|
|
30450
|
+
},
|
|
30451
|
+
{
|
|
30452
|
+
type: "function",
|
|
30453
|
+
name: "setPerPersonCap",
|
|
30454
|
+
inputs: [
|
|
30455
|
+
{
|
|
30456
|
+
name: "capUSD",
|
|
30457
|
+
type: "uint256",
|
|
30458
|
+
internalType: "uint256"
|
|
30459
|
+
}
|
|
30460
|
+
],
|
|
30461
|
+
outputs: [],
|
|
30462
|
+
stateMutability: "nonpayable"
|
|
30463
|
+
},
|
|
30464
|
+
{
|
|
30465
|
+
type: "function",
|
|
30466
|
+
name: "setTreasury",
|
|
30467
|
+
inputs: [
|
|
30468
|
+
{
|
|
30469
|
+
name: "newTreasury",
|
|
30470
|
+
type: "address",
|
|
30471
|
+
internalType: "address"
|
|
30472
|
+
}
|
|
30473
|
+
],
|
|
30474
|
+
outputs: [],
|
|
30475
|
+
stateMutability: "nonpayable"
|
|
30476
|
+
},
|
|
30477
|
+
{
|
|
30478
|
+
type: "function",
|
|
30479
|
+
name: "setWhitelistRequired",
|
|
30480
|
+
inputs: [
|
|
30481
|
+
{
|
|
30482
|
+
name: "required",
|
|
30483
|
+
type: "bool",
|
|
30484
|
+
internalType: "bool"
|
|
30485
|
+
}
|
|
30486
|
+
],
|
|
30487
|
+
outputs: [],
|
|
30488
|
+
stateMutability: "nonpayable"
|
|
30489
|
+
},
|
|
30490
|
+
{
|
|
30491
|
+
type: "function",
|
|
30492
|
+
name: "setWhitelisted",
|
|
30493
|
+
inputs: [
|
|
30494
|
+
{
|
|
30495
|
+
name: "users",
|
|
30496
|
+
type: "address[]",
|
|
30497
|
+
internalType: "address[]"
|
|
30498
|
+
},
|
|
30499
|
+
{
|
|
30500
|
+
name: "status",
|
|
30501
|
+
type: "bool",
|
|
30502
|
+
internalType: "bool"
|
|
30503
|
+
}
|
|
30504
|
+
],
|
|
30505
|
+
outputs: [],
|
|
30506
|
+
stateMutability: "nonpayable"
|
|
30507
|
+
},
|
|
30508
|
+
{
|
|
30509
|
+
type: "function",
|
|
30510
|
+
name: "totalRevenue",
|
|
30511
|
+
inputs: [],
|
|
30512
|
+
outputs: [
|
|
30513
|
+
{
|
|
30514
|
+
name: "",
|
|
30515
|
+
type: "uint256",
|
|
30516
|
+
internalType: "uint256"
|
|
30517
|
+
}
|
|
30518
|
+
],
|
|
30519
|
+
stateMutability: "view"
|
|
30520
|
+
},
|
|
30521
|
+
{
|
|
30522
|
+
type: "function",
|
|
30523
|
+
name: "totalTokensSold",
|
|
30524
|
+
inputs: [],
|
|
30525
|
+
outputs: [
|
|
30526
|
+
{
|
|
30527
|
+
name: "",
|
|
30528
|
+
type: "uint256",
|
|
30529
|
+
internalType: "uint256"
|
|
30530
|
+
}
|
|
30531
|
+
],
|
|
30532
|
+
stateMutability: "view"
|
|
30533
|
+
},
|
|
30534
|
+
{
|
|
30535
|
+
type: "function",
|
|
30536
|
+
name: "transferOwnership",
|
|
30537
|
+
inputs: [
|
|
30538
|
+
{
|
|
30539
|
+
name: "newOwner",
|
|
30540
|
+
type: "address",
|
|
30541
|
+
internalType: "address"
|
|
30542
|
+
}
|
|
30543
|
+
],
|
|
30544
|
+
outputs: [],
|
|
30545
|
+
stateMutability: "nonpayable"
|
|
30546
|
+
},
|
|
30547
|
+
{
|
|
30548
|
+
type: "function",
|
|
30549
|
+
name: "treasury",
|
|
30550
|
+
inputs: [],
|
|
30551
|
+
outputs: [
|
|
30552
|
+
{
|
|
30553
|
+
name: "",
|
|
30554
|
+
type: "address",
|
|
30555
|
+
internalType: "address"
|
|
30556
|
+
}
|
|
30557
|
+
],
|
|
30558
|
+
stateMutability: "view"
|
|
30559
|
+
},
|
|
30560
|
+
{
|
|
30561
|
+
type: "function",
|
|
30562
|
+
name: "tryAdvanceMilestone",
|
|
30563
|
+
inputs: [],
|
|
30564
|
+
outputs: [],
|
|
30565
|
+
stateMutability: "nonpayable"
|
|
30566
|
+
},
|
|
30567
|
+
{
|
|
30568
|
+
type: "function",
|
|
30569
|
+
name: "unpause",
|
|
30570
|
+
inputs: [],
|
|
30571
|
+
outputs: [],
|
|
30572
|
+
stateMutability: "nonpayable"
|
|
30573
|
+
},
|
|
30574
|
+
{
|
|
30575
|
+
type: "function",
|
|
30576
|
+
name: "userTotalSpent",
|
|
30577
|
+
inputs: [
|
|
30578
|
+
{
|
|
30579
|
+
name: "",
|
|
30580
|
+
type: "address",
|
|
30581
|
+
internalType: "address"
|
|
30582
|
+
}
|
|
30583
|
+
],
|
|
30584
|
+
outputs: [
|
|
30585
|
+
{
|
|
30586
|
+
name: "",
|
|
30587
|
+
type: "uint256",
|
|
30588
|
+
internalType: "uint256"
|
|
30589
|
+
}
|
|
30590
|
+
],
|
|
30591
|
+
stateMutability: "view"
|
|
30592
|
+
},
|
|
30593
|
+
{
|
|
30594
|
+
type: "function",
|
|
30595
|
+
name: "version",
|
|
30596
|
+
inputs: [],
|
|
30597
|
+
outputs: [
|
|
30598
|
+
{
|
|
30599
|
+
name: "",
|
|
30600
|
+
type: "string",
|
|
30601
|
+
internalType: "string"
|
|
30602
|
+
}
|
|
30603
|
+
],
|
|
30604
|
+
stateMutability: "pure"
|
|
30605
|
+
},
|
|
30606
|
+
{
|
|
30607
|
+
type: "function",
|
|
30608
|
+
name: "whitelistRequired",
|
|
30609
|
+
inputs: [],
|
|
30610
|
+
outputs: [
|
|
30611
|
+
{
|
|
30612
|
+
name: "",
|
|
30613
|
+
type: "bool",
|
|
30614
|
+
internalType: "bool"
|
|
30615
|
+
}
|
|
30616
|
+
],
|
|
30617
|
+
stateMutability: "view"
|
|
30618
|
+
},
|
|
30619
|
+
{
|
|
30620
|
+
type: "event",
|
|
30621
|
+
name: "MilestoneAdded",
|
|
30622
|
+
inputs: [
|
|
30623
|
+
{
|
|
30624
|
+
name: "index",
|
|
30625
|
+
type: "uint256",
|
|
30626
|
+
indexed: true,
|
|
30627
|
+
internalType: "uint256"
|
|
30628
|
+
},
|
|
30629
|
+
{
|
|
30630
|
+
name: "priceUSD",
|
|
30631
|
+
type: "uint256",
|
|
30632
|
+
indexed: false,
|
|
30633
|
+
internalType: "uint256"
|
|
30634
|
+
},
|
|
30635
|
+
{
|
|
30636
|
+
name: "revenueCap",
|
|
30637
|
+
type: "uint256",
|
|
30638
|
+
indexed: false,
|
|
30639
|
+
internalType: "uint256"
|
|
30640
|
+
}
|
|
30641
|
+
],
|
|
30642
|
+
anonymous: false
|
|
30643
|
+
},
|
|
30644
|
+
{
|
|
30645
|
+
type: "event",
|
|
30646
|
+
name: "MilestoneAdvanced",
|
|
30647
|
+
inputs: [
|
|
30648
|
+
{
|
|
30649
|
+
name: "newMilestone",
|
|
30650
|
+
type: "uint256",
|
|
30651
|
+
indexed: true,
|
|
30652
|
+
internalType: "uint256"
|
|
30653
|
+
},
|
|
30654
|
+
{
|
|
30655
|
+
name: "newPriceUSD",
|
|
30656
|
+
type: "uint256",
|
|
30657
|
+
indexed: false,
|
|
30658
|
+
internalType: "uint256"
|
|
30659
|
+
}
|
|
30660
|
+
],
|
|
30661
|
+
anonymous: false
|
|
30662
|
+
},
|
|
30663
|
+
{
|
|
30664
|
+
type: "event",
|
|
30665
|
+
name: "OwnershipTransferred",
|
|
30666
|
+
inputs: [
|
|
30667
|
+
{
|
|
30668
|
+
name: "previousOwner",
|
|
30669
|
+
type: "address",
|
|
30670
|
+
indexed: true,
|
|
30671
|
+
internalType: "address"
|
|
30672
|
+
},
|
|
30673
|
+
{
|
|
30674
|
+
name: "newOwner",
|
|
30675
|
+
type: "address",
|
|
30676
|
+
indexed: true,
|
|
30677
|
+
internalType: "address"
|
|
30678
|
+
}
|
|
30679
|
+
],
|
|
30680
|
+
anonymous: false
|
|
30681
|
+
},
|
|
30682
|
+
{
|
|
30683
|
+
type: "event",
|
|
30684
|
+
name: "Paused",
|
|
30685
|
+
inputs: [
|
|
30686
|
+
{
|
|
30687
|
+
name: "account",
|
|
30688
|
+
type: "address",
|
|
30689
|
+
indexed: false,
|
|
30690
|
+
internalType: "address"
|
|
30691
|
+
}
|
|
30692
|
+
],
|
|
30693
|
+
anonymous: false
|
|
30694
|
+
},
|
|
30695
|
+
{
|
|
30696
|
+
type: "event",
|
|
30697
|
+
name: "PaymentTokenSet",
|
|
30698
|
+
inputs: [
|
|
30699
|
+
{
|
|
30700
|
+
name: "token",
|
|
30701
|
+
type: "address",
|
|
30702
|
+
indexed: true,
|
|
30703
|
+
internalType: "address"
|
|
30704
|
+
},
|
|
30705
|
+
{
|
|
30706
|
+
name: "accepted",
|
|
30707
|
+
type: "bool",
|
|
30708
|
+
indexed: false,
|
|
30709
|
+
internalType: "bool"
|
|
30710
|
+
}
|
|
30711
|
+
],
|
|
30712
|
+
anonymous: false
|
|
30713
|
+
},
|
|
30714
|
+
{
|
|
30715
|
+
type: "event",
|
|
30716
|
+
name: "PerPersonCapUpdated",
|
|
30717
|
+
inputs: [
|
|
30718
|
+
{
|
|
30719
|
+
name: "newCapUSD",
|
|
30720
|
+
type: "uint256",
|
|
30721
|
+
indexed: false,
|
|
30722
|
+
internalType: "uint256"
|
|
30723
|
+
}
|
|
30724
|
+
],
|
|
30725
|
+
anonymous: false
|
|
30726
|
+
},
|
|
30727
|
+
{
|
|
30728
|
+
type: "event",
|
|
30729
|
+
name: "TokensPurchased",
|
|
30730
|
+
inputs: [
|
|
30731
|
+
{
|
|
30732
|
+
name: "buyer",
|
|
30733
|
+
type: "address",
|
|
30734
|
+
indexed: true,
|
|
30735
|
+
internalType: "address"
|
|
30736
|
+
},
|
|
30737
|
+
{
|
|
30738
|
+
name: "paymentToken",
|
|
30739
|
+
type: "address",
|
|
30740
|
+
indexed: true,
|
|
30741
|
+
internalType: "address"
|
|
30742
|
+
},
|
|
30743
|
+
{
|
|
30744
|
+
name: "usdAmount",
|
|
30745
|
+
type: "uint256",
|
|
30746
|
+
indexed: false,
|
|
30747
|
+
internalType: "uint256"
|
|
30748
|
+
},
|
|
30749
|
+
{
|
|
30750
|
+
name: "gTokenAmount",
|
|
30751
|
+
type: "uint256",
|
|
30752
|
+
indexed: false,
|
|
30753
|
+
internalType: "uint256"
|
|
30754
|
+
},
|
|
30755
|
+
{
|
|
30756
|
+
name: "priceUSD",
|
|
30757
|
+
type: "uint256",
|
|
30758
|
+
indexed: false,
|
|
30759
|
+
internalType: "uint256"
|
|
30760
|
+
},
|
|
30761
|
+
{
|
|
30762
|
+
name: "milestone",
|
|
30763
|
+
type: "uint256",
|
|
30764
|
+
indexed: false,
|
|
30765
|
+
internalType: "uint256"
|
|
30766
|
+
}
|
|
30767
|
+
],
|
|
30768
|
+
anonymous: false
|
|
30769
|
+
},
|
|
30770
|
+
{
|
|
30771
|
+
type: "event",
|
|
30772
|
+
name: "TreasuryUpdated",
|
|
30773
|
+
inputs: [
|
|
30774
|
+
{
|
|
30775
|
+
name: "newTreasury",
|
|
30776
|
+
type: "address",
|
|
30777
|
+
indexed: true,
|
|
30778
|
+
internalType: "address"
|
|
30779
|
+
}
|
|
30780
|
+
],
|
|
30781
|
+
anonymous: false
|
|
30782
|
+
},
|
|
30783
|
+
{
|
|
30784
|
+
type: "event",
|
|
30785
|
+
name: "Unpaused",
|
|
30786
|
+
inputs: [
|
|
30787
|
+
{
|
|
30788
|
+
name: "account",
|
|
30789
|
+
type: "address",
|
|
30790
|
+
indexed: false,
|
|
30791
|
+
internalType: "address"
|
|
30792
|
+
}
|
|
30793
|
+
],
|
|
30794
|
+
anonymous: false
|
|
30795
|
+
},
|
|
30796
|
+
{
|
|
30797
|
+
type: "event",
|
|
30798
|
+
name: "WhitelistRequiredUpdated",
|
|
30799
|
+
inputs: [
|
|
30800
|
+
{
|
|
30801
|
+
name: "required",
|
|
30802
|
+
type: "bool",
|
|
30803
|
+
indexed: false,
|
|
30804
|
+
internalType: "bool"
|
|
30805
|
+
}
|
|
30806
|
+
],
|
|
30807
|
+
anonymous: false
|
|
30808
|
+
},
|
|
30809
|
+
{
|
|
30810
|
+
type: "event",
|
|
30811
|
+
name: "WhitelistUpdated",
|
|
30812
|
+
inputs: [
|
|
30813
|
+
{
|
|
30814
|
+
name: "user",
|
|
30815
|
+
type: "address",
|
|
30816
|
+
indexed: true,
|
|
30817
|
+
internalType: "address"
|
|
30818
|
+
},
|
|
30819
|
+
{
|
|
30820
|
+
name: "status",
|
|
30821
|
+
type: "bool",
|
|
30822
|
+
indexed: false,
|
|
30823
|
+
internalType: "bool"
|
|
30824
|
+
}
|
|
30825
|
+
],
|
|
30826
|
+
anonymous: false
|
|
30827
|
+
},
|
|
30828
|
+
{
|
|
30829
|
+
type: "error",
|
|
30830
|
+
name: "AlreadyAtMaxMilestone",
|
|
30831
|
+
inputs: []
|
|
30832
|
+
},
|
|
30833
|
+
{
|
|
30834
|
+
type: "error",
|
|
30835
|
+
name: "EnforcedPause",
|
|
30836
|
+
inputs: []
|
|
30837
|
+
},
|
|
30838
|
+
{
|
|
30839
|
+
type: "error",
|
|
30840
|
+
name: "ExceedsPerPersonCap",
|
|
30841
|
+
inputs: [
|
|
30842
|
+
{
|
|
30843
|
+
name: "requested",
|
|
30844
|
+
type: "uint256",
|
|
30845
|
+
internalType: "uint256"
|
|
30846
|
+
},
|
|
30847
|
+
{
|
|
30848
|
+
name: "remaining",
|
|
30849
|
+
type: "uint256",
|
|
30850
|
+
internalType: "uint256"
|
|
30851
|
+
}
|
|
30852
|
+
]
|
|
30853
|
+
},
|
|
30854
|
+
{
|
|
30855
|
+
type: "error",
|
|
30856
|
+
name: "ExpectedPause",
|
|
30857
|
+
inputs: []
|
|
30858
|
+
},
|
|
30859
|
+
{
|
|
30860
|
+
type: "error",
|
|
30861
|
+
name: "InsufficientInventory",
|
|
30862
|
+
inputs: [
|
|
30863
|
+
{
|
|
30864
|
+
name: "requested",
|
|
30865
|
+
type: "uint256",
|
|
30866
|
+
internalType: "uint256"
|
|
30867
|
+
},
|
|
30868
|
+
{
|
|
30869
|
+
name: "available",
|
|
30870
|
+
type: "uint256",
|
|
30871
|
+
internalType: "uint256"
|
|
30872
|
+
}
|
|
30873
|
+
]
|
|
30874
|
+
},
|
|
30875
|
+
{
|
|
30876
|
+
type: "error",
|
|
30877
|
+
name: "InvalidMilestoneCap",
|
|
30878
|
+
inputs: [
|
|
30879
|
+
{
|
|
30880
|
+
name: "newCap",
|
|
30881
|
+
type: "uint256",
|
|
30882
|
+
internalType: "uint256"
|
|
30883
|
+
},
|
|
30884
|
+
{
|
|
30885
|
+
name: "lastCap",
|
|
30886
|
+
type: "uint256",
|
|
30887
|
+
internalType: "uint256"
|
|
30888
|
+
}
|
|
30889
|
+
]
|
|
30890
|
+
},
|
|
30891
|
+
{
|
|
30892
|
+
type: "error",
|
|
30893
|
+
name: "InvalidMilestonePrice",
|
|
30894
|
+
inputs: [
|
|
30895
|
+
{
|
|
30896
|
+
name: "newPrice",
|
|
30897
|
+
type: "uint256",
|
|
30898
|
+
internalType: "uint256"
|
|
30899
|
+
},
|
|
30900
|
+
{
|
|
30901
|
+
name: "lastPrice",
|
|
30902
|
+
type: "uint256",
|
|
30903
|
+
internalType: "uint256"
|
|
30904
|
+
}
|
|
30905
|
+
]
|
|
30906
|
+
},
|
|
30907
|
+
{
|
|
30908
|
+
type: "error",
|
|
30909
|
+
name: "InvalidTokenDecimals",
|
|
30910
|
+
inputs: [
|
|
30911
|
+
{
|
|
30912
|
+
name: "token",
|
|
30913
|
+
type: "address",
|
|
30914
|
+
internalType: "address"
|
|
30915
|
+
},
|
|
30916
|
+
{
|
|
30917
|
+
name: "decimals",
|
|
30918
|
+
type: "uint8",
|
|
30919
|
+
internalType: "uint8"
|
|
30920
|
+
}
|
|
30921
|
+
]
|
|
30922
|
+
},
|
|
30923
|
+
{
|
|
30924
|
+
type: "error",
|
|
30925
|
+
name: "MilestoneIndexOOB",
|
|
30926
|
+
inputs: [
|
|
30927
|
+
{
|
|
30928
|
+
name: "index",
|
|
30929
|
+
type: "uint256",
|
|
30930
|
+
internalType: "uint256"
|
|
30931
|
+
},
|
|
30932
|
+
{
|
|
30933
|
+
name: "length",
|
|
30934
|
+
type: "uint256",
|
|
30935
|
+
internalType: "uint256"
|
|
30936
|
+
}
|
|
30937
|
+
]
|
|
30938
|
+
},
|
|
30939
|
+
{
|
|
30940
|
+
type: "error",
|
|
30941
|
+
name: "MilestoneNotReached",
|
|
30942
|
+
inputs: [
|
|
30943
|
+
{
|
|
30944
|
+
name: "currentRevenue",
|
|
30945
|
+
type: "uint256",
|
|
30946
|
+
internalType: "uint256"
|
|
30947
|
+
},
|
|
30948
|
+
{
|
|
30949
|
+
name: "required",
|
|
30950
|
+
type: "uint256",
|
|
30951
|
+
internalType: "uint256"
|
|
30952
|
+
}
|
|
30953
|
+
]
|
|
30954
|
+
},
|
|
30955
|
+
{
|
|
30956
|
+
type: "error",
|
|
30957
|
+
name: "NotWhitelisted",
|
|
30958
|
+
inputs: [
|
|
30959
|
+
{
|
|
30960
|
+
name: "user",
|
|
30961
|
+
type: "address",
|
|
30962
|
+
internalType: "address"
|
|
30963
|
+
}
|
|
30964
|
+
]
|
|
30965
|
+
},
|
|
30966
|
+
{
|
|
30967
|
+
type: "error",
|
|
30968
|
+
name: "OwnableInvalidOwner",
|
|
30969
|
+
inputs: [
|
|
30970
|
+
{
|
|
30971
|
+
name: "owner",
|
|
30972
|
+
type: "address",
|
|
30973
|
+
internalType: "address"
|
|
30974
|
+
}
|
|
30975
|
+
]
|
|
30976
|
+
},
|
|
30977
|
+
{
|
|
30978
|
+
type: "error",
|
|
30979
|
+
name: "OwnableUnauthorizedAccount",
|
|
30980
|
+
inputs: [
|
|
30981
|
+
{
|
|
30982
|
+
name: "account",
|
|
30983
|
+
type: "address",
|
|
30984
|
+
internalType: "address"
|
|
30985
|
+
}
|
|
30986
|
+
]
|
|
30987
|
+
},
|
|
30988
|
+
{
|
|
30989
|
+
type: "error",
|
|
30990
|
+
name: "ReentrancyGuardReentrantCall",
|
|
30991
|
+
inputs: []
|
|
30992
|
+
},
|
|
30993
|
+
{
|
|
30994
|
+
type: "error",
|
|
30995
|
+
name: "SafeERC20FailedOperation",
|
|
30996
|
+
inputs: [
|
|
30997
|
+
{
|
|
30998
|
+
name: "token",
|
|
30999
|
+
type: "address",
|
|
31000
|
+
internalType: "address"
|
|
31001
|
+
}
|
|
31002
|
+
]
|
|
31003
|
+
},
|
|
31004
|
+
{
|
|
31005
|
+
type: "error",
|
|
31006
|
+
name: "SlippageExceeded",
|
|
31007
|
+
inputs: [
|
|
31008
|
+
{
|
|
31009
|
+
name: "got",
|
|
31010
|
+
type: "uint256",
|
|
31011
|
+
internalType: "uint256"
|
|
31012
|
+
},
|
|
31013
|
+
{
|
|
31014
|
+
name: "minExpected",
|
|
31015
|
+
type: "uint256",
|
|
31016
|
+
internalType: "uint256"
|
|
31017
|
+
}
|
|
31018
|
+
]
|
|
31019
|
+
},
|
|
31020
|
+
{
|
|
31021
|
+
type: "error",
|
|
31022
|
+
name: "TokenNotAccepted",
|
|
31023
|
+
inputs: [
|
|
31024
|
+
{
|
|
31025
|
+
name: "token",
|
|
31026
|
+
type: "address",
|
|
31027
|
+
internalType: "address"
|
|
31028
|
+
}
|
|
31029
|
+
]
|
|
31030
|
+
},
|
|
31031
|
+
{
|
|
31032
|
+
type: "error",
|
|
31033
|
+
name: "ZeroAddress",
|
|
31034
|
+
inputs: []
|
|
31035
|
+
},
|
|
31036
|
+
{
|
|
31037
|
+
type: "error",
|
|
31038
|
+
name: "ZeroAmount",
|
|
31039
|
+
inputs: []
|
|
31040
|
+
},
|
|
31041
|
+
{
|
|
31042
|
+
type: "error",
|
|
31043
|
+
name: "ZeroTokensOut",
|
|
31044
|
+
inputs: []
|
|
31045
|
+
}
|
|
31046
|
+
];
|
|
31047
|
+
|
|
31048
|
+
// ../core/src/abis/APNTsSaleContract.json
|
|
31049
|
+
var APNTsSaleContract_default = [
|
|
31050
|
+
{
|
|
31051
|
+
type: "constructor",
|
|
31052
|
+
inputs: [
|
|
31053
|
+
{
|
|
31054
|
+
name: "_aPNTsAddress",
|
|
31055
|
+
type: "address",
|
|
31056
|
+
internalType: "address"
|
|
31057
|
+
},
|
|
31058
|
+
{
|
|
31059
|
+
name: "_treasury",
|
|
31060
|
+
type: "address",
|
|
31061
|
+
internalType: "address"
|
|
31062
|
+
},
|
|
31063
|
+
{
|
|
31064
|
+
name: "_initialPriceUSD",
|
|
31065
|
+
type: "uint256",
|
|
31066
|
+
internalType: "uint256"
|
|
31067
|
+
},
|
|
31068
|
+
{
|
|
31069
|
+
name: "_initialOwner",
|
|
31070
|
+
type: "address",
|
|
31071
|
+
internalType: "address"
|
|
31072
|
+
}
|
|
31073
|
+
],
|
|
31074
|
+
stateMutability: "nonpayable"
|
|
31075
|
+
},
|
|
31076
|
+
{
|
|
31077
|
+
type: "function",
|
|
31078
|
+
name: "aPNTs",
|
|
31079
|
+
inputs: [],
|
|
31080
|
+
outputs: [
|
|
31081
|
+
{
|
|
31082
|
+
name: "",
|
|
31083
|
+
type: "address",
|
|
31084
|
+
internalType: "contract ERC20"
|
|
31085
|
+
}
|
|
31086
|
+
],
|
|
31087
|
+
stateMutability: "view"
|
|
31088
|
+
},
|
|
31089
|
+
{
|
|
31090
|
+
type: "function",
|
|
31091
|
+
name: "acceptedPaymentTokens",
|
|
31092
|
+
inputs: [
|
|
31093
|
+
{
|
|
31094
|
+
name: "",
|
|
31095
|
+
type: "address",
|
|
31096
|
+
internalType: "address"
|
|
31097
|
+
}
|
|
31098
|
+
],
|
|
31099
|
+
outputs: [
|
|
31100
|
+
{
|
|
31101
|
+
name: "",
|
|
31102
|
+
type: "bool",
|
|
31103
|
+
internalType: "bool"
|
|
31104
|
+
}
|
|
31105
|
+
],
|
|
31106
|
+
stateMutability: "view"
|
|
31107
|
+
},
|
|
31108
|
+
{
|
|
31109
|
+
type: "function",
|
|
31110
|
+
name: "availableInventory",
|
|
31111
|
+
inputs: [],
|
|
31112
|
+
outputs: [
|
|
31113
|
+
{
|
|
31114
|
+
name: "",
|
|
31115
|
+
type: "uint256",
|
|
31116
|
+
internalType: "uint256"
|
|
31117
|
+
}
|
|
31118
|
+
],
|
|
31119
|
+
stateMutability: "view"
|
|
31120
|
+
},
|
|
31121
|
+
{
|
|
31122
|
+
type: "function",
|
|
31123
|
+
name: "buyAPNTs",
|
|
31124
|
+
inputs: [
|
|
31125
|
+
{
|
|
31126
|
+
name: "usdAmount",
|
|
31127
|
+
type: "uint256",
|
|
31128
|
+
internalType: "uint256"
|
|
31129
|
+
},
|
|
31130
|
+
{
|
|
31131
|
+
name: "paymentToken",
|
|
31132
|
+
type: "address",
|
|
31133
|
+
internalType: "address"
|
|
31134
|
+
}
|
|
31135
|
+
],
|
|
31136
|
+
outputs: [],
|
|
31137
|
+
stateMutability: "nonpayable"
|
|
31138
|
+
},
|
|
31139
|
+
{
|
|
31140
|
+
type: "function",
|
|
31141
|
+
name: "buyExactAPNTs",
|
|
31142
|
+
inputs: [
|
|
31143
|
+
{
|
|
31144
|
+
name: "aPNTsAmount",
|
|
31145
|
+
type: "uint256",
|
|
31146
|
+
internalType: "uint256"
|
|
31147
|
+
},
|
|
31148
|
+
{
|
|
31149
|
+
name: "paymentToken",
|
|
31150
|
+
type: "address",
|
|
31151
|
+
internalType: "address"
|
|
31152
|
+
}
|
|
31153
|
+
],
|
|
31154
|
+
outputs: [],
|
|
31155
|
+
stateMutability: "nonpayable"
|
|
31156
|
+
},
|
|
31157
|
+
{
|
|
31158
|
+
type: "function",
|
|
31159
|
+
name: "getAPNTsForUSD",
|
|
31160
|
+
inputs: [
|
|
31161
|
+
{
|
|
31162
|
+
name: "usdAmount",
|
|
31163
|
+
type: "uint256",
|
|
31164
|
+
internalType: "uint256"
|
|
31165
|
+
}
|
|
31166
|
+
],
|
|
31167
|
+
outputs: [
|
|
31168
|
+
{
|
|
31169
|
+
name: "aPNTsAmount",
|
|
31170
|
+
type: "uint256",
|
|
31171
|
+
internalType: "uint256"
|
|
31172
|
+
}
|
|
31173
|
+
],
|
|
31174
|
+
stateMutability: "view"
|
|
31175
|
+
},
|
|
31176
|
+
{
|
|
31177
|
+
type: "function",
|
|
31178
|
+
name: "getUSDForAPNTs",
|
|
31179
|
+
inputs: [
|
|
31180
|
+
{
|
|
31181
|
+
name: "aPNTsAmount",
|
|
31182
|
+
type: "uint256",
|
|
31183
|
+
internalType: "uint256"
|
|
31184
|
+
}
|
|
31185
|
+
],
|
|
31186
|
+
outputs: [
|
|
31187
|
+
{
|
|
31188
|
+
name: "usdAmount",
|
|
31189
|
+
type: "uint256",
|
|
31190
|
+
internalType: "uint256"
|
|
31191
|
+
}
|
|
31192
|
+
],
|
|
31193
|
+
stateMutability: "view"
|
|
31194
|
+
},
|
|
31195
|
+
{
|
|
31196
|
+
type: "function",
|
|
31197
|
+
name: "maxPurchaseAmount",
|
|
31198
|
+
inputs: [],
|
|
31199
|
+
outputs: [
|
|
31200
|
+
{
|
|
31201
|
+
name: "",
|
|
31202
|
+
type: "uint256",
|
|
31203
|
+
internalType: "uint256"
|
|
31204
|
+
}
|
|
31205
|
+
],
|
|
31206
|
+
stateMutability: "view"
|
|
31207
|
+
},
|
|
31208
|
+
{
|
|
31209
|
+
type: "function",
|
|
31210
|
+
name: "minPurchaseAmount",
|
|
31211
|
+
inputs: [],
|
|
31212
|
+
outputs: [
|
|
31213
|
+
{
|
|
31214
|
+
name: "",
|
|
31215
|
+
type: "uint256",
|
|
31216
|
+
internalType: "uint256"
|
|
31217
|
+
}
|
|
31218
|
+
],
|
|
31219
|
+
stateMutability: "view"
|
|
31220
|
+
},
|
|
31221
|
+
{
|
|
31222
|
+
type: "function",
|
|
31223
|
+
name: "owner",
|
|
31224
|
+
inputs: [],
|
|
31225
|
+
outputs: [
|
|
31226
|
+
{
|
|
31227
|
+
name: "",
|
|
31228
|
+
type: "address",
|
|
31229
|
+
internalType: "address"
|
|
31230
|
+
}
|
|
31231
|
+
],
|
|
31232
|
+
stateMutability: "view"
|
|
31233
|
+
},
|
|
31234
|
+
{
|
|
31235
|
+
type: "function",
|
|
31236
|
+
name: "priceUSD",
|
|
31237
|
+
inputs: [],
|
|
31238
|
+
outputs: [
|
|
31239
|
+
{
|
|
31240
|
+
name: "",
|
|
31241
|
+
type: "uint256",
|
|
31242
|
+
internalType: "uint256"
|
|
31243
|
+
}
|
|
31244
|
+
],
|
|
31245
|
+
stateMutability: "view"
|
|
31246
|
+
},
|
|
31247
|
+
{
|
|
31248
|
+
type: "function",
|
|
31249
|
+
name: "recoverToken",
|
|
31250
|
+
inputs: [
|
|
31251
|
+
{
|
|
31252
|
+
name: "token",
|
|
31253
|
+
type: "address",
|
|
31254
|
+
internalType: "address"
|
|
31255
|
+
},
|
|
31256
|
+
{
|
|
31257
|
+
name: "amount",
|
|
31258
|
+
type: "uint256",
|
|
31259
|
+
internalType: "uint256"
|
|
31260
|
+
}
|
|
31261
|
+
],
|
|
31262
|
+
outputs: [],
|
|
31263
|
+
stateMutability: "nonpayable"
|
|
31264
|
+
},
|
|
31265
|
+
{
|
|
31266
|
+
type: "function",
|
|
31267
|
+
name: "renounceOwnership",
|
|
31268
|
+
inputs: [],
|
|
31269
|
+
outputs: [],
|
|
31270
|
+
stateMutability: "nonpayable"
|
|
31271
|
+
},
|
|
31272
|
+
{
|
|
31273
|
+
type: "function",
|
|
31274
|
+
name: "setPaymentToken",
|
|
31275
|
+
inputs: [
|
|
31276
|
+
{
|
|
31277
|
+
name: "token",
|
|
31278
|
+
type: "address",
|
|
31279
|
+
internalType: "address"
|
|
31280
|
+
},
|
|
31281
|
+
{
|
|
31282
|
+
name: "accepted",
|
|
31283
|
+
type: "bool",
|
|
31284
|
+
internalType: "bool"
|
|
31285
|
+
}
|
|
31286
|
+
],
|
|
31287
|
+
outputs: [],
|
|
31288
|
+
stateMutability: "nonpayable"
|
|
31289
|
+
},
|
|
31290
|
+
{
|
|
31291
|
+
type: "function",
|
|
31292
|
+
name: "setPrice",
|
|
31293
|
+
inputs: [
|
|
31294
|
+
{
|
|
31295
|
+
name: "newPriceUSD",
|
|
31296
|
+
type: "uint256",
|
|
31297
|
+
internalType: "uint256"
|
|
31298
|
+
}
|
|
31299
|
+
],
|
|
31300
|
+
outputs: [],
|
|
31301
|
+
stateMutability: "nonpayable"
|
|
31302
|
+
},
|
|
31303
|
+
{
|
|
31304
|
+
type: "function",
|
|
31305
|
+
name: "setPurchaseLimits",
|
|
31306
|
+
inputs: [
|
|
31307
|
+
{
|
|
31308
|
+
name: "minAmount",
|
|
31309
|
+
type: "uint256",
|
|
31310
|
+
internalType: "uint256"
|
|
31311
|
+
},
|
|
31312
|
+
{
|
|
31313
|
+
name: "maxAmount",
|
|
31314
|
+
type: "uint256",
|
|
31315
|
+
internalType: "uint256"
|
|
31316
|
+
}
|
|
31317
|
+
],
|
|
31318
|
+
outputs: [],
|
|
31319
|
+
stateMutability: "nonpayable"
|
|
31320
|
+
},
|
|
31321
|
+
{
|
|
31322
|
+
type: "function",
|
|
31323
|
+
name: "setTreasury",
|
|
31324
|
+
inputs: [
|
|
31325
|
+
{
|
|
31326
|
+
name: "newTreasury",
|
|
31327
|
+
type: "address",
|
|
31328
|
+
internalType: "address"
|
|
31329
|
+
}
|
|
31330
|
+
],
|
|
31331
|
+
outputs: [],
|
|
31332
|
+
stateMutability: "nonpayable"
|
|
31333
|
+
},
|
|
31334
|
+
{
|
|
31335
|
+
type: "function",
|
|
31336
|
+
name: "totalSold",
|
|
31337
|
+
inputs: [],
|
|
31338
|
+
outputs: [
|
|
31339
|
+
{
|
|
31340
|
+
name: "",
|
|
31341
|
+
type: "uint256",
|
|
31342
|
+
internalType: "uint256"
|
|
31343
|
+
}
|
|
31344
|
+
],
|
|
31345
|
+
stateMutability: "view"
|
|
31346
|
+
},
|
|
31347
|
+
{
|
|
31348
|
+
type: "function",
|
|
31349
|
+
name: "transferOwnership",
|
|
31350
|
+
inputs: [
|
|
31351
|
+
{
|
|
31352
|
+
name: "newOwner",
|
|
31353
|
+
type: "address",
|
|
31354
|
+
internalType: "address"
|
|
31355
|
+
}
|
|
31356
|
+
],
|
|
31357
|
+
outputs: [],
|
|
31358
|
+
stateMutability: "nonpayable"
|
|
31359
|
+
},
|
|
31360
|
+
{
|
|
31361
|
+
type: "function",
|
|
31362
|
+
name: "treasury",
|
|
31363
|
+
inputs: [],
|
|
31364
|
+
outputs: [
|
|
31365
|
+
{
|
|
31366
|
+
name: "",
|
|
31367
|
+
type: "address",
|
|
31368
|
+
internalType: "address"
|
|
31369
|
+
}
|
|
31370
|
+
],
|
|
31371
|
+
stateMutability: "view"
|
|
31372
|
+
},
|
|
31373
|
+
{
|
|
31374
|
+
type: "function",
|
|
31375
|
+
name: "withdrawEther",
|
|
31376
|
+
inputs: [],
|
|
31377
|
+
outputs: [],
|
|
31378
|
+
stateMutability: "nonpayable"
|
|
31379
|
+
},
|
|
31380
|
+
{
|
|
31381
|
+
type: "function",
|
|
31382
|
+
name: "withdrawUnsoldAPNTs",
|
|
31383
|
+
inputs: [],
|
|
31384
|
+
outputs: [],
|
|
31385
|
+
stateMutability: "nonpayable"
|
|
31386
|
+
},
|
|
31387
|
+
{
|
|
31388
|
+
type: "event",
|
|
31389
|
+
name: "APNTsPurchased",
|
|
31390
|
+
inputs: [
|
|
31391
|
+
{
|
|
31392
|
+
name: "buyer",
|
|
31393
|
+
type: "address",
|
|
31394
|
+
indexed: true,
|
|
31395
|
+
internalType: "address"
|
|
31396
|
+
},
|
|
31397
|
+
{
|
|
31398
|
+
name: "paymentToken",
|
|
31399
|
+
type: "address",
|
|
31400
|
+
indexed: true,
|
|
31401
|
+
internalType: "address"
|
|
31402
|
+
},
|
|
31403
|
+
{
|
|
31404
|
+
name: "aPNTsAmount",
|
|
31405
|
+
type: "uint256",
|
|
31406
|
+
indexed: false,
|
|
31407
|
+
internalType: "uint256"
|
|
31408
|
+
},
|
|
31409
|
+
{
|
|
31410
|
+
name: "usdAmount",
|
|
31411
|
+
type: "uint256",
|
|
31412
|
+
indexed: false,
|
|
31413
|
+
internalType: "uint256"
|
|
31414
|
+
},
|
|
31415
|
+
{
|
|
31416
|
+
name: "priceUsed",
|
|
31417
|
+
type: "uint256",
|
|
31418
|
+
indexed: false,
|
|
31419
|
+
internalType: "uint256"
|
|
31420
|
+
}
|
|
31421
|
+
],
|
|
31422
|
+
anonymous: false
|
|
31423
|
+
},
|
|
31424
|
+
{
|
|
31425
|
+
type: "event",
|
|
31426
|
+
name: "EmergencyWithdraw",
|
|
31427
|
+
inputs: [
|
|
31428
|
+
{
|
|
31429
|
+
name: "token",
|
|
31430
|
+
type: "address",
|
|
31431
|
+
indexed: true,
|
|
31432
|
+
internalType: "address"
|
|
31433
|
+
},
|
|
31434
|
+
{
|
|
31435
|
+
name: "amount",
|
|
31436
|
+
type: "uint256",
|
|
31437
|
+
indexed: false,
|
|
31438
|
+
internalType: "uint256"
|
|
31439
|
+
},
|
|
31440
|
+
{
|
|
31441
|
+
name: "to",
|
|
31442
|
+
type: "address",
|
|
31443
|
+
indexed: true,
|
|
31444
|
+
internalType: "address"
|
|
31445
|
+
}
|
|
31446
|
+
],
|
|
31447
|
+
anonymous: false
|
|
31448
|
+
},
|
|
31449
|
+
{
|
|
31450
|
+
type: "event",
|
|
31451
|
+
name: "OwnershipTransferred",
|
|
31452
|
+
inputs: [
|
|
31453
|
+
{
|
|
31454
|
+
name: "previousOwner",
|
|
31455
|
+
type: "address",
|
|
31456
|
+
indexed: true,
|
|
31457
|
+
internalType: "address"
|
|
31458
|
+
},
|
|
31459
|
+
{
|
|
31460
|
+
name: "newOwner",
|
|
31461
|
+
type: "address",
|
|
31462
|
+
indexed: true,
|
|
31463
|
+
internalType: "address"
|
|
31464
|
+
}
|
|
31465
|
+
],
|
|
31466
|
+
anonymous: false
|
|
31467
|
+
},
|
|
31468
|
+
{
|
|
31469
|
+
type: "event",
|
|
31470
|
+
name: "PaymentTokenSet",
|
|
31471
|
+
inputs: [
|
|
31472
|
+
{
|
|
31473
|
+
name: "token",
|
|
31474
|
+
type: "address",
|
|
31475
|
+
indexed: true,
|
|
31476
|
+
internalType: "address"
|
|
31477
|
+
},
|
|
31478
|
+
{
|
|
31479
|
+
name: "accepted",
|
|
31480
|
+
type: "bool",
|
|
31481
|
+
indexed: false,
|
|
31482
|
+
internalType: "bool"
|
|
31483
|
+
}
|
|
31484
|
+
],
|
|
31485
|
+
anonymous: false
|
|
31486
|
+
},
|
|
31487
|
+
{
|
|
31488
|
+
type: "event",
|
|
31489
|
+
name: "PriceUpdated",
|
|
31490
|
+
inputs: [
|
|
31491
|
+
{
|
|
31492
|
+
name: "oldPrice",
|
|
31493
|
+
type: "uint256",
|
|
31494
|
+
indexed: false,
|
|
31495
|
+
internalType: "uint256"
|
|
31496
|
+
},
|
|
31497
|
+
{
|
|
31498
|
+
name: "newPrice",
|
|
31499
|
+
type: "uint256",
|
|
31500
|
+
indexed: false,
|
|
31501
|
+
internalType: "uint256"
|
|
31502
|
+
}
|
|
31503
|
+
],
|
|
31504
|
+
anonymous: false
|
|
31505
|
+
},
|
|
31506
|
+
{
|
|
31507
|
+
type: "event",
|
|
31508
|
+
name: "PurchaseLimitsUpdated",
|
|
31509
|
+
inputs: [
|
|
31510
|
+
{
|
|
31511
|
+
name: "minAmount",
|
|
31512
|
+
type: "uint256",
|
|
31513
|
+
indexed: false,
|
|
31514
|
+
internalType: "uint256"
|
|
31515
|
+
},
|
|
31516
|
+
{
|
|
31517
|
+
name: "maxAmount",
|
|
31518
|
+
type: "uint256",
|
|
31519
|
+
indexed: false,
|
|
31520
|
+
internalType: "uint256"
|
|
31521
|
+
}
|
|
31522
|
+
],
|
|
31523
|
+
anonymous: false
|
|
31524
|
+
},
|
|
31525
|
+
{
|
|
31526
|
+
type: "event",
|
|
31527
|
+
name: "TreasuryUpdated",
|
|
31528
|
+
inputs: [
|
|
31529
|
+
{
|
|
31530
|
+
name: "oldTreasury",
|
|
31531
|
+
type: "address",
|
|
31532
|
+
indexed: true,
|
|
31533
|
+
internalType: "address"
|
|
31534
|
+
},
|
|
31535
|
+
{
|
|
31536
|
+
name: "newTreasury",
|
|
31537
|
+
type: "address",
|
|
31538
|
+
indexed: true,
|
|
31539
|
+
internalType: "address"
|
|
31540
|
+
}
|
|
31541
|
+
],
|
|
31542
|
+
anonymous: false
|
|
31543
|
+
},
|
|
31544
|
+
{
|
|
31545
|
+
type: "error",
|
|
31546
|
+
name: "BelowMinPurchase",
|
|
31547
|
+
inputs: [
|
|
31548
|
+
{
|
|
31549
|
+
name: "amount",
|
|
31550
|
+
type: "uint256",
|
|
31551
|
+
internalType: "uint256"
|
|
31552
|
+
},
|
|
31553
|
+
{
|
|
31554
|
+
name: "minimum",
|
|
31555
|
+
type: "uint256",
|
|
31556
|
+
internalType: "uint256"
|
|
31557
|
+
}
|
|
31558
|
+
]
|
|
31559
|
+
},
|
|
31560
|
+
{
|
|
31561
|
+
type: "error",
|
|
31562
|
+
name: "ExceedsMaxPurchase",
|
|
31563
|
+
inputs: [
|
|
31564
|
+
{
|
|
31565
|
+
name: "amount",
|
|
31566
|
+
type: "uint256",
|
|
31567
|
+
internalType: "uint256"
|
|
31568
|
+
},
|
|
31569
|
+
{
|
|
31570
|
+
name: "maximum",
|
|
31571
|
+
type: "uint256",
|
|
31572
|
+
internalType: "uint256"
|
|
31573
|
+
}
|
|
31574
|
+
]
|
|
31575
|
+
},
|
|
31576
|
+
{
|
|
31577
|
+
type: "error",
|
|
31578
|
+
name: "InsufficientInventory",
|
|
31579
|
+
inputs: [
|
|
31580
|
+
{
|
|
31581
|
+
name: "requested",
|
|
31582
|
+
type: "uint256",
|
|
31583
|
+
internalType: "uint256"
|
|
31584
|
+
},
|
|
31585
|
+
{
|
|
31586
|
+
name: "available",
|
|
31587
|
+
type: "uint256",
|
|
31588
|
+
internalType: "uint256"
|
|
31589
|
+
}
|
|
31590
|
+
]
|
|
31591
|
+
},
|
|
31592
|
+
{
|
|
31593
|
+
type: "error",
|
|
31594
|
+
name: "InvalidPaymentTokenDecimals",
|
|
31595
|
+
inputs: [
|
|
31596
|
+
{
|
|
31597
|
+
name: "token",
|
|
31598
|
+
type: "address",
|
|
31599
|
+
internalType: "address"
|
|
31600
|
+
},
|
|
31601
|
+
{
|
|
31602
|
+
name: "decimals",
|
|
31603
|
+
type: "uint8",
|
|
31604
|
+
internalType: "uint8"
|
|
31605
|
+
}
|
|
31606
|
+
]
|
|
31607
|
+
},
|
|
31608
|
+
{
|
|
31609
|
+
type: "error",
|
|
31610
|
+
name: "InvalidPrice",
|
|
31611
|
+
inputs: []
|
|
31612
|
+
},
|
|
31613
|
+
{
|
|
31614
|
+
type: "error",
|
|
31615
|
+
name: "OwnableInvalidOwner",
|
|
31616
|
+
inputs: [
|
|
31617
|
+
{
|
|
31618
|
+
name: "owner",
|
|
31619
|
+
type: "address",
|
|
31620
|
+
internalType: "address"
|
|
31621
|
+
}
|
|
31622
|
+
]
|
|
31623
|
+
},
|
|
31624
|
+
{
|
|
31625
|
+
type: "error",
|
|
31626
|
+
name: "OwnableUnauthorizedAccount",
|
|
31627
|
+
inputs: [
|
|
31628
|
+
{
|
|
31629
|
+
name: "account",
|
|
31630
|
+
type: "address",
|
|
31631
|
+
internalType: "address"
|
|
31632
|
+
}
|
|
31633
|
+
]
|
|
31634
|
+
},
|
|
31635
|
+
{
|
|
31636
|
+
type: "error",
|
|
31637
|
+
name: "PaymentTokenNotAccepted",
|
|
31638
|
+
inputs: [
|
|
31639
|
+
{
|
|
31640
|
+
name: "token",
|
|
31641
|
+
type: "address",
|
|
31642
|
+
internalType: "address"
|
|
31643
|
+
}
|
|
31644
|
+
]
|
|
31645
|
+
},
|
|
31646
|
+
{
|
|
31647
|
+
type: "error",
|
|
31648
|
+
name: "ReentrancyGuardReentrantCall",
|
|
31649
|
+
inputs: []
|
|
31650
|
+
},
|
|
31651
|
+
{
|
|
31652
|
+
type: "error",
|
|
31653
|
+
name: "SafeERC20FailedOperation",
|
|
31654
|
+
inputs: [
|
|
31655
|
+
{
|
|
31656
|
+
name: "token",
|
|
31657
|
+
type: "address",
|
|
31658
|
+
internalType: "address"
|
|
31659
|
+
}
|
|
31660
|
+
]
|
|
31661
|
+
},
|
|
31662
|
+
{
|
|
31663
|
+
type: "error",
|
|
31664
|
+
name: "ZeroAddress",
|
|
31665
|
+
inputs: []
|
|
31666
|
+
},
|
|
31667
|
+
{
|
|
31668
|
+
type: "error",
|
|
31669
|
+
name: "ZeroAmount",
|
|
31670
|
+
inputs: []
|
|
31671
|
+
}
|
|
31672
|
+
];
|
|
31673
|
+
|
|
31674
|
+
// ../core/src/abis/BuyHelper.json
|
|
31675
|
+
var BuyHelper_default = [
|
|
31676
|
+
{
|
|
31677
|
+
type: "constructor",
|
|
31678
|
+
inputs: [
|
|
31679
|
+
{
|
|
31680
|
+
name: "usdc",
|
|
31681
|
+
type: "address",
|
|
31682
|
+
internalType: "address"
|
|
31683
|
+
},
|
|
31684
|
+
{
|
|
31685
|
+
name: "gtoken",
|
|
31686
|
+
type: "address",
|
|
31687
|
+
internalType: "address"
|
|
31688
|
+
},
|
|
31689
|
+
{
|
|
31690
|
+
name: "apnts",
|
|
31691
|
+
type: "address",
|
|
31692
|
+
internalType: "address"
|
|
31693
|
+
},
|
|
31694
|
+
{
|
|
31695
|
+
name: "saleGT",
|
|
31696
|
+
type: "address",
|
|
31697
|
+
internalType: "address"
|
|
31698
|
+
},
|
|
31699
|
+
{
|
|
31700
|
+
name: "saleAP",
|
|
31701
|
+
type: "address",
|
|
31702
|
+
internalType: "address"
|
|
31703
|
+
}
|
|
31704
|
+
],
|
|
31705
|
+
stateMutability: "nonpayable"
|
|
31706
|
+
},
|
|
31707
|
+
{
|
|
31708
|
+
type: "function",
|
|
31709
|
+
name: "APNTS",
|
|
31710
|
+
inputs: [],
|
|
31711
|
+
outputs: [
|
|
31712
|
+
{
|
|
31713
|
+
name: "",
|
|
31714
|
+
type: "address",
|
|
31715
|
+
internalType: "address"
|
|
31716
|
+
}
|
|
31717
|
+
],
|
|
31718
|
+
stateMutability: "view"
|
|
31719
|
+
},
|
|
31720
|
+
{
|
|
31721
|
+
type: "function",
|
|
31722
|
+
name: "BUY_INTENT_TYPEHASH",
|
|
31723
|
+
inputs: [],
|
|
31724
|
+
outputs: [
|
|
31725
|
+
{
|
|
31726
|
+
name: "",
|
|
31727
|
+
type: "bytes32",
|
|
31728
|
+
internalType: "bytes32"
|
|
31729
|
+
}
|
|
31730
|
+
],
|
|
31731
|
+
stateMutability: "view"
|
|
31732
|
+
},
|
|
31733
|
+
{
|
|
31734
|
+
type: "function",
|
|
31735
|
+
name: "DOMAIN_SEPARATOR",
|
|
31736
|
+
inputs: [],
|
|
31737
|
+
outputs: [
|
|
31738
|
+
{
|
|
31739
|
+
name: "",
|
|
31740
|
+
type: "bytes32",
|
|
31741
|
+
internalType: "bytes32"
|
|
31742
|
+
}
|
|
31743
|
+
],
|
|
31744
|
+
stateMutability: "view"
|
|
31745
|
+
},
|
|
31746
|
+
{
|
|
31747
|
+
type: "function",
|
|
31748
|
+
name: "DOMAIN_TYPEHASH",
|
|
31749
|
+
inputs: [],
|
|
31750
|
+
outputs: [
|
|
31751
|
+
{
|
|
31752
|
+
name: "",
|
|
31753
|
+
type: "bytes32",
|
|
31754
|
+
internalType: "bytes32"
|
|
31755
|
+
}
|
|
31756
|
+
],
|
|
31757
|
+
stateMutability: "view"
|
|
31758
|
+
},
|
|
31759
|
+
{
|
|
31760
|
+
type: "function",
|
|
31761
|
+
name: "GTOKEN",
|
|
31762
|
+
inputs: [],
|
|
31763
|
+
outputs: [
|
|
31764
|
+
{
|
|
31765
|
+
name: "",
|
|
31766
|
+
type: "address",
|
|
31767
|
+
internalType: "address"
|
|
31768
|
+
}
|
|
31769
|
+
],
|
|
31770
|
+
stateMutability: "view"
|
|
31771
|
+
},
|
|
31772
|
+
{
|
|
31773
|
+
type: "function",
|
|
31774
|
+
name: "NAME",
|
|
31775
|
+
inputs: [],
|
|
31776
|
+
outputs: [
|
|
31777
|
+
{
|
|
31778
|
+
name: "",
|
|
31779
|
+
type: "string",
|
|
31780
|
+
internalType: "string"
|
|
31781
|
+
}
|
|
31782
|
+
],
|
|
31783
|
+
stateMutability: "view"
|
|
31784
|
+
},
|
|
31785
|
+
{
|
|
31786
|
+
type: "function",
|
|
31787
|
+
name: "SALE_AP",
|
|
31788
|
+
inputs: [],
|
|
31789
|
+
outputs: [
|
|
31790
|
+
{
|
|
31791
|
+
name: "",
|
|
31792
|
+
type: "address",
|
|
31793
|
+
internalType: "address"
|
|
31794
|
+
}
|
|
31795
|
+
],
|
|
31796
|
+
stateMutability: "view"
|
|
31797
|
+
},
|
|
31798
|
+
{
|
|
31799
|
+
type: "function",
|
|
31800
|
+
name: "SALE_GT",
|
|
31801
|
+
inputs: [],
|
|
31802
|
+
outputs: [
|
|
31803
|
+
{
|
|
31804
|
+
name: "",
|
|
31805
|
+
type: "address",
|
|
31806
|
+
internalType: "address"
|
|
31807
|
+
}
|
|
31808
|
+
],
|
|
31809
|
+
stateMutability: "view"
|
|
31810
|
+
},
|
|
31811
|
+
{
|
|
31812
|
+
type: "function",
|
|
31813
|
+
name: "USDC",
|
|
31814
|
+
inputs: [],
|
|
31815
|
+
outputs: [
|
|
31816
|
+
{
|
|
31817
|
+
name: "",
|
|
31818
|
+
type: "address",
|
|
31819
|
+
internalType: "address"
|
|
31820
|
+
}
|
|
31821
|
+
],
|
|
31822
|
+
stateMutability: "view"
|
|
31823
|
+
},
|
|
31824
|
+
{
|
|
31825
|
+
type: "function",
|
|
31826
|
+
name: "VERSION",
|
|
31827
|
+
inputs: [],
|
|
31828
|
+
outputs: [
|
|
31829
|
+
{
|
|
31830
|
+
name: "",
|
|
31831
|
+
type: "string",
|
|
31832
|
+
internalType: "string"
|
|
31833
|
+
}
|
|
31834
|
+
],
|
|
31835
|
+
stateMutability: "view"
|
|
31836
|
+
},
|
|
31837
|
+
{
|
|
31838
|
+
type: "function",
|
|
31839
|
+
name: "executeBuy",
|
|
31840
|
+
inputs: [
|
|
31841
|
+
{
|
|
31842
|
+
name: "intent",
|
|
31843
|
+
type: "tuple",
|
|
31844
|
+
internalType: "struct BuyHelper.BuyIntent",
|
|
31845
|
+
components: [
|
|
31846
|
+
{
|
|
31847
|
+
name: "buyer",
|
|
31848
|
+
type: "address",
|
|
31849
|
+
internalType: "address"
|
|
31850
|
+
},
|
|
31851
|
+
{
|
|
31852
|
+
name: "paymentToken",
|
|
31853
|
+
type: "address",
|
|
31854
|
+
internalType: "address"
|
|
31855
|
+
},
|
|
31856
|
+
{
|
|
31857
|
+
name: "paymentAmount",
|
|
31858
|
+
type: "uint256",
|
|
31859
|
+
internalType: "uint256"
|
|
31860
|
+
},
|
|
31861
|
+
{
|
|
31862
|
+
name: "targetToken",
|
|
31863
|
+
type: "address",
|
|
31864
|
+
internalType: "address"
|
|
31865
|
+
},
|
|
31866
|
+
{
|
|
31867
|
+
name: "recipient",
|
|
31868
|
+
type: "address",
|
|
31869
|
+
internalType: "address"
|
|
31870
|
+
},
|
|
31871
|
+
{
|
|
31872
|
+
name: "minOut",
|
|
31873
|
+
type: "uint256",
|
|
31874
|
+
internalType: "uint256"
|
|
31875
|
+
},
|
|
31876
|
+
{
|
|
31877
|
+
name: "deadline",
|
|
31878
|
+
type: "uint256",
|
|
31879
|
+
internalType: "uint256"
|
|
31880
|
+
},
|
|
31881
|
+
{
|
|
31882
|
+
name: "nonce",
|
|
31883
|
+
type: "bytes32",
|
|
31884
|
+
internalType: "bytes32"
|
|
31885
|
+
}
|
|
31886
|
+
]
|
|
31887
|
+
},
|
|
31888
|
+
{
|
|
31889
|
+
name: "buyIntentSig",
|
|
31890
|
+
type: "bytes",
|
|
31891
|
+
internalType: "bytes"
|
|
31892
|
+
},
|
|
31893
|
+
{
|
|
31894
|
+
name: "transferAuth",
|
|
31895
|
+
type: "tuple",
|
|
31896
|
+
internalType: "struct BuyHelper.TransferAuthExtras",
|
|
31897
|
+
components: [
|
|
31898
|
+
{
|
|
31899
|
+
name: "validAfter",
|
|
31900
|
+
type: "uint256",
|
|
31901
|
+
internalType: "uint256"
|
|
31902
|
+
},
|
|
31903
|
+
{
|
|
31904
|
+
name: "v",
|
|
31905
|
+
type: "uint8",
|
|
31906
|
+
internalType: "uint8"
|
|
31907
|
+
},
|
|
31908
|
+
{
|
|
31909
|
+
name: "r",
|
|
31910
|
+
type: "bytes32",
|
|
31911
|
+
internalType: "bytes32"
|
|
31912
|
+
},
|
|
31913
|
+
{
|
|
31914
|
+
name: "s",
|
|
31915
|
+
type: "bytes32",
|
|
31916
|
+
internalType: "bytes32"
|
|
31917
|
+
}
|
|
31918
|
+
]
|
|
31919
|
+
}
|
|
31920
|
+
],
|
|
31921
|
+
outputs: [],
|
|
31922
|
+
stateMutability: "nonpayable"
|
|
31923
|
+
},
|
|
31924
|
+
{
|
|
31925
|
+
type: "function",
|
|
31926
|
+
name: "hashBuyIntent",
|
|
31927
|
+
inputs: [
|
|
31928
|
+
{
|
|
31929
|
+
name: "intent",
|
|
31930
|
+
type: "tuple",
|
|
31931
|
+
internalType: "struct BuyHelper.BuyIntent",
|
|
31932
|
+
components: [
|
|
31933
|
+
{
|
|
31934
|
+
name: "buyer",
|
|
31935
|
+
type: "address",
|
|
31936
|
+
internalType: "address"
|
|
31937
|
+
},
|
|
31938
|
+
{
|
|
31939
|
+
name: "paymentToken",
|
|
31940
|
+
type: "address",
|
|
31941
|
+
internalType: "address"
|
|
31942
|
+
},
|
|
31943
|
+
{
|
|
31944
|
+
name: "paymentAmount",
|
|
31945
|
+
type: "uint256",
|
|
31946
|
+
internalType: "uint256"
|
|
31947
|
+
},
|
|
31948
|
+
{
|
|
31949
|
+
name: "targetToken",
|
|
31950
|
+
type: "address",
|
|
31951
|
+
internalType: "address"
|
|
31952
|
+
},
|
|
31953
|
+
{
|
|
31954
|
+
name: "recipient",
|
|
31955
|
+
type: "address",
|
|
31956
|
+
internalType: "address"
|
|
31957
|
+
},
|
|
31958
|
+
{
|
|
31959
|
+
name: "minOut",
|
|
31960
|
+
type: "uint256",
|
|
31961
|
+
internalType: "uint256"
|
|
31962
|
+
},
|
|
31963
|
+
{
|
|
31964
|
+
name: "deadline",
|
|
31965
|
+
type: "uint256",
|
|
31966
|
+
internalType: "uint256"
|
|
31967
|
+
},
|
|
31968
|
+
{
|
|
31969
|
+
name: "nonce",
|
|
31970
|
+
type: "bytes32",
|
|
31971
|
+
internalType: "bytes32"
|
|
31972
|
+
}
|
|
31973
|
+
]
|
|
31974
|
+
}
|
|
31975
|
+
],
|
|
31976
|
+
outputs: [
|
|
31977
|
+
{
|
|
31978
|
+
name: "",
|
|
31979
|
+
type: "bytes32",
|
|
31980
|
+
internalType: "bytes32"
|
|
31981
|
+
}
|
|
31982
|
+
],
|
|
31983
|
+
stateMutability: "view"
|
|
31984
|
+
},
|
|
31985
|
+
{
|
|
31986
|
+
type: "event",
|
|
31987
|
+
name: "BuyExecuted",
|
|
31988
|
+
inputs: [
|
|
31989
|
+
{
|
|
31990
|
+
name: "buyer",
|
|
31991
|
+
type: "address",
|
|
31992
|
+
indexed: true,
|
|
31993
|
+
internalType: "address"
|
|
31994
|
+
},
|
|
31995
|
+
{
|
|
31996
|
+
name: "targetToken",
|
|
31997
|
+
type: "address",
|
|
31998
|
+
indexed: true,
|
|
31999
|
+
internalType: "address"
|
|
32000
|
+
},
|
|
32001
|
+
{
|
|
32002
|
+
name: "recipient",
|
|
32003
|
+
type: "address",
|
|
32004
|
+
indexed: true,
|
|
32005
|
+
internalType: "address"
|
|
32006
|
+
},
|
|
32007
|
+
{
|
|
32008
|
+
name: "paymentAmount",
|
|
32009
|
+
type: "uint256",
|
|
32010
|
+
indexed: false,
|
|
32011
|
+
internalType: "uint256"
|
|
32012
|
+
},
|
|
32013
|
+
{
|
|
32014
|
+
name: "receivedAmount",
|
|
32015
|
+
type: "uint256",
|
|
32016
|
+
indexed: false,
|
|
32017
|
+
internalType: "uint256"
|
|
32018
|
+
}
|
|
32019
|
+
],
|
|
32020
|
+
anonymous: false
|
|
32021
|
+
},
|
|
32022
|
+
{
|
|
32023
|
+
type: "error",
|
|
32024
|
+
name: "BelowMinOut",
|
|
32025
|
+
inputs: [
|
|
32026
|
+
{
|
|
32027
|
+
name: "received",
|
|
32028
|
+
type: "uint256",
|
|
32029
|
+
internalType: "uint256"
|
|
32030
|
+
},
|
|
32031
|
+
{
|
|
32032
|
+
name: "minOut",
|
|
32033
|
+
type: "uint256",
|
|
32034
|
+
internalType: "uint256"
|
|
32035
|
+
}
|
|
32036
|
+
]
|
|
32037
|
+
},
|
|
32038
|
+
{
|
|
32039
|
+
type: "error",
|
|
32040
|
+
name: "Expired",
|
|
32041
|
+
inputs: [
|
|
32042
|
+
{
|
|
32043
|
+
name: "deadline",
|
|
32044
|
+
type: "uint256",
|
|
32045
|
+
internalType: "uint256"
|
|
32046
|
+
},
|
|
32047
|
+
{
|
|
32048
|
+
name: "nowTs",
|
|
32049
|
+
type: "uint256",
|
|
32050
|
+
internalType: "uint256"
|
|
32051
|
+
}
|
|
32052
|
+
]
|
|
32053
|
+
},
|
|
32054
|
+
{
|
|
32055
|
+
type: "error",
|
|
32056
|
+
name: "InvalidBuyIntentSigner",
|
|
32057
|
+
inputs: [
|
|
32058
|
+
{
|
|
32059
|
+
name: "recovered",
|
|
32060
|
+
type: "address",
|
|
32061
|
+
internalType: "address"
|
|
32062
|
+
},
|
|
32063
|
+
{
|
|
32064
|
+
name: "expected",
|
|
32065
|
+
type: "address",
|
|
32066
|
+
internalType: "address"
|
|
32067
|
+
}
|
|
32068
|
+
]
|
|
32069
|
+
},
|
|
32070
|
+
{
|
|
32071
|
+
type: "error",
|
|
32072
|
+
name: "InvalidSignatureLength",
|
|
32073
|
+
inputs: [
|
|
32074
|
+
{
|
|
32075
|
+
name: "length",
|
|
32076
|
+
type: "uint256",
|
|
32077
|
+
internalType: "uint256"
|
|
32078
|
+
}
|
|
32079
|
+
]
|
|
32080
|
+
},
|
|
32081
|
+
{
|
|
32082
|
+
type: "error",
|
|
32083
|
+
name: "ReentrancyGuardReentrantCall",
|
|
32084
|
+
inputs: []
|
|
32085
|
+
},
|
|
32086
|
+
{
|
|
32087
|
+
type: "error",
|
|
32088
|
+
name: "SafeERC20FailedOperation",
|
|
32089
|
+
inputs: [
|
|
32090
|
+
{
|
|
32091
|
+
name: "token",
|
|
32092
|
+
type: "address",
|
|
32093
|
+
internalType: "address"
|
|
32094
|
+
}
|
|
32095
|
+
]
|
|
32096
|
+
},
|
|
32097
|
+
{
|
|
32098
|
+
type: "error",
|
|
32099
|
+
name: "UnsupportedPaymentToken",
|
|
32100
|
+
inputs: [
|
|
32101
|
+
{
|
|
32102
|
+
name: "paymentToken",
|
|
32103
|
+
type: "address",
|
|
32104
|
+
internalType: "address"
|
|
32105
|
+
}
|
|
32106
|
+
]
|
|
32107
|
+
},
|
|
32108
|
+
{
|
|
32109
|
+
type: "error",
|
|
32110
|
+
name: "UnsupportedTargetToken",
|
|
32111
|
+
inputs: [
|
|
32112
|
+
{
|
|
32113
|
+
name: "targetToken",
|
|
32114
|
+
type: "address",
|
|
32115
|
+
internalType: "address"
|
|
32116
|
+
}
|
|
32117
|
+
]
|
|
32118
|
+
},
|
|
32119
|
+
{
|
|
32120
|
+
type: "error",
|
|
32121
|
+
name: "ZeroRecipient",
|
|
32122
|
+
inputs: []
|
|
32123
|
+
}
|
|
32124
|
+
];
|
|
32125
|
+
|
|
30006
32126
|
// ../core/src/abis/index.ts
|
|
30007
32127
|
var RegistryABI = Registry_default.abi || Registry_default;
|
|
30008
32128
|
var RegistryArtifact = Registry_default;
|
|
@@ -30066,6 +32186,10 @@ var CalldataParserRegistryABI = CalldataParserRegistry_default.abi || CalldataPa
|
|
|
30066
32186
|
var CalldataParserRegistryArtifact = CalldataParserRegistry_default;
|
|
30067
32187
|
var AirAccountExtensionABI = AirAccountExtension_default.abi || AirAccountExtension_default;
|
|
30068
32188
|
var AirAccountExtensionArtifact = AirAccountExtension_default;
|
|
32189
|
+
var ERC20ABI = ERC20_default.abi || ERC20_default;
|
|
32190
|
+
var SaleContractV2ABI = SaleContractV2_default.abi || SaleContractV2_default;
|
|
32191
|
+
var APNTsSaleContractABI = APNTsSaleContract_default.abi || APNTsSaleContract_default;
|
|
32192
|
+
var BuyHelperABI = BuyHelper_default.abi || BuyHelper_default;
|
|
30069
32193
|
function createAAStarPublicClient(rpcUrl, chain = chains.sepolia) {
|
|
30070
32194
|
return viem.createPublicClient({
|
|
30071
32195
|
chain,
|
|
@@ -44266,7 +46390,7 @@ var RequirementChecker = class {
|
|
|
44266
46390
|
const missingRequirements = [];
|
|
44267
46391
|
let hasRole = false;
|
|
44268
46392
|
if (roleId) {
|
|
44269
|
-
const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-
|
|
46393
|
+
const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-6K6IB5OB.cjs');
|
|
44270
46394
|
hasRole = await this.publicClient.readContract({
|
|
44271
46395
|
address: this.addresses?.registry || CORE_ADDRESSES2.registry,
|
|
44272
46396
|
abi: REGISTRY_ABI,
|
|
@@ -44279,7 +46403,7 @@ var RequirementChecker = class {
|
|
|
44279
46403
|
}
|
|
44280
46404
|
let hasEnoughGToken = true;
|
|
44281
46405
|
if (requiredGToken > 0n) {
|
|
44282
|
-
const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-
|
|
46406
|
+
const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-6K6IB5OB.cjs');
|
|
44283
46407
|
const gtokenBalance = await this.publicClient.readContract({
|
|
44284
46408
|
address: this.addresses?.gtoken || CORE_ADDRESSES2.gToken,
|
|
44285
46409
|
abi: ERC20_ABI,
|
|
@@ -44295,7 +46419,7 @@ var RequirementChecker = class {
|
|
|
44295
46419
|
}
|
|
44296
46420
|
let hasEnoughAPNTs = true;
|
|
44297
46421
|
if (requiredAPNTs > 0n) {
|
|
44298
|
-
const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-
|
|
46422
|
+
const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-6K6IB5OB.cjs');
|
|
44299
46423
|
const apntsBalance = await this.publicClient.readContract({
|
|
44300
46424
|
address: this.addresses?.apnts || CORE_ADDRESSES2.aPNTs,
|
|
44301
46425
|
abi: ERC20_ABI,
|
|
@@ -44311,7 +46435,7 @@ var RequirementChecker = class {
|
|
|
44311
46435
|
}
|
|
44312
46436
|
let hasSBT = false;
|
|
44313
46437
|
if (requireSBT) {
|
|
44314
|
-
const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-
|
|
46438
|
+
const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-6K6IB5OB.cjs');
|
|
44315
46439
|
const sbtBalance = await this.publicClient.readContract({
|
|
44316
46440
|
address: this.addresses?.mysbt || CORE_ADDRESSES2.mySBT,
|
|
44317
46441
|
abi: MYSBT_ABI,
|
|
@@ -44335,7 +46459,7 @@ var RequirementChecker = class {
|
|
|
44335
46459
|
* Check GToken balance only (shortcut)
|
|
44336
46460
|
*/
|
|
44337
46461
|
async checkGTokenBalance(address, required) {
|
|
44338
|
-
const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-
|
|
46462
|
+
const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-6K6IB5OB.cjs');
|
|
44339
46463
|
const balance = await this.publicClient.readContract({
|
|
44340
46464
|
address: this.addresses?.gtoken || CORE_ADDRESSES2.gToken,
|
|
44341
46465
|
abi: ERC20_ABI,
|
|
@@ -44351,7 +46475,7 @@ var RequirementChecker = class {
|
|
|
44351
46475
|
* Check aPNTs balance only (shortcut)
|
|
44352
46476
|
*/
|
|
44353
46477
|
async checkAPNTsBalance(address, required) {
|
|
44354
|
-
const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-
|
|
46478
|
+
const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-6K6IB5OB.cjs');
|
|
44355
46479
|
const balance = await this.publicClient.readContract({
|
|
44356
46480
|
address: this.addresses?.apnts || CORE_ADDRESSES2.aPNTs,
|
|
44357
46481
|
abi: ERC20_ABI,
|
|
@@ -44367,7 +46491,7 @@ var RequirementChecker = class {
|
|
|
44367
46491
|
* Check if user has MySBT (shortcut)
|
|
44368
46492
|
*/
|
|
44369
46493
|
async checkHasSBT(address) {
|
|
44370
|
-
const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-
|
|
46494
|
+
const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-6K6IB5OB.cjs');
|
|
44371
46495
|
const balance = await this.publicClient.readContract({
|
|
44372
46496
|
address: this.addresses?.mysbt || CORE_ADDRESSES2.mySBT,
|
|
44373
46497
|
abi: MYSBT_ABI,
|
|
@@ -44380,7 +46504,7 @@ var RequirementChecker = class {
|
|
|
44380
46504
|
* Check if user has specific role (shortcut)
|
|
44381
46505
|
*/
|
|
44382
46506
|
async checkHasRole(roleId, address) {
|
|
44383
|
-
const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-
|
|
46507
|
+
const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-6K6IB5OB.cjs');
|
|
44384
46508
|
return await this.publicClient.readContract({
|
|
44385
46509
|
address: this.addresses?.registry || CORE_ADDRESSES2.registry,
|
|
44386
46510
|
abi: REGISTRY_ABI,
|
|
@@ -44392,7 +46516,7 @@ var RequirementChecker = class {
|
|
|
44392
46516
|
* Check a user's on-chain role stake (`getRoleStake(roleId, operator)`) (shortcut).
|
|
44393
46517
|
*/
|
|
44394
46518
|
async checkRoleStake(roleId, address, required) {
|
|
44395
|
-
const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-
|
|
46519
|
+
const { CORE_ADDRESSES: CORE_ADDRESSES2 } = await import('./contract-addresses-6K6IB5OB.cjs');
|
|
44396
46520
|
const staked = await this.publicClient.readContract({
|
|
44397
46521
|
address: this.addresses?.registry || CORE_ADDRESSES2.registry,
|
|
44398
46522
|
abi: REGISTRY_ABI,
|
|
@@ -44468,13 +46592,13 @@ var ContractConfigManager = class {
|
|
|
44468
46592
|
*/
|
|
44469
46593
|
static getConfig() {
|
|
44470
46594
|
const config = {
|
|
44471
|
-
registry:
|
|
44472
|
-
gToken:
|
|
44473
|
-
gTokenStaking:
|
|
44474
|
-
superPaymaster:
|
|
44475
|
-
paymasterV4:
|
|
44476
|
-
paymasterFactory:
|
|
44477
|
-
entryPoint:
|
|
46595
|
+
registry: chunkG33MXEHU_cjs.CORE_ADDRESSES.registry,
|
|
46596
|
+
gToken: chunkG33MXEHU_cjs.CORE_ADDRESSES.gToken,
|
|
46597
|
+
gTokenStaking: chunkG33MXEHU_cjs.CORE_ADDRESSES.gTokenStaking,
|
|
46598
|
+
superPaymaster: chunkG33MXEHU_cjs.CORE_ADDRESSES.superPaymaster,
|
|
46599
|
+
paymasterV4: chunkG33MXEHU_cjs.CORE_ADDRESSES.paymasterV4,
|
|
46600
|
+
paymasterFactory: chunkG33MXEHU_cjs.CORE_ADDRESSES.paymasterFactory,
|
|
46601
|
+
entryPoint: chunkG33MXEHU_cjs.CORE_ADDRESSES.entryPoint || "0x0000000071727De22E5E9d8BAf0edAc6f37da032"
|
|
44478
46602
|
};
|
|
44479
46603
|
this.validate(config);
|
|
44480
46604
|
return config;
|
|
@@ -44575,6 +46699,7 @@ exports.AAStarValidatorABI = AAStarValidatorABI;
|
|
|
44575
46699
|
exports.AAStarValidatorArtifact = AAStarValidatorArtifact;
|
|
44576
46700
|
exports.ALG_BLS = ALG_BLS;
|
|
44577
46701
|
exports.ALL_ROLES = ALL_ROLES;
|
|
46702
|
+
exports.APNTsSaleContractABI = APNTsSaleContractABI;
|
|
44578
46703
|
exports.AgentRegistryABI = AgentRegistryABI;
|
|
44579
46704
|
exports.AgentRegistryArtifact = AgentRegistryArtifact;
|
|
44580
46705
|
exports.AirAccountDelegateABI = AirAccountDelegateABI;
|
|
@@ -44593,6 +46718,7 @@ exports.BRANDING = BRANDING;
|
|
|
44593
46718
|
exports.BREAD_COMMUNITY = BREAD_COMMUNITY;
|
|
44594
46719
|
exports.BaseClient = BaseClient;
|
|
44595
46720
|
exports.BundlerClient = BundlerClient;
|
|
46721
|
+
exports.BuyHelperABI = BuyHelperABI;
|
|
44596
46722
|
exports.COMMUNITIES = COMMUNITIES;
|
|
44597
46723
|
exports.CONTRACTS = CONTRACTS;
|
|
44598
46724
|
exports.CONTRACT_METADATA = CONTRACT_METADATA;
|
|
@@ -44605,6 +46731,7 @@ exports.DVTValidatorABI = DVTValidatorABI;
|
|
|
44605
46731
|
exports.DVTValidatorArtifact = DVTValidatorArtifact;
|
|
44606
46732
|
exports.DVT_TIER_T2 = DVT_TIER_T2;
|
|
44607
46733
|
exports.DVT_TIER_T3 = DVT_TIER_T3;
|
|
46734
|
+
exports.ERC20ABI = ERC20ABI;
|
|
44608
46735
|
exports.EntryPointABI = EntryPointABI;
|
|
44609
46736
|
exports.EntryPointArtifact = EntryPointArtifact;
|
|
44610
46737
|
exports.EntryPointVersion = EntryPointVersion;
|
|
@@ -44658,6 +46785,7 @@ exports.SECP256R1_N = SECP256R1_N;
|
|
|
44658
46785
|
exports.SECP256R1_N_OVER_2 = SECP256R1_N_OVER_2;
|
|
44659
46786
|
exports.SEPOLIA_CONTRACTS = SEPOLIA_CONTRACTS;
|
|
44660
46787
|
exports.SEPOLIA_V2_VERSIONS = SEPOLIA_V2_VERSIONS;
|
|
46788
|
+
exports.SaleContractV2ABI = SaleContractV2ABI;
|
|
44661
46789
|
exports.SepoliaFaucetAPI = SepoliaFaucetAPI;
|
|
44662
46790
|
exports.SessionKeyValidatorABI = SessionKeyValidatorABI;
|
|
44663
46791
|
exports.SessionKeyValidatorArtifact = SessionKeyValidatorArtifact;
|
|
@@ -44769,5 +46897,5 @@ exports.xPNTsFactoryArtifact = xPNTsFactoryArtifact;
|
|
|
44769
46897
|
exports.xPNTsTokenABI = xPNTsTokenABI;
|
|
44770
46898
|
exports.xPNTsTokenActions = xPNTsTokenActions;
|
|
44771
46899
|
exports.xPNTsTokenArtifact = xPNTsTokenArtifact;
|
|
44772
|
-
//# sourceMappingURL=chunk-
|
|
44773
|
-
//# sourceMappingURL=chunk-
|
|
46900
|
+
//# sourceMappingURL=chunk-KOWTQJIX.cjs.map
|
|
46901
|
+
//# sourceMappingURL=chunk-KOWTQJIX.cjs.map
|