@argonprotocol/mainchain 1.4.10-dev.479c016c → 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 +4241 -361
- 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 +4241 -361
- package/lib/index.d.ts +4241 -361
- 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 +15 -17
- 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 +89 -16
- 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.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",
|
|
@@ -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
|
|
@@ -159,6 +160,12 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
159
160
|
**/
|
|
160
161
|
targetBlockVotes: u128 & AugmentedConst<ApiType>;
|
|
161
162
|
};
|
|
163
|
+
bootstrap: {
|
|
164
|
+
/**
|
|
165
|
+
* Maximum number of bytes in an encrypted recovery or endpoint payload.
|
|
166
|
+
**/
|
|
167
|
+
maxEncryptedPayloadLen: u32 & AugmentedConst<ApiType>;
|
|
168
|
+
};
|
|
162
169
|
crosschainTransfer: {
|
|
163
170
|
/**
|
|
164
171
|
* Minimum remaining frame commitment required when reading vault committed collateral
|
|
@@ -369,13 +376,13 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
369
376
|
**/
|
|
370
377
|
bitcoinLockSizeForAccessCode: u128 & AugmentedConst<ApiType>;
|
|
371
378
|
/**
|
|
372
|
-
* Maximum number of
|
|
379
|
+
* Maximum number of accrued access codes awarded at one frame boundary.
|
|
373
380
|
**/
|
|
374
|
-
|
|
381
|
+
maxAccessCodeAwardsPerFrame: u32 & AugmentedConst<ApiType>;
|
|
375
382
|
/**
|
|
376
|
-
* Maximum number of
|
|
383
|
+
* Maximum number of available access codes allowed at once.
|
|
377
384
|
**/
|
|
378
|
-
|
|
385
|
+
maxAvailableAccessCodes: u32 & AugmentedConst<ApiType>;
|
|
379
386
|
/**
|
|
380
387
|
* Minimum bitcoin amount required to register.
|
|
381
388
|
**/
|
|
@@ -467,6 +474,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
467
474
|
* The maximum number of ticks to preserve a price index
|
|
468
475
|
**/
|
|
469
476
|
maxDowntimeTicksBeforeReset: u64 & AugmentedConst<ApiType>;
|
|
477
|
+
/**
|
|
478
|
+
* Maximum number of per-frame Ethereum price buckets to retain.
|
|
479
|
+
**/
|
|
480
|
+
maxEthereumPriceHistoryFrames: u32 & AugmentedConst<ApiType>;
|
|
470
481
|
/**
|
|
471
482
|
* The oldest history to keep
|
|
472
483
|
**/
|
|
@@ -639,11 +650,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
639
650
|
batchedCallsLimit: u32 & AugmentedConst<ApiType>;
|
|
640
651
|
};
|
|
641
652
|
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
653
|
/**
|
|
648
654
|
* Max concurrent cosigns pending per vault
|
|
649
655
|
**/
|
|
@@ -652,10 +658,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
652
658
|
* The max pending vault term changes per block
|
|
653
659
|
**/
|
|
654
660
|
maxPendingTermModificationsPerTick: u32 & AugmentedConst<ApiType>;
|
|
655
|
-
/**
|
|
656
|
-
* Maximum number of recent `available_for_lock` drops retained per vault.
|
|
657
|
-
**/
|
|
658
|
-
maxRecentCapacityDropsPerVault: u32 & AugmentedConst<ApiType>;
|
|
659
661
|
/**
|
|
660
662
|
* The max number of vaults that can be created
|
|
661
663
|
**/
|
|
@@ -668,10 +670,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
668
670
|
* Minimum vault securitization required while the operational floor lock is active.
|
|
669
671
|
**/
|
|
670
672
|
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
673
|
/**
|
|
676
674
|
* The number of frames within which revenue must be collected
|
|
677
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.
|
|
@@ -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
|
**/
|
|
@@ -511,6 +524,40 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
511
524
|
**/
|
|
512
525
|
voteMinimumHistory: AugmentedQuery<ApiType, () => Observable<Vec<u128>>, []>;
|
|
513
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
|
+
};
|
|
514
561
|
crosschainTransfer: {
|
|
515
562
|
/**
|
|
516
563
|
* The active Global Issuance Council hash in force for each destination chain.
|
|
@@ -658,6 +705,16 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
658
705
|
) => Observable<u64>,
|
|
659
706
|
[PalletCrosschainTransferSourceChain]
|
|
660
707
|
>;
|
|
708
|
+
/**
|
|
709
|
+
* First frame where a new council snapshot may be added to a chain's approval queue.
|
|
710
|
+
**/
|
|
711
|
+
nextCouncilRotationFrameByDestinationChain: AugmentedQuery<
|
|
712
|
+
ApiType,
|
|
713
|
+
(
|
|
714
|
+
arg: PalletCrosschainTransferSourceChain | 'Ethereum' | number | Uint8Array,
|
|
715
|
+
) => Observable<Option<u64>>,
|
|
716
|
+
[PalletCrosschainTransferSourceChain]
|
|
717
|
+
>;
|
|
661
718
|
/**
|
|
662
719
|
* Next outbound transfer nonce for each sending account.
|
|
663
720
|
**/
|
|
@@ -1261,13 +1318,18 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1261
1318
|
};
|
|
1262
1319
|
operationalAccounts: {
|
|
1263
1320
|
/**
|
|
1264
|
-
*
|
|
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.
|
|
1265
1323
|
**/
|
|
1266
|
-
|
|
1324
|
+
accessCodeReadyAccounts: AugmentedQuery<
|
|
1267
1325
|
ApiType,
|
|
1268
|
-
(arg: AccountId32 | string | Uint8Array) => Observable<Option<
|
|
1326
|
+
(arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>,
|
|
1269
1327
|
[AccountId32]
|
|
1270
1328
|
>;
|
|
1329
|
+
/**
|
|
1330
|
+
* Counter for the related counted storage map
|
|
1331
|
+
**/
|
|
1332
|
+
counterForAccessCodeReadyAccounts: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
1271
1333
|
/**
|
|
1272
1334
|
* Whether operational-account access is invite-only.
|
|
1273
1335
|
*
|
|
@@ -1392,6 +1454,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1392
1454
|
* Stores the active price index
|
|
1393
1455
|
**/
|
|
1394
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
|
+
>;
|
|
1395
1465
|
/**
|
|
1396
1466
|
* Accumulates the current frame's Argonot price samples until the frame closes.
|
|
1397
1467
|
**/
|
|
@@ -1424,6 +1494,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1424
1494
|
() => Observable<BTreeMap<u64, u128>>,
|
|
1425
1495
|
[]
|
|
1426
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
|
+
>;
|
|
1427
1505
|
/**
|
|
1428
1506
|
* Stores the last valid price index
|
|
1429
1507
|
**/
|
|
@@ -1648,7 +1726,8 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1648
1726
|
};
|
|
1649
1727
|
treasury: {
|
|
1650
1728
|
/**
|
|
1651
|
-
* The active
|
|
1729
|
+
* The active Argonot set keeps the smallest bond amount first, then lower ids first when
|
|
1730
|
+
* amounts tie.
|
|
1652
1731
|
**/
|
|
1653
1732
|
argonotBondLots: AugmentedQuery<
|
|
1654
1733
|
ApiType,
|
|
@@ -1675,13 +1754,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1675
1754
|
[AccountId32, u64]
|
|
1676
1755
|
>;
|
|
1677
1756
|
/**
|
|
1678
|
-
* The
|
|
1757
|
+
* The active bond state for a vault.
|
|
1679
1758
|
*
|
|
1680
|
-
*
|
|
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.
|
|
1681
1762
|
**/
|
|
1682
1763
|
bondLotsByVault: AugmentedQuery<
|
|
1683
1764
|
ApiType,
|
|
1684
|
-
(arg: u32 | AnyNumber | Uint8Array) => Observable<
|
|
1765
|
+
(arg: u32 | AnyNumber | Uint8Array) => Observable<PalletTreasuryVaultBondState>,
|
|
1685
1766
|
[u32]
|
|
1686
1767
|
>;
|
|
1687
1768
|
/**
|
|
@@ -1798,14 +1879,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1798
1879
|
(arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u32>>,
|
|
1799
1880
|
[u64]
|
|
1800
1881
|
>;
|
|
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
1882
|
/**
|
|
1810
1883
|
* Tracks revenue from Bitcoin Locks and Treasury Pools for the trailing frames for each vault
|
|
1811
1884
|
* (a frame is a "mining day" in Argon). Newest frames are first. Frames are removed after the
|