@argonprotocol/mainchain 1.4.9-dev.fdaf0dc8 → 1.4.10-dev.459cb75f
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/browser/index.d.ts +280 -280
- package/browser/index.js +119 -24
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +142 -48
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +280 -280
- package/lib/index.d.ts +280 -280
- package/lib/index.js +118 -24
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/interfaces/augment-api-consts.ts +26 -25
- package/src/interfaces/augment-api-errors.ts +26 -30
- package/src/interfaces/augment-api-events.ts +29 -21
- package/src/interfaces/augment-api-query.ts +12 -2
- package/src/interfaces/augment-api-tx.ts +5 -12
- package/src/interfaces/lookup.ts +173 -170
- package/src/interfaces/registry.ts +2 -0
- package/src/interfaces/types-lookup.ts +189 -191
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/mainchain",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.10-dev.459cb75f",
|
|
4
4
|
"description": "A client for accessing the Argon mainchain apis.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@argonprotocol/ethereum-contracts": "workspace:*",
|
|
68
|
-
"@argonprotocol/testing": "1.4.
|
|
68
|
+
"@argonprotocol/testing": "1.4.10-dev.459cb75f",
|
|
69
69
|
"@polkadot/typegen": "^16.5.6",
|
|
70
70
|
"@substrate/ss58-registry": "^1.51.0",
|
|
71
71
|
"@types/node": "^20",
|
|
@@ -365,58 +365,59 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
365
365
|
};
|
|
366
366
|
operationalAccounts: {
|
|
367
367
|
/**
|
|
368
|
-
* Additional argon amount (base units) required per follow-on
|
|
369
|
-
* operational
|
|
368
|
+
* Additional argon amount (base units) required per follow-on access code after an account
|
|
369
|
+
* becomes operational.
|
|
370
370
|
**/
|
|
371
|
-
|
|
371
|
+
bitcoinLockSizeForAccessCode: u128 & AugmentedConst<ApiType>;
|
|
372
372
|
/**
|
|
373
|
-
* Maximum number of available
|
|
373
|
+
* Maximum number of available access codes allowed at once.
|
|
374
374
|
**/
|
|
375
|
-
|
|
375
|
+
maxAvailableAccessCodes: u32 & AugmentedConst<ApiType>;
|
|
376
376
|
/**
|
|
377
377
|
* Maximum number of encrypted server bytes stored per network account.
|
|
378
378
|
**/
|
|
379
379
|
maxEncryptedServerLen: u32 & AugmentedConst<ApiType>;
|
|
380
380
|
/**
|
|
381
|
-
*
|
|
381
|
+
* Minimum bitcoin amount required to register.
|
|
382
382
|
**/
|
|
383
|
-
|
|
383
|
+
minimumBitcoin: u128 & AugmentedConst<ApiType>;
|
|
384
384
|
/**
|
|
385
|
-
*
|
|
385
|
+
* Minimum bond amount required to register.
|
|
386
386
|
**/
|
|
387
|
-
|
|
387
|
+
minimumBonds: u128 & AugmentedConst<ApiType>;
|
|
388
388
|
/**
|
|
389
|
-
*
|
|
389
|
+
* Minimum Uniswap transfer amount required to register.
|
|
390
390
|
**/
|
|
391
|
-
|
|
391
|
+
minimumUniswapTransfer: u128 & AugmentedConst<ApiType>;
|
|
392
392
|
/**
|
|
393
|
-
*
|
|
393
|
+
* Mining seats required to become operational.
|
|
394
394
|
**/
|
|
395
|
-
|
|
395
|
+
miningSeatsForOperational: u32 & AugmentedConst<ApiType>;
|
|
396
396
|
/**
|
|
397
|
-
*
|
|
397
|
+
* Mining seats required per follow-on access code after an account becomes
|
|
398
|
+
* operational.
|
|
398
399
|
**/
|
|
399
|
-
|
|
400
|
+
miningSeatsPerAccessCode: u32 & AugmentedConst<ApiType>;
|
|
400
401
|
/**
|
|
401
|
-
* Default bonus reward paid every operational
|
|
402
|
+
* Default bonus reward paid every operational certification threshold.
|
|
402
403
|
**/
|
|
403
|
-
|
|
404
|
+
operationalCertificationBonusReward: u128 & AugmentedConst<ApiType>;
|
|
404
405
|
/**
|
|
405
|
-
*
|
|
406
|
+
* Default reward paid when an account becomes operationally certified.
|
|
406
407
|
**/
|
|
407
|
-
|
|
408
|
+
operationalCertificationReward: u128 & AugmentedConst<ApiType>;
|
|
408
409
|
/**
|
|
409
|
-
*
|
|
410
|
+
* Number of operational certifications required per bonus reward.
|
|
410
411
|
**/
|
|
411
|
-
|
|
412
|
+
operationalCertificationsPerBonusReward: u32 & AugmentedConst<ApiType>;
|
|
412
413
|
/**
|
|
413
|
-
* Minimum
|
|
414
|
+
* Minimum total Uniswap transfer amount required for operational certification.
|
|
414
415
|
**/
|
|
415
|
-
|
|
416
|
+
operationalMinimumUniswapTransfer: u128 & AugmentedConst<ApiType>;
|
|
416
417
|
/**
|
|
417
|
-
* Minimum
|
|
418
|
+
* Minimum vault securitization required to become operational.
|
|
418
419
|
**/
|
|
419
|
-
|
|
420
|
+
operationalMinimumVaultSecuritization: u128 & AugmentedConst<ApiType>;
|
|
420
421
|
};
|
|
421
422
|
ownership: {
|
|
422
423
|
/**
|
|
@@ -369,6 +369,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
369
369
|
* The account has not registered a council signer for this destination chain.
|
|
370
370
|
**/
|
|
371
371
|
CouncilSignerNotRegistered: AugmentedError<ApiType>;
|
|
372
|
+
/**
|
|
373
|
+
* The account already has a council signer rotation pending for this destination chain.
|
|
374
|
+
**/
|
|
375
|
+
CouncilSignerRotationPending: AugmentedError<ApiType>;
|
|
372
376
|
/**
|
|
373
377
|
* The supplied Global Issuance Council contains the same account more than once.
|
|
374
378
|
**/
|
|
@@ -791,7 +795,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
791
795
|
**/
|
|
792
796
|
InvalidBidAmount: AugmentedError<ApiType>;
|
|
793
797
|
/**
|
|
794
|
-
* Mining slot bidding currently requires prior operational-account
|
|
798
|
+
* Mining slot bidding currently requires a prior operational-account upgrade.
|
|
795
799
|
**/
|
|
796
800
|
OperationalAccountRegistrationRequired: AugmentedError<ApiType>;
|
|
797
801
|
/**
|
|
@@ -975,25 +979,25 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
975
979
|
**/
|
|
976
980
|
AccountAlreadyLinked: AugmentedError<ApiType>;
|
|
977
981
|
/**
|
|
978
|
-
* The
|
|
982
|
+
* The account is already operationally certified.
|
|
979
983
|
**/
|
|
980
|
-
|
|
981
|
-
/**
|
|
982
|
-
* The account is already operational.
|
|
983
|
-
**/
|
|
984
|
-
AlreadyOperational: AugmentedError<ApiType>;
|
|
984
|
+
AlreadyOperationallyCertified: AugmentedError<ApiType>;
|
|
985
985
|
/**
|
|
986
986
|
* The caller already registered an operational account.
|
|
987
987
|
**/
|
|
988
988
|
AlreadyRegistered: AugmentedError<ApiType>;
|
|
989
989
|
/**
|
|
990
|
-
* An account cannot
|
|
990
|
+
* An account cannot grant access to itself.
|
|
991
991
|
**/
|
|
992
|
-
|
|
992
|
+
CannotGrantAccessToSelf: AugmentedError<ApiType>;
|
|
993
993
|
/**
|
|
994
994
|
* The encrypted server payload exceeds the configured max length.
|
|
995
995
|
**/
|
|
996
996
|
EncryptedServerTooLong: AugmentedError<ApiType>;
|
|
997
|
+
/**
|
|
998
|
+
* The upstream access proof is invalid.
|
|
999
|
+
**/
|
|
1000
|
+
InvalidAccessProof: AugmentedError<ApiType>;
|
|
997
1001
|
/**
|
|
998
1002
|
* One of the linked account ownership proofs is invalid.
|
|
999
1003
|
**/
|
|
@@ -1003,9 +1007,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1003
1007
|
**/
|
|
1004
1008
|
InvalidRegistrationSubmitter: AugmentedError<ApiType>;
|
|
1005
1009
|
/**
|
|
1006
|
-
* The requested
|
|
1010
|
+
* The requested account does not currently satisfy the minimums.
|
|
1007
1011
|
**/
|
|
1008
|
-
|
|
1012
|
+
MinimumsNotMet: AugmentedError<ApiType>;
|
|
1009
1013
|
/**
|
|
1010
1014
|
* The operational account has no pending rewards to claim.
|
|
1011
1015
|
**/
|
|
@@ -1023,21 +1027,9 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1023
1027
|
**/
|
|
1024
1028
|
NotOperationalAccount: AugmentedError<ApiType>;
|
|
1025
1029
|
/**
|
|
1026
|
-
* The caller is not the
|
|
1027
|
-
**/
|
|
1028
|
-
NotReferrerOfAccount: AugmentedError<ApiType>;
|
|
1029
|
-
/**
|
|
1030
|
-
* The requested account has not reached treasury certification.
|
|
1031
|
-
**/
|
|
1032
|
-
NotTreasuryCertified: AugmentedError<ApiType>;
|
|
1033
|
-
/**
|
|
1034
|
-
* The requested referrer does not have a registered operational account.
|
|
1035
|
-
**/
|
|
1036
|
-
ReferrerNotOperationalAccount: AugmentedError<ApiType>;
|
|
1037
|
-
/**
|
|
1038
|
-
* The requested referrer does not match the referrer recorded during registration.
|
|
1030
|
+
* The caller is not the upstream account for the requested downstream account.
|
|
1039
1031
|
**/
|
|
1040
|
-
|
|
1032
|
+
NotUpstreamOfDownstream: AugmentedError<ApiType>;
|
|
1041
1033
|
/**
|
|
1042
1034
|
* A valid invite is required to register an operational account.
|
|
1043
1035
|
**/
|
|
@@ -1054,14 +1046,18 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1054
1046
|
* Reward claims must be whole Argon increments.
|
|
1055
1047
|
**/
|
|
1056
1048
|
RewardClaimNotWholeArgon: AugmentedError<ApiType>;
|
|
1057
|
-
/**
|
|
1058
|
-
* The requested account no longer satisfies treasury certification requirements.
|
|
1059
|
-
**/
|
|
1060
|
-
TreasuryCertificationNoLongerMet: AugmentedError<ApiType>;
|
|
1061
1049
|
/**
|
|
1062
1050
|
* The treasury does not currently have enough available reserves for the claim.
|
|
1063
1051
|
**/
|
|
1064
1052
|
TreasuryInsufficientFunds: AugmentedError<ApiType>;
|
|
1053
|
+
/**
|
|
1054
|
+
* The requested upstream account does not have any available access codes.
|
|
1055
|
+
**/
|
|
1056
|
+
UpstreamHasNoAvailableAccessCodes: AugmentedError<ApiType>;
|
|
1057
|
+
/**
|
|
1058
|
+
* The requested upstream account does not have a registered operational account.
|
|
1059
|
+
**/
|
|
1060
|
+
UpstreamNotOperationalAccount: AugmentedError<ApiType>;
|
|
1065
1061
|
};
|
|
1066
1062
|
ownership: {
|
|
1067
1063
|
/**
|
|
@@ -1380,7 +1376,7 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1380
1376
|
**/
|
|
1381
1377
|
NoVaultBitcoinPubkeysAvailable: AugmentedError<ApiType>;
|
|
1382
1378
|
/**
|
|
1383
|
-
* Vault creation currently requires prior operational-account
|
|
1379
|
+
* Vault creation currently requires a prior operational-account upgrade.
|
|
1384
1380
|
**/
|
|
1385
1381
|
OperationalAccountRegistrationRequired: AugmentedError<ApiType>;
|
|
1386
1382
|
/**
|
|
@@ -607,6 +607,22 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
607
607
|
[destinationChain: PalletCrosschainTransferSourceChain, councilHash: H256],
|
|
608
608
|
{ destinationChain: PalletCrosschainTransferSourceChain; councilHash: H256 }
|
|
609
609
|
>;
|
|
610
|
+
/**
|
|
611
|
+
* A frame transition queued a new Global Issuance Council for destination-chain approval.
|
|
612
|
+
**/
|
|
613
|
+
GlobalIssuanceCouncilRotationQueued: AugmentedEvent<
|
|
614
|
+
ApiType,
|
|
615
|
+
[
|
|
616
|
+
destinationChain: PalletCrosschainTransferSourceChain,
|
|
617
|
+
councilHash: H256,
|
|
618
|
+
approvalQueueNonce: u64,
|
|
619
|
+
],
|
|
620
|
+
{
|
|
621
|
+
destinationChain: PalletCrosschainTransferSourceChain;
|
|
622
|
+
councilHash: H256;
|
|
623
|
+
approvalQueueNonce: u64;
|
|
624
|
+
}
|
|
625
|
+
>;
|
|
610
626
|
/**
|
|
611
627
|
* Root updated the minimum normalized microgon value required to register a Minting
|
|
612
628
|
* Authority on one destination chain.
|
|
@@ -1242,36 +1258,28 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1242
1258
|
};
|
|
1243
1259
|
operationalAccounts: {
|
|
1244
1260
|
/**
|
|
1245
|
-
* Account has
|
|
1261
|
+
* Account has met the registration minimums.
|
|
1246
1262
|
**/
|
|
1247
|
-
|
|
1263
|
+
AccountMeetsMinimums: AugmentedEvent<
|
|
1248
1264
|
ApiType,
|
|
1249
1265
|
[account: AccountId32],
|
|
1250
1266
|
{ account: AccountId32 }
|
|
1251
1267
|
>;
|
|
1252
1268
|
/**
|
|
1253
|
-
*
|
|
1254
|
-
**/
|
|
1255
|
-
AccountUpgradeGranted: AugmentedEvent<
|
|
1256
|
-
ApiType,
|
|
1257
|
-
[account: AccountId32, referrer: AccountId32],
|
|
1258
|
-
{ account: AccountId32; referrer: AccountId32 }
|
|
1259
|
-
>;
|
|
1260
|
-
/**
|
|
1261
|
-
* Account has become operational.
|
|
1269
|
+
* Account has become operationally certified.
|
|
1262
1270
|
**/
|
|
1263
|
-
|
|
1271
|
+
AccountOperationallyCertified: AugmentedEvent<
|
|
1264
1272
|
ApiType,
|
|
1265
1273
|
[account: AccountId32],
|
|
1266
1274
|
{ account: AccountId32 }
|
|
1267
1275
|
>;
|
|
1268
1276
|
/**
|
|
1269
|
-
*
|
|
1277
|
+
* An upstream account updated the encrypted server payload for a downstream account.
|
|
1270
1278
|
**/
|
|
1271
1279
|
EncryptedServerUpdated: AugmentedEvent<
|
|
1272
1280
|
ApiType,
|
|
1273
|
-
[
|
|
1274
|
-
{
|
|
1281
|
+
[upstreamAccount: AccountId32, downstreamAccount: AccountId32],
|
|
1282
|
+
{ upstreamAccount: AccountId32; downstreamAccount: AccountId32 }
|
|
1275
1283
|
>;
|
|
1276
1284
|
/**
|
|
1277
1285
|
* An operational account was registered with its linked accounts.
|
|
@@ -1282,13 +1290,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1282
1290
|
operationalAccount: AccountId32,
|
|
1283
1291
|
vaultAccount: AccountId32,
|
|
1284
1292
|
miningAccount: AccountId32,
|
|
1285
|
-
|
|
1293
|
+
upstreamAccount: Option<AccountId32>,
|
|
1286
1294
|
],
|
|
1287
1295
|
{
|
|
1288
1296
|
operationalAccount: AccountId32;
|
|
1289
1297
|
vaultAccount: AccountId32;
|
|
1290
1298
|
miningAccount: AccountId32;
|
|
1291
|
-
|
|
1299
|
+
upstreamAccount: Option<AccountId32>;
|
|
1292
1300
|
}
|
|
1293
1301
|
>;
|
|
1294
1302
|
/**
|
|
@@ -1299,7 +1307,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1299
1307
|
[
|
|
1300
1308
|
account: AccountId32,
|
|
1301
1309
|
updateOperationalProgress: bool,
|
|
1302
|
-
|
|
1310
|
+
meetsMinimums: bool,
|
|
1303
1311
|
uniswapArgonTransfersInAmount: u128,
|
|
1304
1312
|
accountBitcoinAmount: u128,
|
|
1305
1313
|
accountVaultBondAmount: u128,
|
|
@@ -1310,7 +1318,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1310
1318
|
{
|
|
1311
1319
|
account: AccountId32;
|
|
1312
1320
|
updateOperationalProgress: bool;
|
|
1313
|
-
|
|
1321
|
+
meetsMinimums: bool;
|
|
1314
1322
|
uniswapArgonTransfersInAmount: u128;
|
|
1315
1323
|
accountBitcoinAmount: u128;
|
|
1316
1324
|
accountVaultBondAmount: u128;
|
|
@@ -1358,8 +1366,8 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1358
1366
|
**/
|
|
1359
1367
|
RewardsConfigUpdated: AugmentedEvent<
|
|
1360
1368
|
ApiType,
|
|
1361
|
-
[
|
|
1362
|
-
{
|
|
1369
|
+
[operationalCertificationReward: u128, operationalCertificationBonusReward: u128],
|
|
1370
|
+
{ operationalCertificationReward: u128; operationalCertificationBonusReward: u128 }
|
|
1363
1371
|
>;
|
|
1364
1372
|
};
|
|
1365
1373
|
ownership: {
|
|
@@ -659,6 +659,16 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
659
659
|
) => Observable<u64>,
|
|
660
660
|
[PalletCrosschainTransferSourceChain]
|
|
661
661
|
>;
|
|
662
|
+
/**
|
|
663
|
+
* First frame where a new council snapshot may be added to a chain's approval queue.
|
|
664
|
+
**/
|
|
665
|
+
nextCouncilRotationFrameByDestinationChain: AugmentedQuery<
|
|
666
|
+
ApiType,
|
|
667
|
+
(
|
|
668
|
+
arg: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
|
|
669
|
+
) => Observable<Option<u64>>,
|
|
670
|
+
[PalletCrosschainTransferSourceChain]
|
|
671
|
+
>;
|
|
662
672
|
/**
|
|
663
673
|
* Next outbound transfer nonce for each sending account.
|
|
664
674
|
**/
|
|
@@ -1262,7 +1272,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1262
1272
|
};
|
|
1263
1273
|
operationalAccounts: {
|
|
1264
1274
|
/**
|
|
1265
|
-
* Opaque encrypted
|
|
1275
|
+
* Opaque encrypted upstream server payload keyed by the downstream account.
|
|
1266
1276
|
**/
|
|
1267
1277
|
encryptedServerByDownstreamAccount: AugmentedQuery<
|
|
1268
1278
|
ApiType,
|
|
@@ -1272,7 +1282,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1272
1282
|
/**
|
|
1273
1283
|
* Whether operational-account access is invite-only.
|
|
1274
1284
|
*
|
|
1275
|
-
* When enabled, registration requires
|
|
1285
|
+
* When enabled, registration requires an upstream invite and vault creation plus
|
|
1276
1286
|
* mining-slot bidding remain restricted to registered operational accounts.
|
|
1277
1287
|
*
|
|
1278
1288
|
* Existing live raw chain specs do not contain this key, so the default remains invite-only
|
|
@@ -1169,7 +1169,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1169
1169
|
/**
|
|
1170
1170
|
* Register vault and mining accounts for an operational account.
|
|
1171
1171
|
* Any account in the registration may submit the transaction.
|
|
1172
|
-
* When invite-only is enabled, the registration must include
|
|
1172
|
+
* When invite-only is enabled, the registration must include an upstream access proof.
|
|
1173
1173
|
**/
|
|
1174
1174
|
register: AugmentedSubmittable<
|
|
1175
1175
|
(
|
|
@@ -1178,7 +1178,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1178
1178
|
[PalletOperationalAccountsRegistration]
|
|
1179
1179
|
>;
|
|
1180
1180
|
/**
|
|
1181
|
-
* Store an opaque encrypted
|
|
1181
|
+
* Store an opaque encrypted upstream server payload for a downstream account.
|
|
1182
1182
|
**/
|
|
1183
1183
|
setEncryptedServerForDownstreamAccount: AugmentedSubmittable<
|
|
1184
1184
|
(
|
|
@@ -1188,22 +1188,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1188
1188
|
[AccountId32, Bytes]
|
|
1189
1189
|
>;
|
|
1190
1190
|
/**
|
|
1191
|
-
* Update reward amounts for operational accounts.
|
|
1191
|
+
* Update certification reward amounts for operational accounts.
|
|
1192
1192
|
**/
|
|
1193
1193
|
setRewardConfig: AugmentedSubmittable<
|
|
1194
1194
|
(
|
|
1195
|
-
|
|
1196
|
-
|
|
1195
|
+
operationalCertificationReward: u128 | AnyNumber | Uint8Array,
|
|
1196
|
+
operationalCertificationBonusReward: u128 | AnyNumber | Uint8Array,
|
|
1197
1197
|
) => SubmittableExtrinsic<ApiType>,
|
|
1198
1198
|
[u128, u128]
|
|
1199
1199
|
>;
|
|
1200
|
-
/**
|
|
1201
|
-
* Grant a referrer upgrade to an already-registered operational account.
|
|
1202
|
-
**/
|
|
1203
|
-
upgradeAccount: AugmentedSubmittable<
|
|
1204
|
-
(accountId: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>,
|
|
1205
|
-
[AccountId32]
|
|
1206
|
-
>;
|
|
1207
1200
|
};
|
|
1208
1201
|
ownership: {
|
|
1209
1202
|
/**
|