@argonprotocol/mainchain 1.4.10-dev.925a902e → 1.4.10-dev.963363dc
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 +4210 -359
- package/browser/index.js +105 -33
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +127 -55
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +4210 -359
- package/lib/index.d.ts +4210 -359
- package/lib/index.js +105 -33
- package/lib/index.js.map +1 -1
- package/package.json +7 -4
- package/src/interfaces/augment-api-consts.ts +14 -17
- package/src/interfaces/augment-api-errors.ts +59 -13
- package/src/interfaces/augment-api-events.ts +40 -8
- package/src/interfaces/augment-api-query.ts +78 -16
- package/src/interfaces/augment-api-tx.ts +82 -36
- package/src/interfaces/lookup.ts +376 -257
- package/src/interfaces/registry.ts +20 -2
- package/src/interfaces/types-lookup.ts +415 -277
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argonprotocol/mainchain",
|
|
3
|
-
"version": "1.4.10-dev.
|
|
3
|
+
"version": "1.4.10-dev.963363dc",
|
|
4
4
|
"description": "A client for accessing the Argon mainchain apis.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,11 +14,14 @@
|
|
|
14
14
|
"homepage": "https://github.com/argonprotocol/mainchain#readme",
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "yarn generate:defs && yarn generate:meta && node clean-build.js && yarn tsc",
|
|
17
|
+
"generate:contract-declarations": "tsc -p tsconfig.contracts.json",
|
|
17
18
|
"generate:defs": "polkadot-types-from-defs --endpoint metadata.json --input ./src/interfaces --package @argonprotocol/mainchain/interfaces",
|
|
18
19
|
"generate:meta": "polkadot-types-from-chain --endpoint metadata.json --output ./src/interfaces --package @argonprotocol/mainchain/interfaces --strict",
|
|
19
20
|
"test": "vitest --run --config vitest.config.ts",
|
|
20
|
-
"tsc": "yarn workspace @argonprotocol/ethereum-contracts build && tsup",
|
|
21
|
-
"
|
|
21
|
+
"tsc": "yarn workspace @argonprotocol/ethereum-contracts build && yarn generate:contract-declarations && tsup && yarn validate:package",
|
|
22
|
+
"tsup": "yarn tsc",
|
|
23
|
+
"validate:package": "tsx src/scripts/validatePackage.ts",
|
|
24
|
+
"watch": "yarn generate:contract-declarations && tsup --watch",
|
|
22
25
|
"typecheck": "tsc --noEmit -p tsconfig.test.json"
|
|
23
26
|
},
|
|
24
27
|
"files": [
|
|
@@ -65,7 +68,7 @@
|
|
|
65
68
|
},
|
|
66
69
|
"devDependencies": {
|
|
67
70
|
"@argonprotocol/ethereum-contracts": "workspace:*",
|
|
68
|
-
"@argonprotocol/testing": "1.4.10-dev.
|
|
71
|
+
"@argonprotocol/testing": "1.4.10-dev.963363dc",
|
|
69
72
|
"@polkadot/typegen": "^16.5.6",
|
|
70
73
|
"@substrate/ss58-registry": "^1.51.0",
|
|
71
74
|
"@types/node": "^20",
|
|
@@ -160,6 +160,12 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
160
160
|
**/
|
|
161
161
|
targetBlockVotes: u128 & AugmentedConst<ApiType>;
|
|
162
162
|
};
|
|
163
|
+
bootstrap: {
|
|
164
|
+
/**
|
|
165
|
+
* Maximum number of bytes in an encrypted recovery or endpoint payload.
|
|
166
|
+
**/
|
|
167
|
+
maxEncryptedPayloadLen: u32 & AugmentedConst<ApiType>;
|
|
168
|
+
};
|
|
163
169
|
crosschainTransfer: {
|
|
164
170
|
/**
|
|
165
171
|
* Minimum remaining frame commitment required when reading vault committed collateral
|
|
@@ -370,13 +376,13 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
370
376
|
**/
|
|
371
377
|
bitcoinLockSizeForAccessCode: u128 & AugmentedConst<ApiType>;
|
|
372
378
|
/**
|
|
373
|
-
* Maximum number of
|
|
379
|
+
* Maximum number of accrued access codes awarded at one frame boundary.
|
|
374
380
|
**/
|
|
375
|
-
|
|
381
|
+
maxAccessCodeAwardsPerFrame: u32 & AugmentedConst<ApiType>;
|
|
376
382
|
/**
|
|
377
|
-
* Maximum number of
|
|
383
|
+
* Maximum number of available access codes allowed at once.
|
|
378
384
|
**/
|
|
379
|
-
|
|
385
|
+
maxAvailableAccessCodes: u32 & AugmentedConst<ApiType>;
|
|
380
386
|
/**
|
|
381
387
|
* Minimum bitcoin amount required to register.
|
|
382
388
|
**/
|
|
@@ -468,6 +474,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
468
474
|
* The maximum number of ticks to preserve a price index
|
|
469
475
|
**/
|
|
470
476
|
maxDowntimeTicksBeforeReset: u64 & AugmentedConst<ApiType>;
|
|
477
|
+
/**
|
|
478
|
+
* Maximum number of per-frame Ethereum price buckets to retain.
|
|
479
|
+
**/
|
|
480
|
+
maxEthereumPriceHistoryFrames: u32 & AugmentedConst<ApiType>;
|
|
471
481
|
/**
|
|
472
482
|
* The oldest history to keep
|
|
473
483
|
**/
|
|
@@ -640,11 +650,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
640
650
|
batchedCallsLimit: u32 & AugmentedConst<ApiType>;
|
|
641
651
|
};
|
|
642
652
|
vaults: {
|
|
643
|
-
/**
|
|
644
|
-
* One no-fee stale `initialize_for` failure is allowed for each this-many units of lost
|
|
645
|
-
* `available_for_lock`.
|
|
646
|
-
**/
|
|
647
|
-
capacityDropAttemptUnit: u128 & AugmentedConst<ApiType>;
|
|
648
653
|
/**
|
|
649
654
|
* Max concurrent cosigns pending per vault
|
|
650
655
|
**/
|
|
@@ -653,10 +658,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
653
658
|
* The max pending vault term changes per block
|
|
654
659
|
**/
|
|
655
660
|
maxPendingTermModificationsPerTick: u32 & AugmentedConst<ApiType>;
|
|
656
|
-
/**
|
|
657
|
-
* Maximum number of recent `available_for_lock` drops retained per vault.
|
|
658
|
-
**/
|
|
659
|
-
maxRecentCapacityDropsPerVault: u32 & AugmentedConst<ApiType>;
|
|
660
661
|
/**
|
|
661
662
|
* The max number of vaults that can be created
|
|
662
663
|
**/
|
|
@@ -669,10 +670,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
669
670
|
* Minimum vault securitization required while the operational floor lock is active.
|
|
670
671
|
**/
|
|
671
672
|
operationalMinimumVaultSecuritization: u128 & AugmentedConst<ApiType>;
|
|
672
|
-
/**
|
|
673
|
-
* Number of Argon blocks to keep recent `available_for_lock` drops for stale init checks.
|
|
674
|
-
**/
|
|
675
|
-
recentCapacityDropBlockWindow: u32 & AugmentedConst<ApiType>;
|
|
676
673
|
/**
|
|
677
674
|
* The number of frames within which revenue must be collected
|
|
678
675
|
**/
|
|
@@ -98,6 +98,30 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
98
98
|
* An overflow occurred recording a lock expiration
|
|
99
99
|
**/
|
|
100
100
|
ExpirationAtBlockOverflow: AugmentedError<ApiType>;
|
|
101
|
+
/**
|
|
102
|
+
* The fee coupon nonce has already been consumed or superseded.
|
|
103
|
+
**/
|
|
104
|
+
FeeCouponAlreadyUsed: AugmentedError<ApiType>;
|
|
105
|
+
/**
|
|
106
|
+
* The fee coupon is past its expiration frame.
|
|
107
|
+
**/
|
|
108
|
+
FeeCouponExpired: AugmentedError<ApiType>;
|
|
109
|
+
/**
|
|
110
|
+
* Fee coupons can only be applied when initializing a lock.
|
|
111
|
+
**/
|
|
112
|
+
FeeCouponOnlyForInitialization: AugmentedError<ApiType>;
|
|
113
|
+
/**
|
|
114
|
+
* The fee coupon was issued for a different beneficiary.
|
|
115
|
+
**/
|
|
116
|
+
FeeCouponWrongAccount: AugmentedError<ApiType>;
|
|
117
|
+
/**
|
|
118
|
+
* The fee coupon was issued for a different chain.
|
|
119
|
+
**/
|
|
120
|
+
FeeCouponWrongChain: AugmentedError<ApiType>;
|
|
121
|
+
/**
|
|
122
|
+
* The fee coupon was issued for a different vault.
|
|
123
|
+
**/
|
|
124
|
+
FeeCouponWrongVault: AugmentedError<ApiType>;
|
|
101
125
|
/**
|
|
102
126
|
* Cannot request an orphaned release for the funding UTXO
|
|
103
127
|
**/
|
|
@@ -124,6 +148,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
124
148
|
* The bitcoin script to lock this bitcoin has errors
|
|
125
149
|
**/
|
|
126
150
|
InvalidBitcoinScript: AugmentedError<ApiType>;
|
|
151
|
+
/**
|
|
152
|
+
* The fee coupon was not signed by the vault delegate.
|
|
153
|
+
**/
|
|
154
|
+
InvalidFeeCouponSignature: AugmentedError<ApiType>;
|
|
127
155
|
/**
|
|
128
156
|
* Funding would result in an overflow of the balance type
|
|
129
157
|
**/
|
|
@@ -352,6 +380,20 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
352
380
|
**/
|
|
353
381
|
MaxNotebooksAtTickExceeded: AugmentedError<ApiType>;
|
|
354
382
|
};
|
|
383
|
+
bootstrap: {
|
|
384
|
+
/**
|
|
385
|
+
* The encrypted payload exceeds [`Config::MaxEncryptedPayloadLen`].
|
|
386
|
+
**/
|
|
387
|
+
EncryptedPayloadTooLong: AugmentedError<ApiType>;
|
|
388
|
+
/**
|
|
389
|
+
* The endpoint public key is already owned by a different account.
|
|
390
|
+
**/
|
|
391
|
+
EndpointOwnedByAnotherAccount: AugmentedError<ApiType>;
|
|
392
|
+
/**
|
|
393
|
+
* The recovery proof does not authorize this writer, public key, and payload.
|
|
394
|
+
**/
|
|
395
|
+
InvalidRecoveryProof: AugmentedError<ApiType>;
|
|
396
|
+
};
|
|
355
397
|
crosschainTransfer: {
|
|
356
398
|
/**
|
|
357
399
|
* The force-set cut would discard a queue entry that already has local quorum.
|
|
@@ -990,10 +1032,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
990
1032
|
* An account cannot grant access to itself.
|
|
991
1033
|
**/
|
|
992
1034
|
CannotGrantAccessToSelf: AugmentedError<ApiType>;
|
|
993
|
-
/**
|
|
994
|
-
* The encrypted server payload exceeds the configured max length.
|
|
995
|
-
**/
|
|
996
|
-
EncryptedServerTooLong: AugmentedError<ApiType>;
|
|
997
1035
|
/**
|
|
998
1036
|
* The upstream access proof is invalid.
|
|
999
1037
|
**/
|
|
@@ -1002,6 +1040,11 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1002
1040
|
* One of the linked account ownership proofs is invalid.
|
|
1003
1041
|
**/
|
|
1004
1042
|
InvalidAccountProof: AugmentedError<ApiType>;
|
|
1043
|
+
/**
|
|
1044
|
+
* Profile names must start with an uppercase ASCII letter and otherwise be ASCII
|
|
1045
|
+
* alphanumeric.
|
|
1046
|
+
**/
|
|
1047
|
+
InvalidName: AugmentedError<ApiType>;
|
|
1005
1048
|
/**
|
|
1006
1049
|
* The caller is not one of the accounts included in the registration.
|
|
1007
1050
|
**/
|
|
@@ -1026,10 +1069,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1026
1069
|
* The requested account has not registered operational accounts.
|
|
1027
1070
|
**/
|
|
1028
1071
|
NotOperationalAccount: AugmentedError<ApiType>;
|
|
1029
|
-
/**
|
|
1030
|
-
* The caller is not the upstream account for the requested downstream account.
|
|
1031
|
-
**/
|
|
1032
|
-
NotUpstreamOfDownstream: AugmentedError<ApiType>;
|
|
1033
1072
|
/**
|
|
1034
1073
|
* A valid invite is required to register an operational account.
|
|
1035
1074
|
**/
|
|
@@ -1110,6 +1149,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1110
1149
|
VestingBalance: AugmentedError<ApiType>;
|
|
1111
1150
|
};
|
|
1112
1151
|
priceIndex: {
|
|
1152
|
+
/**
|
|
1153
|
+
* Ethereum prices must be non-zero and correspond to the submitted price-index tick.
|
|
1154
|
+
**/
|
|
1155
|
+
InvalidEthereumPrices: AugmentedError<ApiType>;
|
|
1113
1156
|
/**
|
|
1114
1157
|
* Change in argon price is too large
|
|
1115
1158
|
**/
|
|
@@ -1228,6 +1271,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1228
1271
|
* The bond lot is already scheduled for release.
|
|
1229
1272
|
**/
|
|
1230
1273
|
BondLotAlreadyReleasing: AugmentedError<ApiType>;
|
|
1274
|
+
/**
|
|
1275
|
+
* Only an active vault bond owned by its operator can be used as backfill.
|
|
1276
|
+
**/
|
|
1277
|
+
BondLotNotEligibleForBackfill: AugmentedError<ApiType>;
|
|
1231
1278
|
/**
|
|
1232
1279
|
* The bond lot could not be found.
|
|
1233
1280
|
**/
|
|
@@ -1276,6 +1323,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1276
1323
|
* Too many bond lot releases are scheduled for the same frame.
|
|
1277
1324
|
**/
|
|
1278
1325
|
MaxPendingBondReleasesExceeded: AugmentedError<ApiType>;
|
|
1326
|
+
/**
|
|
1327
|
+
* The caller does not have permission to perform this action.
|
|
1328
|
+
**/
|
|
1329
|
+
NoPermissions: AugmentedError<ApiType>;
|
|
1279
1330
|
/**
|
|
1280
1331
|
* The caller does not own the bond lot.
|
|
1281
1332
|
**/
|
|
@@ -1357,11 +1408,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1357
1408
|
* Funding would result in an overflow of the balance type
|
|
1358
1409
|
**/
|
|
1359
1410
|
InvalidVaultAmount: AugmentedError<ApiType>;
|
|
1360
|
-
/**
|
|
1361
|
-
* Vault names must start with an uppercase ASCII letter and otherwise be ASCII
|
|
1362
|
-
* alphanumeric.
|
|
1363
|
-
**/
|
|
1364
|
-
InvalidVaultName: AugmentedError<ApiType>;
|
|
1365
1411
|
/**
|
|
1366
1412
|
* Unable to decode xpubkey
|
|
1367
1413
|
**/
|
|
@@ -38,6 +38,8 @@ import type {
|
|
|
38
38
|
FrameSupportTokensMiscBalanceStatus,
|
|
39
39
|
FrameSystemDispatchEventInfo,
|
|
40
40
|
PalletBalancesUnexpectedKind,
|
|
41
|
+
PalletBootstrapEndpointPubkey,
|
|
42
|
+
PalletBootstrapRecoveryPubkey,
|
|
41
43
|
PalletCrosschainTransferAssetKind,
|
|
42
44
|
PalletCrosschainTransferCouncilApprovalTargetId,
|
|
43
45
|
PalletCrosschainTransferGatewayState,
|
|
@@ -315,6 +317,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
315
317
|
[utxoId: u64, vaultId: u32, compensationAmount: u128, compensatedAccountId: AccountId32],
|
|
316
318
|
{ utxoId: u64; vaultId: u32; compensationAmount: u128; compensatedAccountId: AccountId32 }
|
|
317
319
|
>;
|
|
320
|
+
BitcoinLockBackfillChanged: AugmentedEvent<
|
|
321
|
+
ApiType,
|
|
322
|
+
[utxoId: u64, vaultId: u32, isBackfill: bool],
|
|
323
|
+
{ utxoId: u64; vaultId: u32; isBackfill: bool }
|
|
324
|
+
>;
|
|
318
325
|
BitcoinLockBurned: AugmentedEvent<
|
|
319
326
|
ApiType,
|
|
320
327
|
[utxoId: u64, vaultId: u32, wasUtxoSpent: bool],
|
|
@@ -530,6 +537,24 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
530
537
|
}
|
|
531
538
|
>;
|
|
532
539
|
};
|
|
540
|
+
bootstrap: {
|
|
541
|
+
/**
|
|
542
|
+
* An encrypted endpoint payload was stored or replaced by its owner.
|
|
543
|
+
**/
|
|
544
|
+
EndpointUpdated: AugmentedEvent<
|
|
545
|
+
ApiType,
|
|
546
|
+
[endpointOwner: AccountId32, endpointPubkey: PalletBootstrapEndpointPubkey],
|
|
547
|
+
{ endpointOwner: AccountId32; endpointPubkey: PalletBootstrapEndpointPubkey }
|
|
548
|
+
>;
|
|
549
|
+
/**
|
|
550
|
+
* An encrypted recovery payload was stored or replaced.
|
|
551
|
+
**/
|
|
552
|
+
RecoveryPayloadUpdated: AugmentedEvent<
|
|
553
|
+
ApiType,
|
|
554
|
+
[writer: AccountId32, recoveryPubkey: PalletBootstrapRecoveryPubkey],
|
|
555
|
+
{ writer: AccountId32; recoveryPubkey: PalletBootstrapRecoveryPubkey }
|
|
556
|
+
>;
|
|
557
|
+
};
|
|
533
558
|
crosschainTransfer: {
|
|
534
559
|
/**
|
|
535
560
|
* An account registered its council signer for one destination chain.
|
|
@@ -1273,14 +1298,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1273
1298
|
[account: AccountId32],
|
|
1274
1299
|
{ account: AccountId32 }
|
|
1275
1300
|
>;
|
|
1276
|
-
/**
|
|
1277
|
-
* An upstream account updated the encrypted server payload for a downstream account.
|
|
1278
|
-
**/
|
|
1279
|
-
EncryptedServerUpdated: AugmentedEvent<
|
|
1280
|
-
ApiType,
|
|
1281
|
-
[upstreamAccount: AccountId32, downstreamAccount: AccountId32],
|
|
1282
|
-
{ upstreamAccount: AccountId32; downstreamAccount: AccountId32 }
|
|
1283
|
-
>;
|
|
1284
1301
|
/**
|
|
1285
1302
|
* An operational account was registered with its linked accounts.
|
|
1286
1303
|
**/
|
|
@@ -1830,6 +1847,16 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1830
1847
|
>;
|
|
1831
1848
|
};
|
|
1832
1849
|
treasury: {
|
|
1850
|
+
BackfillBondsReservedChanged: AugmentedEvent<
|
|
1851
|
+
ApiType,
|
|
1852
|
+
[vaultId: u32, backfillBondsReserved: u32],
|
|
1853
|
+
{ vaultId: u32; backfillBondsReserved: u32 }
|
|
1854
|
+
>;
|
|
1855
|
+
BondLotBackfillChanged: AugmentedEvent<
|
|
1856
|
+
ApiType,
|
|
1857
|
+
[vaultId: u32, bondLotId: u64, isBackfill: bool],
|
|
1858
|
+
{ vaultId: u32; bondLotId: u64; isBackfill: bool }
|
|
1859
|
+
>;
|
|
1833
1860
|
/**
|
|
1834
1861
|
* A bond purchase entered its active program set.
|
|
1835
1862
|
**/
|
|
@@ -2074,6 +2101,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2074
2101
|
>;
|
|
2075
2102
|
};
|
|
2076
2103
|
vaults: {
|
|
2104
|
+
BackfillSecuritizationReservedChanged: AugmentedEvent<
|
|
2105
|
+
ApiType,
|
|
2106
|
+
[vaultId: u32, backfillSecuritizationReserved: u128],
|
|
2107
|
+
{ vaultId: u32; backfillSecuritizationReserved: u128 }
|
|
2108
|
+
>;
|
|
2077
2109
|
CommittedArgonotsSet: AugmentedEvent<
|
|
2078
2110
|
ApiType,
|
|
2079
2111
|
[vaultId: u32, operatorAccountId: AccountId32, amount: u128],
|
|
@@ -66,6 +66,8 @@ import type {
|
|
|
66
66
|
PalletBitcoinLocksLockReleaseRequest,
|
|
67
67
|
PalletBitcoinLocksLockedBitcoin,
|
|
68
68
|
PalletBitcoinLocksOrphanedUtxo,
|
|
69
|
+
PalletBootstrapEndpointPubkey,
|
|
70
|
+
PalletBootstrapRecoveryPubkey,
|
|
69
71
|
PalletCrosschainTransferAccountTransferTotals,
|
|
70
72
|
PalletCrosschainTransferChainConfig,
|
|
71
73
|
PalletCrosschainTransferCouncilApprovalQueueEntry,
|
|
@@ -96,6 +98,8 @@ import type {
|
|
|
96
98
|
PalletOperationalAccountsRewardsConfig,
|
|
97
99
|
PalletPriceIndexArgonotAverageFrameAccumulator,
|
|
98
100
|
PalletPriceIndexCpiMeasurementBucket,
|
|
101
|
+
PalletPriceIndexEthereumPriceFrameAccumulator,
|
|
102
|
+
PalletPriceIndexEthereumPriceIndex,
|
|
99
103
|
PalletPriceIndexPriceIndex,
|
|
100
104
|
PalletProxyAnnouncement,
|
|
101
105
|
PalletProxyProxyDefinition,
|
|
@@ -104,7 +108,7 @@ import type {
|
|
|
104
108
|
PalletTreasuryBondLotSummary,
|
|
105
109
|
PalletTreasuryFrameArgonotBondParticipants,
|
|
106
110
|
PalletTreasuryFrameVaultCapital,
|
|
107
|
-
|
|
111
|
+
PalletTreasuryVaultBondState,
|
|
108
112
|
PalletVaultsVaultFrameRevenue,
|
|
109
113
|
SpConsensusGrandpaAppPublic,
|
|
110
114
|
SpRuntimeDigest,
|
|
@@ -206,6 +210,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
206
210
|
totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
207
211
|
};
|
|
208
212
|
bitcoinLocks: {
|
|
213
|
+
lastFeeCouponNonceByVaultAndAccount: AugmentedQuery<
|
|
214
|
+
ApiType,
|
|
215
|
+
(
|
|
216
|
+
arg1: u32 | AnyNumber | Uint8Array,
|
|
217
|
+
arg2: AccountId32 | string | Uint8Array,
|
|
218
|
+
) => Observable<Option<u64>>,
|
|
219
|
+
[u32, AccountId32]
|
|
220
|
+
>;
|
|
209
221
|
/**
|
|
210
222
|
* Utxos that have been requested to be cosigned for releasing
|
|
211
223
|
**/
|
|
@@ -512,6 +524,40 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
512
524
|
**/
|
|
513
525
|
voteMinimumHistory: AugmentedQuery<ApiType, () => Observable<Vec<u128>>, []>;
|
|
514
526
|
};
|
|
527
|
+
bootstrap: {
|
|
528
|
+
/**
|
|
529
|
+
* Encrypted endpoint payload keyed by its public key.
|
|
530
|
+
*
|
|
531
|
+
* The pallet enforces ownership and length but does not parse or verify encryption.
|
|
532
|
+
**/
|
|
533
|
+
encryptedEndpointByPubkey: AugmentedQuery<
|
|
534
|
+
ApiType,
|
|
535
|
+
(arg: PalletBootstrapEndpointPubkey | string | Uint8Array) => Observable<Option<Bytes>>,
|
|
536
|
+
[PalletBootstrapEndpointPubkey]
|
|
537
|
+
>;
|
|
538
|
+
/**
|
|
539
|
+
* Encrypted recovery payload authorized by the corresponding recovery key.
|
|
540
|
+
*
|
|
541
|
+
* The pallet enforces authorization and length but does not parse or verify encryption.
|
|
542
|
+
**/
|
|
543
|
+
encryptedRecoveryPayloadByPubkey: AugmentedQuery<
|
|
544
|
+
ApiType,
|
|
545
|
+
(arg: PalletBootstrapRecoveryPubkey | string | Uint8Array) => Observable<Option<Bytes>>,
|
|
546
|
+
[PalletBootstrapRecoveryPubkey]
|
|
547
|
+
>;
|
|
548
|
+
/**
|
|
549
|
+
* Account authorized to update an encrypted endpoint payload.
|
|
550
|
+
*
|
|
551
|
+
* The first successful [`Pallet::set_endpoint`] call for a public key establishes its owner.
|
|
552
|
+
**/
|
|
553
|
+
endpointOwnerByPubkey: AugmentedQuery<
|
|
554
|
+
ApiType,
|
|
555
|
+
(
|
|
556
|
+
arg: PalletBootstrapEndpointPubkey | string | Uint8Array,
|
|
557
|
+
) => Observable<Option<AccountId32>>,
|
|
558
|
+
[PalletBootstrapEndpointPubkey]
|
|
559
|
+
>;
|
|
560
|
+
};
|
|
515
561
|
crosschainTransfer: {
|
|
516
562
|
/**
|
|
517
563
|
* The active Global Issuance Council hash in force for each destination chain.
|
|
@@ -1272,13 +1318,18 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1272
1318
|
};
|
|
1273
1319
|
operationalAccounts: {
|
|
1274
1320
|
/**
|
|
1275
|
-
*
|
|
1321
|
+
* Set of operational accounts that have met both follow-on access-code thresholds.
|
|
1322
|
+
* The key count weights frame processing without scanning the set twice.
|
|
1276
1323
|
**/
|
|
1277
|
-
|
|
1324
|
+
accessCodeReadyAccounts: AugmentedQuery<
|
|
1278
1325
|
ApiType,
|
|
1279
|
-
(arg: AccountId32 | string | Uint8Array) => Observable<Option<
|
|
1326
|
+
(arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>,
|
|
1280
1327
|
[AccountId32]
|
|
1281
1328
|
>;
|
|
1329
|
+
/**
|
|
1330
|
+
* Counter for the related counted storage map
|
|
1331
|
+
**/
|
|
1332
|
+
counterForAccessCodeReadyAccounts: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1282
1333
|
/**
|
|
1283
1334
|
* Whether operational-account access is invite-only.
|
|
1284
1335
|
*
|
|
@@ -1403,6 +1454,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1403
1454
|
* Stores the active price index
|
|
1404
1455
|
**/
|
|
1405
1456
|
current: AugmentedQuery<ApiType, () => Observable<Option<PalletPriceIndexPriceIndex>>, []>;
|
|
1457
|
+
/**
|
|
1458
|
+
* Stores the latest submitted Ethereum pricing.
|
|
1459
|
+
**/
|
|
1460
|
+
currentEthereumPrice: AugmentedQuery<
|
|
1461
|
+
ApiType,
|
|
1462
|
+
() => Observable<Option<PalletPriceIndexEthereumPriceIndex>>,
|
|
1463
|
+
[]
|
|
1464
|
+
>;
|
|
1406
1465
|
/**
|
|
1407
1466
|
* Accumulates the current frame's Argonot price samples until the frame closes.
|
|
1408
1467
|
**/
|
|
@@ -1435,6 +1494,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1435
1494
|
() => Observable<BTreeMap<u64, u128>>,
|
|
1436
1495
|
[]
|
|
1437
1496
|
>;
|
|
1497
|
+
/**
|
|
1498
|
+
* Stores per-frame Ethereum price totals used for the trailing averages.
|
|
1499
|
+
**/
|
|
1500
|
+
historicEthereumPricesByFrame: AugmentedQuery<
|
|
1501
|
+
ApiType,
|
|
1502
|
+
() => Observable<BTreeMap<u64, PalletPriceIndexEthereumPriceFrameAccumulator>>,
|
|
1503
|
+
[]
|
|
1504
|
+
>;
|
|
1438
1505
|
/**
|
|
1439
1506
|
* Stores the last valid price index
|
|
1440
1507
|
**/
|
|
@@ -1659,7 +1726,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1659
1726
|
};
|
|
1660
1727
|
treasury: {
|
|
1661
1728
|
/**
|
|
1662
|
-
* The active
|
|
1729
|
+
* The active Argonot set keeps the smallest bond amount first, then lower ids first when
|
|
1730
|
+
* amounts tie.
|
|
1663
1731
|
**/
|
|
1664
1732
|
argonotBondLots: AugmentedQuery<
|
|
1665
1733
|
ApiType,
|
|
@@ -1686,13 +1754,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1686
1754
|
[AccountId32, u64]
|
|
1687
1755
|
>;
|
|
1688
1756
|
/**
|
|
1689
|
-
* The
|
|
1757
|
+
* The active bond state for a vault.
|
|
1690
1758
|
*
|
|
1691
|
-
*
|
|
1759
|
+
* The bounded payout set keeps the largest bond amount first, then lower `bond_lot_id` first
|
|
1760
|
+
* when amounts tie. Backfill lots remain in `BondLotById` and are represented here by their
|
|
1761
|
+
* aggregate.
|
|
1692
1762
|
**/
|
|
1693
1763
|
bondLotsByVault: AugmentedQuery<
|
|
1694
1764
|
ApiType,
|
|
1695
|
-
(arg: u32 | AnyNumber | Uint8Array) => Observable<
|
|
1765
|
+
(arg: u32 | AnyNumber | Uint8Array) => Observable<PalletTreasuryVaultBondState>,
|
|
1696
1766
|
[u32]
|
|
1697
1767
|
>;
|
|
1698
1768
|
/**
|
|
@@ -1809,14 +1879,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1809
1879
|
(arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u32>>,
|
|
1810
1880
|
[u64]
|
|
1811
1881
|
>;
|
|
1812
|
-
/**
|
|
1813
|
-
* Recent reductions in `available_for_lock`, grouped by vault.
|
|
1814
|
-
**/
|
|
1815
|
-
recentCapacityDropsByVault: AugmentedQuery<
|
|
1816
|
-
ApiType,
|
|
1817
|
-
(arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletVaultsRecentCapacityDrop>>,
|
|
1818
|
-
[u32]
|
|
1819
|
-
>;
|
|
1820
1882
|
/**
|
|
1821
1883
|
* Tracks revenue from Bitcoin Locks and Treasury Pools for the trailing frames for each vault
|
|
1822
1884
|
* (a frame is a "mining day" in Argon). Newest frames are first. Frames are removed after the
|