@argonprotocol/mainchain 1.4.10-dev.479c016c → 1.4.10-dev.4dee3b2f
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 +4245 -363
- 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 +4245 -363
- package/lib/index.d.ts +4245 -363
- 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 +17 -18
- package/src/interfaces/augment-api-errors.ts +63 -13
- package/src/interfaces/augment-api-events.ts +56 -8
- package/src/interfaces/augment-api-query.ts +91 -17
- package/src/interfaces/augment-api-runtime.ts +1 -0
- package/src/interfaces/augment-api-tx.ts +82 -36
- package/src/interfaces/augment-api.ts +1 -0
- package/src/interfaces/augment-types.ts +1 -0
- package/src/interfaces/lookup.ts +385 -257
- package/src/interfaces/registry.ts +21 -2
- package/src/interfaces/types-lookup.ts +425 -278
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.4dee3b2f",
|
|
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.4dee3b2f",
|
|
69
72
|
"@polkadot/typegen": "^16.5.6",
|
|
70
73
|
"@substrate/ss58-registry": "^1.51.0",
|
|
71
74
|
"@types/node": "^20",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
/* eslint-disable */
|
|
2
3
|
|
|
3
4
|
// import type lookup before we augment - in some environments
|
|
4
5
|
// this is required to allow for ambient/previous definitions
|
|
@@ -102,7 +103,8 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
102
103
|
**/
|
|
103
104
|
maximumSatoshiThresholdFromExpected: u64 & AugmentedConst<ApiType>;
|
|
104
105
|
/**
|
|
105
|
-
* Maximum bitcoin blocks to
|
|
106
|
+
* Maximum bitcoin blocks to accept a UTXO for confirmation. Expired locks remain watched
|
|
107
|
+
* for this many additional blocks so late funding can be detected as orphaned.
|
|
106
108
|
**/
|
|
107
109
|
maxPendingConfirmationBlocks: u64 & AugmentedConst<ApiType>;
|
|
108
110
|
/**
|
|
@@ -159,6 +161,12 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
159
161
|
**/
|
|
160
162
|
targetBlockVotes: u128 & AugmentedConst<ApiType>;
|
|
161
163
|
};
|
|
164
|
+
bootstrap: {
|
|
165
|
+
/**
|
|
166
|
+
* Maximum number of bytes in an encrypted recovery or endpoint payload.
|
|
167
|
+
**/
|
|
168
|
+
maxEncryptedPayloadLen: u32 & AugmentedConst<ApiType>;
|
|
169
|
+
};
|
|
162
170
|
crosschainTransfer: {
|
|
163
171
|
/**
|
|
164
172
|
* Minimum remaining frame commitment required when reading vault committed collateral
|
|
@@ -369,13 +377,13 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
369
377
|
**/
|
|
370
378
|
bitcoinLockSizeForAccessCode: u128 & AugmentedConst<ApiType>;
|
|
371
379
|
/**
|
|
372
|
-
* Maximum number of
|
|
380
|
+
* Maximum number of accrued access codes awarded at one frame boundary.
|
|
373
381
|
**/
|
|
374
|
-
|
|
382
|
+
maxAccessCodeAwardsPerFrame: u32 & AugmentedConst<ApiType>;
|
|
375
383
|
/**
|
|
376
|
-
* Maximum number of
|
|
384
|
+
* Maximum number of available access codes allowed at once.
|
|
377
385
|
**/
|
|
378
|
-
|
|
386
|
+
maxAvailableAccessCodes: u32 & AugmentedConst<ApiType>;
|
|
379
387
|
/**
|
|
380
388
|
* Minimum bitcoin amount required to register.
|
|
381
389
|
**/
|
|
@@ -467,6 +475,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
467
475
|
* The maximum number of ticks to preserve a price index
|
|
468
476
|
**/
|
|
469
477
|
maxDowntimeTicksBeforeReset: u64 & AugmentedConst<ApiType>;
|
|
478
|
+
/**
|
|
479
|
+
* Maximum number of per-frame Ethereum price buckets to retain.
|
|
480
|
+
**/
|
|
481
|
+
maxEthereumPriceHistoryFrames: u32 & AugmentedConst<ApiType>;
|
|
470
482
|
/**
|
|
471
483
|
* The oldest history to keep
|
|
472
484
|
**/
|
|
@@ -639,11 +651,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
639
651
|
batchedCallsLimit: u32 & AugmentedConst<ApiType>;
|
|
640
652
|
};
|
|
641
653
|
vaults: {
|
|
642
|
-
/**
|
|
643
|
-
* One no-fee stale `initialize_for` failure is allowed for each this-many units of lost
|
|
644
|
-
* `available_for_lock`.
|
|
645
|
-
**/
|
|
646
|
-
capacityDropAttemptUnit: u128 & AugmentedConst<ApiType>;
|
|
647
654
|
/**
|
|
648
655
|
* Max concurrent cosigns pending per vault
|
|
649
656
|
**/
|
|
@@ -652,10 +659,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
652
659
|
* The max pending vault term changes per block
|
|
653
660
|
**/
|
|
654
661
|
maxPendingTermModificationsPerTick: u32 & AugmentedConst<ApiType>;
|
|
655
|
-
/**
|
|
656
|
-
* Maximum number of recent `available_for_lock` drops retained per vault.
|
|
657
|
-
**/
|
|
658
|
-
maxRecentCapacityDropsPerVault: u32 & AugmentedConst<ApiType>;
|
|
659
662
|
/**
|
|
660
663
|
* The max number of vaults that can be created
|
|
661
664
|
**/
|
|
@@ -668,10 +671,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
668
671
|
* Minimum vault securitization required while the operational floor lock is active.
|
|
669
672
|
**/
|
|
670
673
|
operationalMinimumVaultSecuritization: u128 & AugmentedConst<ApiType>;
|
|
671
|
-
/**
|
|
672
|
-
* Number of Argon blocks to keep recent `available_for_lock` drops for stale init checks.
|
|
673
|
-
**/
|
|
674
|
-
recentCapacityDropBlockWindow: u32 & AugmentedConst<ApiType>;
|
|
675
674
|
/**
|
|
676
675
|
* The number of frames within which revenue must be collected
|
|
677
676
|
**/
|
|
@@ -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.
|
|
@@ -369,6 +411,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
369
411
|
* The account has not registered a council signer for this destination chain.
|
|
370
412
|
**/
|
|
371
413
|
CouncilSignerNotRegistered: AugmentedError<ApiType>;
|
|
414
|
+
/**
|
|
415
|
+
* The account already has a council signer rotation pending for this destination chain.
|
|
416
|
+
**/
|
|
417
|
+
CouncilSignerRotationPending: AugmentedError<ApiType>;
|
|
372
418
|
/**
|
|
373
419
|
* The supplied Global Issuance Council contains the same account more than once.
|
|
374
420
|
**/
|
|
@@ -986,10 +1032,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
986
1032
|
* An account cannot grant access to itself.
|
|
987
1033
|
**/
|
|
988
1034
|
CannotGrantAccessToSelf: AugmentedError<ApiType>;
|
|
989
|
-
/**
|
|
990
|
-
* The encrypted server payload exceeds the configured max length.
|
|
991
|
-
**/
|
|
992
|
-
EncryptedServerTooLong: AugmentedError<ApiType>;
|
|
993
1035
|
/**
|
|
994
1036
|
* The upstream access proof is invalid.
|
|
995
1037
|
**/
|
|
@@ -998,6 +1040,11 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
998
1040
|
* One of the linked account ownership proofs is invalid.
|
|
999
1041
|
**/
|
|
1000
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>;
|
|
1001
1048
|
/**
|
|
1002
1049
|
* The caller is not one of the accounts included in the registration.
|
|
1003
1050
|
**/
|
|
@@ -1022,10 +1069,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1022
1069
|
* The requested account has not registered operational accounts.
|
|
1023
1070
|
**/
|
|
1024
1071
|
NotOperationalAccount: AugmentedError<ApiType>;
|
|
1025
|
-
/**
|
|
1026
|
-
* The caller is not the upstream account for the requested downstream account.
|
|
1027
|
-
**/
|
|
1028
|
-
NotUpstreamOfDownstream: AugmentedError<ApiType>;
|
|
1029
1072
|
/**
|
|
1030
1073
|
* A valid invite is required to register an operational account.
|
|
1031
1074
|
**/
|
|
@@ -1106,6 +1149,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1106
1149
|
VestingBalance: AugmentedError<ApiType>;
|
|
1107
1150
|
};
|
|
1108
1151
|
priceIndex: {
|
|
1152
|
+
/**
|
|
1153
|
+
* Ethereum prices must be non-zero and correspond to the submitted price-index tick.
|
|
1154
|
+
**/
|
|
1155
|
+
InvalidEthereumPrices: AugmentedError<ApiType>;
|
|
1109
1156
|
/**
|
|
1110
1157
|
* Change in argon price is too large
|
|
1111
1158
|
**/
|
|
@@ -1224,6 +1271,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1224
1271
|
* The bond lot is already scheduled for release.
|
|
1225
1272
|
**/
|
|
1226
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>;
|
|
1227
1278
|
/**
|
|
1228
1279
|
* The bond lot could not be found.
|
|
1229
1280
|
**/
|
|
@@ -1272,6 +1323,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1272
1323
|
* Too many bond lot releases are scheduled for the same frame.
|
|
1273
1324
|
**/
|
|
1274
1325
|
MaxPendingBondReleasesExceeded: AugmentedError<ApiType>;
|
|
1326
|
+
/**
|
|
1327
|
+
* The caller does not have permission to perform this action.
|
|
1328
|
+
**/
|
|
1329
|
+
NoPermissions: AugmentedError<ApiType>;
|
|
1275
1330
|
/**
|
|
1276
1331
|
* The caller does not own the bond lot.
|
|
1277
1332
|
**/
|
|
@@ -1353,11 +1408,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1353
1408
|
* Funding would result in an overflow of the balance type
|
|
1354
1409
|
**/
|
|
1355
1410
|
InvalidVaultAmount: AugmentedError<ApiType>;
|
|
1356
|
-
/**
|
|
1357
|
-
* Vault names must start with an uppercase ASCII letter and otherwise be ASCII
|
|
1358
|
-
* alphanumeric.
|
|
1359
|
-
**/
|
|
1360
|
-
InvalidVaultName: AugmentedError<ApiType>;
|
|
1361
1411
|
/**
|
|
1362
1412
|
* Unable to decode xpubkey
|
|
1363
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.
|
|
@@ -607,6 +632,22 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
607
632
|
[destinationChain: PalletCrosschainTransferSourceChain, councilHash: H256],
|
|
608
633
|
{ destinationChain: PalletCrosschainTransferSourceChain; councilHash: H256 }
|
|
609
634
|
>;
|
|
635
|
+
/**
|
|
636
|
+
* A frame transition queued a new Global Issuance Council for destination-chain approval.
|
|
637
|
+
**/
|
|
638
|
+
GlobalIssuanceCouncilRotationQueued: AugmentedEvent<
|
|
639
|
+
ApiType,
|
|
640
|
+
[
|
|
641
|
+
destinationChain: PalletCrosschainTransferSourceChain,
|
|
642
|
+
councilHash: H256,
|
|
643
|
+
approvalQueueNonce: u64,
|
|
644
|
+
],
|
|
645
|
+
{
|
|
646
|
+
destinationChain: PalletCrosschainTransferSourceChain;
|
|
647
|
+
councilHash: H256;
|
|
648
|
+
approvalQueueNonce: u64;
|
|
649
|
+
}
|
|
650
|
+
>;
|
|
610
651
|
/**
|
|
611
652
|
* Root updated the minimum normalized microgon value required to register a Minting
|
|
612
653
|
* Authority on one destination chain.
|
|
@@ -1257,14 +1298,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1257
1298
|
[account: AccountId32],
|
|
1258
1299
|
{ account: AccountId32 }
|
|
1259
1300
|
>;
|
|
1260
|
-
/**
|
|
1261
|
-
* An upstream account updated the encrypted server payload for a downstream account.
|
|
1262
|
-
**/
|
|
1263
|
-
EncryptedServerUpdated: AugmentedEvent<
|
|
1264
|
-
ApiType,
|
|
1265
|
-
[upstreamAccount: AccountId32, downstreamAccount: AccountId32],
|
|
1266
|
-
{ upstreamAccount: AccountId32; downstreamAccount: AccountId32 }
|
|
1267
|
-
>;
|
|
1268
1301
|
/**
|
|
1269
1302
|
* An operational account was registered with its linked accounts.
|
|
1270
1303
|
**/
|
|
@@ -1814,6 +1847,16 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1814
1847
|
>;
|
|
1815
1848
|
};
|
|
1816
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
|
+
>;
|
|
1817
1860
|
/**
|
|
1818
1861
|
* A bond purchase entered its active program set.
|
|
1819
1862
|
**/
|
|
@@ -2058,6 +2101,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2058
2101
|
>;
|
|
2059
2102
|
};
|
|
2060
2103
|
vaults: {
|
|
2104
|
+
BackfillSecuritizationReservedChanged: AugmentedEvent<
|
|
2105
|
+
ApiType,
|
|
2106
|
+
[vaultId: u32, backfillSecuritizationReserved: u128],
|
|
2107
|
+
{ vaultId: u32; backfillSecuritizationReserved: u128 }
|
|
2108
|
+
>;
|
|
2061
2109
|
CommittedArgonotsSet: AugmentedEvent<
|
|
2062
2110
|
ApiType,
|
|
2063
2111
|
[vaultId: u32, operatorAccountId: AccountId32, amount: u128],
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
/* eslint-disable */
|
|
2
3
|
|
|
3
4
|
// import type lookup before we augment - in some environments
|
|
4
5
|
// this is required to allow for ambient/previous definitions
|
|
@@ -65,6 +66,8 @@ import type {
|
|
|
65
66
|
PalletBitcoinLocksLockReleaseRequest,
|
|
66
67
|
PalletBitcoinLocksLockedBitcoin,
|
|
67
68
|
PalletBitcoinLocksOrphanedUtxo,
|
|
69
|
+
PalletBootstrapEndpointPubkey,
|
|
70
|
+
PalletBootstrapRecoveryPubkey,
|
|
68
71
|
PalletCrosschainTransferAccountTransferTotals,
|
|
69
72
|
PalletCrosschainTransferChainConfig,
|
|
70
73
|
PalletCrosschainTransferCouncilApprovalQueueEntry,
|
|
@@ -95,6 +98,8 @@ import type {
|
|
|
95
98
|
PalletOperationalAccountsRewardsConfig,
|
|
96
99
|
PalletPriceIndexArgonotAverageFrameAccumulator,
|
|
97
100
|
PalletPriceIndexCpiMeasurementBucket,
|
|
101
|
+
PalletPriceIndexEthereumPriceFrameAccumulator,
|
|
102
|
+
PalletPriceIndexEthereumPriceIndex,
|
|
98
103
|
PalletPriceIndexPriceIndex,
|
|
99
104
|
PalletProxyAnnouncement,
|
|
100
105
|
PalletProxyProxyDefinition,
|
|
@@ -103,7 +108,7 @@ import type {
|
|
|
103
108
|
PalletTreasuryBondLotSummary,
|
|
104
109
|
PalletTreasuryFrameArgonotBondParticipants,
|
|
105
110
|
PalletTreasuryFrameVaultCapital,
|
|
106
|
-
|
|
111
|
+
PalletTreasuryVaultBondState,
|
|
107
112
|
PalletVaultsVaultFrameRevenue,
|
|
108
113
|
SpConsensusGrandpaAppPublic,
|
|
109
114
|
SpRuntimeDigest,
|
|
@@ -205,6 +210,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
205
210
|
totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
206
211
|
};
|
|
207
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
|
+
>;
|
|
208
221
|
/**
|
|
209
222
|
* Utxos that have been requested to be cosigned for releasing
|
|
210
223
|
**/
|
|
@@ -337,7 +350,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
337
350
|
[]
|
|
338
351
|
>;
|
|
339
352
|
/**
|
|
340
|
-
* Pending funding entries that have expired
|
|
353
|
+
* Pending funding entries that have expired. These remain watched until their additional
|
|
354
|
+
* orphan-detection window ends, then await bounded cleanup.
|
|
341
355
|
**/
|
|
342
356
|
expiredPendingFunding: AugmentedQuery<
|
|
343
357
|
ApiType,
|
|
@@ -511,6 +525,40 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
511
525
|
**/
|
|
512
526
|
voteMinimumHistory: AugmentedQuery<ApiType, () => Observable<Vec<u128>>, []>;
|
|
513
527
|
};
|
|
528
|
+
bootstrap: {
|
|
529
|
+
/**
|
|
530
|
+
* Encrypted endpoint payload keyed by its public key.
|
|
531
|
+
*
|
|
532
|
+
* The pallet enforces ownership and length but does not parse or verify encryption.
|
|
533
|
+
**/
|
|
534
|
+
encryptedEndpointByPubkey: AugmentedQuery<
|
|
535
|
+
ApiType,
|
|
536
|
+
(arg: PalletBootstrapEndpointPubkey | string | Uint8Array) => Observable<Option<Bytes>>,
|
|
537
|
+
[PalletBootstrapEndpointPubkey]
|
|
538
|
+
>;
|
|
539
|
+
/**
|
|
540
|
+
* Encrypted recovery payload authorized by the corresponding recovery key.
|
|
541
|
+
*
|
|
542
|
+
* The pallet enforces authorization and length but does not parse or verify encryption.
|
|
543
|
+
**/
|
|
544
|
+
encryptedRecoveryPayloadByPubkey: AugmentedQuery<
|
|
545
|
+
ApiType,
|
|
546
|
+
(arg: PalletBootstrapRecoveryPubkey | string | Uint8Array) => Observable<Option<Bytes>>,
|
|
547
|
+
[PalletBootstrapRecoveryPubkey]
|
|
548
|
+
>;
|
|
549
|
+
/**
|
|
550
|
+
* Account authorized to update an encrypted endpoint payload.
|
|
551
|
+
*
|
|
552
|
+
* The first successful [`Pallet::set_endpoint`] call for a public key establishes its owner.
|
|
553
|
+
**/
|
|
554
|
+
endpointOwnerByPubkey: AugmentedQuery<
|
|
555
|
+
ApiType,
|
|
556
|
+
(
|
|
557
|
+
arg: PalletBootstrapEndpointPubkey | string | Uint8Array,
|
|
558
|
+
) => Observable<Option<AccountId32>>,
|
|
559
|
+
[PalletBootstrapEndpointPubkey]
|
|
560
|
+
>;
|
|
561
|
+
};
|
|
514
562
|
crosschainTransfer: {
|
|
515
563
|
/**
|
|
516
564
|
* The active Global Issuance Council hash in force for each destination chain.
|
|
@@ -658,6 +706,16 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
658
706
|
) => Observable<u64>,
|
|
659
707
|
[PalletCrosschainTransferSourceChain]
|
|
660
708
|
>;
|
|
709
|
+
/**
|
|
710
|
+
* First frame where a new council snapshot may be added to a chain's approval queue.
|
|
711
|
+
**/
|
|
712
|
+
nextCouncilRotationFrameByDestinationChain: AugmentedQuery<
|
|
713
|
+
ApiType,
|
|
714
|
+
(
|
|
715
|
+
arg: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
|
|
716
|
+
) => Observable<Option<u64>>,
|
|
717
|
+
[PalletCrosschainTransferSourceChain]
|
|
718
|
+
>;
|
|
661
719
|
/**
|
|
662
720
|
* Next outbound transfer nonce for each sending account.
|
|
663
721
|
**/
|
|
@@ -1261,13 +1319,18 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1261
1319
|
};
|
|
1262
1320
|
operationalAccounts: {
|
|
1263
1321
|
/**
|
|
1264
|
-
*
|
|
1322
|
+
* Set of operational accounts that have met both follow-on access-code thresholds.
|
|
1323
|
+
* The key count weights frame processing without scanning the set twice.
|
|
1265
1324
|
**/
|
|
1266
|
-
|
|
1325
|
+
accessCodeReadyAccounts: AugmentedQuery<
|
|
1267
1326
|
ApiType,
|
|
1268
|
-
(arg: AccountId32 | string | Uint8Array) => Observable<Option<
|
|
1327
|
+
(arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>,
|
|
1269
1328
|
[AccountId32]
|
|
1270
1329
|
>;
|
|
1330
|
+
/**
|
|
1331
|
+
* Counter for the related counted storage map
|
|
1332
|
+
**/
|
|
1333
|
+
counterForAccessCodeReadyAccounts: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1271
1334
|
/**
|
|
1272
1335
|
* Whether operational-account access is invite-only.
|
|
1273
1336
|
*
|
|
@@ -1392,6 +1455,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1392
1455
|
* Stores the active price index
|
|
1393
1456
|
**/
|
|
1394
1457
|
current: AugmentedQuery<ApiType, () => Observable<Option<PalletPriceIndexPriceIndex>>, []>;
|
|
1458
|
+
/**
|
|
1459
|
+
* Stores the latest submitted Ethereum pricing.
|
|
1460
|
+
**/
|
|
1461
|
+
currentEthereumPrice: AugmentedQuery<
|
|
1462
|
+
ApiType,
|
|
1463
|
+
() => Observable<Option<PalletPriceIndexEthereumPriceIndex>>,
|
|
1464
|
+
[]
|
|
1465
|
+
>;
|
|
1395
1466
|
/**
|
|
1396
1467
|
* Accumulates the current frame's Argonot price samples until the frame closes.
|
|
1397
1468
|
**/
|
|
@@ -1424,6 +1495,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1424
1495
|
() => Observable<BTreeMap<u64, u128>>,
|
|
1425
1496
|
[]
|
|
1426
1497
|
>;
|
|
1498
|
+
/**
|
|
1499
|
+
* Stores per-frame Ethereum price totals used for the trailing averages.
|
|
1500
|
+
**/
|
|
1501
|
+
historicEthereumPricesByFrame: AugmentedQuery<
|
|
1502
|
+
ApiType,
|
|
1503
|
+
() => Observable<BTreeMap<u64, PalletPriceIndexEthereumPriceFrameAccumulator>>,
|
|
1504
|
+
[]
|
|
1505
|
+
>;
|
|
1427
1506
|
/**
|
|
1428
1507
|
* Stores the last valid price index
|
|
1429
1508
|
**/
|
|
@@ -1648,7 +1727,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1648
1727
|
};
|
|
1649
1728
|
treasury: {
|
|
1650
1729
|
/**
|
|
1651
|
-
* The active
|
|
1730
|
+
* The active Argonot set keeps the smallest bond amount first, then lower ids first when
|
|
1731
|
+
* amounts tie.
|
|
1652
1732
|
**/
|
|
1653
1733
|
argonotBondLots: AugmentedQuery<
|
|
1654
1734
|
ApiType,
|
|
@@ -1675,13 +1755,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1675
1755
|
[AccountId32, u64]
|
|
1676
1756
|
>;
|
|
1677
1757
|
/**
|
|
1678
|
-
* The
|
|
1758
|
+
* The active bond state for a vault.
|
|
1679
1759
|
*
|
|
1680
|
-
*
|
|
1760
|
+
* The bounded payout set keeps the largest bond amount first, then lower `bond_lot_id` first
|
|
1761
|
+
* when amounts tie. Backfill lots remain in `BondLotById` and are represented here by their
|
|
1762
|
+
* aggregate.
|
|
1681
1763
|
**/
|
|
1682
1764
|
bondLotsByVault: AugmentedQuery<
|
|
1683
1765
|
ApiType,
|
|
1684
|
-
(arg: u32 | AnyNumber | Uint8Array) => Observable<
|
|
1766
|
+
(arg: u32 | AnyNumber | Uint8Array) => Observable<PalletTreasuryVaultBondState>,
|
|
1685
1767
|
[u32]
|
|
1686
1768
|
>;
|
|
1687
1769
|
/**
|
|
@@ -1798,14 +1880,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1798
1880
|
(arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u32>>,
|
|
1799
1881
|
[u64]
|
|
1800
1882
|
>;
|
|
1801
|
-
/**
|
|
1802
|
-
* Recent reductions in `available_for_lock`, grouped by vault.
|
|
1803
|
-
**/
|
|
1804
|
-
recentCapacityDropsByVault: AugmentedQuery<
|
|
1805
|
-
ApiType,
|
|
1806
|
-
(arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletVaultsRecentCapacityDrop>>,
|
|
1807
|
-
[u32]
|
|
1808
|
-
>;
|
|
1809
1883
|
/**
|
|
1810
1884
|
* Tracks revenue from Bitcoin Locks and Treasury Pools for the trailing frames for each vault
|
|
1811
1885
|
* (a frame is a "mining day" in Argon). Newest frames are first. Frames are removed after the
|