@argonprotocol/mainchain 0.0.2
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/lib/cjs/index.d.ts +14 -0
- package/lib/cjs/index.js +37 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/interfaces/augment-api-consts.d.ts +408 -0
- package/lib/cjs/interfaces/augment-api-consts.js +8 -0
- package/lib/cjs/interfaces/augment-api-consts.js.map +1 -0
- package/lib/cjs/interfaces/augment-api-errors.d.ts +807 -0
- package/lib/cjs/interfaces/augment-api-errors.js +8 -0
- package/lib/cjs/interfaces/augment-api-errors.js.map +1 -0
- package/lib/cjs/interfaces/augment-api-events.d.ts +902 -0
- package/lib/cjs/interfaces/augment-api-events.js +8 -0
- package/lib/cjs/interfaces/augment-api-events.js.map +1 -0
- package/lib/cjs/interfaces/augment-api-query.d.ts +640 -0
- package/lib/cjs/interfaces/augment-api-query.js +8 -0
- package/lib/cjs/interfaces/augment-api-query.js.map +1 -0
- package/lib/cjs/interfaces/augment-api-rpc.d.ts +679 -0
- package/lib/cjs/interfaces/augment-api-rpc.js +8 -0
- package/lib/cjs/interfaces/augment-api-rpc.js.map +1 -0
- package/lib/cjs/interfaces/augment-api-runtime.d.ts +204 -0
- package/lib/cjs/interfaces/augment-api-runtime.js +8 -0
- package/lib/cjs/interfaces/augment-api-runtime.js.map +1 -0
- package/lib/cjs/interfaces/augment-api-tx.d.ts +1134 -0
- package/lib/cjs/interfaces/augment-api-tx.js +8 -0
- package/lib/cjs/interfaces/augment-api-tx.js.map +1 -0
- package/lib/cjs/interfaces/augment-api.d.ts +7 -0
- package/lib/cjs/interfaces/augment-api.js +12 -0
- package/lib/cjs/interfaces/augment-api.js.map +1 -0
- package/lib/cjs/interfaces/augment-types.d.ts +1249 -0
- package/lib/cjs/interfaces/augment-types.js +8 -0
- package/lib/cjs/interfaces/augment-types.js.map +1 -0
- package/lib/cjs/interfaces/definitions.d.ts +0 -0
- package/lib/cjs/interfaces/definitions.js +2 -0
- package/lib/cjs/interfaces/definitions.js.map +1 -0
- package/lib/cjs/interfaces/lookup.d.ts +2393 -0
- package/lib/cjs/interfaces/lookup.js +2398 -0
- package/lib/cjs/interfaces/lookup.js.map +1 -0
- package/lib/cjs/interfaces/registry.d.ts +202 -0
- package/lib/cjs/interfaces/registry.js +8 -0
- package/lib/cjs/interfaces/registry.js.map +1 -0
- package/lib/cjs/interfaces/types-lookup.d.ts +2350 -0
- package/lib/cjs/interfaces/types-lookup.js +8 -0
- package/lib/cjs/interfaces/types-lookup.js.map +1 -0
- package/lib/esm/index.d.ts +14 -0
- package/lib/esm/index.js +31 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/interfaces/augment-api-consts.d.ts +408 -0
- package/lib/esm/interfaces/augment-api-consts.js +6 -0
- package/lib/esm/interfaces/augment-api-consts.js.map +1 -0
- package/lib/esm/interfaces/augment-api-errors.d.ts +807 -0
- package/lib/esm/interfaces/augment-api-errors.js +6 -0
- package/lib/esm/interfaces/augment-api-errors.js.map +1 -0
- package/lib/esm/interfaces/augment-api-events.d.ts +902 -0
- package/lib/esm/interfaces/augment-api-events.js +6 -0
- package/lib/esm/interfaces/augment-api-events.js.map +1 -0
- package/lib/esm/interfaces/augment-api-query.d.ts +640 -0
- package/lib/esm/interfaces/augment-api-query.js +6 -0
- package/lib/esm/interfaces/augment-api-query.js.map +1 -0
- package/lib/esm/interfaces/augment-api-rpc.d.ts +679 -0
- package/lib/esm/interfaces/augment-api-rpc.js +6 -0
- package/lib/esm/interfaces/augment-api-rpc.js.map +1 -0
- package/lib/esm/interfaces/augment-api-runtime.d.ts +204 -0
- package/lib/esm/interfaces/augment-api-runtime.js +6 -0
- package/lib/esm/interfaces/augment-api-runtime.js.map +1 -0
- package/lib/esm/interfaces/augment-api-tx.d.ts +1134 -0
- package/lib/esm/interfaces/augment-api-tx.js +6 -0
- package/lib/esm/interfaces/augment-api-tx.js.map +1 -0
- package/lib/esm/interfaces/augment-api.d.ts +7 -0
- package/lib/esm/interfaces/augment-api.js +10 -0
- package/lib/esm/interfaces/augment-api.js.map +1 -0
- package/lib/esm/interfaces/augment-types.d.ts +1249 -0
- package/lib/esm/interfaces/augment-types.js +6 -0
- package/lib/esm/interfaces/augment-types.js.map +1 -0
- package/lib/esm/interfaces/definitions.d.ts +0 -0
- package/lib/esm/interfaces/definitions.js +2 -0
- package/lib/esm/interfaces/definitions.js.map +1 -0
- package/lib/esm/interfaces/lookup.d.ts +2393 -0
- package/lib/esm/interfaces/lookup.js +2396 -0
- package/lib/esm/interfaces/lookup.js.map +1 -0
- package/lib/esm/interfaces/registry.d.ts +202 -0
- package/lib/esm/interfaces/registry.js +6 -0
- package/lib/esm/interfaces/registry.js.map +1 -0
- package/lib/esm/interfaces/types-lookup.d.ts +2350 -0
- package/lib/esm/interfaces/types-lookup.js +6 -0
- package/lib/esm/interfaces/types-lookup.js.map +1 -0
- package/lib/tsconfig-cjs.tsbuildinfo +1 -0
- package/lib/tsconfig-types.tsbuildinfo +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/types/index.d.ts +14 -0
- package/lib/types/interfaces/augment-api-consts.d.ts +408 -0
- package/lib/types/interfaces/augment-api-errors.d.ts +807 -0
- package/lib/types/interfaces/augment-api-events.d.ts +902 -0
- package/lib/types/interfaces/augment-api-query.d.ts +640 -0
- package/lib/types/interfaces/augment-api-rpc.d.ts +679 -0
- package/lib/types/interfaces/augment-api-runtime.d.ts +204 -0
- package/lib/types/interfaces/augment-api-tx.d.ts +1134 -0
- package/lib/types/interfaces/augment-api.d.ts +7 -0
- package/lib/types/interfaces/augment-types.d.ts +1249 -0
- package/lib/types/interfaces/definitions.d.ts +0 -0
- package/lib/types/interfaces/lookup.d.ts +2393 -0
- package/lib/types/interfaces/registry.d.ts +202 -0
- package/lib/types/interfaces/types-lookup.d.ts +2350 -0
- package/package.json +62 -0
|
@@ -0,0 +1,640 @@
|
|
|
1
|
+
import '@polkadot/api-base/types/storage';
|
|
2
|
+
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
|
3
|
+
import type { BTreeMap, Bytes, Null, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
|
4
|
+
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
5
|
+
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
|
6
|
+
import type { ArgonNodeRuntimeOpaqueSessionKeys, ArgonNotaryAuditErrorVerifyError, ArgonPrimitivesBalanceChangeAccountOrigin, ArgonPrimitivesBitcoinBitcoinBlock, ArgonPrimitivesBitcoinBitcoinNetwork, ArgonPrimitivesBitcoinBitcoinXPub, ArgonPrimitivesBitcoinUtxoRef, ArgonPrimitivesBitcoinUtxoValue, ArgonPrimitivesBlockSealAppPublic, ArgonPrimitivesBlockSealBlockPayout, ArgonPrimitivesBlockSealMiningRegistration, ArgonPrimitivesBlockSealMiningSlotConfig, ArgonPrimitivesBond, ArgonPrimitivesBondVault, ArgonPrimitivesDataDomainZoneRecord, ArgonPrimitivesDigestsBlockVoteDigest, ArgonPrimitivesDigestsNotebookDigest, ArgonPrimitivesDigestsParentVotingKeyDigest, ArgonPrimitivesInherentsBlockSealInherent, ArgonPrimitivesNotaryNotaryMeta, ArgonPrimitivesNotaryNotaryNotebookKeyDetails, ArgonPrimitivesNotaryNotaryNotebookVoteDigestDetails, ArgonPrimitivesNotaryNotaryRecord, ArgonPrimitivesProvidersBlockSealerInfo, ArgonPrimitivesTickTicker, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBondUtxoCosignRequest, PalletBondUtxoState, PalletChainTransferQueuedTransferOut, PalletDataDomainDataDomainRegistration, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletMultisigMultisig, PalletPriceIndexPriceIndex, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletTransactionPaymentReleases, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
|
7
|
+
import type { Observable } from '@polkadot/types/types';
|
|
8
|
+
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
9
|
+
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
10
|
+
declare module '@polkadot/api-base/types/storage' {
|
|
11
|
+
interface AugmentedQueries<ApiType extends ApiTypes> {
|
|
12
|
+
argonBalances: {
|
|
13
|
+
/**
|
|
14
|
+
* The Balances pallet example of storing the balance of an account.
|
|
15
|
+
*
|
|
16
|
+
* # Example
|
|
17
|
+
*
|
|
18
|
+
* ```nocompile
|
|
19
|
+
* impl pallet_balances::Config for Runtime {
|
|
20
|
+
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* You can also store the balance of an account in the `System` pallet.
|
|
25
|
+
*
|
|
26
|
+
* # Example
|
|
27
|
+
*
|
|
28
|
+
* ```nocompile
|
|
29
|
+
* impl pallet_balances::Config for Runtime {
|
|
30
|
+
* type AccountStore = System
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* But this comes with tradeoffs, storing account balances in the system pallet stores
|
|
35
|
+
* `frame_system` data alongside the account data contrary to storing account balances in the
|
|
36
|
+
* `Balances` pallet, which uses a `StorageMap` to store balances data only.
|
|
37
|
+
* NOTE: This is only used in the case that this pallet is used to store balances.
|
|
38
|
+
**/
|
|
39
|
+
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]>;
|
|
40
|
+
/**
|
|
41
|
+
* Freeze locks on account balances.
|
|
42
|
+
**/
|
|
43
|
+
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>>, [AccountId32]>;
|
|
44
|
+
/**
|
|
45
|
+
* Holds on account balances.
|
|
46
|
+
**/
|
|
47
|
+
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeHoldReason>>, [AccountId32]>;
|
|
48
|
+
/**
|
|
49
|
+
* The total units of outstanding deactivated balance in the system.
|
|
50
|
+
**/
|
|
51
|
+
inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
52
|
+
/**
|
|
53
|
+
* Any liquidity locks on some account balances.
|
|
54
|
+
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
|
55
|
+
*
|
|
56
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
57
|
+
**/
|
|
58
|
+
locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [AccountId32]>;
|
|
59
|
+
/**
|
|
60
|
+
* Named reserves on some account balances.
|
|
61
|
+
*
|
|
62
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
63
|
+
**/
|
|
64
|
+
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]>;
|
|
65
|
+
/**
|
|
66
|
+
* The total units issued in the system.
|
|
67
|
+
**/
|
|
68
|
+
totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
69
|
+
};
|
|
70
|
+
authorship: {
|
|
71
|
+
/**
|
|
72
|
+
* Author of current block.
|
|
73
|
+
**/
|
|
74
|
+
author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
|
|
75
|
+
};
|
|
76
|
+
bitcoinUtxos: {
|
|
77
|
+
/**
|
|
78
|
+
* The genesis set bitcoin network that this chain is tied to
|
|
79
|
+
**/
|
|
80
|
+
bitcoinNetwork: AugmentedQuery<ApiType, () => Observable<ArgonPrimitivesBitcoinBitcoinNetwork>, []>;
|
|
81
|
+
/**
|
|
82
|
+
* An oracle-provided confirmed bitcoin block (eg, 6 blocks back)
|
|
83
|
+
**/
|
|
84
|
+
confirmedBitcoinBlockTip: AugmentedQuery<ApiType, () => Observable<Option<ArgonPrimitivesBitcoinBitcoinBlock>>, []>;
|
|
85
|
+
/**
|
|
86
|
+
* Expiration date as a day since unix timestamp mapped to Bitcoin UTXOs
|
|
87
|
+
**/
|
|
88
|
+
lockedUtxoExpirationsByBlock: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<ArgonPrimitivesBitcoinUtxoRef>>, [u64]>;
|
|
89
|
+
/**
|
|
90
|
+
* Locked Bitcoin UTXOs that have had ownership confirmed. If a Bitcoin UTXO is moved before
|
|
91
|
+
* the expiration block, the bond is burned and the UTXO is unlocked.
|
|
92
|
+
**/
|
|
93
|
+
lockedUtxos: AugmentedQuery<ApiType, (arg: ArgonPrimitivesBitcoinUtxoRef | {
|
|
94
|
+
txid?: any;
|
|
95
|
+
outputIndex?: any;
|
|
96
|
+
} | string | Uint8Array) => Observable<Option<ArgonPrimitivesBitcoinUtxoValue>>, [ArgonPrimitivesBitcoinUtxoRef]>;
|
|
97
|
+
nextUtxoId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
|
|
98
|
+
/**
|
|
99
|
+
* Bitcoin Oracle Operator Account
|
|
100
|
+
**/
|
|
101
|
+
oracleOperatorAccount: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
|
|
102
|
+
/**
|
|
103
|
+
* The last synched bitcoin block
|
|
104
|
+
**/
|
|
105
|
+
synchedBitcoinBlock: AugmentedQuery<ApiType, () => Observable<Option<ArgonPrimitivesBitcoinBitcoinBlock>>, []>;
|
|
106
|
+
utxoIdToRef: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ArgonPrimitivesBitcoinUtxoRef>>, [u64]>;
|
|
107
|
+
/**
|
|
108
|
+
* Bitcoin UTXOs that have been submitted for ownership confirmation
|
|
109
|
+
**/
|
|
110
|
+
utxosPendingConfirmation: AugmentedQuery<ApiType, () => Observable<BTreeMap<u64, ArgonPrimitivesBitcoinUtxoValue>>, []>;
|
|
111
|
+
};
|
|
112
|
+
blockRewards: {
|
|
113
|
+
payoutsByBlock: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ArgonPrimitivesBlockSealBlockPayout>>, [u32]>;
|
|
114
|
+
};
|
|
115
|
+
blockSeal: {
|
|
116
|
+
lastBlockSealerInfo: AugmentedQuery<ApiType, () => Observable<Option<ArgonPrimitivesProvidersBlockSealerInfo>>, []>;
|
|
117
|
+
/**
|
|
118
|
+
* The calculated parent voting key for a block. Refers to the Notebook BlockVote Revealed
|
|
119
|
+
* Secret + VotesMerkleRoot of the parent block notebooks.
|
|
120
|
+
**/
|
|
121
|
+
parentVotingKey: AugmentedQuery<ApiType, () => Observable<Option<H256>>, []>;
|
|
122
|
+
/**
|
|
123
|
+
* Author of current block (temporary storage).
|
|
124
|
+
**/
|
|
125
|
+
tempAuthor: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
|
|
126
|
+
/**
|
|
127
|
+
* Ensures only a single inherent is applied
|
|
128
|
+
**/
|
|
129
|
+
tempSealInherent: AugmentedQuery<ApiType, () => Observable<Option<ArgonPrimitivesInherentsBlockSealInherent>>, []>;
|
|
130
|
+
/**
|
|
131
|
+
* Temporarily track the parent voting key digest
|
|
132
|
+
**/
|
|
133
|
+
tempVotingKeyDigest: AugmentedQuery<ApiType, () => Observable<Option<ArgonPrimitivesDigestsParentVotingKeyDigest>>, []>;
|
|
134
|
+
};
|
|
135
|
+
blockSealSpec: {
|
|
136
|
+
/**
|
|
137
|
+
* The current vote minimum of the chain. Block votes use this minimum to determine the
|
|
138
|
+
* minimum amount of tax or compute needed to create a vote. It is adjusted up or down to
|
|
139
|
+
* target a max number of votes
|
|
140
|
+
**/
|
|
141
|
+
currentComputeDifficulty: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
142
|
+
/**
|
|
143
|
+
* The current vote minimum of the chain. Block votes use this minimum to determine the
|
|
144
|
+
* minimum amount of tax or compute needed to create a vote. It is adjusted up or down to
|
|
145
|
+
* target a max number of votes
|
|
146
|
+
**/
|
|
147
|
+
currentVoteMinimum: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
148
|
+
pastBlockVotes: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32, u128]>>>, []>;
|
|
149
|
+
pastComputeBlockTimes: AugmentedQuery<ApiType, () => Observable<Vec<u64>>, []>;
|
|
150
|
+
previousBlockTimestamp: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
|
|
151
|
+
tempBlockTimestamp: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
|
|
152
|
+
/**
|
|
153
|
+
* Temporary store the vote digest
|
|
154
|
+
**/
|
|
155
|
+
tempBlockVoteDigest: AugmentedQuery<ApiType, () => Observable<Option<ArgonPrimitivesDigestsBlockVoteDigest>>, []>;
|
|
156
|
+
/**
|
|
157
|
+
* Temporary store of any current tick notebooks included in this block (vs tick)
|
|
158
|
+
**/
|
|
159
|
+
tempCurrentTickNotebooksInBlock: AugmentedQuery<ApiType, () => Observable<Vec<ArgonPrimitivesNotaryNotaryNotebookVoteDigestDetails>>, []>;
|
|
160
|
+
/**
|
|
161
|
+
* Keeps the last 3 vote minimums. The first one applies to the current block.
|
|
162
|
+
**/
|
|
163
|
+
voteMinimumHistory: AugmentedQuery<ApiType, () => Observable<Vec<u128>>, []>;
|
|
164
|
+
};
|
|
165
|
+
bonds: {
|
|
166
|
+
/**
|
|
167
|
+
* Completion of bitcoin bonds by bitcoin height. Bond funds are returned to the vault if
|
|
168
|
+
* unlocked or used as the price of the bitcoin
|
|
169
|
+
**/
|
|
170
|
+
bitcoinBondCompletions: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Vec<u64>>, [u64]>;
|
|
171
|
+
/**
|
|
172
|
+
* Bonds by id
|
|
173
|
+
**/
|
|
174
|
+
bondsById: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ArgonPrimitivesBond>>, [u64]>;
|
|
175
|
+
/**
|
|
176
|
+
* The minimum number of satoshis that can be bonded
|
|
177
|
+
**/
|
|
178
|
+
minimumBitcoinBondSatoshis: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
179
|
+
/**
|
|
180
|
+
* Completion of mining bonds, upon which funds are returned to the vault
|
|
181
|
+
**/
|
|
182
|
+
miningBondCompletions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u64>>, [u32]>;
|
|
183
|
+
nextBondId: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []>;
|
|
184
|
+
/**
|
|
185
|
+
* Stores Utxos that were not paid back in full
|
|
186
|
+
*
|
|
187
|
+
* Tuple stores Account, Vault, Still Owed, State
|
|
188
|
+
**/
|
|
189
|
+
owedUtxoAggrieved: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[AccountId32, u32, u128, PalletBondUtxoState]>>>, [u64]>;
|
|
190
|
+
/**
|
|
191
|
+
* Stores bitcoin utxos that have requested to be unlocked
|
|
192
|
+
**/
|
|
193
|
+
utxosById: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBondUtxoState>>, [u64]>;
|
|
194
|
+
/**
|
|
195
|
+
* Stores the block number where the utxo was unlocked
|
|
196
|
+
**/
|
|
197
|
+
utxosCosignReleaseHeightById: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]>;
|
|
198
|
+
/**
|
|
199
|
+
* Utxos that have been requested to be cosigned for unlocking
|
|
200
|
+
**/
|
|
201
|
+
utxosPendingUnlockByUtxoId: AugmentedQuery<ApiType, () => Observable<BTreeMap<u64, PalletBondUtxoCosignRequest>>, []>;
|
|
202
|
+
};
|
|
203
|
+
chainTransfer: {
|
|
204
|
+
expiringTransfersOutByNotary: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32, u32]>;
|
|
205
|
+
nextTransferId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
206
|
+
pendingTransfersOut: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletChainTransferQueuedTransferOut>>, [u32]>;
|
|
207
|
+
transfersUsedInBlockNotebooks: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[AccountId32, u32]>>>, [u32]>;
|
|
208
|
+
};
|
|
209
|
+
dataDomain: {
|
|
210
|
+
domainPaymentAddressHistory: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Vec<ITuple<[AccountId32, u32]>>>, [H256]>;
|
|
211
|
+
expiringDomainsByBlock: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<H256>>, [u32]>;
|
|
212
|
+
registeredDataDomains: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletDataDomainDataDomainRegistration>>, [H256]>;
|
|
213
|
+
zoneRecordsByDomain: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<ArgonPrimitivesDataDomainZoneRecord>>, [H256]>;
|
|
214
|
+
};
|
|
215
|
+
grandpa: {
|
|
216
|
+
/**
|
|
217
|
+
* The current list of authorities.
|
|
218
|
+
**/
|
|
219
|
+
authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>, []>;
|
|
220
|
+
/**
|
|
221
|
+
* The number of changes (both in terms of keys and underlying economic responsibilities)
|
|
222
|
+
* in the "set" of Grandpa validators from genesis.
|
|
223
|
+
**/
|
|
224
|
+
currentSetId: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
225
|
+
/**
|
|
226
|
+
* next block number where we can force a change.
|
|
227
|
+
**/
|
|
228
|
+
nextForced: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
229
|
+
/**
|
|
230
|
+
* Pending change: (signaled at, scheduled change).
|
|
231
|
+
**/
|
|
232
|
+
pendingChange: AugmentedQuery<ApiType, () => Observable<Option<PalletGrandpaStoredPendingChange>>, []>;
|
|
233
|
+
/**
|
|
234
|
+
* A mapping from grandpa set ID to the index of the *most recent* session for which its
|
|
235
|
+
* members were responsible.
|
|
236
|
+
*
|
|
237
|
+
* This is only used for validating equivocation proofs. An equivocation proof must
|
|
238
|
+
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
|
239
|
+
* together sessions and GRANDPA set ids, i.e. we need to validate that a validator
|
|
240
|
+
* was the owner of a given key on a given session, and what the active set ID was
|
|
241
|
+
* during that session.
|
|
242
|
+
*
|
|
243
|
+
* TWOX-NOTE: `SetId` is not under user control.
|
|
244
|
+
**/
|
|
245
|
+
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]>;
|
|
246
|
+
/**
|
|
247
|
+
* `true` if we are currently stalled.
|
|
248
|
+
**/
|
|
249
|
+
stalled: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []>;
|
|
250
|
+
/**
|
|
251
|
+
* State of the current authority set.
|
|
252
|
+
**/
|
|
253
|
+
state: AugmentedQuery<ApiType, () => Observable<PalletGrandpaStoredState>, []>;
|
|
254
|
+
};
|
|
255
|
+
historical: {
|
|
256
|
+
/**
|
|
257
|
+
* Mapping from historical session indices to session-data root hash and validator count.
|
|
258
|
+
**/
|
|
259
|
+
historicalSessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[H256, u32]>>>, [u32]>;
|
|
260
|
+
/**
|
|
261
|
+
* The range of historical sessions we store. [first, last)
|
|
262
|
+
**/
|
|
263
|
+
storedRange: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []>;
|
|
264
|
+
};
|
|
265
|
+
miningSlot: {
|
|
266
|
+
/**
|
|
267
|
+
* Lookup by account id to the corresponding index in ActiveMinersByIndex and Authorities
|
|
268
|
+
**/
|
|
269
|
+
accountIndexLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]>;
|
|
270
|
+
/**
|
|
271
|
+
* Miners that are active in the current block (post initialize)
|
|
272
|
+
**/
|
|
273
|
+
activeMinersByIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ArgonPrimitivesBlockSealMiningRegistration>>, [u32]>;
|
|
274
|
+
activeMinersCount: AugmentedQuery<ApiType, () => Observable<u16>, []>;
|
|
275
|
+
/**
|
|
276
|
+
* Authorities are the session keys that are actively participating in the network.
|
|
277
|
+
* The tuple is the authority, and the blake2 256 hash of the authority used for xor lookups
|
|
278
|
+
**/
|
|
279
|
+
authoritiesByIndex: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, ITuple<[ArgonPrimitivesBlockSealAppPublic, U256]>>>, []>;
|
|
280
|
+
/**
|
|
281
|
+
* The number of bids per slot for the last 10 slots (newest first)
|
|
282
|
+
**/
|
|
283
|
+
historicalBidsPerSlot: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []>;
|
|
284
|
+
/**
|
|
285
|
+
* Is the next slot still open for bids
|
|
286
|
+
**/
|
|
287
|
+
isNextSlotBiddingOpen: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
288
|
+
/**
|
|
289
|
+
* The last percentage adjustment to the ownership bond amount
|
|
290
|
+
**/
|
|
291
|
+
lastOwnershipPercentAdjustment: AugmentedQuery<ApiType, () => Observable<Option<u128>>, []>;
|
|
292
|
+
/**
|
|
293
|
+
* The configuration for a miner to supply if there are no registered miners
|
|
294
|
+
**/
|
|
295
|
+
minerZero: AugmentedQuery<ApiType, () => Observable<Option<ArgonPrimitivesBlockSealMiningRegistration>>, []>;
|
|
296
|
+
/**
|
|
297
|
+
* The mining slot configuration set in genesis
|
|
298
|
+
**/
|
|
299
|
+
miningConfig: AugmentedQuery<ApiType, () => Observable<ArgonPrimitivesBlockSealMiningSlotConfig>, []>;
|
|
300
|
+
/**
|
|
301
|
+
* The cohort set to go into effect in the next slot. The Vec has all
|
|
302
|
+
* registrants with their bid amount
|
|
303
|
+
**/
|
|
304
|
+
nextSlotCohort: AugmentedQuery<ApiType, () => Observable<Vec<ArgonPrimitivesBlockSealMiningRegistration>>, []>;
|
|
305
|
+
/**
|
|
306
|
+
* Tokens that must be bonded to take a Miner role
|
|
307
|
+
**/
|
|
308
|
+
ownershipBondAmount: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
309
|
+
};
|
|
310
|
+
mint: {
|
|
311
|
+
mintedBitcoinArgons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
312
|
+
mintedMiningArgons: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
313
|
+
/**
|
|
314
|
+
* Bitcoin UTXOs that have been submitted for minting. This list is FIFO for minting whenever
|
|
315
|
+
* a) CPI >= 0 and
|
|
316
|
+
* b) the aggregate minted Bitcoins <= the aggregate minted Argons from mining
|
|
317
|
+
**/
|
|
318
|
+
pendingMintUtxos: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, AccountId32, u128]>>>, []>;
|
|
319
|
+
};
|
|
320
|
+
multisig: {
|
|
321
|
+
/**
|
|
322
|
+
* The set of open multisig operations.
|
|
323
|
+
**/
|
|
324
|
+
multisigs: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: U8aFixed | string | Uint8Array) => Observable<Option<PalletMultisigMultisig>>, [AccountId32, U8aFixed]>;
|
|
325
|
+
};
|
|
326
|
+
notaries: {
|
|
327
|
+
activeNotaries: AugmentedQuery<ApiType, () => Observable<Vec<ArgonPrimitivesNotaryNotaryRecord>>, []>;
|
|
328
|
+
expiringProposals: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<AccountId32>>, [u32]>;
|
|
329
|
+
nextNotaryId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
330
|
+
notaryKeyHistory: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, U8aFixed]>>>, [u32]>;
|
|
331
|
+
proposedNotaries: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[ArgonPrimitivesNotaryNotaryMeta, u32]>>>, [AccountId32]>;
|
|
332
|
+
/**
|
|
333
|
+
* Metadata changes to be activated at the given tick
|
|
334
|
+
**/
|
|
335
|
+
queuedNotaryMetaChanges: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<BTreeMap<u32, ArgonPrimitivesNotaryNotaryMeta>>, [u32]>;
|
|
336
|
+
};
|
|
337
|
+
notebook: {
|
|
338
|
+
/**
|
|
339
|
+
* Storage map of account origin (notary_id, notebook, account_uid) to the last
|
|
340
|
+
* notebook containing this account in the changed accounts merkle root
|
|
341
|
+
* (NotebookChangedAccountsRootByNotary)
|
|
342
|
+
**/
|
|
343
|
+
accountOriginLastChangedNotebookByNotary: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: ArgonPrimitivesBalanceChangeAccountOrigin | {
|
|
344
|
+
notebookNumber?: any;
|
|
345
|
+
accountUid?: any;
|
|
346
|
+
} | string | Uint8Array) => Observable<Option<u32>>, [u32, ArgonPrimitivesBalanceChangeAccountOrigin]>;
|
|
347
|
+
/**
|
|
348
|
+
* The notebooks included in this block
|
|
349
|
+
**/
|
|
350
|
+
blockNotebooks: AugmentedQuery<ApiType, () => Observable<ArgonPrimitivesDigestsNotebookDigest>, []>;
|
|
351
|
+
/**
|
|
352
|
+
* List of last few notebook details by notary. The bool is whether the notebook is eligible
|
|
353
|
+
* for votes (received at correct tick and audit passed)
|
|
354
|
+
**/
|
|
355
|
+
lastNotebookDetailsByNotary: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[ArgonPrimitivesNotaryNotaryNotebookKeyDetails, bool]>>>, [u32]>;
|
|
356
|
+
/**
|
|
357
|
+
* Notaries locked for failing audits
|
|
358
|
+
* TODO: we need a mechanism to unlock a notary with "Fixes"
|
|
359
|
+
**/
|
|
360
|
+
notariesLockedForFailedAudit: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u32, u32, ArgonNotaryAuditErrorVerifyError]>>>, [u32]>;
|
|
361
|
+
/**
|
|
362
|
+
* Double storage map of notary id + notebook # to the change root
|
|
363
|
+
**/
|
|
364
|
+
notebookChangedAccountsRootByNotary: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32, u32]>;
|
|
365
|
+
/**
|
|
366
|
+
* Temporary store a copy of the notebook digest in storage
|
|
367
|
+
**/
|
|
368
|
+
tempNotebookDigest: AugmentedQuery<ApiType, () => Observable<Option<ArgonPrimitivesDigestsNotebookDigest>>, []>;
|
|
369
|
+
};
|
|
370
|
+
offences: {
|
|
371
|
+
/**
|
|
372
|
+
* A vector of reports of the same kind that happened at the same time slot.
|
|
373
|
+
**/
|
|
374
|
+
concurrentReportsIndex: AugmentedQuery<ApiType, (arg1: U8aFixed | string | Uint8Array, arg2: Bytes | string | Uint8Array) => Observable<Vec<H256>>, [U8aFixed, Bytes]>;
|
|
375
|
+
/**
|
|
376
|
+
* The primary structure that holds all offence records keyed by report identifiers.
|
|
377
|
+
**/
|
|
378
|
+
reports: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>, [H256]>;
|
|
379
|
+
};
|
|
380
|
+
priceIndex: {
|
|
381
|
+
/**
|
|
382
|
+
* Stores the active price index
|
|
383
|
+
**/
|
|
384
|
+
current: AugmentedQuery<ApiType, () => Observable<Option<PalletPriceIndexPriceIndex>>, []>;
|
|
385
|
+
/**
|
|
386
|
+
* The price index operator account
|
|
387
|
+
**/
|
|
388
|
+
operator: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
|
|
389
|
+
};
|
|
390
|
+
proxy: {
|
|
391
|
+
/**
|
|
392
|
+
* The announcements made by the proxy (key).
|
|
393
|
+
**/
|
|
394
|
+
announcements: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[Vec<PalletProxyAnnouncement>, u128]>>, [AccountId32]>;
|
|
395
|
+
/**
|
|
396
|
+
* The set of account proxies. Maps the account which has delegated to the accounts
|
|
397
|
+
* which are being delegated to, together with the amount held on deposit.
|
|
398
|
+
**/
|
|
399
|
+
proxies: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[Vec<PalletProxyProxyDefinition>, u128]>>, [AccountId32]>;
|
|
400
|
+
};
|
|
401
|
+
session: {
|
|
402
|
+
/**
|
|
403
|
+
* Current index of the session.
|
|
404
|
+
**/
|
|
405
|
+
currentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
406
|
+
/**
|
|
407
|
+
* Indices of disabled validators.
|
|
408
|
+
*
|
|
409
|
+
* The vec is always kept sorted so that we can find whether a given validator is
|
|
410
|
+
* disabled using binary search. It gets cleared when `on_session_ending` returns
|
|
411
|
+
* a new set of identities.
|
|
412
|
+
**/
|
|
413
|
+
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []>;
|
|
414
|
+
/**
|
|
415
|
+
* The owner of a key. The key is the `KeyTypeId` + the encoded key.
|
|
416
|
+
**/
|
|
417
|
+
keyOwner: AugmentedQuery<ApiType, (arg: ITuple<[SpCoreCryptoKeyTypeId, Bytes]> | [SpCoreCryptoKeyTypeId | string | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<AccountId32>>, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]>;
|
|
418
|
+
/**
|
|
419
|
+
* The next session keys for a validator.
|
|
420
|
+
**/
|
|
421
|
+
nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ArgonNodeRuntimeOpaqueSessionKeys>>, [AccountId32]>;
|
|
422
|
+
/**
|
|
423
|
+
* True if the underlying economic identities or weighting behind the validators
|
|
424
|
+
* has changed in the queued validator set.
|
|
425
|
+
**/
|
|
426
|
+
queuedChanged: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
427
|
+
/**
|
|
428
|
+
* The queued keys for the next session. When the next session begins, these keys
|
|
429
|
+
* will be used to determine the validator's session keys.
|
|
430
|
+
**/
|
|
431
|
+
queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, ArgonNodeRuntimeOpaqueSessionKeys]>>>, []>;
|
|
432
|
+
/**
|
|
433
|
+
* The current set of validators.
|
|
434
|
+
**/
|
|
435
|
+
validators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []>;
|
|
436
|
+
};
|
|
437
|
+
shareBalances: {
|
|
438
|
+
/**
|
|
439
|
+
* The Balances pallet example of storing the balance of an account.
|
|
440
|
+
*
|
|
441
|
+
* # Example
|
|
442
|
+
*
|
|
443
|
+
* ```nocompile
|
|
444
|
+
* impl pallet_balances::Config for Runtime {
|
|
445
|
+
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
|
|
446
|
+
* }
|
|
447
|
+
* ```
|
|
448
|
+
*
|
|
449
|
+
* You can also store the balance of an account in the `System` pallet.
|
|
450
|
+
*
|
|
451
|
+
* # Example
|
|
452
|
+
*
|
|
453
|
+
* ```nocompile
|
|
454
|
+
* impl pallet_balances::Config for Runtime {
|
|
455
|
+
* type AccountStore = System
|
|
456
|
+
* }
|
|
457
|
+
* ```
|
|
458
|
+
*
|
|
459
|
+
* But this comes with tradeoffs, storing account balances in the system pallet stores
|
|
460
|
+
* `frame_system` data alongside the account data contrary to storing account balances in the
|
|
461
|
+
* `Balances` pallet, which uses a `StorageMap` to store balances data only.
|
|
462
|
+
* NOTE: This is only used in the case that this pallet is used to store balances.
|
|
463
|
+
**/
|
|
464
|
+
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]>;
|
|
465
|
+
/**
|
|
466
|
+
* Freeze locks on account balances.
|
|
467
|
+
**/
|
|
468
|
+
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>>, [AccountId32]>;
|
|
469
|
+
/**
|
|
470
|
+
* Holds on account balances.
|
|
471
|
+
**/
|
|
472
|
+
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeHoldReason>>, [AccountId32]>;
|
|
473
|
+
/**
|
|
474
|
+
* The total units of outstanding deactivated balance in the system.
|
|
475
|
+
**/
|
|
476
|
+
inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
477
|
+
/**
|
|
478
|
+
* Any liquidity locks on some account balances.
|
|
479
|
+
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
|
480
|
+
*
|
|
481
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
482
|
+
**/
|
|
483
|
+
locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [AccountId32]>;
|
|
484
|
+
/**
|
|
485
|
+
* Named reserves on some account balances.
|
|
486
|
+
*
|
|
487
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
488
|
+
**/
|
|
489
|
+
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]>;
|
|
490
|
+
/**
|
|
491
|
+
* The total units issued in the system.
|
|
492
|
+
**/
|
|
493
|
+
totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
494
|
+
};
|
|
495
|
+
sudo: {
|
|
496
|
+
/**
|
|
497
|
+
* The `AccountId` of the sudo key.
|
|
498
|
+
**/
|
|
499
|
+
key: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []>;
|
|
500
|
+
};
|
|
501
|
+
system: {
|
|
502
|
+
/**
|
|
503
|
+
* The full account information for a particular account ID.
|
|
504
|
+
**/
|
|
505
|
+
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<FrameSystemAccountInfo>, [AccountId32]>;
|
|
506
|
+
/**
|
|
507
|
+
* Total length (in bytes) for all extrinsics put together, for the current block.
|
|
508
|
+
**/
|
|
509
|
+
allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
510
|
+
/**
|
|
511
|
+
* `Some` if a code upgrade has been authorized.
|
|
512
|
+
**/
|
|
513
|
+
authorizedUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemCodeUpgradeAuthorization>>, []>;
|
|
514
|
+
/**
|
|
515
|
+
* Map of block numbers to block hashes.
|
|
516
|
+
**/
|
|
517
|
+
blockHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<H256>, [u32]>;
|
|
518
|
+
/**
|
|
519
|
+
* The current weight for the block.
|
|
520
|
+
**/
|
|
521
|
+
blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportDispatchPerDispatchClassWeight>, []>;
|
|
522
|
+
/**
|
|
523
|
+
* Digest of the current block, also part of the block header.
|
|
524
|
+
**/
|
|
525
|
+
digest: AugmentedQuery<ApiType, () => Observable<SpRuntimeDigest>, []>;
|
|
526
|
+
/**
|
|
527
|
+
* The number of events in the `Events<T>` list.
|
|
528
|
+
**/
|
|
529
|
+
eventCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
530
|
+
/**
|
|
531
|
+
* Events deposited for the current block.
|
|
532
|
+
*
|
|
533
|
+
* NOTE: The item is unbound and should therefore never be read on chain.
|
|
534
|
+
* It could otherwise inflate the PoV size of a block.
|
|
535
|
+
*
|
|
536
|
+
* Events have a large in-memory size. Box the events to not go out-of-memory
|
|
537
|
+
* just in case someone still reads them from within the runtime.
|
|
538
|
+
**/
|
|
539
|
+
events: AugmentedQuery<ApiType, () => Observable<Vec<FrameSystemEventRecord>>, []>;
|
|
540
|
+
/**
|
|
541
|
+
* Mapping between a topic (represented by T::Hash) and a vector of indexes
|
|
542
|
+
* of events in the `<Events<T>>` list.
|
|
543
|
+
*
|
|
544
|
+
* All topic vectors have deterministic storage locations depending on the topic. This
|
|
545
|
+
* allows light-clients to leverage the changes trie storage tracking mechanism and
|
|
546
|
+
* in case of changes fetch the list of events of interest.
|
|
547
|
+
*
|
|
548
|
+
* The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
|
|
549
|
+
* the `EventIndex` then in case if the topic has the same contents on the next block
|
|
550
|
+
* no notification will be triggered thus the event might be lost.
|
|
551
|
+
**/
|
|
552
|
+
eventTopics: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Vec<ITuple<[u32, u32]>>>, [H256]>;
|
|
553
|
+
/**
|
|
554
|
+
* The execution phase of the block.
|
|
555
|
+
**/
|
|
556
|
+
executionPhase: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemPhase>>, []>;
|
|
557
|
+
/**
|
|
558
|
+
* Total extrinsics count for the current block.
|
|
559
|
+
**/
|
|
560
|
+
extrinsicCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
561
|
+
/**
|
|
562
|
+
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
|
563
|
+
**/
|
|
564
|
+
extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]>;
|
|
565
|
+
/**
|
|
566
|
+
* Whether all inherents have been applied.
|
|
567
|
+
**/
|
|
568
|
+
inherentsApplied: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
569
|
+
/**
|
|
570
|
+
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
|
|
571
|
+
**/
|
|
572
|
+
lastRuntimeUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemLastRuntimeUpgradeInfo>>, []>;
|
|
573
|
+
/**
|
|
574
|
+
* The current block number being processed. Set by `execute_block`.
|
|
575
|
+
**/
|
|
576
|
+
number: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
577
|
+
/**
|
|
578
|
+
* Hash of the previous block.
|
|
579
|
+
**/
|
|
580
|
+
parentHash: AugmentedQuery<ApiType, () => Observable<H256>, []>;
|
|
581
|
+
/**
|
|
582
|
+
* True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
|
|
583
|
+
* (default) if not.
|
|
584
|
+
**/
|
|
585
|
+
upgradedToTripleRefCount: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
586
|
+
/**
|
|
587
|
+
* True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
|
|
588
|
+
**/
|
|
589
|
+
upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
590
|
+
};
|
|
591
|
+
ticks: {
|
|
592
|
+
currentTick: AugmentedQuery<ApiType, () => Observable<u32>, []>;
|
|
593
|
+
genesisTicker: AugmentedQuery<ApiType, () => Observable<ArgonPrimitivesTickTicker>, []>;
|
|
594
|
+
/**
|
|
595
|
+
* Blocks from the last 100 ticks. Trimmed in on_initialize.
|
|
596
|
+
* NOTE: cannot include the current block hash until next block
|
|
597
|
+
**/
|
|
598
|
+
recentBlocksAtTicks: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<H256>>, [u32]>;
|
|
599
|
+
};
|
|
600
|
+
timestamp: {
|
|
601
|
+
/**
|
|
602
|
+
* Whether the timestamp has been updated in this block.
|
|
603
|
+
*
|
|
604
|
+
* This value is updated to `true` upon successful submission of a timestamp by a node.
|
|
605
|
+
* It is then checked at the end of each block execution in the `on_finalize` hook.
|
|
606
|
+
**/
|
|
607
|
+
didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []>;
|
|
608
|
+
/**
|
|
609
|
+
* The current time for the current block.
|
|
610
|
+
**/
|
|
611
|
+
now: AugmentedQuery<ApiType, () => Observable<u64>, []>;
|
|
612
|
+
};
|
|
613
|
+
transactionPayment: {
|
|
614
|
+
nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []>;
|
|
615
|
+
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletTransactionPaymentReleases>, []>;
|
|
616
|
+
};
|
|
617
|
+
txPause: {
|
|
618
|
+
/**
|
|
619
|
+
* The set of calls that are explicitly paused.
|
|
620
|
+
**/
|
|
621
|
+
pausedCalls: AugmentedQuery<ApiType, (arg: ITuple<[Bytes, Bytes]> | [Bytes | string | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<Null>>, [ITuple<[Bytes, Bytes]>]>;
|
|
622
|
+
};
|
|
623
|
+
vaults: {
|
|
624
|
+
nextVaultId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
|
|
625
|
+
/**
|
|
626
|
+
* Pending terms that will be committed at the given block number (must be a minimum of 1 slot
|
|
627
|
+
* change away)
|
|
628
|
+
**/
|
|
629
|
+
pendingTermsModificationsByBlock: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]>;
|
|
630
|
+
/**
|
|
631
|
+
* Vaults by id
|
|
632
|
+
**/
|
|
633
|
+
vaultsById: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ArgonPrimitivesBondVault>>, [u32]>;
|
|
634
|
+
/**
|
|
635
|
+
* Vault Bitcoin Xpub and current child counter by VaultId
|
|
636
|
+
**/
|
|
637
|
+
vaultXPubById: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[ArgonPrimitivesBitcoinBitcoinXPub, u32]>>>, [u32]>;
|
|
638
|
+
};
|
|
639
|
+
}
|
|
640
|
+
}
|