@aromedia/contracts-sdk 1.0.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/{chunk-EGUPIYHR.js → chunk-BVDE3GSN.js} +115 -362
- package/dist/chunk-BVDE3GSN.js.map +1 -0
- package/dist/{chunk-WUHQC3GY.js → chunk-RL7KGQGI.js} +10 -10
- package/dist/{chunk-WUHQC3GY.js.map → chunk-RL7KGQGI.js.map} +1 -1
- package/dist/{chunk-BENMJNYO.js → chunk-XYOUNFJU.js} +3 -3
- package/dist/{chunk-BENMJNYO.js.map → chunk-XYOUNFJU.js.map} +1 -1
- package/dist/generated/abis.cjs +114 -361
- package/dist/generated/abis.cjs.map +1 -1
- package/dist/generated/abis.d.cts +190 -568
- package/dist/generated/abis.d.ts +190 -568
- package/dist/generated/abis.js +1 -1
- package/dist/generated/addresses.cjs +9 -9
- package/dist/generated/addresses.cjs.map +1 -1
- package/dist/generated/addresses.js +1 -1
- package/dist/hooks/index.cjs +25 -290
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +124 -371
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/{onboarding-DDKwXy8O.d.cts → onboarding-CC_y8QgN.d.cts} +8 -8
- package/dist/{onboarding-BD_g7Len.d.ts → onboarding-KnUSrGNx.d.ts} +8 -8
- package/dist/workflows/index.cjs +17 -282
- 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 +2 -2
- package/package.json +7 -7
- package/dist/chunk-EGUPIYHR.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AroContractName, AroLiquidityCommitment_ABI, AroMediaAccessManager_ABI, AroMediaAssetsRegistry_ABI, AroMediaIncMultiSig_ABI, AroMediaRWA_ABI, AroNomination_ABI, AroSBT_ABI, ForcedTransferManager_ABI, abis, cAROUSD_ABI } from './generated/abis.cjs';
|
|
2
2
|
export { AroChainId, SUPPORTED_CHAIN_IDS, ZERO_ADDRESS, addresses, chainLabels, getAddress } from './generated/addresses.cjs';
|
|
3
|
-
import { k as AroTier } from './onboarding-
|
|
4
|
-
export { A as AccessManagerClientOpts, a as AroAccessManagerContract, b as AroAddressOverrides, c as AroAssetsRegistryContract, d as AroMultiSigContract, e as AroNominationContract, f as AroRWAContract, g as AroRoleName, h as AroRoles, i as AroSBTContract, j as AroSdk, l as AroTierLabels, m as AssetsRegistryClientOpts, C as CreateAroSdkOpts, F as ForcedTransferClientOpts, n as ForcedTransferManagerContract, o as ForcedTransferStatus, p as ForcedTransferStatusLabels, M as MembershipStatus, q as MintSBTOpts, r as MultiSigClientOpts, N as NominationClientOpts, s as NominationSnapshot, t as NominationStatus, u as NominationStatusLabels, O as OnboardingState, v as OnboardingStep, R as RwaClientOpts, S as SbtClientOpts, w as addressesFor, x as checkMembershipStatus, y as clearNomination, z as createAccessManagerClient, B as createAroSdk, D as createAssetsRegistryClient, E as createForcedTransferClient, G as createMultiSigClient, H as createNominationClient, I as createRwaClient, J as createSbtClient, K as describeOnboardingState, L as getNominationSnapshot, P as mintSBTForApproved, Q as nominateCandidate, T as vouchForCandidate } from './onboarding-
|
|
3
|
+
import { k as AroTier } from './onboarding-CC_y8QgN.cjs';
|
|
4
|
+
export { A as AccessManagerClientOpts, a as AroAccessManagerContract, b as AroAddressOverrides, c as AroAssetsRegistryContract, d as AroMultiSigContract, e as AroNominationContract, f as AroRWAContract, g as AroRoleName, h as AroRoles, i as AroSBTContract, j as AroSdk, l as AroTierLabels, m as AssetsRegistryClientOpts, C as CreateAroSdkOpts, F as ForcedTransferClientOpts, n as ForcedTransferManagerContract, o as ForcedTransferStatus, p as ForcedTransferStatusLabels, M as MembershipStatus, q as MintSBTOpts, r as MultiSigClientOpts, N as NominationClientOpts, s as NominationSnapshot, t as NominationStatus, u as NominationStatusLabels, O as OnboardingState, v as OnboardingStep, R as RwaClientOpts, S as SbtClientOpts, w as addressesFor, x as checkMembershipStatus, y as clearNomination, z as createAccessManagerClient, B as createAroSdk, D as createAssetsRegistryClient, E as createForcedTransferClient, G as createMultiSigClient, H as createNominationClient, I as createRwaClient, J as createSbtClient, K as describeOnboardingState, L as getNominationSnapshot, P as mintSBTForApproved, Q as nominateCandidate, T as vouchForCandidate } from './onboarding-CC_y8QgN.cjs';
|
|
5
5
|
export { AroChainLabel, DEFAULT_CHAIN, aroChains, chainById, getChain } from './chains.cjs';
|
|
6
6
|
export { KycPayload, NormalizedKycResult, computeKycHash, hashKycResult } from './workflows/index.cjs';
|
|
7
7
|
import { Hex, TypedDataDomain, Account, LocalAccount } from 'viem';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AroContractName, AroLiquidityCommitment_ABI, AroMediaAccessManager_ABI, AroMediaAssetsRegistry_ABI, AroMediaIncMultiSig_ABI, AroMediaRWA_ABI, AroNomination_ABI, AroSBT_ABI, ForcedTransferManager_ABI, abis, cAROUSD_ABI } from './generated/abis.js';
|
|
2
2
|
export { AroChainId, SUPPORTED_CHAIN_IDS, ZERO_ADDRESS, addresses, chainLabels, getAddress } from './generated/addresses.js';
|
|
3
|
-
import { k as AroTier } from './onboarding-
|
|
4
|
-
export { A as AccessManagerClientOpts, a as AroAccessManagerContract, b as AroAddressOverrides, c as AroAssetsRegistryContract, d as AroMultiSigContract, e as AroNominationContract, f as AroRWAContract, g as AroRoleName, h as AroRoles, i as AroSBTContract, j as AroSdk, l as AroTierLabels, m as AssetsRegistryClientOpts, C as CreateAroSdkOpts, F as ForcedTransferClientOpts, n as ForcedTransferManagerContract, o as ForcedTransferStatus, p as ForcedTransferStatusLabels, M as MembershipStatus, q as MintSBTOpts, r as MultiSigClientOpts, N as NominationClientOpts, s as NominationSnapshot, t as NominationStatus, u as NominationStatusLabels, O as OnboardingState, v as OnboardingStep, R as RwaClientOpts, S as SbtClientOpts, w as addressesFor, x as checkMembershipStatus, y as clearNomination, z as createAccessManagerClient, B as createAroSdk, D as createAssetsRegistryClient, E as createForcedTransferClient, G as createMultiSigClient, H as createNominationClient, I as createRwaClient, J as createSbtClient, K as describeOnboardingState, L as getNominationSnapshot, P as mintSBTForApproved, Q as nominateCandidate, T as vouchForCandidate } from './onboarding-
|
|
3
|
+
import { k as AroTier } from './onboarding-KnUSrGNx.js';
|
|
4
|
+
export { A as AccessManagerClientOpts, a as AroAccessManagerContract, b as AroAddressOverrides, c as AroAssetsRegistryContract, d as AroMultiSigContract, e as AroNominationContract, f as AroRWAContract, g as AroRoleName, h as AroRoles, i as AroSBTContract, j as AroSdk, l as AroTierLabels, m as AssetsRegistryClientOpts, C as CreateAroSdkOpts, F as ForcedTransferClientOpts, n as ForcedTransferManagerContract, o as ForcedTransferStatus, p as ForcedTransferStatusLabels, M as MembershipStatus, q as MintSBTOpts, r as MultiSigClientOpts, N as NominationClientOpts, s as NominationSnapshot, t as NominationStatus, u as NominationStatusLabels, O as OnboardingState, v as OnboardingStep, R as RwaClientOpts, S as SbtClientOpts, w as addressesFor, x as checkMembershipStatus, y as clearNomination, z as createAccessManagerClient, B as createAroSdk, D as createAssetsRegistryClient, E as createForcedTransferClient, G as createMultiSigClient, H as createNominationClient, I as createRwaClient, J as createSbtClient, K as describeOnboardingState, L as getNominationSnapshot, P as mintSBTForApproved, Q as nominateCandidate, T as vouchForCandidate } from './onboarding-KnUSrGNx.js';
|
|
5
5
|
export { AroChainLabel, DEFAULT_CHAIN, aroChains, chainById, getChain } from './chains.js';
|
|
6
6
|
export { KycPayload, NormalizedKycResult, computeKycHash, hashKycResult } from './workflows/index.js';
|
|
7
7
|
import { Hex, TypedDataDomain, Account, LocalAccount } from 'viem';
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
addresses,
|
|
16
16
|
chainLabels,
|
|
17
17
|
getAddress
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RL7KGQGI.js";
|
|
19
19
|
import {
|
|
20
20
|
AroContractError,
|
|
21
21
|
checkMembershipStatus,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
mintSBTForApproved,
|
|
29
29
|
nominateCandidate,
|
|
30
30
|
vouchForCandidate
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-XYOUNFJU.js";
|
|
32
32
|
import {
|
|
33
33
|
AroTier,
|
|
34
34
|
AroTierLabels,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
ForcedTransferManager_ABI,
|
|
49
49
|
abis,
|
|
50
50
|
cAROUSD_ABI
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-BVDE3GSN.js";
|
|
52
52
|
|
|
53
53
|
// src/clients/createAroSdk.ts
|
|
54
54
|
import {
|
|
@@ -242,11 +242,11 @@ declare function addressesFor(chainId: AroChainId): Record<keyof AroAddressOverr
|
|
|
242
242
|
interface MembershipStatus {
|
|
243
243
|
hasSBT: boolean;
|
|
244
244
|
/**
|
|
245
|
-
*
|
|
246
|
-
* with `tierLabel`, `tierAtLeast`, or the AroTier enum values for
|
|
247
|
-
* conventional defaults; semantics live off-chain in the admin backend.
|
|
245
|
+
* Tier id (AroSBT.Tier enum, uint8) as returned by AroSBT.getMemberData.
|
|
246
|
+
* Compare with `tierLabel`, `tierAtLeast`, or the AroTier enum values for
|
|
247
|
+
* the conventional defaults; semantics live off-chain in the admin backend.
|
|
248
248
|
*/
|
|
249
|
-
tier?:
|
|
249
|
+
tier?: number;
|
|
250
250
|
tokenId?: bigint;
|
|
251
251
|
memberId?: bigint;
|
|
252
252
|
issuanceDate?: bigint;
|
|
@@ -318,11 +318,11 @@ interface MintSBTOpts {
|
|
|
318
318
|
/** Off-chain profile metadata URI (ipfs://... or https://...). */
|
|
319
319
|
metadataURI: string;
|
|
320
320
|
/**
|
|
321
|
-
* Initial tier id (
|
|
322
|
-
* AroTier enum values for the conventional defaults, or any
|
|
323
|
-
* defined off-chain by the admin backend.
|
|
321
|
+
* Initial tier id (AroSBT.Tier enum, uint8; defaults to 0 / "Standard").
|
|
322
|
+
* Accepts AroTier enum values for the conventional defaults, or any tier
|
|
323
|
+
* id defined off-chain by the admin backend.
|
|
324
324
|
*/
|
|
325
|
-
tier?:
|
|
325
|
+
tier?: number | AroTier;
|
|
326
326
|
account?: Account | `0x${string}`;
|
|
327
327
|
}
|
|
328
328
|
/**
|
|
@@ -242,11 +242,11 @@ declare function addressesFor(chainId: AroChainId): Record<keyof AroAddressOverr
|
|
|
242
242
|
interface MembershipStatus {
|
|
243
243
|
hasSBT: boolean;
|
|
244
244
|
/**
|
|
245
|
-
*
|
|
246
|
-
* with `tierLabel`, `tierAtLeast`, or the AroTier enum values for
|
|
247
|
-
* conventional defaults; semantics live off-chain in the admin backend.
|
|
245
|
+
* Tier id (AroSBT.Tier enum, uint8) as returned by AroSBT.getMemberData.
|
|
246
|
+
* Compare with `tierLabel`, `tierAtLeast`, or the AroTier enum values for
|
|
247
|
+
* the conventional defaults; semantics live off-chain in the admin backend.
|
|
248
248
|
*/
|
|
249
|
-
tier?:
|
|
249
|
+
tier?: number;
|
|
250
250
|
tokenId?: bigint;
|
|
251
251
|
memberId?: bigint;
|
|
252
252
|
issuanceDate?: bigint;
|
|
@@ -318,11 +318,11 @@ interface MintSBTOpts {
|
|
|
318
318
|
/** Off-chain profile metadata URI (ipfs://... or https://...). */
|
|
319
319
|
metadataURI: string;
|
|
320
320
|
/**
|
|
321
|
-
* Initial tier id (
|
|
322
|
-
* AroTier enum values for the conventional defaults, or any
|
|
323
|
-
* defined off-chain by the admin backend.
|
|
321
|
+
* Initial tier id (AroSBT.Tier enum, uint8; defaults to 0 / "Standard").
|
|
322
|
+
* Accepts AroTier enum values for the conventional defaults, or any tier
|
|
323
|
+
* id defined off-chain by the admin backend.
|
|
324
324
|
*/
|
|
325
|
-
tier?:
|
|
325
|
+
tier?: number | AroTier;
|
|
326
326
|
account?: Account | `0x${string}`;
|
|
327
327
|
}
|
|
328
328
|
/**
|
package/dist/workflows/index.cjs
CHANGED
|
@@ -94,82 +94,6 @@ var AroSBT_ABI = [
|
|
|
94
94
|
"name": "AlreadyHasSBT",
|
|
95
95
|
"type": "error"
|
|
96
96
|
},
|
|
97
|
-
{
|
|
98
|
-
"inputs": [
|
|
99
|
-
{
|
|
100
|
-
"internalType": "bytes32",
|
|
101
|
-
"name": "approvalDigest",
|
|
102
|
-
"type": "bytes32"
|
|
103
|
-
}
|
|
104
|
-
],
|
|
105
|
-
"name": "ApprovalAlreadyUsed",
|
|
106
|
-
"type": "error"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"inputs": [
|
|
110
|
-
{
|
|
111
|
-
"internalType": "address",
|
|
112
|
-
"name": "expected",
|
|
113
|
-
"type": "address"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"internalType": "address",
|
|
117
|
-
"name": "caller",
|
|
118
|
-
"type": "address"
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
"name": "ApprovalCandidateMismatch",
|
|
122
|
-
"type": "error"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"inputs": [
|
|
126
|
-
{
|
|
127
|
-
"internalType": "uint64",
|
|
128
|
-
"name": "deadline",
|
|
129
|
-
"type": "uint64"
|
|
130
|
-
}
|
|
131
|
-
],
|
|
132
|
-
"name": "ApprovalExpired",
|
|
133
|
-
"type": "error"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"inputs": [
|
|
137
|
-
{
|
|
138
|
-
"internalType": "address",
|
|
139
|
-
"name": "signer",
|
|
140
|
-
"type": "address"
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
"name": "ApprovalSignerNotApprover",
|
|
144
|
-
"type": "error"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"inputs": [],
|
|
148
|
-
"name": "ECDSAInvalidSignature",
|
|
149
|
-
"type": "error"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"inputs": [
|
|
153
|
-
{
|
|
154
|
-
"internalType": "uint256",
|
|
155
|
-
"name": "length",
|
|
156
|
-
"type": "uint256"
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
"name": "ECDSAInvalidSignatureLength",
|
|
160
|
-
"type": "error"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"inputs": [
|
|
164
|
-
{
|
|
165
|
-
"internalType": "bytes32",
|
|
166
|
-
"name": "s",
|
|
167
|
-
"type": "bytes32"
|
|
168
|
-
}
|
|
169
|
-
],
|
|
170
|
-
"name": "ECDSAInvalidSignatureS",
|
|
171
|
-
"type": "error"
|
|
172
|
-
},
|
|
173
97
|
{
|
|
174
98
|
"inputs": [],
|
|
175
99
|
"name": "ERC721EnumerableForbiddenBatchMint",
|
|
@@ -304,11 +228,6 @@ var AroSBT_ABI = [
|
|
|
304
228
|
"name": "ExpectedPause",
|
|
305
229
|
"type": "error"
|
|
306
230
|
},
|
|
307
|
-
{
|
|
308
|
-
"inputs": [],
|
|
309
|
-
"name": "InvalidShortString",
|
|
310
|
-
"type": "error"
|
|
311
|
-
},
|
|
312
231
|
{
|
|
313
232
|
"inputs": [
|
|
314
233
|
{
|
|
@@ -325,17 +244,6 @@ var AroSBT_ABI = [
|
|
|
325
244
|
"name": "SoulboundTransferBlocked",
|
|
326
245
|
"type": "error"
|
|
327
246
|
},
|
|
328
|
-
{
|
|
329
|
-
"inputs": [
|
|
330
|
-
{
|
|
331
|
-
"internalType": "string",
|
|
332
|
-
"name": "str",
|
|
333
|
-
"type": "string"
|
|
334
|
-
}
|
|
335
|
-
],
|
|
336
|
-
"name": "StringTooLong",
|
|
337
|
-
"type": "error"
|
|
338
|
-
},
|
|
339
247
|
{
|
|
340
248
|
"anonymous": false,
|
|
341
249
|
"inputs": [
|
|
@@ -418,12 +326,6 @@ var AroSBT_ABI = [
|
|
|
418
326
|
"name": "BatchMetadataUpdate",
|
|
419
327
|
"type": "event"
|
|
420
328
|
},
|
|
421
|
-
{
|
|
422
|
-
"anonymous": false,
|
|
423
|
-
"inputs": [],
|
|
424
|
-
"name": "EIP712DomainChanged",
|
|
425
|
-
"type": "event"
|
|
426
|
-
},
|
|
427
329
|
{
|
|
428
330
|
"anonymous": false,
|
|
429
331
|
"inputs": [
|
|
@@ -460,9 +362,9 @@ var AroSBT_ABI = [
|
|
|
460
362
|
},
|
|
461
363
|
{
|
|
462
364
|
"indexed": false,
|
|
463
|
-
"internalType": "
|
|
365
|
+
"internalType": "enum AroSBT.Tier",
|
|
464
366
|
"name": "tier",
|
|
465
|
-
"type": "
|
|
367
|
+
"type": "uint8"
|
|
466
368
|
},
|
|
467
369
|
{
|
|
468
370
|
"indexed": false,
|
|
@@ -512,37 +414,6 @@ var AroSBT_ABI = [
|
|
|
512
414
|
"name": "MetadataUpdate",
|
|
513
415
|
"type": "event"
|
|
514
416
|
},
|
|
515
|
-
{
|
|
516
|
-
"anonymous": false,
|
|
517
|
-
"inputs": [
|
|
518
|
-
{
|
|
519
|
-
"indexed": true,
|
|
520
|
-
"internalType": "address",
|
|
521
|
-
"name": "candidate",
|
|
522
|
-
"type": "address"
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
"indexed": true,
|
|
526
|
-
"internalType": "bytes32",
|
|
527
|
-
"name": "approvalDigest",
|
|
528
|
-
"type": "bytes32"
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
"indexed": true,
|
|
532
|
-
"internalType": "address",
|
|
533
|
-
"name": "approver",
|
|
534
|
-
"type": "address"
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
"indexed": false,
|
|
538
|
-
"internalType": "bytes32",
|
|
539
|
-
"name": "nominationId",
|
|
540
|
-
"type": "bytes32"
|
|
541
|
-
}
|
|
542
|
-
],
|
|
543
|
-
"name": "MintApprovalConsumed",
|
|
544
|
-
"type": "event"
|
|
545
|
-
},
|
|
546
417
|
{
|
|
547
418
|
"anonymous": false,
|
|
548
419
|
"inputs": [
|
|
@@ -573,15 +444,15 @@ var AroSBT_ABI = [
|
|
|
573
444
|
},
|
|
574
445
|
{
|
|
575
446
|
"indexed": false,
|
|
576
|
-
"internalType": "
|
|
447
|
+
"internalType": "enum AroSBT.Tier",
|
|
577
448
|
"name": "oldTier",
|
|
578
|
-
"type": "
|
|
449
|
+
"type": "uint8"
|
|
579
450
|
},
|
|
580
451
|
{
|
|
581
452
|
"indexed": false,
|
|
582
|
-
"internalType": "
|
|
453
|
+
"internalType": "enum AroSBT.Tier",
|
|
583
454
|
"name": "newTier",
|
|
584
|
-
"type": "
|
|
455
|
+
"type": "uint8"
|
|
585
456
|
}
|
|
586
457
|
],
|
|
587
458
|
"name": "TierUpdated",
|
|
@@ -638,19 +509,6 @@ var AroSBT_ABI = [
|
|
|
638
509
|
"name": "Unpaused",
|
|
639
510
|
"type": "event"
|
|
640
511
|
},
|
|
641
|
-
{
|
|
642
|
-
"inputs": [],
|
|
643
|
-
"name": "APPROVER_ROLE",
|
|
644
|
-
"outputs": [
|
|
645
|
-
{
|
|
646
|
-
"internalType": "uint64",
|
|
647
|
-
"name": "",
|
|
648
|
-
"type": "uint64"
|
|
649
|
-
}
|
|
650
|
-
],
|
|
651
|
-
"stateMutability": "view",
|
|
652
|
-
"type": "function"
|
|
653
|
-
},
|
|
654
512
|
{
|
|
655
513
|
"inputs": [
|
|
656
514
|
{
|
|
@@ -701,49 +559,6 @@ var AroSBT_ABI = [
|
|
|
701
559
|
"stateMutability": "view",
|
|
702
560
|
"type": "function"
|
|
703
561
|
},
|
|
704
|
-
{
|
|
705
|
-
"inputs": [],
|
|
706
|
-
"name": "eip712Domain",
|
|
707
|
-
"outputs": [
|
|
708
|
-
{
|
|
709
|
-
"internalType": "bytes1",
|
|
710
|
-
"name": "fields",
|
|
711
|
-
"type": "bytes1"
|
|
712
|
-
},
|
|
713
|
-
{
|
|
714
|
-
"internalType": "string",
|
|
715
|
-
"name": "name",
|
|
716
|
-
"type": "string"
|
|
717
|
-
},
|
|
718
|
-
{
|
|
719
|
-
"internalType": "string",
|
|
720
|
-
"name": "version",
|
|
721
|
-
"type": "string"
|
|
722
|
-
},
|
|
723
|
-
{
|
|
724
|
-
"internalType": "uint256",
|
|
725
|
-
"name": "chainId",
|
|
726
|
-
"type": "uint256"
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
"internalType": "address",
|
|
730
|
-
"name": "verifyingContract",
|
|
731
|
-
"type": "address"
|
|
732
|
-
},
|
|
733
|
-
{
|
|
734
|
-
"internalType": "bytes32",
|
|
735
|
-
"name": "salt",
|
|
736
|
-
"type": "bytes32"
|
|
737
|
-
},
|
|
738
|
-
{
|
|
739
|
-
"internalType": "uint256[]",
|
|
740
|
-
"name": "extensions",
|
|
741
|
-
"type": "uint256[]"
|
|
742
|
-
}
|
|
743
|
-
],
|
|
744
|
-
"stateMutability": "view",
|
|
745
|
-
"type": "function"
|
|
746
|
-
},
|
|
747
562
|
{
|
|
748
563
|
"inputs": [
|
|
749
564
|
{
|
|
@@ -786,9 +601,9 @@ var AroSBT_ABI = [
|
|
|
786
601
|
"type": "uint256"
|
|
787
602
|
},
|
|
788
603
|
{
|
|
789
|
-
"internalType": "
|
|
604
|
+
"internalType": "enum AroSBT.Tier",
|
|
790
605
|
"name": "tier",
|
|
791
|
-
"type": "
|
|
606
|
+
"type": "uint8"
|
|
792
607
|
},
|
|
793
608
|
{
|
|
794
609
|
"internalType": "bytes32",
|
|
@@ -827,9 +642,9 @@ var AroSBT_ABI = [
|
|
|
827
642
|
"type": "uint256"
|
|
828
643
|
},
|
|
829
644
|
{
|
|
830
|
-
"internalType": "
|
|
645
|
+
"internalType": "enum AroSBT.Tier",
|
|
831
646
|
"name": "tier",
|
|
832
|
-
"type": "
|
|
647
|
+
"type": "uint8"
|
|
833
648
|
},
|
|
834
649
|
{
|
|
835
650
|
"internalType": "bytes32",
|
|
@@ -936,11 +751,6 @@ var AroSBT_ABI = [
|
|
|
936
751
|
"internalType": "string",
|
|
937
752
|
"name": "metadataURI",
|
|
938
753
|
"type": "string"
|
|
939
|
-
},
|
|
940
|
-
{
|
|
941
|
-
"internalType": "uint256",
|
|
942
|
-
"name": "tier",
|
|
943
|
-
"type": "uint256"
|
|
944
754
|
}
|
|
945
755
|
],
|
|
946
756
|
"name": "mint",
|
|
@@ -970,70 +780,14 @@ var AroSBT_ABI = [
|
|
|
970
780
|
"internalType": "string",
|
|
971
781
|
"name": "metadataURI",
|
|
972
782
|
"type": "string"
|
|
973
|
-
}
|
|
974
|
-
],
|
|
975
|
-
"name": "mint",
|
|
976
|
-
"outputs": [
|
|
977
|
-
{
|
|
978
|
-
"internalType": "uint256",
|
|
979
|
-
"name": "",
|
|
980
|
-
"type": "uint256"
|
|
981
|
-
}
|
|
982
|
-
],
|
|
983
|
-
"stateMutability": "nonpayable",
|
|
984
|
-
"type": "function"
|
|
985
|
-
},
|
|
986
|
-
{
|
|
987
|
-
"inputs": [
|
|
988
|
-
{
|
|
989
|
-
"components": [
|
|
990
|
-
{
|
|
991
|
-
"internalType": "address",
|
|
992
|
-
"name": "candidate",
|
|
993
|
-
"type": "address"
|
|
994
|
-
},
|
|
995
|
-
{
|
|
996
|
-
"internalType": "uint256",
|
|
997
|
-
"name": "tier",
|
|
998
|
-
"type": "uint256"
|
|
999
|
-
},
|
|
1000
|
-
{
|
|
1001
|
-
"internalType": "bytes32",
|
|
1002
|
-
"name": "kycHash",
|
|
1003
|
-
"type": "bytes32"
|
|
1004
|
-
},
|
|
1005
|
-
{
|
|
1006
|
-
"internalType": "bytes32",
|
|
1007
|
-
"name": "nominationId",
|
|
1008
|
-
"type": "bytes32"
|
|
1009
|
-
},
|
|
1010
|
-
{
|
|
1011
|
-
"internalType": "string",
|
|
1012
|
-
"name": "metadataURI",
|
|
1013
|
-
"type": "string"
|
|
1014
|
-
},
|
|
1015
|
-
{
|
|
1016
|
-
"internalType": "uint64",
|
|
1017
|
-
"name": "deadline",
|
|
1018
|
-
"type": "uint64"
|
|
1019
|
-
},
|
|
1020
|
-
{
|
|
1021
|
-
"internalType": "bytes32",
|
|
1022
|
-
"name": "nonce",
|
|
1023
|
-
"type": "bytes32"
|
|
1024
|
-
}
|
|
1025
|
-
],
|
|
1026
|
-
"internalType": "struct AroSBT.MintApproval",
|
|
1027
|
-
"name": "approval",
|
|
1028
|
-
"type": "tuple"
|
|
1029
783
|
},
|
|
1030
784
|
{
|
|
1031
|
-
"internalType": "
|
|
1032
|
-
"name": "
|
|
1033
|
-
"type": "
|
|
785
|
+
"internalType": "enum AroSBT.Tier",
|
|
786
|
+
"name": "tier",
|
|
787
|
+
"type": "uint8"
|
|
1034
788
|
}
|
|
1035
789
|
],
|
|
1036
|
-
"name": "
|
|
790
|
+
"name": "mint",
|
|
1037
791
|
"outputs": [
|
|
1038
792
|
{
|
|
1039
793
|
"internalType": "uint256",
|
|
@@ -1199,9 +953,9 @@ var AroSBT_ABI = [
|
|
|
1199
953
|
"type": "uint256"
|
|
1200
954
|
},
|
|
1201
955
|
{
|
|
1202
|
-
"internalType": "
|
|
956
|
+
"internalType": "enum AroSBT.Tier",
|
|
1203
957
|
"name": "newTier",
|
|
1204
|
-
"type": "
|
|
958
|
+
"type": "uint8"
|
|
1205
959
|
}
|
|
1206
960
|
],
|
|
1207
961
|
"name": "setTier",
|
|
@@ -1395,25 +1149,6 @@ var AroSBT_ABI = [
|
|
|
1395
1149
|
"outputs": [],
|
|
1396
1150
|
"stateMutability": "nonpayable",
|
|
1397
1151
|
"type": "function"
|
|
1398
|
-
},
|
|
1399
|
-
{
|
|
1400
|
-
"inputs": [
|
|
1401
|
-
{
|
|
1402
|
-
"internalType": "bytes32",
|
|
1403
|
-
"name": "",
|
|
1404
|
-
"type": "bytes32"
|
|
1405
|
-
}
|
|
1406
|
-
],
|
|
1407
|
-
"name": "usedApprovals",
|
|
1408
|
-
"outputs": [
|
|
1409
|
-
{
|
|
1410
|
-
"internalType": "bool",
|
|
1411
|
-
"name": "",
|
|
1412
|
-
"type": "bool"
|
|
1413
|
-
}
|
|
1414
|
-
],
|
|
1415
|
-
"stateMutability": "view",
|
|
1416
|
-
"type": "function"
|
|
1417
1152
|
}
|
|
1418
1153
|
];
|
|
1419
1154
|
var AroNomination_ABI = [
|
|
@@ -2155,7 +1890,7 @@ async function mintSBTForApproved(sdk, opts) {
|
|
|
2155
1890
|
throw new Error("mintSBTForApproved requires a walletClient on the SDK");
|
|
2156
1891
|
}
|
|
2157
1892
|
const wallet = sdk.walletClient;
|
|
2158
|
-
const tier = opts.tier === void 0 ?
|
|
1893
|
+
const tier = opts.tier === void 0 ? 0 : typeof opts.tier === "bigint" ? Number(opts.tier) : opts.tier;
|
|
2159
1894
|
try {
|
|
2160
1895
|
return await wallet.writeContract({
|
|
2161
1896
|
account: pickAccount(wallet, opts.account),
|