@aromedia/contracts-sdk 0.2.0 → 1.0.1
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/chains.d.cts +10 -0
- package/dist/chains.d.ts +10 -0
- package/dist/{chunk-TZQHQLNY.js → chunk-BVDE3GSN.js} +1800 -4
- package/dist/chunk-BVDE3GSN.js.map +1 -0
- package/dist/{chunk-FWZ7XKFC.js → chunk-RL7KGQGI.js} +16 -6
- package/dist/chunk-RL7KGQGI.js.map +1 -0
- package/dist/{chunk-BYPGUFYV.js → chunk-VUYKYCOD.js} +1 -1
- package/dist/chunk-VUYKYCOD.js.map +1 -0
- package/dist/{chunk-7I5N3BGV.js → chunk-XYOUNFJU.js} +3 -3
- package/dist/chunk-XYOUNFJU.js.map +1 -0
- package/dist/generated/abis.cjs +1803 -5
- package/dist/generated/abis.cjs.map +1 -1
- package/dist/generated/abis.d.cts +5630 -2878
- package/dist/generated/abis.d.ts +5630 -2878
- package/dist/generated/abis.js +7 -3
- package/dist/generated/addresses.cjs +15 -5
- package/dist/generated/addresses.cjs.map +1 -1
- package/dist/generated/addresses.js +1 -1
- package/dist/hooks/index.cjs +20 -5
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +46 -5
- package/dist/hooks/index.d.ts +46 -5
- package/dist/hooks/index.js +7 -3
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +2057 -196
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +132 -14
- package/dist/index.d.ts +132 -14
- package/dist/index.js +60 -7
- package/dist/index.js.map +1 -1
- package/dist/{onboarding-BHpAJaNW.d.cts → onboarding-CC_y8QgN.d.cts} +64 -9
- package/dist/{onboarding-DxL_LpM3.d.ts → onboarding-KnUSrGNx.d.ts} +64 -9
- package/dist/workflows/index.cjs +1 -1
- package/dist/workflows/index.cjs.map +1 -1
- package/dist/workflows/index.d.cts +1 -1
- package/dist/workflows/index.d.ts +1 -1
- package/dist/workflows/index.js +3 -3
- package/package.json +7 -7
- package/dist/chunk-7I5N3BGV.js.map +0 -1
- package/dist/chunk-BYPGUFYV.js.map +0 -1
- package/dist/chunk-FWZ7XKFC.js.map +0 -1
- package/dist/chunk-TZQHQLNY.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
AroContractError: () => AroContractError,
|
|
24
|
+
AroLiquidityCommitment_ABI: () => AroLiquidityCommitment_ABI,
|
|
24
25
|
AroMediaAccessManager_ABI: () => AroMediaAccessManager_ABI,
|
|
25
26
|
AroMediaAssetsRegistry_ABI: () => AroMediaAssetsRegistry_ABI,
|
|
26
27
|
AroMediaIncMultiSig_ABI: () => AroMediaIncMultiSig_ABI,
|
|
@@ -34,6 +35,7 @@ __export(index_exports, {
|
|
|
34
35
|
ForcedTransferManager_ABI: () => ForcedTransferManager_ABI,
|
|
35
36
|
ForcedTransferStatus: () => ForcedTransferStatus,
|
|
36
37
|
ForcedTransferStatusLabels: () => ForcedTransferStatusLabels,
|
|
38
|
+
MINT_APPROVAL_TYPES: () => MINT_APPROVAL_TYPES,
|
|
37
39
|
NominationStatus: () => NominationStatus,
|
|
38
40
|
NominationStatusLabels: () => NominationStatusLabels,
|
|
39
41
|
SUPPORTED_CHAIN_IDS: () => SUPPORTED_CHAIN_IDS,
|
|
@@ -44,6 +46,7 @@ __export(index_exports, {
|
|
|
44
46
|
aroChains: () => aroChains,
|
|
45
47
|
base: () => import_chains.base,
|
|
46
48
|
baseSepolia: () => import_chains.baseSepolia,
|
|
49
|
+
cAROUSD_ABI: () => cAROUSD_ABI,
|
|
47
50
|
chainById: () => chainById,
|
|
48
51
|
chainLabels: () => chainLabels,
|
|
49
52
|
checkMembershipStatus: () => checkMembershipStatus,
|
|
@@ -65,9 +68,12 @@ __export(index_exports, {
|
|
|
65
68
|
hardhat: () => import_chains.hardhat,
|
|
66
69
|
hashKycResult: () => hashKycResult,
|
|
67
70
|
mainnet: () => import_chains.mainnet,
|
|
71
|
+
mintApprovalDomain: () => mintApprovalDomain,
|
|
72
|
+
mintApprovalTypedData: () => mintApprovalTypedData,
|
|
68
73
|
mintSBTForApproved: () => mintSBTForApproved,
|
|
69
74
|
nominateCandidate: () => nominateCandidate,
|
|
70
75
|
sepolia: () => import_chains.sepolia,
|
|
76
|
+
signMintApproval: () => signMintApproval,
|
|
71
77
|
tierAtLeast: () => tierAtLeast,
|
|
72
78
|
tierLabel: () => tierLabel,
|
|
73
79
|
tierRequirements: () => tierRequirements,
|
|
@@ -2758,7 +2764,7 @@ var AroMediaRWA_ABI = [
|
|
|
2758
2764
|
"inputs": [
|
|
2759
2765
|
{
|
|
2760
2766
|
"internalType": "address",
|
|
2761
|
-
"name": "
|
|
2767
|
+
"name": "account",
|
|
2762
2768
|
"type": "address"
|
|
2763
2769
|
},
|
|
2764
2770
|
{
|
|
@@ -3072,7 +3078,7 @@ var AroMediaRWA_ABI = [
|
|
|
3072
3078
|
{
|
|
3073
3079
|
"indexed": true,
|
|
3074
3080
|
"internalType": "address",
|
|
3075
|
-
"name": "
|
|
3081
|
+
"name": "account",
|
|
3076
3082
|
"type": "address"
|
|
3077
3083
|
},
|
|
3078
3084
|
{
|
|
@@ -3390,6 +3396,25 @@ var AroMediaRWA_ABI = [
|
|
|
3390
3396
|
"stateMutability": "nonpayable",
|
|
3391
3397
|
"type": "function"
|
|
3392
3398
|
},
|
|
3399
|
+
{
|
|
3400
|
+
"inputs": [
|
|
3401
|
+
{
|
|
3402
|
+
"internalType": "address",
|
|
3403
|
+
"name": "account",
|
|
3404
|
+
"type": "address"
|
|
3405
|
+
}
|
|
3406
|
+
],
|
|
3407
|
+
"name": "canTransact",
|
|
3408
|
+
"outputs": [
|
|
3409
|
+
{
|
|
3410
|
+
"internalType": "bool",
|
|
3411
|
+
"name": "",
|
|
3412
|
+
"type": "bool"
|
|
3413
|
+
}
|
|
3414
|
+
],
|
|
3415
|
+
"stateMutability": "view",
|
|
3416
|
+
"type": "function"
|
|
3417
|
+
},
|
|
3393
3418
|
{
|
|
3394
3419
|
"inputs": [
|
|
3395
3420
|
{
|
|
@@ -7267,201 +7292,1986 @@ var AroNomination_ABI = [
|
|
|
7267
7292
|
"type": "function"
|
|
7268
7293
|
}
|
|
7269
7294
|
];
|
|
7270
|
-
var
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
// sepolia
|
|
7287
|
-
8453,
|
|
7288
|
-
// base
|
|
7289
|
-
84532,
|
|
7290
|
-
// baseSepolia
|
|
7291
|
-
31337
|
|
7292
|
-
// hardhat
|
|
7293
|
-
];
|
|
7294
|
-
var addresses = {
|
|
7295
|
-
1: {
|
|
7296
|
-
// ethereum
|
|
7297
|
-
AroMediaIncMultiSig: "0x0000000000000000000000000000000000000000",
|
|
7298
|
-
AroMediaAccessManager: "0x0000000000000000000000000000000000000000",
|
|
7299
|
-
AroMediaRWA: "0x0000000000000000000000000000000000000000",
|
|
7300
|
-
AroMediaAssetsRegistry: "0x0000000000000000000000000000000000000000",
|
|
7301
|
-
ForcedTransferManager: "0x0000000000000000000000000000000000000000",
|
|
7302
|
-
AroSBT: "0x0000000000000000000000000000000000000000",
|
|
7303
|
-
AroNomination: "0x0000000000000000000000000000000000000000"
|
|
7295
|
+
var cAROUSD_ABI = [
|
|
7296
|
+
{
|
|
7297
|
+
"inputs": [
|
|
7298
|
+
{
|
|
7299
|
+
"internalType": "address",
|
|
7300
|
+
"name": "initialAuthority",
|
|
7301
|
+
"type": "address"
|
|
7302
|
+
},
|
|
7303
|
+
{
|
|
7304
|
+
"internalType": "string",
|
|
7305
|
+
"name": "tokenURI_",
|
|
7306
|
+
"type": "string"
|
|
7307
|
+
}
|
|
7308
|
+
],
|
|
7309
|
+
"stateMutability": "nonpayable",
|
|
7310
|
+
"type": "constructor"
|
|
7304
7311
|
},
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7312
|
+
{
|
|
7313
|
+
"inputs": [
|
|
7314
|
+
{
|
|
7315
|
+
"internalType": "address",
|
|
7316
|
+
"name": "authority",
|
|
7317
|
+
"type": "address"
|
|
7318
|
+
}
|
|
7319
|
+
],
|
|
7320
|
+
"name": "AccessManagedInvalidAuthority",
|
|
7321
|
+
"type": "error"
|
|
7314
7322
|
},
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7323
|
+
{
|
|
7324
|
+
"inputs": [
|
|
7325
|
+
{
|
|
7326
|
+
"internalType": "address",
|
|
7327
|
+
"name": "caller",
|
|
7328
|
+
"type": "address"
|
|
7329
|
+
},
|
|
7330
|
+
{
|
|
7331
|
+
"internalType": "uint32",
|
|
7332
|
+
"name": "delay",
|
|
7333
|
+
"type": "uint32"
|
|
7334
|
+
}
|
|
7335
|
+
],
|
|
7336
|
+
"name": "AccessManagedRequiredDelay",
|
|
7337
|
+
"type": "error"
|
|
7324
7338
|
},
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
|
|
7339
|
+
{
|
|
7340
|
+
"inputs": [
|
|
7341
|
+
{
|
|
7342
|
+
"internalType": "address",
|
|
7343
|
+
"name": "caller",
|
|
7344
|
+
"type": "address"
|
|
7345
|
+
}
|
|
7346
|
+
],
|
|
7347
|
+
"name": "AccessManagedUnauthorized",
|
|
7348
|
+
"type": "error"
|
|
7334
7349
|
},
|
|
7335
|
-
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7341
|
-
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
}
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
}
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
}
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
7462
|
-
|
|
7463
|
-
|
|
7464
|
-
|
|
7350
|
+
{
|
|
7351
|
+
"inputs": [],
|
|
7352
|
+
"name": "ContractPaused",
|
|
7353
|
+
"type": "error"
|
|
7354
|
+
},
|
|
7355
|
+
{
|
|
7356
|
+
"inputs": [
|
|
7357
|
+
{
|
|
7358
|
+
"internalType": "uint256",
|
|
7359
|
+
"name": "requestId",
|
|
7360
|
+
"type": "uint256"
|
|
7361
|
+
}
|
|
7362
|
+
],
|
|
7363
|
+
"name": "ERC7984InvalidGatewayRequest",
|
|
7364
|
+
"type": "error"
|
|
7365
|
+
},
|
|
7366
|
+
{
|
|
7367
|
+
"inputs": [
|
|
7368
|
+
{
|
|
7369
|
+
"internalType": "address",
|
|
7370
|
+
"name": "receiver",
|
|
7371
|
+
"type": "address"
|
|
7372
|
+
}
|
|
7373
|
+
],
|
|
7374
|
+
"name": "ERC7984InvalidReceiver",
|
|
7375
|
+
"type": "error"
|
|
7376
|
+
},
|
|
7377
|
+
{
|
|
7378
|
+
"inputs": [
|
|
7379
|
+
{
|
|
7380
|
+
"internalType": "address",
|
|
7381
|
+
"name": "sender",
|
|
7382
|
+
"type": "address"
|
|
7383
|
+
}
|
|
7384
|
+
],
|
|
7385
|
+
"name": "ERC7984InvalidSender",
|
|
7386
|
+
"type": "error"
|
|
7387
|
+
},
|
|
7388
|
+
{
|
|
7389
|
+
"inputs": [
|
|
7390
|
+
{
|
|
7391
|
+
"internalType": "address",
|
|
7392
|
+
"name": "caller",
|
|
7393
|
+
"type": "address"
|
|
7394
|
+
}
|
|
7395
|
+
],
|
|
7396
|
+
"name": "ERC7984UnauthorizedCaller",
|
|
7397
|
+
"type": "error"
|
|
7398
|
+
},
|
|
7399
|
+
{
|
|
7400
|
+
"inputs": [
|
|
7401
|
+
{
|
|
7402
|
+
"internalType": "address",
|
|
7403
|
+
"name": "holder",
|
|
7404
|
+
"type": "address"
|
|
7405
|
+
},
|
|
7406
|
+
{
|
|
7407
|
+
"internalType": "address",
|
|
7408
|
+
"name": "spender",
|
|
7409
|
+
"type": "address"
|
|
7410
|
+
}
|
|
7411
|
+
],
|
|
7412
|
+
"name": "ERC7984UnauthorizedSpender",
|
|
7413
|
+
"type": "error"
|
|
7414
|
+
},
|
|
7415
|
+
{
|
|
7416
|
+
"inputs": [
|
|
7417
|
+
{
|
|
7418
|
+
"internalType": "euint64",
|
|
7419
|
+
"name": "amount",
|
|
7420
|
+
"type": "bytes32"
|
|
7421
|
+
},
|
|
7422
|
+
{
|
|
7423
|
+
"internalType": "address",
|
|
7424
|
+
"name": "user",
|
|
7425
|
+
"type": "address"
|
|
7426
|
+
}
|
|
7427
|
+
],
|
|
7428
|
+
"name": "ERC7984UnauthorizedUseOfEncryptedAmount",
|
|
7429
|
+
"type": "error"
|
|
7430
|
+
},
|
|
7431
|
+
{
|
|
7432
|
+
"inputs": [
|
|
7433
|
+
{
|
|
7434
|
+
"internalType": "address",
|
|
7435
|
+
"name": "holder",
|
|
7436
|
+
"type": "address"
|
|
7437
|
+
}
|
|
7438
|
+
],
|
|
7439
|
+
"name": "ERC7984ZeroBalance",
|
|
7440
|
+
"type": "error"
|
|
7441
|
+
},
|
|
7442
|
+
{
|
|
7443
|
+
"inputs": [],
|
|
7444
|
+
"name": "InvalidKMSSignatures",
|
|
7445
|
+
"type": "error"
|
|
7446
|
+
},
|
|
7447
|
+
{
|
|
7448
|
+
"inputs": [
|
|
7449
|
+
{
|
|
7450
|
+
"internalType": "bytes32",
|
|
7451
|
+
"name": "handle",
|
|
7452
|
+
"type": "bytes32"
|
|
7453
|
+
},
|
|
7454
|
+
{
|
|
7455
|
+
"internalType": "address",
|
|
7456
|
+
"name": "sender",
|
|
7457
|
+
"type": "address"
|
|
7458
|
+
}
|
|
7459
|
+
],
|
|
7460
|
+
"name": "SenderNotAllowedToUseHandle",
|
|
7461
|
+
"type": "error"
|
|
7462
|
+
},
|
|
7463
|
+
{
|
|
7464
|
+
"anonymous": false,
|
|
7465
|
+
"inputs": [
|
|
7466
|
+
{
|
|
7467
|
+
"indexed": true,
|
|
7468
|
+
"internalType": "euint64",
|
|
7469
|
+
"name": "encryptedAmount",
|
|
7470
|
+
"type": "bytes32"
|
|
7471
|
+
},
|
|
7472
|
+
{
|
|
7473
|
+
"indexed": true,
|
|
7474
|
+
"internalType": "address",
|
|
7475
|
+
"name": "requester",
|
|
7476
|
+
"type": "address"
|
|
7477
|
+
}
|
|
7478
|
+
],
|
|
7479
|
+
"name": "AmountDiscloseRequested",
|
|
7480
|
+
"type": "event"
|
|
7481
|
+
},
|
|
7482
|
+
{
|
|
7483
|
+
"anonymous": false,
|
|
7484
|
+
"inputs": [
|
|
7485
|
+
{
|
|
7486
|
+
"indexed": true,
|
|
7487
|
+
"internalType": "euint64",
|
|
7488
|
+
"name": "encryptedAmount",
|
|
7489
|
+
"type": "bytes32"
|
|
7490
|
+
},
|
|
7491
|
+
{
|
|
7492
|
+
"indexed": false,
|
|
7493
|
+
"internalType": "uint64",
|
|
7494
|
+
"name": "amount",
|
|
7495
|
+
"type": "uint64"
|
|
7496
|
+
}
|
|
7497
|
+
],
|
|
7498
|
+
"name": "AmountDisclosed",
|
|
7499
|
+
"type": "event"
|
|
7500
|
+
},
|
|
7501
|
+
{
|
|
7502
|
+
"anonymous": false,
|
|
7503
|
+
"inputs": [
|
|
7504
|
+
{
|
|
7505
|
+
"indexed": false,
|
|
7506
|
+
"internalType": "address",
|
|
7507
|
+
"name": "authority",
|
|
7508
|
+
"type": "address"
|
|
7509
|
+
}
|
|
7510
|
+
],
|
|
7511
|
+
"name": "AuthorityUpdated",
|
|
7512
|
+
"type": "event"
|
|
7513
|
+
},
|
|
7514
|
+
{
|
|
7515
|
+
"anonymous": false,
|
|
7516
|
+
"inputs": [
|
|
7517
|
+
{
|
|
7518
|
+
"indexed": true,
|
|
7519
|
+
"internalType": "address",
|
|
7520
|
+
"name": "from",
|
|
7521
|
+
"type": "address"
|
|
7522
|
+
},
|
|
7523
|
+
{
|
|
7524
|
+
"indexed": true,
|
|
7525
|
+
"internalType": "address",
|
|
7526
|
+
"name": "to",
|
|
7527
|
+
"type": "address"
|
|
7528
|
+
},
|
|
7529
|
+
{
|
|
7530
|
+
"indexed": true,
|
|
7531
|
+
"internalType": "euint64",
|
|
7532
|
+
"name": "amount",
|
|
7533
|
+
"type": "bytes32"
|
|
7534
|
+
}
|
|
7535
|
+
],
|
|
7536
|
+
"name": "ConfidentialTransfer",
|
|
7537
|
+
"type": "event"
|
|
7538
|
+
},
|
|
7539
|
+
{
|
|
7540
|
+
"anonymous": false,
|
|
7541
|
+
"inputs": [
|
|
7542
|
+
{
|
|
7543
|
+
"indexed": true,
|
|
7544
|
+
"internalType": "address",
|
|
7545
|
+
"name": "holder",
|
|
7546
|
+
"type": "address"
|
|
7547
|
+
},
|
|
7548
|
+
{
|
|
7549
|
+
"indexed": true,
|
|
7550
|
+
"internalType": "address",
|
|
7551
|
+
"name": "operator",
|
|
7552
|
+
"type": "address"
|
|
7553
|
+
},
|
|
7554
|
+
{
|
|
7555
|
+
"indexed": false,
|
|
7556
|
+
"internalType": "uint48",
|
|
7557
|
+
"name": "until",
|
|
7558
|
+
"type": "uint48"
|
|
7559
|
+
}
|
|
7560
|
+
],
|
|
7561
|
+
"name": "OperatorSet",
|
|
7562
|
+
"type": "event"
|
|
7563
|
+
},
|
|
7564
|
+
{
|
|
7565
|
+
"anonymous": false,
|
|
7566
|
+
"inputs": [
|
|
7567
|
+
{
|
|
7568
|
+
"indexed": false,
|
|
7569
|
+
"internalType": "bool",
|
|
7570
|
+
"name": "paused",
|
|
7571
|
+
"type": "bool"
|
|
7572
|
+
},
|
|
7573
|
+
{
|
|
7574
|
+
"indexed": true,
|
|
7575
|
+
"internalType": "address",
|
|
7576
|
+
"name": "by",
|
|
7577
|
+
"type": "address"
|
|
7578
|
+
}
|
|
7579
|
+
],
|
|
7580
|
+
"name": "PausedSet",
|
|
7581
|
+
"type": "event"
|
|
7582
|
+
},
|
|
7583
|
+
{
|
|
7584
|
+
"anonymous": false,
|
|
7585
|
+
"inputs": [
|
|
7586
|
+
{
|
|
7587
|
+
"indexed": false,
|
|
7588
|
+
"internalType": "bytes32[]",
|
|
7589
|
+
"name": "handlesList",
|
|
7590
|
+
"type": "bytes32[]"
|
|
7591
|
+
},
|
|
7592
|
+
{
|
|
7593
|
+
"indexed": false,
|
|
7594
|
+
"internalType": "bytes",
|
|
7595
|
+
"name": "abiEncodedCleartexts",
|
|
7596
|
+
"type": "bytes"
|
|
7597
|
+
}
|
|
7598
|
+
],
|
|
7599
|
+
"name": "PublicDecryptionVerified",
|
|
7600
|
+
"type": "event"
|
|
7601
|
+
},
|
|
7602
|
+
{
|
|
7603
|
+
"inputs": [],
|
|
7604
|
+
"name": "authority",
|
|
7605
|
+
"outputs": [
|
|
7606
|
+
{
|
|
7607
|
+
"internalType": "address",
|
|
7608
|
+
"name": "",
|
|
7609
|
+
"type": "address"
|
|
7610
|
+
}
|
|
7611
|
+
],
|
|
7612
|
+
"stateMutability": "view",
|
|
7613
|
+
"type": "function"
|
|
7614
|
+
},
|
|
7615
|
+
{
|
|
7616
|
+
"inputs": [
|
|
7617
|
+
{
|
|
7618
|
+
"internalType": "address",
|
|
7619
|
+
"name": "from",
|
|
7620
|
+
"type": "address"
|
|
7621
|
+
},
|
|
7622
|
+
{
|
|
7623
|
+
"internalType": "externalEuint64",
|
|
7624
|
+
"name": "encryptedAmount",
|
|
7625
|
+
"type": "bytes32"
|
|
7626
|
+
},
|
|
7627
|
+
{
|
|
7628
|
+
"internalType": "bytes",
|
|
7629
|
+
"name": "inputProof",
|
|
7630
|
+
"type": "bytes"
|
|
7631
|
+
}
|
|
7632
|
+
],
|
|
7633
|
+
"name": "confidentialAdminBurn",
|
|
7634
|
+
"outputs": [
|
|
7635
|
+
{
|
|
7636
|
+
"internalType": "euint64",
|
|
7637
|
+
"name": "transferred",
|
|
7638
|
+
"type": "bytes32"
|
|
7639
|
+
}
|
|
7640
|
+
],
|
|
7641
|
+
"stateMutability": "nonpayable",
|
|
7642
|
+
"type": "function"
|
|
7643
|
+
},
|
|
7644
|
+
{
|
|
7645
|
+
"inputs": [
|
|
7646
|
+
{
|
|
7647
|
+
"internalType": "address",
|
|
7648
|
+
"name": "account",
|
|
7649
|
+
"type": "address"
|
|
7650
|
+
}
|
|
7651
|
+
],
|
|
7652
|
+
"name": "confidentialBalanceOf",
|
|
7653
|
+
"outputs": [
|
|
7654
|
+
{
|
|
7655
|
+
"internalType": "euint64",
|
|
7656
|
+
"name": "",
|
|
7657
|
+
"type": "bytes32"
|
|
7658
|
+
}
|
|
7659
|
+
],
|
|
7660
|
+
"stateMutability": "view",
|
|
7661
|
+
"type": "function"
|
|
7662
|
+
},
|
|
7663
|
+
{
|
|
7664
|
+
"inputs": [
|
|
7665
|
+
{
|
|
7666
|
+
"internalType": "externalEuint64",
|
|
7667
|
+
"name": "encryptedAmount",
|
|
7668
|
+
"type": "bytes32"
|
|
7669
|
+
},
|
|
7670
|
+
{
|
|
7671
|
+
"internalType": "bytes",
|
|
7672
|
+
"name": "inputProof",
|
|
7673
|
+
"type": "bytes"
|
|
7674
|
+
}
|
|
7675
|
+
],
|
|
7676
|
+
"name": "confidentialBurn",
|
|
7677
|
+
"outputs": [
|
|
7678
|
+
{
|
|
7679
|
+
"internalType": "euint64",
|
|
7680
|
+
"name": "transferred",
|
|
7681
|
+
"type": "bytes32"
|
|
7682
|
+
}
|
|
7683
|
+
],
|
|
7684
|
+
"stateMutability": "nonpayable",
|
|
7685
|
+
"type": "function"
|
|
7686
|
+
},
|
|
7687
|
+
{
|
|
7688
|
+
"inputs": [
|
|
7689
|
+
{
|
|
7690
|
+
"internalType": "address",
|
|
7691
|
+
"name": "from",
|
|
7692
|
+
"type": "address"
|
|
7693
|
+
},
|
|
7694
|
+
{
|
|
7695
|
+
"internalType": "externalEuint64",
|
|
7696
|
+
"name": "encryptedAmount",
|
|
7697
|
+
"type": "bytes32"
|
|
7698
|
+
},
|
|
7699
|
+
{
|
|
7700
|
+
"internalType": "bytes",
|
|
7701
|
+
"name": "inputProof",
|
|
7702
|
+
"type": "bytes"
|
|
7703
|
+
}
|
|
7704
|
+
],
|
|
7705
|
+
"name": "confidentialBurnFrom",
|
|
7706
|
+
"outputs": [
|
|
7707
|
+
{
|
|
7708
|
+
"internalType": "euint64",
|
|
7709
|
+
"name": "transferred",
|
|
7710
|
+
"type": "bytes32"
|
|
7711
|
+
}
|
|
7712
|
+
],
|
|
7713
|
+
"stateMutability": "nonpayable",
|
|
7714
|
+
"type": "function"
|
|
7715
|
+
},
|
|
7716
|
+
{
|
|
7717
|
+
"inputs": [
|
|
7718
|
+
{
|
|
7719
|
+
"internalType": "address",
|
|
7720
|
+
"name": "to",
|
|
7721
|
+
"type": "address"
|
|
7722
|
+
},
|
|
7723
|
+
{
|
|
7724
|
+
"internalType": "externalEuint64",
|
|
7725
|
+
"name": "encryptedAmount",
|
|
7726
|
+
"type": "bytes32"
|
|
7727
|
+
},
|
|
7728
|
+
{
|
|
7729
|
+
"internalType": "bytes",
|
|
7730
|
+
"name": "inputProof",
|
|
7731
|
+
"type": "bytes"
|
|
7732
|
+
}
|
|
7733
|
+
],
|
|
7734
|
+
"name": "confidentialMint",
|
|
7735
|
+
"outputs": [
|
|
7736
|
+
{
|
|
7737
|
+
"internalType": "euint64",
|
|
7738
|
+
"name": "transferred",
|
|
7739
|
+
"type": "bytes32"
|
|
7740
|
+
}
|
|
7741
|
+
],
|
|
7742
|
+
"stateMutability": "nonpayable",
|
|
7743
|
+
"type": "function"
|
|
7744
|
+
},
|
|
7745
|
+
{
|
|
7746
|
+
"inputs": [
|
|
7747
|
+
{
|
|
7748
|
+
"internalType": "address",
|
|
7749
|
+
"name": "to",
|
|
7750
|
+
"type": "address"
|
|
7751
|
+
},
|
|
7752
|
+
{
|
|
7753
|
+
"internalType": "uint64",
|
|
7754
|
+
"name": "amount",
|
|
7755
|
+
"type": "uint64"
|
|
7756
|
+
}
|
|
7757
|
+
],
|
|
7758
|
+
"name": "confidentialMintTrivial",
|
|
7759
|
+
"outputs": [
|
|
7760
|
+
{
|
|
7761
|
+
"internalType": "euint64",
|
|
7762
|
+
"name": "transferred",
|
|
7763
|
+
"type": "bytes32"
|
|
7764
|
+
}
|
|
7765
|
+
],
|
|
7766
|
+
"stateMutability": "nonpayable",
|
|
7767
|
+
"type": "function"
|
|
7768
|
+
},
|
|
7769
|
+
{
|
|
7770
|
+
"inputs": [],
|
|
7771
|
+
"name": "confidentialTotalSupply",
|
|
7772
|
+
"outputs": [
|
|
7773
|
+
{
|
|
7774
|
+
"internalType": "euint64",
|
|
7775
|
+
"name": "",
|
|
7776
|
+
"type": "bytes32"
|
|
7777
|
+
}
|
|
7778
|
+
],
|
|
7779
|
+
"stateMutability": "view",
|
|
7780
|
+
"type": "function"
|
|
7781
|
+
},
|
|
7782
|
+
{
|
|
7783
|
+
"inputs": [
|
|
7784
|
+
{
|
|
7785
|
+
"internalType": "address",
|
|
7786
|
+
"name": "to",
|
|
7787
|
+
"type": "address"
|
|
7788
|
+
},
|
|
7789
|
+
{
|
|
7790
|
+
"internalType": "externalEuint64",
|
|
7791
|
+
"name": "encryptedAmount",
|
|
7792
|
+
"type": "bytes32"
|
|
7793
|
+
},
|
|
7794
|
+
{
|
|
7795
|
+
"internalType": "bytes",
|
|
7796
|
+
"name": "inputProof",
|
|
7797
|
+
"type": "bytes"
|
|
7798
|
+
}
|
|
7799
|
+
],
|
|
7800
|
+
"name": "confidentialTransfer",
|
|
7801
|
+
"outputs": [
|
|
7802
|
+
{
|
|
7803
|
+
"internalType": "euint64",
|
|
7804
|
+
"name": "",
|
|
7805
|
+
"type": "bytes32"
|
|
7806
|
+
}
|
|
7807
|
+
],
|
|
7808
|
+
"stateMutability": "nonpayable",
|
|
7809
|
+
"type": "function"
|
|
7810
|
+
},
|
|
7811
|
+
{
|
|
7812
|
+
"inputs": [
|
|
7813
|
+
{
|
|
7814
|
+
"internalType": "address",
|
|
7815
|
+
"name": "to",
|
|
7816
|
+
"type": "address"
|
|
7817
|
+
},
|
|
7818
|
+
{
|
|
7819
|
+
"internalType": "euint64",
|
|
7820
|
+
"name": "amount",
|
|
7821
|
+
"type": "bytes32"
|
|
7822
|
+
}
|
|
7823
|
+
],
|
|
7824
|
+
"name": "confidentialTransfer",
|
|
7825
|
+
"outputs": [
|
|
7826
|
+
{
|
|
7827
|
+
"internalType": "euint64",
|
|
7828
|
+
"name": "",
|
|
7829
|
+
"type": "bytes32"
|
|
7830
|
+
}
|
|
7831
|
+
],
|
|
7832
|
+
"stateMutability": "nonpayable",
|
|
7833
|
+
"type": "function"
|
|
7834
|
+
},
|
|
7835
|
+
{
|
|
7836
|
+
"inputs": [
|
|
7837
|
+
{
|
|
7838
|
+
"internalType": "address",
|
|
7839
|
+
"name": "to",
|
|
7840
|
+
"type": "address"
|
|
7841
|
+
},
|
|
7842
|
+
{
|
|
7843
|
+
"internalType": "euint64",
|
|
7844
|
+
"name": "amount",
|
|
7845
|
+
"type": "bytes32"
|
|
7846
|
+
},
|
|
7847
|
+
{
|
|
7848
|
+
"internalType": "bytes",
|
|
7849
|
+
"name": "data",
|
|
7850
|
+
"type": "bytes"
|
|
7851
|
+
}
|
|
7852
|
+
],
|
|
7853
|
+
"name": "confidentialTransferAndCall",
|
|
7854
|
+
"outputs": [
|
|
7855
|
+
{
|
|
7856
|
+
"internalType": "euint64",
|
|
7857
|
+
"name": "transferred",
|
|
7858
|
+
"type": "bytes32"
|
|
7859
|
+
}
|
|
7860
|
+
],
|
|
7861
|
+
"stateMutability": "nonpayable",
|
|
7862
|
+
"type": "function"
|
|
7863
|
+
},
|
|
7864
|
+
{
|
|
7865
|
+
"inputs": [
|
|
7866
|
+
{
|
|
7867
|
+
"internalType": "address",
|
|
7868
|
+
"name": "to",
|
|
7869
|
+
"type": "address"
|
|
7870
|
+
},
|
|
7871
|
+
{
|
|
7872
|
+
"internalType": "externalEuint64",
|
|
7873
|
+
"name": "encryptedAmount",
|
|
7874
|
+
"type": "bytes32"
|
|
7875
|
+
},
|
|
7876
|
+
{
|
|
7877
|
+
"internalType": "bytes",
|
|
7878
|
+
"name": "inputProof",
|
|
7879
|
+
"type": "bytes"
|
|
7880
|
+
},
|
|
7881
|
+
{
|
|
7882
|
+
"internalType": "bytes",
|
|
7883
|
+
"name": "data",
|
|
7884
|
+
"type": "bytes"
|
|
7885
|
+
}
|
|
7886
|
+
],
|
|
7887
|
+
"name": "confidentialTransferAndCall",
|
|
7888
|
+
"outputs": [
|
|
7889
|
+
{
|
|
7890
|
+
"internalType": "euint64",
|
|
7891
|
+
"name": "transferred",
|
|
7892
|
+
"type": "bytes32"
|
|
7893
|
+
}
|
|
7894
|
+
],
|
|
7895
|
+
"stateMutability": "nonpayable",
|
|
7896
|
+
"type": "function"
|
|
7897
|
+
},
|
|
7898
|
+
{
|
|
7899
|
+
"inputs": [
|
|
7900
|
+
{
|
|
7901
|
+
"internalType": "address",
|
|
7902
|
+
"name": "from",
|
|
7903
|
+
"type": "address"
|
|
7904
|
+
},
|
|
7905
|
+
{
|
|
7906
|
+
"internalType": "address",
|
|
7907
|
+
"name": "to",
|
|
7908
|
+
"type": "address"
|
|
7909
|
+
},
|
|
7910
|
+
{
|
|
7911
|
+
"internalType": "externalEuint64",
|
|
7912
|
+
"name": "encryptedAmount",
|
|
7913
|
+
"type": "bytes32"
|
|
7914
|
+
},
|
|
7915
|
+
{
|
|
7916
|
+
"internalType": "bytes",
|
|
7917
|
+
"name": "inputProof",
|
|
7918
|
+
"type": "bytes"
|
|
7919
|
+
}
|
|
7920
|
+
],
|
|
7921
|
+
"name": "confidentialTransferFrom",
|
|
7922
|
+
"outputs": [
|
|
7923
|
+
{
|
|
7924
|
+
"internalType": "euint64",
|
|
7925
|
+
"name": "transferred",
|
|
7926
|
+
"type": "bytes32"
|
|
7927
|
+
}
|
|
7928
|
+
],
|
|
7929
|
+
"stateMutability": "nonpayable",
|
|
7930
|
+
"type": "function"
|
|
7931
|
+
},
|
|
7932
|
+
{
|
|
7933
|
+
"inputs": [
|
|
7934
|
+
{
|
|
7935
|
+
"internalType": "address",
|
|
7936
|
+
"name": "from",
|
|
7937
|
+
"type": "address"
|
|
7938
|
+
},
|
|
7939
|
+
{
|
|
7940
|
+
"internalType": "address",
|
|
7941
|
+
"name": "to",
|
|
7942
|
+
"type": "address"
|
|
7943
|
+
},
|
|
7944
|
+
{
|
|
7945
|
+
"internalType": "euint64",
|
|
7946
|
+
"name": "amount",
|
|
7947
|
+
"type": "bytes32"
|
|
7948
|
+
}
|
|
7949
|
+
],
|
|
7950
|
+
"name": "confidentialTransferFrom",
|
|
7951
|
+
"outputs": [
|
|
7952
|
+
{
|
|
7953
|
+
"internalType": "euint64",
|
|
7954
|
+
"name": "transferred",
|
|
7955
|
+
"type": "bytes32"
|
|
7956
|
+
}
|
|
7957
|
+
],
|
|
7958
|
+
"stateMutability": "nonpayable",
|
|
7959
|
+
"type": "function"
|
|
7960
|
+
},
|
|
7961
|
+
{
|
|
7962
|
+
"inputs": [
|
|
7963
|
+
{
|
|
7964
|
+
"internalType": "address",
|
|
7965
|
+
"name": "from",
|
|
7966
|
+
"type": "address"
|
|
7967
|
+
},
|
|
7968
|
+
{
|
|
7969
|
+
"internalType": "address",
|
|
7970
|
+
"name": "to",
|
|
7971
|
+
"type": "address"
|
|
7972
|
+
},
|
|
7973
|
+
{
|
|
7974
|
+
"internalType": "externalEuint64",
|
|
7975
|
+
"name": "encryptedAmount",
|
|
7976
|
+
"type": "bytes32"
|
|
7977
|
+
},
|
|
7978
|
+
{
|
|
7979
|
+
"internalType": "bytes",
|
|
7980
|
+
"name": "inputProof",
|
|
7981
|
+
"type": "bytes"
|
|
7982
|
+
},
|
|
7983
|
+
{
|
|
7984
|
+
"internalType": "bytes",
|
|
7985
|
+
"name": "data",
|
|
7986
|
+
"type": "bytes"
|
|
7987
|
+
}
|
|
7988
|
+
],
|
|
7989
|
+
"name": "confidentialTransferFromAndCall",
|
|
7990
|
+
"outputs": [
|
|
7991
|
+
{
|
|
7992
|
+
"internalType": "euint64",
|
|
7993
|
+
"name": "transferred",
|
|
7994
|
+
"type": "bytes32"
|
|
7995
|
+
}
|
|
7996
|
+
],
|
|
7997
|
+
"stateMutability": "nonpayable",
|
|
7998
|
+
"type": "function"
|
|
7999
|
+
},
|
|
8000
|
+
{
|
|
8001
|
+
"inputs": [
|
|
8002
|
+
{
|
|
8003
|
+
"internalType": "address",
|
|
8004
|
+
"name": "from",
|
|
8005
|
+
"type": "address"
|
|
8006
|
+
},
|
|
8007
|
+
{
|
|
8008
|
+
"internalType": "address",
|
|
8009
|
+
"name": "to",
|
|
8010
|
+
"type": "address"
|
|
8011
|
+
},
|
|
8012
|
+
{
|
|
8013
|
+
"internalType": "euint64",
|
|
8014
|
+
"name": "amount",
|
|
8015
|
+
"type": "bytes32"
|
|
8016
|
+
},
|
|
8017
|
+
{
|
|
8018
|
+
"internalType": "bytes",
|
|
8019
|
+
"name": "data",
|
|
8020
|
+
"type": "bytes"
|
|
8021
|
+
}
|
|
8022
|
+
],
|
|
8023
|
+
"name": "confidentialTransferFromAndCall",
|
|
8024
|
+
"outputs": [
|
|
8025
|
+
{
|
|
8026
|
+
"internalType": "euint64",
|
|
8027
|
+
"name": "transferred",
|
|
8028
|
+
"type": "bytes32"
|
|
8029
|
+
}
|
|
8030
|
+
],
|
|
8031
|
+
"stateMutability": "nonpayable",
|
|
8032
|
+
"type": "function"
|
|
8033
|
+
},
|
|
8034
|
+
{
|
|
8035
|
+
"inputs": [],
|
|
8036
|
+
"name": "contractURI",
|
|
8037
|
+
"outputs": [
|
|
8038
|
+
{
|
|
8039
|
+
"internalType": "string",
|
|
8040
|
+
"name": "",
|
|
8041
|
+
"type": "string"
|
|
8042
|
+
}
|
|
8043
|
+
],
|
|
8044
|
+
"stateMutability": "view",
|
|
8045
|
+
"type": "function"
|
|
8046
|
+
},
|
|
8047
|
+
{
|
|
8048
|
+
"inputs": [],
|
|
8049
|
+
"name": "decimals",
|
|
8050
|
+
"outputs": [
|
|
8051
|
+
{
|
|
8052
|
+
"internalType": "uint8",
|
|
8053
|
+
"name": "",
|
|
8054
|
+
"type": "uint8"
|
|
8055
|
+
}
|
|
8056
|
+
],
|
|
8057
|
+
"stateMutability": "view",
|
|
8058
|
+
"type": "function"
|
|
8059
|
+
},
|
|
8060
|
+
{
|
|
8061
|
+
"inputs": [
|
|
8062
|
+
{
|
|
8063
|
+
"internalType": "euint64",
|
|
8064
|
+
"name": "encryptedAmount",
|
|
8065
|
+
"type": "bytes32"
|
|
8066
|
+
},
|
|
8067
|
+
{
|
|
8068
|
+
"internalType": "uint64",
|
|
8069
|
+
"name": "cleartextAmount",
|
|
8070
|
+
"type": "uint64"
|
|
8071
|
+
},
|
|
8072
|
+
{
|
|
8073
|
+
"internalType": "bytes",
|
|
8074
|
+
"name": "decryptionProof",
|
|
8075
|
+
"type": "bytes"
|
|
8076
|
+
}
|
|
8077
|
+
],
|
|
8078
|
+
"name": "discloseEncryptedAmount",
|
|
8079
|
+
"outputs": [],
|
|
8080
|
+
"stateMutability": "nonpayable",
|
|
8081
|
+
"type": "function"
|
|
8082
|
+
},
|
|
8083
|
+
{
|
|
8084
|
+
"inputs": [],
|
|
8085
|
+
"name": "isConsumingScheduledOp",
|
|
8086
|
+
"outputs": [
|
|
8087
|
+
{
|
|
8088
|
+
"internalType": "bytes4",
|
|
8089
|
+
"name": "",
|
|
8090
|
+
"type": "bytes4"
|
|
8091
|
+
}
|
|
8092
|
+
],
|
|
8093
|
+
"stateMutability": "view",
|
|
8094
|
+
"type": "function"
|
|
8095
|
+
},
|
|
8096
|
+
{
|
|
8097
|
+
"inputs": [
|
|
8098
|
+
{
|
|
8099
|
+
"internalType": "address",
|
|
8100
|
+
"name": "holder",
|
|
8101
|
+
"type": "address"
|
|
8102
|
+
},
|
|
8103
|
+
{
|
|
8104
|
+
"internalType": "address",
|
|
8105
|
+
"name": "spender",
|
|
8106
|
+
"type": "address"
|
|
8107
|
+
}
|
|
8108
|
+
],
|
|
8109
|
+
"name": "isOperator",
|
|
8110
|
+
"outputs": [
|
|
8111
|
+
{
|
|
8112
|
+
"internalType": "bool",
|
|
8113
|
+
"name": "",
|
|
8114
|
+
"type": "bool"
|
|
8115
|
+
}
|
|
8116
|
+
],
|
|
8117
|
+
"stateMutability": "view",
|
|
8118
|
+
"type": "function"
|
|
8119
|
+
},
|
|
8120
|
+
{
|
|
8121
|
+
"inputs": [],
|
|
8122
|
+
"name": "name",
|
|
8123
|
+
"outputs": [
|
|
8124
|
+
{
|
|
8125
|
+
"internalType": "string",
|
|
8126
|
+
"name": "",
|
|
8127
|
+
"type": "string"
|
|
8128
|
+
}
|
|
8129
|
+
],
|
|
8130
|
+
"stateMutability": "view",
|
|
8131
|
+
"type": "function"
|
|
8132
|
+
},
|
|
8133
|
+
{
|
|
8134
|
+
"inputs": [],
|
|
8135
|
+
"name": "pause",
|
|
8136
|
+
"outputs": [],
|
|
8137
|
+
"stateMutability": "nonpayable",
|
|
8138
|
+
"type": "function"
|
|
8139
|
+
},
|
|
8140
|
+
{
|
|
8141
|
+
"inputs": [],
|
|
8142
|
+
"name": "paused",
|
|
8143
|
+
"outputs": [
|
|
8144
|
+
{
|
|
8145
|
+
"internalType": "bool",
|
|
8146
|
+
"name": "",
|
|
8147
|
+
"type": "bool"
|
|
8148
|
+
}
|
|
8149
|
+
],
|
|
8150
|
+
"stateMutability": "view",
|
|
8151
|
+
"type": "function"
|
|
8152
|
+
},
|
|
8153
|
+
{
|
|
8154
|
+
"inputs": [
|
|
8155
|
+
{
|
|
8156
|
+
"internalType": "euint64",
|
|
8157
|
+
"name": "encryptedAmount",
|
|
8158
|
+
"type": "bytes32"
|
|
8159
|
+
}
|
|
8160
|
+
],
|
|
8161
|
+
"name": "requestDiscloseEncryptedAmount",
|
|
8162
|
+
"outputs": [],
|
|
8163
|
+
"stateMutability": "nonpayable",
|
|
8164
|
+
"type": "function"
|
|
8165
|
+
},
|
|
8166
|
+
{
|
|
8167
|
+
"inputs": [
|
|
8168
|
+
{
|
|
8169
|
+
"internalType": "address",
|
|
8170
|
+
"name": "newAuthority",
|
|
8171
|
+
"type": "address"
|
|
8172
|
+
}
|
|
8173
|
+
],
|
|
8174
|
+
"name": "setAuthority",
|
|
8175
|
+
"outputs": [],
|
|
8176
|
+
"stateMutability": "nonpayable",
|
|
8177
|
+
"type": "function"
|
|
8178
|
+
},
|
|
8179
|
+
{
|
|
8180
|
+
"inputs": [
|
|
8181
|
+
{
|
|
8182
|
+
"internalType": "address",
|
|
8183
|
+
"name": "operator",
|
|
8184
|
+
"type": "address"
|
|
8185
|
+
},
|
|
8186
|
+
{
|
|
8187
|
+
"internalType": "uint48",
|
|
8188
|
+
"name": "until",
|
|
8189
|
+
"type": "uint48"
|
|
8190
|
+
}
|
|
8191
|
+
],
|
|
8192
|
+
"name": "setOperator",
|
|
8193
|
+
"outputs": [],
|
|
8194
|
+
"stateMutability": "nonpayable",
|
|
8195
|
+
"type": "function"
|
|
8196
|
+
},
|
|
8197
|
+
{
|
|
8198
|
+
"inputs": [
|
|
8199
|
+
{
|
|
8200
|
+
"internalType": "bytes4",
|
|
8201
|
+
"name": "interfaceId",
|
|
8202
|
+
"type": "bytes4"
|
|
8203
|
+
}
|
|
8204
|
+
],
|
|
8205
|
+
"name": "supportsInterface",
|
|
8206
|
+
"outputs": [
|
|
8207
|
+
{
|
|
8208
|
+
"internalType": "bool",
|
|
8209
|
+
"name": "",
|
|
8210
|
+
"type": "bool"
|
|
8211
|
+
}
|
|
8212
|
+
],
|
|
8213
|
+
"stateMutability": "view",
|
|
8214
|
+
"type": "function"
|
|
8215
|
+
},
|
|
8216
|
+
{
|
|
8217
|
+
"inputs": [],
|
|
8218
|
+
"name": "symbol",
|
|
8219
|
+
"outputs": [
|
|
8220
|
+
{
|
|
8221
|
+
"internalType": "string",
|
|
8222
|
+
"name": "",
|
|
8223
|
+
"type": "string"
|
|
8224
|
+
}
|
|
8225
|
+
],
|
|
8226
|
+
"stateMutability": "view",
|
|
8227
|
+
"type": "function"
|
|
8228
|
+
},
|
|
8229
|
+
{
|
|
8230
|
+
"inputs": [],
|
|
8231
|
+
"name": "unpause",
|
|
8232
|
+
"outputs": [],
|
|
8233
|
+
"stateMutability": "nonpayable",
|
|
8234
|
+
"type": "function"
|
|
8235
|
+
}
|
|
8236
|
+
];
|
|
8237
|
+
var AroLiquidityCommitment_ABI = [
|
|
8238
|
+
{
|
|
8239
|
+
"inputs": [
|
|
8240
|
+
{
|
|
8241
|
+
"internalType": "address",
|
|
8242
|
+
"name": "initialAuthority",
|
|
8243
|
+
"type": "address"
|
|
8244
|
+
},
|
|
8245
|
+
{
|
|
8246
|
+
"internalType": "contract cAROUSD",
|
|
8247
|
+
"name": "arousd",
|
|
8248
|
+
"type": "address"
|
|
8249
|
+
},
|
|
8250
|
+
{
|
|
8251
|
+
"internalType": "address",
|
|
8252
|
+
"name": "feeSink_",
|
|
8253
|
+
"type": "address"
|
|
8254
|
+
}
|
|
8255
|
+
],
|
|
8256
|
+
"stateMutability": "nonpayable",
|
|
8257
|
+
"type": "constructor"
|
|
8258
|
+
},
|
|
8259
|
+
{
|
|
8260
|
+
"inputs": [
|
|
8261
|
+
{
|
|
8262
|
+
"internalType": "address",
|
|
8263
|
+
"name": "authority",
|
|
8264
|
+
"type": "address"
|
|
8265
|
+
}
|
|
8266
|
+
],
|
|
8267
|
+
"name": "AccessManagedInvalidAuthority",
|
|
8268
|
+
"type": "error"
|
|
8269
|
+
},
|
|
8270
|
+
{
|
|
8271
|
+
"inputs": [
|
|
8272
|
+
{
|
|
8273
|
+
"internalType": "address",
|
|
8274
|
+
"name": "caller",
|
|
8275
|
+
"type": "address"
|
|
8276
|
+
},
|
|
8277
|
+
{
|
|
8278
|
+
"internalType": "uint32",
|
|
8279
|
+
"name": "delay",
|
|
8280
|
+
"type": "uint32"
|
|
8281
|
+
}
|
|
8282
|
+
],
|
|
8283
|
+
"name": "AccessManagedRequiredDelay",
|
|
8284
|
+
"type": "error"
|
|
8285
|
+
},
|
|
8286
|
+
{
|
|
8287
|
+
"inputs": [
|
|
8288
|
+
{
|
|
8289
|
+
"internalType": "address",
|
|
8290
|
+
"name": "caller",
|
|
8291
|
+
"type": "address"
|
|
8292
|
+
}
|
|
8293
|
+
],
|
|
8294
|
+
"name": "AccessManagedUnauthorized",
|
|
8295
|
+
"type": "error"
|
|
8296
|
+
},
|
|
8297
|
+
{
|
|
8298
|
+
"inputs": [],
|
|
8299
|
+
"name": "AmountTooLarge",
|
|
8300
|
+
"type": "error"
|
|
8301
|
+
},
|
|
8302
|
+
{
|
|
8303
|
+
"inputs": [],
|
|
8304
|
+
"name": "AmountZero",
|
|
8305
|
+
"type": "error"
|
|
8306
|
+
},
|
|
8307
|
+
{
|
|
8308
|
+
"inputs": [
|
|
8309
|
+
{
|
|
8310
|
+
"internalType": "uint16",
|
|
8311
|
+
"name": "bps",
|
|
8312
|
+
"type": "uint16"
|
|
8313
|
+
}
|
|
8314
|
+
],
|
|
8315
|
+
"name": "FeeTooHigh",
|
|
8316
|
+
"type": "error"
|
|
8317
|
+
},
|
|
8318
|
+
{
|
|
8319
|
+
"inputs": [
|
|
8320
|
+
{
|
|
8321
|
+
"internalType": "address",
|
|
8322
|
+
"name": "stable",
|
|
8323
|
+
"type": "address"
|
|
8324
|
+
},
|
|
8325
|
+
{
|
|
8326
|
+
"internalType": "uint256",
|
|
8327
|
+
"name": "needed",
|
|
8328
|
+
"type": "uint256"
|
|
8329
|
+
},
|
|
8330
|
+
{
|
|
8331
|
+
"internalType": "uint256",
|
|
8332
|
+
"name": "have",
|
|
8333
|
+
"type": "uint256"
|
|
8334
|
+
}
|
|
8335
|
+
],
|
|
8336
|
+
"name": "InsufficientReserves",
|
|
8337
|
+
"type": "error"
|
|
8338
|
+
},
|
|
8339
|
+
{
|
|
8340
|
+
"inputs": [],
|
|
8341
|
+
"name": "InvalidFeeSink",
|
|
8342
|
+
"type": "error"
|
|
8343
|
+
},
|
|
8344
|
+
{
|
|
8345
|
+
"inputs": [],
|
|
8346
|
+
"name": "InvalidKMSSignatures",
|
|
8347
|
+
"type": "error"
|
|
8348
|
+
},
|
|
8349
|
+
{
|
|
8350
|
+
"inputs": [],
|
|
8351
|
+
"name": "InvalidStableAddress",
|
|
8352
|
+
"type": "error"
|
|
8353
|
+
},
|
|
8354
|
+
{
|
|
8355
|
+
"inputs": [
|
|
8356
|
+
{
|
|
8357
|
+
"internalType": "uint64",
|
|
8358
|
+
"name": "cleartext",
|
|
8359
|
+
"type": "uint64"
|
|
8360
|
+
},
|
|
8361
|
+
{
|
|
8362
|
+
"internalType": "uint64",
|
|
8363
|
+
"name": "cap",
|
|
8364
|
+
"type": "uint64"
|
|
8365
|
+
}
|
|
8366
|
+
],
|
|
8367
|
+
"name": "PayoutExceedsMaxStableOut",
|
|
8368
|
+
"type": "error"
|
|
8369
|
+
},
|
|
8370
|
+
{
|
|
8371
|
+
"inputs": [
|
|
8372
|
+
{
|
|
8373
|
+
"internalType": "uint256",
|
|
8374
|
+
"name": "redeemId",
|
|
8375
|
+
"type": "uint256"
|
|
8376
|
+
}
|
|
8377
|
+
],
|
|
8378
|
+
"name": "RedeemAlreadyFinalized",
|
|
8379
|
+
"type": "error"
|
|
8380
|
+
},
|
|
8381
|
+
{
|
|
8382
|
+
"inputs": [
|
|
8383
|
+
{
|
|
8384
|
+
"internalType": "uint256",
|
|
8385
|
+
"name": "redeemId",
|
|
8386
|
+
"type": "uint256"
|
|
8387
|
+
}
|
|
8388
|
+
],
|
|
8389
|
+
"name": "RedeemUnknown",
|
|
8390
|
+
"type": "error"
|
|
8391
|
+
},
|
|
8392
|
+
{
|
|
8393
|
+
"inputs": [
|
|
8394
|
+
{
|
|
8395
|
+
"internalType": "address",
|
|
8396
|
+
"name": "token",
|
|
8397
|
+
"type": "address"
|
|
8398
|
+
}
|
|
8399
|
+
],
|
|
8400
|
+
"name": "SafeERC20FailedOperation",
|
|
8401
|
+
"type": "error"
|
|
8402
|
+
},
|
|
8403
|
+
{
|
|
8404
|
+
"inputs": [
|
|
8405
|
+
{
|
|
8406
|
+
"internalType": "address",
|
|
8407
|
+
"name": "stable",
|
|
8408
|
+
"type": "address"
|
|
8409
|
+
}
|
|
8410
|
+
],
|
|
8411
|
+
"name": "StableNotAllowed",
|
|
8412
|
+
"type": "error"
|
|
8413
|
+
},
|
|
8414
|
+
{
|
|
8415
|
+
"anonymous": false,
|
|
8416
|
+
"inputs": [
|
|
8417
|
+
{
|
|
8418
|
+
"indexed": false,
|
|
8419
|
+
"internalType": "address",
|
|
8420
|
+
"name": "authority",
|
|
8421
|
+
"type": "address"
|
|
8422
|
+
}
|
|
8423
|
+
],
|
|
8424
|
+
"name": "AuthorityUpdated",
|
|
8425
|
+
"type": "event"
|
|
8426
|
+
},
|
|
8427
|
+
{
|
|
8428
|
+
"anonymous": false,
|
|
8429
|
+
"inputs": [
|
|
8430
|
+
{
|
|
8431
|
+
"indexed": true,
|
|
8432
|
+
"internalType": "address",
|
|
8433
|
+
"name": "depositor",
|
|
8434
|
+
"type": "address"
|
|
8435
|
+
},
|
|
8436
|
+
{
|
|
8437
|
+
"indexed": true,
|
|
8438
|
+
"internalType": "address",
|
|
8439
|
+
"name": "recipient",
|
|
8440
|
+
"type": "address"
|
|
8441
|
+
},
|
|
8442
|
+
{
|
|
8443
|
+
"indexed": true,
|
|
8444
|
+
"internalType": "address",
|
|
8445
|
+
"name": "stable",
|
|
8446
|
+
"type": "address"
|
|
8447
|
+
},
|
|
8448
|
+
{
|
|
8449
|
+
"indexed": false,
|
|
8450
|
+
"internalType": "uint256",
|
|
8451
|
+
"name": "grossAmount",
|
|
8452
|
+
"type": "uint256"
|
|
8453
|
+
},
|
|
8454
|
+
{
|
|
8455
|
+
"indexed": false,
|
|
8456
|
+
"internalType": "uint256",
|
|
8457
|
+
"name": "feeAmount",
|
|
8458
|
+
"type": "uint256"
|
|
8459
|
+
},
|
|
8460
|
+
{
|
|
8461
|
+
"indexed": false,
|
|
8462
|
+
"internalType": "uint256",
|
|
8463
|
+
"name": "netAmount",
|
|
8464
|
+
"type": "uint256"
|
|
8465
|
+
}
|
|
8466
|
+
],
|
|
8467
|
+
"name": "DepositCommitted",
|
|
8468
|
+
"type": "event"
|
|
8469
|
+
},
|
|
8470
|
+
{
|
|
8471
|
+
"anonymous": false,
|
|
8472
|
+
"inputs": [
|
|
8473
|
+
{
|
|
8474
|
+
"indexed": false,
|
|
8475
|
+
"internalType": "uint16",
|
|
8476
|
+
"name": "oldBps",
|
|
8477
|
+
"type": "uint16"
|
|
8478
|
+
},
|
|
8479
|
+
{
|
|
8480
|
+
"indexed": false,
|
|
8481
|
+
"internalType": "uint16",
|
|
8482
|
+
"name": "newBps",
|
|
8483
|
+
"type": "uint16"
|
|
8484
|
+
}
|
|
8485
|
+
],
|
|
8486
|
+
"name": "DepositFeeUpdated",
|
|
8487
|
+
"type": "event"
|
|
8488
|
+
},
|
|
8489
|
+
{
|
|
8490
|
+
"anonymous": false,
|
|
8491
|
+
"inputs": [
|
|
8492
|
+
{
|
|
8493
|
+
"indexed": true,
|
|
8494
|
+
"internalType": "address",
|
|
8495
|
+
"name": "oldSink",
|
|
8496
|
+
"type": "address"
|
|
8497
|
+
},
|
|
8498
|
+
{
|
|
8499
|
+
"indexed": true,
|
|
8500
|
+
"internalType": "address",
|
|
8501
|
+
"name": "newSink",
|
|
8502
|
+
"type": "address"
|
|
8503
|
+
}
|
|
8504
|
+
],
|
|
8505
|
+
"name": "FeeSinkUpdated",
|
|
8506
|
+
"type": "event"
|
|
8507
|
+
},
|
|
8508
|
+
{
|
|
8509
|
+
"anonymous": false,
|
|
8510
|
+
"inputs": [
|
|
8511
|
+
{
|
|
8512
|
+
"indexed": false,
|
|
8513
|
+
"internalType": "bytes32[]",
|
|
8514
|
+
"name": "handlesList",
|
|
8515
|
+
"type": "bytes32[]"
|
|
8516
|
+
},
|
|
8517
|
+
{
|
|
8518
|
+
"indexed": false,
|
|
8519
|
+
"internalType": "bytes",
|
|
8520
|
+
"name": "abiEncodedCleartexts",
|
|
8521
|
+
"type": "bytes"
|
|
8522
|
+
}
|
|
8523
|
+
],
|
|
8524
|
+
"name": "PublicDecryptionVerified",
|
|
8525
|
+
"type": "event"
|
|
8526
|
+
},
|
|
8527
|
+
{
|
|
8528
|
+
"anonymous": false,
|
|
8529
|
+
"inputs": [
|
|
8530
|
+
{
|
|
8531
|
+
"indexed": false,
|
|
8532
|
+
"internalType": "uint16",
|
|
8533
|
+
"name": "oldBps",
|
|
8534
|
+
"type": "uint16"
|
|
8535
|
+
},
|
|
8536
|
+
{
|
|
8537
|
+
"indexed": false,
|
|
8538
|
+
"internalType": "uint16",
|
|
8539
|
+
"name": "newBps",
|
|
8540
|
+
"type": "uint16"
|
|
8541
|
+
}
|
|
8542
|
+
],
|
|
8543
|
+
"name": "RedeemFeeUpdated",
|
|
8544
|
+
"type": "event"
|
|
8545
|
+
},
|
|
8546
|
+
{
|
|
8547
|
+
"anonymous": false,
|
|
8548
|
+
"inputs": [
|
|
8549
|
+
{
|
|
8550
|
+
"indexed": true,
|
|
8551
|
+
"internalType": "uint256",
|
|
8552
|
+
"name": "redeemId",
|
|
8553
|
+
"type": "uint256"
|
|
8554
|
+
},
|
|
8555
|
+
{
|
|
8556
|
+
"indexed": true,
|
|
8557
|
+
"internalType": "address",
|
|
8558
|
+
"name": "redeemer",
|
|
8559
|
+
"type": "address"
|
|
8560
|
+
},
|
|
8561
|
+
{
|
|
8562
|
+
"indexed": true,
|
|
8563
|
+
"internalType": "address",
|
|
8564
|
+
"name": "stable",
|
|
8565
|
+
"type": "address"
|
|
8566
|
+
},
|
|
8567
|
+
{
|
|
8568
|
+
"indexed": false,
|
|
8569
|
+
"internalType": "uint64",
|
|
8570
|
+
"name": "cleartextBurned",
|
|
8571
|
+
"type": "uint64"
|
|
8572
|
+
},
|
|
8573
|
+
{
|
|
8574
|
+
"indexed": false,
|
|
8575
|
+
"internalType": "uint256",
|
|
8576
|
+
"name": "feeAmount",
|
|
8577
|
+
"type": "uint256"
|
|
8578
|
+
},
|
|
8579
|
+
{
|
|
8580
|
+
"indexed": false,
|
|
8581
|
+
"internalType": "uint256",
|
|
8582
|
+
"name": "netPaid",
|
|
8583
|
+
"type": "uint256"
|
|
8584
|
+
}
|
|
8585
|
+
],
|
|
8586
|
+
"name": "RedeemFinalized",
|
|
8587
|
+
"type": "event"
|
|
8588
|
+
},
|
|
8589
|
+
{
|
|
8590
|
+
"anonymous": false,
|
|
8591
|
+
"inputs": [
|
|
8592
|
+
{
|
|
8593
|
+
"indexed": true,
|
|
8594
|
+
"internalType": "uint256",
|
|
8595
|
+
"name": "redeemId",
|
|
8596
|
+
"type": "uint256"
|
|
8597
|
+
},
|
|
8598
|
+
{
|
|
8599
|
+
"indexed": true,
|
|
8600
|
+
"internalType": "address",
|
|
8601
|
+
"name": "redeemer",
|
|
8602
|
+
"type": "address"
|
|
8603
|
+
},
|
|
8604
|
+
{
|
|
8605
|
+
"indexed": true,
|
|
8606
|
+
"internalType": "address",
|
|
8607
|
+
"name": "stable",
|
|
8608
|
+
"type": "address"
|
|
8609
|
+
},
|
|
8610
|
+
{
|
|
8611
|
+
"indexed": false,
|
|
8612
|
+
"internalType": "uint64",
|
|
8613
|
+
"name": "maxStableOut",
|
|
8614
|
+
"type": "uint64"
|
|
8615
|
+
},
|
|
8616
|
+
{
|
|
8617
|
+
"indexed": false,
|
|
8618
|
+
"internalType": "euint64",
|
|
8619
|
+
"name": "burnedHandle",
|
|
8620
|
+
"type": "bytes32"
|
|
8621
|
+
}
|
|
8622
|
+
],
|
|
8623
|
+
"name": "RedeemRequested",
|
|
8624
|
+
"type": "event"
|
|
8625
|
+
},
|
|
8626
|
+
{
|
|
8627
|
+
"anonymous": false,
|
|
8628
|
+
"inputs": [
|
|
8629
|
+
{
|
|
8630
|
+
"indexed": true,
|
|
8631
|
+
"internalType": "address",
|
|
8632
|
+
"name": "stable",
|
|
8633
|
+
"type": "address"
|
|
8634
|
+
},
|
|
8635
|
+
{
|
|
8636
|
+
"indexed": false,
|
|
8637
|
+
"internalType": "bool",
|
|
8638
|
+
"name": "allowed",
|
|
8639
|
+
"type": "bool"
|
|
8640
|
+
}
|
|
8641
|
+
],
|
|
8642
|
+
"name": "StableAllowed",
|
|
8643
|
+
"type": "event"
|
|
8644
|
+
},
|
|
8645
|
+
{
|
|
8646
|
+
"anonymous": false,
|
|
8647
|
+
"inputs": [
|
|
8648
|
+
{
|
|
8649
|
+
"indexed": true,
|
|
8650
|
+
"internalType": "address",
|
|
8651
|
+
"name": "stable",
|
|
8652
|
+
"type": "address"
|
|
8653
|
+
},
|
|
8654
|
+
{
|
|
8655
|
+
"indexed": true,
|
|
8656
|
+
"internalType": "address",
|
|
8657
|
+
"name": "to",
|
|
8658
|
+
"type": "address"
|
|
8659
|
+
},
|
|
8660
|
+
{
|
|
8661
|
+
"indexed": false,
|
|
8662
|
+
"internalType": "uint256",
|
|
8663
|
+
"name": "amount",
|
|
8664
|
+
"type": "uint256"
|
|
8665
|
+
}
|
|
8666
|
+
],
|
|
8667
|
+
"name": "Swept",
|
|
8668
|
+
"type": "event"
|
|
8669
|
+
},
|
|
8670
|
+
{
|
|
8671
|
+
"inputs": [],
|
|
8672
|
+
"name": "AROUSD",
|
|
8673
|
+
"outputs": [
|
|
8674
|
+
{
|
|
8675
|
+
"internalType": "contract cAROUSD",
|
|
8676
|
+
"name": "",
|
|
8677
|
+
"type": "address"
|
|
8678
|
+
}
|
|
8679
|
+
],
|
|
8680
|
+
"stateMutability": "view",
|
|
8681
|
+
"type": "function"
|
|
8682
|
+
},
|
|
8683
|
+
{
|
|
8684
|
+
"inputs": [],
|
|
8685
|
+
"name": "FEE_BPS_DENOMINATOR",
|
|
8686
|
+
"outputs": [
|
|
8687
|
+
{
|
|
8688
|
+
"internalType": "uint256",
|
|
8689
|
+
"name": "",
|
|
8690
|
+
"type": "uint256"
|
|
8691
|
+
}
|
|
8692
|
+
],
|
|
8693
|
+
"stateMutability": "view",
|
|
8694
|
+
"type": "function"
|
|
8695
|
+
},
|
|
8696
|
+
{
|
|
8697
|
+
"inputs": [],
|
|
8698
|
+
"name": "MAX_FEE_BPS",
|
|
8699
|
+
"outputs": [
|
|
8700
|
+
{
|
|
8701
|
+
"internalType": "uint256",
|
|
8702
|
+
"name": "",
|
|
8703
|
+
"type": "uint256"
|
|
8704
|
+
}
|
|
8705
|
+
],
|
|
8706
|
+
"stateMutability": "view",
|
|
8707
|
+
"type": "function"
|
|
8708
|
+
},
|
|
8709
|
+
{
|
|
8710
|
+
"inputs": [],
|
|
8711
|
+
"name": "authority",
|
|
8712
|
+
"outputs": [
|
|
8713
|
+
{
|
|
8714
|
+
"internalType": "address",
|
|
8715
|
+
"name": "",
|
|
8716
|
+
"type": "address"
|
|
8717
|
+
}
|
|
8718
|
+
],
|
|
8719
|
+
"stateMutability": "view",
|
|
8720
|
+
"type": "function"
|
|
8721
|
+
},
|
|
8722
|
+
{
|
|
8723
|
+
"inputs": [
|
|
8724
|
+
{
|
|
8725
|
+
"internalType": "address",
|
|
8726
|
+
"name": "recipient",
|
|
8727
|
+
"type": "address"
|
|
8728
|
+
},
|
|
8729
|
+
{
|
|
8730
|
+
"internalType": "address",
|
|
8731
|
+
"name": "stable",
|
|
8732
|
+
"type": "address"
|
|
8733
|
+
},
|
|
8734
|
+
{
|
|
8735
|
+
"internalType": "uint256",
|
|
8736
|
+
"name": "amount",
|
|
8737
|
+
"type": "uint256"
|
|
8738
|
+
}
|
|
8739
|
+
],
|
|
8740
|
+
"name": "commitDeposit",
|
|
8741
|
+
"outputs": [
|
|
8742
|
+
{
|
|
8743
|
+
"internalType": "uint256",
|
|
8744
|
+
"name": "netAmount",
|
|
8745
|
+
"type": "uint256"
|
|
8746
|
+
}
|
|
8747
|
+
],
|
|
8748
|
+
"stateMutability": "nonpayable",
|
|
8749
|
+
"type": "function"
|
|
8750
|
+
},
|
|
8751
|
+
{
|
|
8752
|
+
"inputs": [],
|
|
8753
|
+
"name": "depositFeeBps",
|
|
8754
|
+
"outputs": [
|
|
8755
|
+
{
|
|
8756
|
+
"internalType": "uint16",
|
|
8757
|
+
"name": "",
|
|
8758
|
+
"type": "uint16"
|
|
8759
|
+
}
|
|
8760
|
+
],
|
|
8761
|
+
"stateMutability": "view",
|
|
8762
|
+
"type": "function"
|
|
8763
|
+
},
|
|
8764
|
+
{
|
|
8765
|
+
"inputs": [],
|
|
8766
|
+
"name": "feeSink",
|
|
8767
|
+
"outputs": [
|
|
8768
|
+
{
|
|
8769
|
+
"internalType": "address",
|
|
8770
|
+
"name": "",
|
|
8771
|
+
"type": "address"
|
|
8772
|
+
}
|
|
8773
|
+
],
|
|
8774
|
+
"stateMutability": "view",
|
|
8775
|
+
"type": "function"
|
|
8776
|
+
},
|
|
8777
|
+
{
|
|
8778
|
+
"inputs": [
|
|
8779
|
+
{
|
|
8780
|
+
"internalType": "uint256",
|
|
8781
|
+
"name": "redeemId",
|
|
8782
|
+
"type": "uint256"
|
|
8783
|
+
},
|
|
8784
|
+
{
|
|
8785
|
+
"internalType": "uint64",
|
|
8786
|
+
"name": "cleartextBurned",
|
|
8787
|
+
"type": "uint64"
|
|
8788
|
+
},
|
|
8789
|
+
{
|
|
8790
|
+
"internalType": "bytes",
|
|
8791
|
+
"name": "decryptionProof",
|
|
8792
|
+
"type": "bytes"
|
|
8793
|
+
}
|
|
8794
|
+
],
|
|
8795
|
+
"name": "finalizeRedeem",
|
|
8796
|
+
"outputs": [],
|
|
8797
|
+
"stateMutability": "nonpayable",
|
|
8798
|
+
"type": "function"
|
|
8799
|
+
},
|
|
8800
|
+
{
|
|
8801
|
+
"inputs": [
|
|
8802
|
+
{
|
|
8803
|
+
"internalType": "address",
|
|
8804
|
+
"name": "stable",
|
|
8805
|
+
"type": "address"
|
|
8806
|
+
}
|
|
8807
|
+
],
|
|
8808
|
+
"name": "freeReserves",
|
|
8809
|
+
"outputs": [
|
|
8810
|
+
{
|
|
8811
|
+
"internalType": "uint256",
|
|
8812
|
+
"name": "",
|
|
8813
|
+
"type": "uint256"
|
|
8814
|
+
}
|
|
8815
|
+
],
|
|
8816
|
+
"stateMutability": "view",
|
|
8817
|
+
"type": "function"
|
|
8818
|
+
},
|
|
8819
|
+
{
|
|
8820
|
+
"inputs": [],
|
|
8821
|
+
"name": "isConsumingScheduledOp",
|
|
8822
|
+
"outputs": [
|
|
8823
|
+
{
|
|
8824
|
+
"internalType": "bytes4",
|
|
8825
|
+
"name": "",
|
|
8826
|
+
"type": "bytes4"
|
|
8827
|
+
}
|
|
8828
|
+
],
|
|
8829
|
+
"stateMutability": "view",
|
|
8830
|
+
"type": "function"
|
|
8831
|
+
},
|
|
8832
|
+
{
|
|
8833
|
+
"inputs": [],
|
|
8834
|
+
"name": "nextRedeemId",
|
|
8835
|
+
"outputs": [
|
|
8836
|
+
{
|
|
8837
|
+
"internalType": "uint256",
|
|
8838
|
+
"name": "",
|
|
8839
|
+
"type": "uint256"
|
|
8840
|
+
}
|
|
8841
|
+
],
|
|
8842
|
+
"stateMutability": "view",
|
|
8843
|
+
"type": "function"
|
|
8844
|
+
},
|
|
8845
|
+
{
|
|
8846
|
+
"inputs": [
|
|
8847
|
+
{
|
|
8848
|
+
"internalType": "address",
|
|
8849
|
+
"name": "stable",
|
|
8850
|
+
"type": "address"
|
|
8851
|
+
}
|
|
8852
|
+
],
|
|
8853
|
+
"name": "pendingRedeemLiability",
|
|
8854
|
+
"outputs": [
|
|
8855
|
+
{
|
|
8856
|
+
"internalType": "uint256",
|
|
8857
|
+
"name": "",
|
|
8858
|
+
"type": "uint256"
|
|
8859
|
+
}
|
|
8860
|
+
],
|
|
8861
|
+
"stateMutability": "view",
|
|
8862
|
+
"type": "function"
|
|
8863
|
+
},
|
|
8864
|
+
{
|
|
8865
|
+
"inputs": [
|
|
8866
|
+
{
|
|
8867
|
+
"internalType": "uint256",
|
|
8868
|
+
"name": "id",
|
|
8869
|
+
"type": "uint256"
|
|
8870
|
+
}
|
|
8871
|
+
],
|
|
8872
|
+
"name": "pendingRedeems",
|
|
8873
|
+
"outputs": [
|
|
8874
|
+
{
|
|
8875
|
+
"internalType": "address",
|
|
8876
|
+
"name": "redeemer",
|
|
8877
|
+
"type": "address"
|
|
8878
|
+
},
|
|
8879
|
+
{
|
|
8880
|
+
"internalType": "address",
|
|
8881
|
+
"name": "stable",
|
|
8882
|
+
"type": "address"
|
|
8883
|
+
},
|
|
8884
|
+
{
|
|
8885
|
+
"internalType": "euint64",
|
|
8886
|
+
"name": "burnedHandle",
|
|
8887
|
+
"type": "bytes32"
|
|
8888
|
+
},
|
|
8889
|
+
{
|
|
8890
|
+
"internalType": "uint64",
|
|
8891
|
+
"name": "maxStableOut",
|
|
8892
|
+
"type": "uint64"
|
|
8893
|
+
},
|
|
8894
|
+
{
|
|
8895
|
+
"internalType": "uint64",
|
|
8896
|
+
"name": "settledAmount",
|
|
8897
|
+
"type": "uint64"
|
|
8898
|
+
},
|
|
8899
|
+
{
|
|
8900
|
+
"internalType": "bool",
|
|
8901
|
+
"name": "finalized",
|
|
8902
|
+
"type": "bool"
|
|
8903
|
+
}
|
|
8904
|
+
],
|
|
8905
|
+
"stateMutability": "view",
|
|
8906
|
+
"type": "function"
|
|
8907
|
+
},
|
|
8908
|
+
{
|
|
8909
|
+
"inputs": [],
|
|
8910
|
+
"name": "redeemFeeBps",
|
|
8911
|
+
"outputs": [
|
|
8912
|
+
{
|
|
8913
|
+
"internalType": "uint16",
|
|
8914
|
+
"name": "",
|
|
8915
|
+
"type": "uint16"
|
|
8916
|
+
}
|
|
8917
|
+
],
|
|
8918
|
+
"stateMutability": "view",
|
|
8919
|
+
"type": "function"
|
|
8920
|
+
},
|
|
8921
|
+
{
|
|
8922
|
+
"inputs": [
|
|
8923
|
+
{
|
|
8924
|
+
"internalType": "address",
|
|
8925
|
+
"name": "stable",
|
|
8926
|
+
"type": "address"
|
|
8927
|
+
},
|
|
8928
|
+
{
|
|
8929
|
+
"internalType": "uint64",
|
|
8930
|
+
"name": "maxStableOut",
|
|
8931
|
+
"type": "uint64"
|
|
8932
|
+
},
|
|
8933
|
+
{
|
|
8934
|
+
"internalType": "externalEuint64",
|
|
8935
|
+
"name": "encryptedAmount",
|
|
8936
|
+
"type": "bytes32"
|
|
8937
|
+
},
|
|
8938
|
+
{
|
|
8939
|
+
"internalType": "bytes",
|
|
8940
|
+
"name": "inputProof",
|
|
8941
|
+
"type": "bytes"
|
|
8942
|
+
}
|
|
8943
|
+
],
|
|
8944
|
+
"name": "requestRedeem",
|
|
8945
|
+
"outputs": [
|
|
8946
|
+
{
|
|
8947
|
+
"internalType": "uint256",
|
|
8948
|
+
"name": "redeemId",
|
|
8949
|
+
"type": "uint256"
|
|
8950
|
+
}
|
|
8951
|
+
],
|
|
8952
|
+
"stateMutability": "nonpayable",
|
|
8953
|
+
"type": "function"
|
|
8954
|
+
},
|
|
8955
|
+
{
|
|
8956
|
+
"inputs": [
|
|
8957
|
+
{
|
|
8958
|
+
"internalType": "address",
|
|
8959
|
+
"name": "newAuthority",
|
|
8960
|
+
"type": "address"
|
|
8961
|
+
}
|
|
8962
|
+
],
|
|
8963
|
+
"name": "setAuthority",
|
|
8964
|
+
"outputs": [],
|
|
8965
|
+
"stateMutability": "nonpayable",
|
|
8966
|
+
"type": "function"
|
|
8967
|
+
},
|
|
8968
|
+
{
|
|
8969
|
+
"inputs": [
|
|
8970
|
+
{
|
|
8971
|
+
"internalType": "uint16",
|
|
8972
|
+
"name": "bps",
|
|
8973
|
+
"type": "uint16"
|
|
8974
|
+
}
|
|
8975
|
+
],
|
|
8976
|
+
"name": "setDepositFeeBps",
|
|
8977
|
+
"outputs": [],
|
|
8978
|
+
"stateMutability": "nonpayable",
|
|
8979
|
+
"type": "function"
|
|
8980
|
+
},
|
|
8981
|
+
{
|
|
8982
|
+
"inputs": [
|
|
8983
|
+
{
|
|
8984
|
+
"internalType": "address",
|
|
8985
|
+
"name": "newSink",
|
|
8986
|
+
"type": "address"
|
|
8987
|
+
}
|
|
8988
|
+
],
|
|
8989
|
+
"name": "setFeeSink",
|
|
8990
|
+
"outputs": [],
|
|
8991
|
+
"stateMutability": "nonpayable",
|
|
8992
|
+
"type": "function"
|
|
8993
|
+
},
|
|
8994
|
+
{
|
|
8995
|
+
"inputs": [
|
|
8996
|
+
{
|
|
8997
|
+
"internalType": "uint16",
|
|
8998
|
+
"name": "bps",
|
|
8999
|
+
"type": "uint16"
|
|
9000
|
+
}
|
|
9001
|
+
],
|
|
9002
|
+
"name": "setRedeemFeeBps",
|
|
9003
|
+
"outputs": [],
|
|
9004
|
+
"stateMutability": "nonpayable",
|
|
9005
|
+
"type": "function"
|
|
9006
|
+
},
|
|
9007
|
+
{
|
|
9008
|
+
"inputs": [
|
|
9009
|
+
{
|
|
9010
|
+
"internalType": "address",
|
|
9011
|
+
"name": "stable",
|
|
9012
|
+
"type": "address"
|
|
9013
|
+
},
|
|
9014
|
+
{
|
|
9015
|
+
"internalType": "bool",
|
|
9016
|
+
"name": "allowed",
|
|
9017
|
+
"type": "bool"
|
|
9018
|
+
}
|
|
9019
|
+
],
|
|
9020
|
+
"name": "setStableAllowed",
|
|
9021
|
+
"outputs": [],
|
|
9022
|
+
"stateMutability": "nonpayable",
|
|
9023
|
+
"type": "function"
|
|
9024
|
+
},
|
|
9025
|
+
{
|
|
9026
|
+
"inputs": [
|
|
9027
|
+
{
|
|
9028
|
+
"internalType": "address",
|
|
9029
|
+
"name": "stable",
|
|
9030
|
+
"type": "address"
|
|
9031
|
+
}
|
|
9032
|
+
],
|
|
9033
|
+
"name": "stableAllowed",
|
|
9034
|
+
"outputs": [
|
|
9035
|
+
{
|
|
9036
|
+
"internalType": "bool",
|
|
9037
|
+
"name": "",
|
|
9038
|
+
"type": "bool"
|
|
9039
|
+
}
|
|
9040
|
+
],
|
|
9041
|
+
"stateMutability": "view",
|
|
9042
|
+
"type": "function"
|
|
9043
|
+
},
|
|
9044
|
+
{
|
|
9045
|
+
"inputs": [
|
|
9046
|
+
{
|
|
9047
|
+
"internalType": "address",
|
|
9048
|
+
"name": "stable",
|
|
9049
|
+
"type": "address"
|
|
9050
|
+
},
|
|
9051
|
+
{
|
|
9052
|
+
"internalType": "address",
|
|
9053
|
+
"name": "to",
|
|
9054
|
+
"type": "address"
|
|
9055
|
+
},
|
|
9056
|
+
{
|
|
9057
|
+
"internalType": "uint256",
|
|
9058
|
+
"name": "amount",
|
|
9059
|
+
"type": "uint256"
|
|
9060
|
+
}
|
|
9061
|
+
],
|
|
9062
|
+
"name": "sweep",
|
|
9063
|
+
"outputs": [],
|
|
9064
|
+
"stateMutability": "nonpayable",
|
|
9065
|
+
"type": "function"
|
|
9066
|
+
}
|
|
9067
|
+
];
|
|
9068
|
+
var abis = {
|
|
9069
|
+
AroMediaIncMultiSig: AroMediaIncMultiSig_ABI,
|
|
9070
|
+
AroMediaAccessManager: AroMediaAccessManager_ABI,
|
|
9071
|
+
AroMediaRWA: AroMediaRWA_ABI,
|
|
9072
|
+
AroMediaAssetsRegistry: AroMediaAssetsRegistry_ABI,
|
|
9073
|
+
ForcedTransferManager: ForcedTransferManager_ABI,
|
|
9074
|
+
AroSBT: AroSBT_ABI,
|
|
9075
|
+
AroNomination: AroNomination_ABI,
|
|
9076
|
+
cAROUSD: cAROUSD_ABI,
|
|
9077
|
+
AroLiquidityCommitment: AroLiquidityCommitment_ABI
|
|
9078
|
+
};
|
|
9079
|
+
|
|
9080
|
+
// src/generated/addresses.ts
|
|
9081
|
+
var ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
9082
|
+
var SUPPORTED_CHAIN_IDS = [
|
|
9083
|
+
1,
|
|
9084
|
+
// ethereum
|
|
9085
|
+
11155111,
|
|
9086
|
+
// sepolia
|
|
9087
|
+
8453,
|
|
9088
|
+
// base
|
|
9089
|
+
84532,
|
|
9090
|
+
// baseSepolia
|
|
9091
|
+
31337
|
|
9092
|
+
// hardhat
|
|
9093
|
+
];
|
|
9094
|
+
var addresses = {
|
|
9095
|
+
1: {
|
|
9096
|
+
// ethereum
|
|
9097
|
+
AroMediaIncMultiSig: "0x0000000000000000000000000000000000000000",
|
|
9098
|
+
AroMediaAccessManager: "0x0000000000000000000000000000000000000000",
|
|
9099
|
+
AroMediaRWA: "0x0000000000000000000000000000000000000000",
|
|
9100
|
+
AroMediaAssetsRegistry: "0x0000000000000000000000000000000000000000",
|
|
9101
|
+
ForcedTransferManager: "0x0000000000000000000000000000000000000000",
|
|
9102
|
+
AroSBT: "0x0000000000000000000000000000000000000000",
|
|
9103
|
+
AroNomination: "0x0000000000000000000000000000000000000000",
|
|
9104
|
+
cAROUSD: "0x0000000000000000000000000000000000000000",
|
|
9105
|
+
AroLiquidityCommitment: "0x0000000000000000000000000000000000000000"
|
|
9106
|
+
},
|
|
9107
|
+
11155111: {
|
|
9108
|
+
// sepolia
|
|
9109
|
+
AroMediaIncMultiSig: "0x8d2A0721f124464B8937994D5F72cFec180F314B",
|
|
9110
|
+
AroMediaAccessManager: "0x3BA2b821354921dBD9509583d5B319105c70eD03",
|
|
9111
|
+
AroMediaRWA: "0xa5292d74f8baCF0A3e68302F2CA8032bc9F6765b",
|
|
9112
|
+
AroMediaAssetsRegistry: "0x17d9Dc6a0c8D043058193C836ed001235bACE5fe",
|
|
9113
|
+
ForcedTransferManager: "0x92D447b7E585B48CA405DbAaFe0a6C1D0682678c",
|
|
9114
|
+
AroSBT: "0xc1562aD0232271Bb3F5D0E555F43AD645C3A5dAf",
|
|
9115
|
+
AroNomination: "0xF86305E1B89C778a8f92Eb6510138865a97842F8",
|
|
9116
|
+
cAROUSD: "0x0000000000000000000000000000000000000000",
|
|
9117
|
+
AroLiquidityCommitment: "0x0000000000000000000000000000000000000000"
|
|
9118
|
+
},
|
|
9119
|
+
8453: {
|
|
9120
|
+
// base
|
|
9121
|
+
AroMediaIncMultiSig: "0x0000000000000000000000000000000000000000",
|
|
9122
|
+
AroMediaAccessManager: "0x0000000000000000000000000000000000000000",
|
|
9123
|
+
AroMediaRWA: "0x0000000000000000000000000000000000000000",
|
|
9124
|
+
AroMediaAssetsRegistry: "0x0000000000000000000000000000000000000000",
|
|
9125
|
+
ForcedTransferManager: "0x0000000000000000000000000000000000000000",
|
|
9126
|
+
AroSBT: "0x0000000000000000000000000000000000000000",
|
|
9127
|
+
AroNomination: "0x0000000000000000000000000000000000000000",
|
|
9128
|
+
cAROUSD: "0x0000000000000000000000000000000000000000",
|
|
9129
|
+
AroLiquidityCommitment: "0x0000000000000000000000000000000000000000"
|
|
9130
|
+
},
|
|
9131
|
+
84532: {
|
|
9132
|
+
// baseSepolia
|
|
9133
|
+
AroMediaIncMultiSig: "0x0000000000000000000000000000000000000000",
|
|
9134
|
+
AroMediaAccessManager: "0x0000000000000000000000000000000000000000",
|
|
9135
|
+
AroMediaRWA: "0x0000000000000000000000000000000000000000",
|
|
9136
|
+
AroMediaAssetsRegistry: "0x0000000000000000000000000000000000000000",
|
|
9137
|
+
ForcedTransferManager: "0x0000000000000000000000000000000000000000",
|
|
9138
|
+
AroSBT: "0x0000000000000000000000000000000000000000",
|
|
9139
|
+
AroNomination: "0x0000000000000000000000000000000000000000",
|
|
9140
|
+
cAROUSD: "0x0000000000000000000000000000000000000000",
|
|
9141
|
+
AroLiquidityCommitment: "0x0000000000000000000000000000000000000000"
|
|
9142
|
+
},
|
|
9143
|
+
31337: {
|
|
9144
|
+
// hardhat
|
|
9145
|
+
AroMediaIncMultiSig: "0x0000000000000000000000000000000000000000",
|
|
9146
|
+
AroMediaAccessManager: "0x0000000000000000000000000000000000000000",
|
|
9147
|
+
AroMediaRWA: "0x0000000000000000000000000000000000000000",
|
|
9148
|
+
AroMediaAssetsRegistry: "0x0000000000000000000000000000000000000000",
|
|
9149
|
+
ForcedTransferManager: "0x0000000000000000000000000000000000000000",
|
|
9150
|
+
AroSBT: "0x0000000000000000000000000000000000000000",
|
|
9151
|
+
AroNomination: "0x0000000000000000000000000000000000000000",
|
|
9152
|
+
cAROUSD: "0x0000000000000000000000000000000000000000",
|
|
9153
|
+
AroLiquidityCommitment: "0x0000000000000000000000000000000000000000"
|
|
9154
|
+
}
|
|
9155
|
+
};
|
|
9156
|
+
var chainLabels = {
|
|
9157
|
+
1: "ethereum",
|
|
9158
|
+
11155111: "sepolia",
|
|
9159
|
+
8453: "base",
|
|
9160
|
+
84532: "baseSepolia",
|
|
9161
|
+
31337: "hardhat"
|
|
9162
|
+
};
|
|
9163
|
+
function getAddress(chainId, contract) {
|
|
9164
|
+
const row = addresses[chainId];
|
|
9165
|
+
if (!row) throw new Error(`Unsupported chainId ${chainId}`);
|
|
9166
|
+
const addr = row[contract];
|
|
9167
|
+
if (!addr || addr === ZERO_ADDRESS) {
|
|
9168
|
+
throw new Error(`${contract} not deployed on chain ${chainId}`);
|
|
9169
|
+
}
|
|
9170
|
+
return addr;
|
|
9171
|
+
}
|
|
9172
|
+
|
|
9173
|
+
// src/generated/types.ts
|
|
9174
|
+
var AroTier = /* @__PURE__ */ ((AroTier2) => {
|
|
9175
|
+
AroTier2[AroTier2["STANDARD"] = 0] = "STANDARD";
|
|
9176
|
+
AroTier2[AroTier2["VERIFIED"] = 1] = "VERIFIED";
|
|
9177
|
+
AroTier2[AroTier2["TRUSTED"] = 2] = "TRUSTED";
|
|
9178
|
+
AroTier2[AroTier2["FOUNDING"] = 3] = "FOUNDING";
|
|
9179
|
+
return AroTier2;
|
|
9180
|
+
})(AroTier || {});
|
|
9181
|
+
var AroTierLabels = {
|
|
9182
|
+
[0 /* STANDARD */]: "Standard",
|
|
9183
|
+
[1 /* VERIFIED */]: "Verified",
|
|
9184
|
+
[2 /* TRUSTED */]: "Trusted",
|
|
9185
|
+
[3 /* FOUNDING */]: "Founding"
|
|
9186
|
+
};
|
|
9187
|
+
var NominationStatus = /* @__PURE__ */ ((NominationStatus2) => {
|
|
9188
|
+
NominationStatus2[NominationStatus2["NONE"] = 0] = "NONE";
|
|
9189
|
+
NominationStatus2[NominationStatus2["PENDING"] = 1] = "PENDING";
|
|
9190
|
+
NominationStatus2[NominationStatus2["APPROVED"] = 2] = "APPROVED";
|
|
9191
|
+
NominationStatus2[NominationStatus2["CLEARED"] = 3] = "CLEARED";
|
|
9192
|
+
return NominationStatus2;
|
|
9193
|
+
})(NominationStatus || {});
|
|
9194
|
+
var NominationStatusLabels = {
|
|
9195
|
+
[0 /* NONE */]: "Not nominated",
|
|
9196
|
+
[1 /* PENDING */]: "Pending vouches",
|
|
9197
|
+
[2 /* APPROVED */]: "Approved \u2014 awaiting admin",
|
|
9198
|
+
[3 /* CLEARED */]: "Cleared by admin"
|
|
9199
|
+
};
|
|
9200
|
+
var ForcedTransferStatus = /* @__PURE__ */ ((ForcedTransferStatus2) => {
|
|
9201
|
+
ForcedTransferStatus2[ForcedTransferStatus2["PENDING"] = 0] = "PENDING";
|
|
9202
|
+
ForcedTransferStatus2[ForcedTransferStatus2["APPROVED"] = 1] = "APPROVED";
|
|
9203
|
+
ForcedTransferStatus2[ForcedTransferStatus2["EXECUTED"] = 2] = "EXECUTED";
|
|
9204
|
+
ForcedTransferStatus2[ForcedTransferStatus2["CANCELLED"] = 3] = "CANCELLED";
|
|
9205
|
+
return ForcedTransferStatus2;
|
|
9206
|
+
})(ForcedTransferStatus || {});
|
|
9207
|
+
var ForcedTransferStatusLabels = {
|
|
9208
|
+
[0 /* PENDING */]: "Pending",
|
|
9209
|
+
[1 /* APPROVED */]: "Approved",
|
|
9210
|
+
[2 /* EXECUTED */]: "Executed",
|
|
9211
|
+
[3 /* CANCELLED */]: "Cancelled"
|
|
9212
|
+
};
|
|
9213
|
+
|
|
9214
|
+
// src/chains.ts
|
|
9215
|
+
var import_chains = require("viem/chains");
|
|
9216
|
+
var aroChains = {
|
|
9217
|
+
mainnet: import_chains.mainnet,
|
|
9218
|
+
sepolia: import_chains.sepolia,
|
|
9219
|
+
base: import_chains.base,
|
|
9220
|
+
baseSepolia: import_chains.baseSepolia,
|
|
9221
|
+
hardhat: import_chains.hardhat
|
|
9222
|
+
};
|
|
9223
|
+
var chainById = {
|
|
9224
|
+
1: import_chains.mainnet,
|
|
9225
|
+
11155111: import_chains.sepolia,
|
|
9226
|
+
8453: import_chains.base,
|
|
9227
|
+
84532: import_chains.baseSepolia,
|
|
9228
|
+
31337: import_chains.hardhat
|
|
9229
|
+
};
|
|
9230
|
+
var DEFAULT_CHAIN = import_chains.sepolia;
|
|
9231
|
+
function getChain(chainId) {
|
|
9232
|
+
const chain = chainById[chainId];
|
|
9233
|
+
if (!chain) throw new Error(`Unsupported chainId ${chainId}`);
|
|
9234
|
+
return chain;
|
|
9235
|
+
}
|
|
9236
|
+
|
|
9237
|
+
// src/clients/createAroSdk.ts
|
|
9238
|
+
var import_viem8 = require("viem");
|
|
9239
|
+
|
|
9240
|
+
// src/clients/accessManager.ts
|
|
9241
|
+
var import_viem = require("viem");
|
|
9242
|
+
function createAccessManagerClient(opts) {
|
|
9243
|
+
return (0, import_viem.getContract)({
|
|
9244
|
+
address: opts.address,
|
|
9245
|
+
abi: AroMediaAccessManager_ABI,
|
|
9246
|
+
client: opts.walletClient ? { public: opts.publicClient, wallet: opts.walletClient } : { public: opts.publicClient }
|
|
9247
|
+
});
|
|
9248
|
+
}
|
|
9249
|
+
var AroRoles = {
|
|
9250
|
+
ORG_ADMIN: 0n,
|
|
9251
|
+
PROTOCOL_ADMIN: 1n,
|
|
9252
|
+
TREASURY_CONTROLLER: 2n,
|
|
9253
|
+
MARKET_MAKER: 3n,
|
|
9254
|
+
MINTER: 4n
|
|
9255
|
+
};
|
|
9256
|
+
|
|
9257
|
+
// src/clients/assetsRegistry.ts
|
|
9258
|
+
var import_viem2 = require("viem");
|
|
9259
|
+
function createAssetsRegistryClient(opts) {
|
|
9260
|
+
return (0, import_viem2.getContract)({
|
|
9261
|
+
address: opts.address,
|
|
9262
|
+
abi: AroMediaAssetsRegistry_ABI,
|
|
9263
|
+
client: opts.walletClient ? { public: opts.publicClient, wallet: opts.walletClient } : { public: opts.publicClient }
|
|
9264
|
+
});
|
|
9265
|
+
}
|
|
9266
|
+
|
|
9267
|
+
// src/clients/forcedTransfer.ts
|
|
9268
|
+
var import_viem3 = require("viem");
|
|
9269
|
+
function createForcedTransferClient(opts) {
|
|
9270
|
+
return (0, import_viem3.getContract)({
|
|
9271
|
+
address: opts.address,
|
|
9272
|
+
abi: ForcedTransferManager_ABI,
|
|
9273
|
+
client: opts.walletClient ? { public: opts.publicClient, wallet: opts.walletClient } : { public: opts.publicClient }
|
|
9274
|
+
});
|
|
7465
9275
|
}
|
|
7466
9276
|
|
|
7467
9277
|
// src/clients/multisig.ts
|
|
@@ -7729,7 +9539,7 @@ async function mintSBTForApproved(sdk, opts) {
|
|
|
7729
9539
|
throw new Error("mintSBTForApproved requires a walletClient on the SDK");
|
|
7730
9540
|
}
|
|
7731
9541
|
const wallet = sdk.walletClient;
|
|
7732
|
-
const tier = opts.tier
|
|
9542
|
+
const tier = opts.tier === void 0 ? 0 : typeof opts.tier === "bigint" ? Number(opts.tier) : opts.tier;
|
|
7733
9543
|
try {
|
|
7734
9544
|
return await wallet.writeContract({
|
|
7735
9545
|
account: pickAccount(wallet, opts.account),
|
|
@@ -7821,14 +9631,60 @@ var tierRequirements = {
|
|
|
7821
9631
|
[3 /* FOUNDING */]: "Founding member; highest verification and vetting."
|
|
7822
9632
|
};
|
|
7823
9633
|
function tierLabel(tier) {
|
|
7824
|
-
|
|
9634
|
+
const asNumber = typeof tier === "bigint" ? Number(tier) : tier;
|
|
9635
|
+
if (Number.isInteger(asNumber) && asNumber in AroTierLabels) {
|
|
9636
|
+
return AroTierLabels[asNumber];
|
|
9637
|
+
}
|
|
9638
|
+
return `Tier ${asNumber}`;
|
|
7825
9639
|
}
|
|
7826
9640
|
function tierAtLeast(held, required) {
|
|
7827
|
-
|
|
9641
|
+
const heldNum = typeof held === "bigint" ? held : BigInt(held);
|
|
9642
|
+
const requiredNum = typeof required === "bigint" ? required : BigInt(required);
|
|
9643
|
+
return heldNum >= requiredNum;
|
|
9644
|
+
}
|
|
9645
|
+
|
|
9646
|
+
// src/utils/mintApproval.ts
|
|
9647
|
+
function mintApprovalDomain(chainId, sbtAddress) {
|
|
9648
|
+
return {
|
|
9649
|
+
name: "AroSBT",
|
|
9650
|
+
version: "1",
|
|
9651
|
+
chainId: typeof chainId === "bigint" ? Number(chainId) : chainId,
|
|
9652
|
+
verifyingContract: sbtAddress
|
|
9653
|
+
};
|
|
9654
|
+
}
|
|
9655
|
+
var MINT_APPROVAL_TYPES = {
|
|
9656
|
+
MintApproval: [
|
|
9657
|
+
{ name: "candidate", type: "address" },
|
|
9658
|
+
{ name: "tier", type: "uint256" },
|
|
9659
|
+
{ name: "kycHash", type: "bytes32" },
|
|
9660
|
+
{ name: "nominationId", type: "bytes32" },
|
|
9661
|
+
{ name: "metadataURI", type: "string" },
|
|
9662
|
+
{ name: "deadline", type: "uint64" },
|
|
9663
|
+
{ name: "nonce", type: "bytes32" }
|
|
9664
|
+
]
|
|
9665
|
+
};
|
|
9666
|
+
async function signMintApproval(account, sbtAddress, chainId, payload) {
|
|
9667
|
+
const domain = mintApprovalDomain(chainId, sbtAddress);
|
|
9668
|
+
const signature = await account.signTypedData({
|
|
9669
|
+
domain,
|
|
9670
|
+
types: MINT_APPROVAL_TYPES,
|
|
9671
|
+
primaryType: "MintApproval",
|
|
9672
|
+
message: payload
|
|
9673
|
+
});
|
|
9674
|
+
return { payload, signature, domain };
|
|
9675
|
+
}
|
|
9676
|
+
function mintApprovalTypedData(sbtAddress, chainId, payload) {
|
|
9677
|
+
return {
|
|
9678
|
+
domain: mintApprovalDomain(chainId, sbtAddress),
|
|
9679
|
+
types: MINT_APPROVAL_TYPES,
|
|
9680
|
+
primaryType: "MintApproval",
|
|
9681
|
+
message: payload
|
|
9682
|
+
};
|
|
7828
9683
|
}
|
|
7829
9684
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7830
9685
|
0 && (module.exports = {
|
|
7831
9686
|
AroContractError,
|
|
9687
|
+
AroLiquidityCommitment_ABI,
|
|
7832
9688
|
AroMediaAccessManager_ABI,
|
|
7833
9689
|
AroMediaAssetsRegistry_ABI,
|
|
7834
9690
|
AroMediaIncMultiSig_ABI,
|
|
@@ -7842,6 +9698,7 @@ function tierAtLeast(held, required) {
|
|
|
7842
9698
|
ForcedTransferManager_ABI,
|
|
7843
9699
|
ForcedTransferStatus,
|
|
7844
9700
|
ForcedTransferStatusLabels,
|
|
9701
|
+
MINT_APPROVAL_TYPES,
|
|
7845
9702
|
NominationStatus,
|
|
7846
9703
|
NominationStatusLabels,
|
|
7847
9704
|
SUPPORTED_CHAIN_IDS,
|
|
@@ -7852,6 +9709,7 @@ function tierAtLeast(held, required) {
|
|
|
7852
9709
|
aroChains,
|
|
7853
9710
|
base,
|
|
7854
9711
|
baseSepolia,
|
|
9712
|
+
cAROUSD_ABI,
|
|
7855
9713
|
chainById,
|
|
7856
9714
|
chainLabels,
|
|
7857
9715
|
checkMembershipStatus,
|
|
@@ -7873,9 +9731,12 @@ function tierAtLeast(held, required) {
|
|
|
7873
9731
|
hardhat,
|
|
7874
9732
|
hashKycResult,
|
|
7875
9733
|
mainnet,
|
|
9734
|
+
mintApprovalDomain,
|
|
9735
|
+
mintApprovalTypedData,
|
|
7876
9736
|
mintSBTForApproved,
|
|
7877
9737
|
nominateCandidate,
|
|
7878
9738
|
sepolia,
|
|
9739
|
+
signMintApproval,
|
|
7879
9740
|
tierAtLeast,
|
|
7880
9741
|
tierLabel,
|
|
7881
9742
|
tierRequirements,
|