@argonprotocol/mainchain 1.5.2 → 1.6.0-dev.63af99c7
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/README.md +87 -0
- package/browser/artifacts/contracts/ArgonBuyAndTransfer.sol/ArgonBuyAndTransfer.json +573 -0
- package/browser/artifacts/contracts/ArgonToken.sol/ArgonToken.json +11 -11
- package/browser/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +11 -11
- package/browser/artifacts/contracts/MintingGateway.sol/MintingGateway.json +401 -16
- package/browser/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +3 -3
- package/browser/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +4 -4
- package/browser/artifacts/contracts/StabilizationPoolHook.sol/StabilizationPoolHook.json +753 -0
- package/browser/artifacts/contracts/StabilizationPoolSubscriber.sol/StabilizationPoolSubscriber.json +187 -0
- package/browser/artifacts/contracts/UniswapV4PriceQuoter.sol/UniswapV4PriceQuoter.json +391 -0
- package/browser/index.d.ts +12592 -7998
- package/browser/index.js +5417 -1492
- package/browser/index.js.map +1 -1
- package/lib/artifacts/contracts/ArgonBuyAndTransfer.sol/ArgonBuyAndTransfer.json +573 -0
- package/lib/artifacts/contracts/ArgonToken.sol/ArgonToken.json +11 -11
- package/lib/artifacts/contracts/ArgonotToken.sol/ArgonotToken.json +11 -11
- package/lib/artifacts/contracts/MintingGateway.sol/MintingGateway.json +401 -16
- package/lib/artifacts/contracts/ProxyArtifacts.sol/ProxyAdmin.json +3 -3
- package/lib/artifacts/contracts/ProxyArtifacts.sol/TransparentUpgradeableProxy.json +4 -4
- package/lib/artifacts/contracts/StabilizationPoolHook.sol/StabilizationPoolHook.json +753 -0
- package/lib/artifacts/contracts/StabilizationPoolSubscriber.sol/StabilizationPoolSubscriber.json +187 -0
- package/lib/artifacts/contracts/UniswapV4PriceQuoter.sol/UniswapV4PriceQuoter.json +391 -0
- package/lib/index.cjs +6587 -2686
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +12592 -7998
- package/lib/index.d.ts +12592 -7998
- package/lib/index.js +6744 -2843
- package/lib/index.js.map +1 -1
- package/package.json +17 -13
- package/src/interfaces/augment-api-consts.ts +124 -30
- package/src/interfaces/augment-api-errors.ts +297 -19
- package/src/interfaces/augment-api-events.ts +281 -1688
- package/src/interfaces/augment-api-query.ts +394 -1127
- package/src/interfaces/augment-api-rpc.ts +88 -613
- package/src/interfaces/augment-api-runtime.ts +255 -221
- package/src/interfaces/augment-api-tx.ts +370 -1630
- package/src/interfaces/augment-types.ts +46 -1350
- package/src/interfaces/lookup.ts +3765 -3182
- package/src/interfaces/registry.ts +87 -330
- package/src/interfaces/types-lookup.ts +4051 -3818
|
@@ -4,35 +4,15 @@
|
|
|
4
4
|
// this is required to allow for ambient/previous definitions
|
|
5
5
|
import type {} from '@polkadot/api-base/types/calls';
|
|
6
6
|
|
|
7
|
+
import type { RuntimeCall as ArgonRuntimeRuntimeCall } from '@polkadot/types/interfaces/runtime';
|
|
8
|
+
|
|
7
9
|
import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
|
|
8
|
-
import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
|
|
10
|
+
import type { BTreeMap, Bytes, Null, Option, Result, Text, U256, Vec, bool, u128, u32, u64 } from '@polkadot/types-codec';
|
|
9
11
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
10
|
-
import type { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
|
11
|
-
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
|
12
|
-
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
|
13
|
-
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
|
14
12
|
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
|
15
|
-
import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
|
|
16
|
-
import type {
|
|
17
|
-
AuthorityList,
|
|
18
|
-
GrandpaEquivocationProof,
|
|
19
|
-
SetId,
|
|
20
|
-
} from '@polkadot/types/interfaces/grandpa';
|
|
21
13
|
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
|
22
|
-
import type {
|
|
23
|
-
import type {
|
|
24
|
-
AccountId,
|
|
25
|
-
Balance,
|
|
26
|
-
Block,
|
|
27
|
-
Call,
|
|
28
|
-
ExtrinsicInclusionMode,
|
|
29
|
-
Header,
|
|
30
|
-
Index,
|
|
31
|
-
Weight,
|
|
32
|
-
} from '@polkadot/types/interfaces/runtime';
|
|
33
|
-
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
|
34
|
-
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
|
35
|
-
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
|
|
14
|
+
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
|
15
|
+
import type { ArgonNotaryAuditErrorVerifyError, ArgonPrimitivesBitcoinBitcoinNetwork, ArgonPrimitivesBitcoinBitcoinSyncStatus, ArgonPrimitivesBitcoinUtxoAddress, ArgonPrimitivesBitcoinUtxoRef, ArgonPrimitivesBitcoinUtxoValue, ArgonPrimitivesBlockSealAppPublic, ArgonPrimitivesBlockSealBlockPayout, ArgonPrimitivesBlockSealComputePuzzle, ArgonPrimitivesBlockSealMiningAuthority, ArgonPrimitivesBlockVoteBestBlockVoteSeal, ArgonPrimitivesDigestsBlockSealDigest, ArgonPrimitivesDigestsBlockVoteDigest, ArgonPrimitivesNotaryNotaryNotebookAuditSummary, ArgonPrimitivesNotaryNotaryNotebookDetails, ArgonPrimitivesNotaryNotaryNotebookRawVotes, ArgonPrimitivesNotaryNotaryNotebookVoteDigestDetails, ArgonPrimitivesNotaryNotaryRecordWithState, ArgonPrimitivesNotebookNotebookAuditResult, ArgonPrimitivesTickTicker, FrameSupportViewFunctionsViewFunctionDispatchError, FrameSupportViewFunctionsViewFunctionId, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpRuntimeBlockLazyBlock, SpRuntimeDigest, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpSessionRuntimeApiOpaqueGeneratedSessionKeys, SpVersionRuntimeVersion, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
36
16
|
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
|
37
17
|
|
|
38
18
|
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
|
@@ -40,266 +20,320 @@ export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<Ap
|
|
|
40
20
|
|
|
41
21
|
declare module '@polkadot/api-base/types/calls' {
|
|
42
22
|
interface AugmentedCalls<ApiType extends ApiTypes> {
|
|
43
|
-
/** 0xbc9d89904f5b923f/
|
|
23
|
+
/** 0xbc9d89904f5b923f/ */
|
|
44
24
|
accountNonceApi: {
|
|
45
25
|
/**
|
|
46
|
-
*
|
|
26
|
+
* Get current account nonce of given `AccountId`.
|
|
47
27
|
**/
|
|
48
|
-
accountNonce: AugmentedCall<
|
|
49
|
-
ApiType,
|
|
50
|
-
(accountId: AccountId | string | Uint8Array) => Observable<Index>
|
|
51
|
-
>;
|
|
28
|
+
accountNonce: AugmentedCall<ApiType, (account: AccountId32 | string | Uint8Array) => Observable<u32>>;
|
|
52
29
|
};
|
|
53
|
-
/**
|
|
30
|
+
/** 0x05dd9be92cc17d28/ */
|
|
31
|
+
bitcoinApis: {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
**/
|
|
35
|
+
activeUtxoAddresses: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[Option<ArgonPrimitivesBitcoinUtxoRef>, ArgonPrimitivesBitcoinUtxoAddress]>>>>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
**/
|
|
39
|
+
activeUtxos: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[Option<ArgonPrimitivesBitcoinUtxoRef>, ArgonPrimitivesBitcoinUtxoValue]>>>>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
**/
|
|
43
|
+
calculateRedemptionAmount: AugmentedCall<ApiType, (satoshis: u64 | AnyNumber | Uint8Array, max_microgons_at_target: Option<u128> | null | Uint8Array | u128 | AnyNumber) => Observable<Option<u128>>>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
**/
|
|
47
|
+
getBitcoinNetwork: AugmentedCall<ApiType, () => Observable<ArgonPrimitivesBitcoinBitcoinNetwork>>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
**/
|
|
51
|
+
getMinimumSatoshis: AugmentedCall<ApiType, () => Observable<u64>>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
**/
|
|
55
|
+
getSyncStatus: AugmentedCall<ApiType, () => Observable<Option<ArgonPrimitivesBitcoinBitcoinSyncStatus>>>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
**/
|
|
59
|
+
marketRate: AugmentedCall<ApiType, (satoshis: u64 | AnyNumber | Uint8Array) => Observable<Option<u128>>>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
**/
|
|
63
|
+
redemptionRate: AugmentedCall<ApiType, (satoshis: u64 | AnyNumber | Uint8Array) => Observable<Option<u128>>>;
|
|
64
|
+
};
|
|
65
|
+
/** 0x40fe3ad401f8959a/ */
|
|
54
66
|
blockBuilder: {
|
|
55
67
|
/**
|
|
56
|
-
* Apply the given extrinsic.
|
|
68
|
+
* Apply the given extrinsic.,, Returns an inclusion outcome which specifies if this extrinsic is included in, this block or not.
|
|
57
69
|
**/
|
|
58
|
-
applyExtrinsic: AugmentedCall<
|
|
59
|
-
ApiType,
|
|
60
|
-
(
|
|
61
|
-
extrinsic: Extrinsic | IExtrinsic | string | Uint8Array,
|
|
62
|
-
) => Observable<ApplyExtrinsicResult>
|
|
63
|
-
>;
|
|
70
|
+
applyExtrinsic: AugmentedCall<ApiType, (extrinsic: Extrinsic | IExtrinsic | string | Uint8Array) => Observable<Result<Result<Null, SpRuntimeDispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>>;
|
|
64
71
|
/**
|
|
65
|
-
* Check that the inherents are valid.
|
|
72
|
+
* Check that the inherents are valid. The inherent data will vary from chain to chain.
|
|
66
73
|
**/
|
|
67
|
-
checkInherents: AugmentedCall<
|
|
68
|
-
ApiType,
|
|
69
|
-
(
|
|
70
|
-
block: Block | { header?: any; extrinsics?: any } | string | Uint8Array,
|
|
71
|
-
data: InherentData | { data?: any } | string | Uint8Array,
|
|
72
|
-
) => Observable<CheckInherentsResult>
|
|
73
|
-
>;
|
|
74
|
+
checkInherents: AugmentedCall<ApiType, (block: SpRuntimeBlockLazyBlock | { header?: any; extrinsics?: any } | string | Uint8Array, data: SpInherentsInherentData | { data?: any } | string | Uint8Array) => Observable<SpInherentsCheckInherentsResult>>;
|
|
74
75
|
/**
|
|
75
76
|
* Finish the current block.
|
|
76
77
|
**/
|
|
77
|
-
finalizeBlock: AugmentedCall<ApiType, () => Observable<
|
|
78
|
+
finalizeBlock: AugmentedCall<ApiType, () => Observable<SpRuntimeHeader>>;
|
|
79
|
+
/**
|
|
80
|
+
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
|
81
|
+
**/
|
|
82
|
+
inherentExtrinsics: AugmentedCall<ApiType, (inherent: SpInherentsInherentData | { data?: any } | string | Uint8Array) => Observable<Vec<Bytes>>>;
|
|
83
|
+
};
|
|
84
|
+
/** 0x11de59f9923f03d8/ */
|
|
85
|
+
blockCreatorApis: {
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
**/
|
|
89
|
+
decodeVotingAuthor: AugmentedCall<ApiType, (digests: SpRuntimeDigest | { logs?: any } | string | Uint8Array) => Observable<Result<ITuple<[AccountId32, u64, Option<H256>]>, SpRuntimeDispatchError>>>;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
**/
|
|
93
|
+
digestNotebooks: AugmentedCall<ApiType, (digests: SpRuntimeDigest | { logs?: any } | string | Uint8Array) => Observable<Result<Vec<ArgonPrimitivesNotebookNotebookAuditResult>, SpRuntimeDispatchError>>>;
|
|
94
|
+
};
|
|
95
|
+
/** 0x61571683e6d7a7c8/ */
|
|
96
|
+
blockImportApis: {
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
**/
|
|
100
|
+
hasNewBitcoinTip: AugmentedCall<ApiType, () => Observable<bool>>;
|
|
78
101
|
/**
|
|
79
|
-
*
|
|
102
|
+
*
|
|
80
103
|
**/
|
|
81
|
-
|
|
82
|
-
ApiType,
|
|
83
|
-
(
|
|
84
|
-
inherent: InherentData | { data?: any } | string | Uint8Array,
|
|
85
|
-
) => Observable<Vec<Extrinsic>>
|
|
86
|
-
>;
|
|
104
|
+
hasNewPriceIndex: AugmentedCall<ApiType, () => Observable<bool>>;
|
|
87
105
|
};
|
|
88
|
-
/**
|
|
106
|
+
/** 0xe6683faaa563317a/ */
|
|
107
|
+
blockSealApis: {
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
**/
|
|
111
|
+
computePuzzle: AugmentedCall<ApiType, () => Observable<ArgonPrimitivesBlockSealComputePuzzle>>;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
**/
|
|
115
|
+
createVoteDigest: AugmentedCall<ApiType, (notebook_tick: u64 | AnyNumber | Uint8Array, included_notebooks: Vec<ArgonPrimitivesNotaryNotaryNotebookVoteDigestDetails> | (ArgonPrimitivesNotaryNotaryNotebookVoteDigestDetails | { notaryId?: any; notebookNumber?: any; tick?: any; blockVotesCount?: any; blockVotingPower?: any } | string | Uint8Array)[]) => Observable<ArgonPrimitivesDigestsBlockVoteDigest>>;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
**/
|
|
119
|
+
findBetterVoteBlockSeal: AugmentedCall<ApiType, (notebook_votes: Vec<ArgonPrimitivesNotaryNotaryNotebookRawVotes> | (ArgonPrimitivesNotaryNotaryNotebookRawVotes | { notaryId?: any; notebookNumber?: any; rawVotes?: any } | string | Uint8Array)[], best_strength: U256 | AnyNumber | Uint8Array, closest_miner_nonce_score: U256 | AnyNumber | Uint8Array, with_signing_key: ArgonPrimitivesBlockSealAppPublic | string | Uint8Array, expected_notebook_tick: u64 | AnyNumber | Uint8Array) => Observable<Result<Option<ArgonPrimitivesBlockVoteBestBlockVoteSeal>, SpRuntimeDispatchError>>>;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
**/
|
|
123
|
+
hasEligibleVotes: AugmentedCall<ApiType, () => Observable<bool>>;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
**/
|
|
127
|
+
isBootstrapMining: AugmentedCall<ApiType, () => Observable<bool>>;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
**/
|
|
131
|
+
isValidSignature: AugmentedCall<ApiType, (block_hash: H256 | string | Uint8Array, seal: ArgonPrimitivesDigestsBlockSealDigest | { Vote: any } | { Compute: any } | string | Uint8Array, digest: SpRuntimeDigest | { logs?: any } | string | Uint8Array) => Observable<bool>>;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
**/
|
|
135
|
+
voteMinimum: AugmentedCall<ApiType, () => Observable<u128>>;
|
|
136
|
+
};
|
|
137
|
+
/** 0xdf6acb689907609b/ */
|
|
89
138
|
core: {
|
|
90
139
|
/**
|
|
91
140
|
* Execute the given block.
|
|
92
141
|
**/
|
|
93
|
-
executeBlock: AugmentedCall<
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
>;
|
|
99
|
-
/**
|
|
100
|
-
* Initialize a block with the given header.
|
|
101
|
-
**/
|
|
102
|
-
initializeBlock: AugmentedCall<
|
|
103
|
-
ApiType,
|
|
104
|
-
(
|
|
105
|
-
header:
|
|
106
|
-
| Header
|
|
107
|
-
| {
|
|
108
|
-
parentHash?: any;
|
|
109
|
-
number?: any;
|
|
110
|
-
stateRoot?: any;
|
|
111
|
-
extrinsicsRoot?: any;
|
|
112
|
-
digest?: any;
|
|
113
|
-
}
|
|
114
|
-
| string
|
|
115
|
-
| Uint8Array,
|
|
116
|
-
) => Observable<ExtrinsicInclusionMode>
|
|
117
|
-
>;
|
|
142
|
+
executeBlock: AugmentedCall<ApiType, (block: SpRuntimeBlockLazyBlock | { header?: any; extrinsics?: any } | string | Uint8Array) => Observable<Null>>;
|
|
143
|
+
/**
|
|
144
|
+
* Initialize a block with the given header and return the runtime executive mode.
|
|
145
|
+
**/
|
|
146
|
+
initializeBlock: AugmentedCall<ApiType, (header: SpRuntimeHeader | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<SpRuntimeExtrinsicInclusionMode>>;
|
|
118
147
|
/**
|
|
119
148
|
* Returns the version of the runtime.
|
|
120
149
|
**/
|
|
121
|
-
version: AugmentedCall<ApiType, () => Observable<
|
|
150
|
+
version: AugmentedCall<ApiType, () => Observable<SpVersionRuntimeVersion>>;
|
|
122
151
|
};
|
|
123
|
-
/** 0xfbc577b9d747efd6/
|
|
152
|
+
/** 0xfbc577b9d747efd6/ */
|
|
124
153
|
genesisBuilder: {
|
|
125
154
|
/**
|
|
126
|
-
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
|
|
155
|
+
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the, storage.,, In the case of a FRAME-based runtime, this function deserializes the full, `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the, provided JSON blob is incorrect or incomplete or the deserialization fails, an error, is returned.,, Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no, defaults will be used.
|
|
156
|
+
**/
|
|
157
|
+
buildState: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<Null, Text>>>;
|
|
158
|
+
/**
|
|
159
|
+
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by, `id`.,, If `id` is `None` the function should return JSON blob representation of the default, `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default, `RuntimeGenesisConfig`.,, Otherwise function returns a JSON representation of the built-in, named, `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not, exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of, (potentially nested) key-value pairs that are intended for customizing the default, runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation, of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can, be used in `build_state` method.
|
|
127
160
|
**/
|
|
128
|
-
|
|
129
|
-
ApiType,
|
|
130
|
-
(json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>
|
|
131
|
-
>;
|
|
161
|
+
getPreset: AugmentedCall<ApiType, (id: Option<Text> | null | Uint8Array | Text | string) => Observable<Option<Bytes>>>;
|
|
132
162
|
/**
|
|
133
|
-
*
|
|
163
|
+
* Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.,, The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If, no named presets are provided by the runtime the list is empty.
|
|
134
164
|
**/
|
|
135
|
-
|
|
165
|
+
presetNames: AugmentedCall<ApiType, () => Observable<Vec<Text>>>;
|
|
136
166
|
};
|
|
137
|
-
/** 0xed99c5acb25eedf5/
|
|
167
|
+
/** 0xed99c5acb25eedf5/ */
|
|
138
168
|
grandpaApi: {
|
|
139
169
|
/**
|
|
140
170
|
* Get current GRANDPA authority set id.
|
|
141
171
|
**/
|
|
142
|
-
currentSetId: AugmentedCall<ApiType, () => Observable<
|
|
172
|
+
currentSetId: AugmentedCall<ApiType, () => Observable<u64>>;
|
|
143
173
|
/**
|
|
144
|
-
* Generates a proof of key ownership for the given authority in the given set.
|
|
174
|
+
* Generates a proof of key ownership for the given authority in the, given set. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `set_id` as parameter the current, implementations ignore this parameter and instead rely on this, method being called at the correct block height, i.e. any point at, which the given set id is live on-chain. Future implementations will, instead use indexed data through an offchain worker, not requiring, older states to be available.
|
|
145
175
|
**/
|
|
146
|
-
generateKeyOwnershipProof: AugmentedCall<
|
|
147
|
-
ApiType,
|
|
148
|
-
(
|
|
149
|
-
setId: SetId | AnyNumber | Uint8Array,
|
|
150
|
-
authorityId: AuthorityId | string | Uint8Array,
|
|
151
|
-
) => Observable<Option<OpaqueKeyOwnershipProof>>
|
|
152
|
-
>;
|
|
176
|
+
generateKeyOwnershipProof: AugmentedCall<ApiType, (set_id: u64 | AnyNumber | Uint8Array, authority_id: SpConsensusGrandpaAppPublic | string | Uint8Array) => Observable<Option<Bytes>>>;
|
|
153
177
|
/**
|
|
154
|
-
* Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.
|
|
178
|
+
* Get the current GRANDPA authorities and weights. This should not change except, for when changes are scheduled and the corresponding delay has passed.,, When called at block B, it will return the set of authorities that should be, used to finalize descendants of this block (B+1, B+2, ...). The block B itself, is finalized by the authorities from block B-1.
|
|
155
179
|
**/
|
|
156
|
-
grandpaAuthorities: AugmentedCall<ApiType, () => Observable<
|
|
180
|
+
grandpaAuthorities: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>>;
|
|
157
181
|
/**
|
|
158
|
-
* Submits an unsigned extrinsic to report an equivocation.
|
|
182
|
+
* Submits an unsigned extrinsic to report an equivocation. The caller, must provide the equivocation proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
|
|
159
183
|
**/
|
|
160
|
-
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<
|
|
161
|
-
ApiType,
|
|
162
|
-
(
|
|
163
|
-
equivocationProof:
|
|
164
|
-
| GrandpaEquivocationProof
|
|
165
|
-
| { setId?: any; equivocation?: any }
|
|
166
|
-
| string
|
|
167
|
-
| Uint8Array,
|
|
168
|
-
keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array,
|
|
169
|
-
) => Observable<Option<Null>>
|
|
170
|
-
>;
|
|
184
|
+
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusGrandpaEquivocationProof | { setId?: any; equivocation?: any } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
|
|
171
185
|
};
|
|
172
|
-
/** 0x37e397fc7c91f5e4/
|
|
186
|
+
/** 0x37e397fc7c91f5e4/ */
|
|
173
187
|
metadata: {
|
|
174
188
|
/**
|
|
175
|
-
* Returns the metadata of a runtime
|
|
189
|
+
* Returns the metadata of a runtime.
|
|
176
190
|
**/
|
|
177
191
|
metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
|
|
178
192
|
/**
|
|
179
|
-
* Returns the metadata at a given version.
|
|
193
|
+
* Returns the metadata at a given version.,, If the given `version` isn't supported, this will return `None`., Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
|
|
180
194
|
**/
|
|
181
|
-
metadataAtVersion: AugmentedCall<
|
|
182
|
-
ApiType,
|
|
183
|
-
(version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>
|
|
184
|
-
>;
|
|
195
|
+
metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
|
|
185
196
|
/**
|
|
186
|
-
* Returns the supported metadata versions
|
|
197
|
+
* Returns the supported metadata versions.,, This can be used to call `metadata_at_version`.
|
|
187
198
|
**/
|
|
188
199
|
metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
|
|
189
200
|
};
|
|
190
|
-
/**
|
|
201
|
+
/** 0x5e4dc2ce83c23f09/ */
|
|
202
|
+
miningApis: {
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
**/
|
|
206
|
+
activeMinerCount: AugmentedCall<ApiType, () => Observable<u32>>;
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
**/
|
|
210
|
+
getAuthorityId: AugmentedCall<ApiType, (account_id: AccountId32 | string | Uint8Array) => Observable<Option<ArgonPrimitivesBlockSealMiningAuthority>>>;
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
**/
|
|
214
|
+
getBlockPayouts: AugmentedCall<ApiType, () => Observable<Vec<ArgonPrimitivesBlockSealBlockPayout>>>;
|
|
215
|
+
};
|
|
216
|
+
/** 0xbab599c4f0d362c6/ */
|
|
217
|
+
miningSlotApi: {
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
**/
|
|
221
|
+
bidPool: AugmentedCall<ApiType, () => Observable<u128>>;
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
**/
|
|
225
|
+
nextMiningEpoch: AugmentedCall<ApiType, () => Observable<ITuple<[u64, u64]>>>;
|
|
226
|
+
};
|
|
227
|
+
/** 0x51c97e4020145cb0/ */
|
|
228
|
+
notaryApis: {
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
**/
|
|
232
|
+
notaries: AugmentedCall<ApiType, () => Observable<Vec<ArgonPrimitivesNotaryNotaryRecordWithState>>>;
|
|
233
|
+
/**
|
|
234
|
+
*
|
|
235
|
+
**/
|
|
236
|
+
notaryById: AugmentedCall<ApiType, (notary_id: u32 | AnyNumber | Uint8Array) => Observable<Option<ArgonPrimitivesNotaryNotaryRecordWithState>>>;
|
|
237
|
+
};
|
|
238
|
+
/** 0xfff0fb031985f8a1/ */
|
|
239
|
+
notebookApis: {
|
|
240
|
+
/**
|
|
241
|
+
*
|
|
242
|
+
**/
|
|
243
|
+
auditNotebookAndGetVotesV2: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array, notary_id: u32 | AnyNumber | Uint8Array, notebook_number: u32 | AnyNumber | Uint8Array, notebook_tick: u64 | AnyNumber | Uint8Array, header_hash: H256 | string | Uint8Array, bytes: Bytes | string | Uint8Array, raw_audit_dependency_summaries: Vec<ArgonPrimitivesNotaryNotaryNotebookAuditSummary> | (ArgonPrimitivesNotaryNotaryNotebookAuditSummary | { notaryId?: any; notebookNumber?: any; tick?: any; version?: any; rawData?: any } | string | Uint8Array)[]) => Observable<Result<ArgonPrimitivesNotaryNotaryNotebookRawVotes, ArgonNotaryAuditErrorVerifyError>>>;
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
**/
|
|
247
|
+
decodeSignedRawNotebookHeader: AugmentedCall<ApiType, (raw_header: Bytes | string | Uint8Array) => Observable<Result<ArgonPrimitivesNotaryNotaryNotebookDetails, SpRuntimeDispatchError>>>;
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
**/
|
|
251
|
+
latestNotebookByNotary: AugmentedCall<ApiType, () => Observable<BTreeMap<u32, ITuple<[u32, u64]>>>>;
|
|
252
|
+
};
|
|
253
|
+
/** 0xf78b278be53f454c/ */
|
|
191
254
|
offchainWorkerApi: {
|
|
192
255
|
/**
|
|
193
256
|
* Starts the off-chain task for given block header.
|
|
194
257
|
**/
|
|
195
|
-
offchainWorker: AugmentedCall<
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
258
|
+
offchainWorker: AugmentedCall<ApiType, (header: SpRuntimeHeader | { parentHash?: any; number?: any; stateRoot?: any; extrinsicsRoot?: any; digest?: any } | string | Uint8Array) => Observable<Null>>;
|
|
259
|
+
};
|
|
260
|
+
/** 0xccd9de6396c899ca/ */
|
|
261
|
+
runtimeViewFunction: {
|
|
262
|
+
/**
|
|
263
|
+
* Execute a view function query.
|
|
264
|
+
**/
|
|
265
|
+
executeViewFunction: AugmentedCall<ApiType, (query_id: FrameSupportViewFunctionsViewFunctionId | { prefix?: any; suffix?: any } | string | Uint8Array, input: Bytes | string | Uint8Array) => Observable<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>>;
|
|
266
|
+
};
|
|
267
|
+
/** 0xab3c0572291feb8b/ */
|
|
268
|
+
sessionKeys: {
|
|
269
|
+
/**
|
|
270
|
+
* Decode the given public session keys.,, Returns the list of public raw public keys + key type.
|
|
271
|
+
**/
|
|
272
|
+
decodeSessionKeys: AugmentedCall<ApiType, (encoded: Bytes | string | Uint8Array) => Observable<Option<Vec<ITuple<[Bytes, SpCoreCryptoKeyTypeId]>>>>>;
|
|
273
|
+
/**
|
|
274
|
+
* Generate a set of session keys with optionally using the given seed., The keys should be stored within the keystore exposed via runtime, externalities.,, The seed needs to be a valid `utf8` string.,, Returns the concatenated SCALE encoded public keys.
|
|
275
|
+
**/
|
|
276
|
+
generateSessionKeys: AugmentedCall<ApiType, (owner: Bytes | string | Uint8Array, seed: Option<Bytes> | null | Uint8Array | Bytes | string) => Observable<SpSessionRuntimeApiOpaqueGeneratedSessionKeys>>;
|
|
211
277
|
};
|
|
212
|
-
/** 0xd2bc9897eed08f15/
|
|
278
|
+
/** 0xd2bc9897eed08f15/ */
|
|
213
279
|
taggedTransactionQueue: {
|
|
214
280
|
/**
|
|
215
|
-
* Validate the transaction.
|
|
281
|
+
* Validate the transaction.,, This method is invoked by the transaction pool to learn details about given transaction., The implementation should make sure to verify the correctness of the transaction, against current state. The given `block_hash` corresponds to the hash of the block, that is used as current state.,, Note that this call may be performed by the pool multiple times and transactions, might be verified in any possible order.
|
|
216
282
|
**/
|
|
217
|
-
validateTransaction: AugmentedCall<
|
|
218
|
-
ApiType,
|
|
219
|
-
(
|
|
220
|
-
source: TransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array,
|
|
221
|
-
tx: Extrinsic | IExtrinsic | string | Uint8Array,
|
|
222
|
-
blockHash: BlockHash | string | Uint8Array,
|
|
223
|
-
) => Observable<TransactionValidity>
|
|
224
|
-
>;
|
|
283
|
+
validateTransaction: AugmentedCall<ApiType, (source: SpRuntimeTransactionValidityTransactionSource | 'InBlock' | 'Local' | 'External' | number | Uint8Array, tx: Extrinsic | IExtrinsic | string | Uint8Array, block_hash: H256 | string | Uint8Array) => Observable<Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>>>;
|
|
225
284
|
};
|
|
226
|
-
/**
|
|
285
|
+
/** 0x0090f9d890bb0bb2/ */
|
|
286
|
+
tickApis: {
|
|
287
|
+
/**
|
|
288
|
+
*
|
|
289
|
+
**/
|
|
290
|
+
blocksAtTick: AugmentedCall<ApiType, (tick: u64 | AnyNumber | Uint8Array) => Observable<Vec<H256>>>;
|
|
291
|
+
/**
|
|
292
|
+
*
|
|
293
|
+
**/
|
|
294
|
+
currentTick: AugmentedCall<ApiType, () => Observable<u64>>;
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
**/
|
|
298
|
+
ticker: AugmentedCall<ApiType, () => Observable<ArgonPrimitivesTickTicker>>;
|
|
299
|
+
};
|
|
300
|
+
/** 0x37c8bb1350a9a2a8/ */
|
|
227
301
|
transactionPaymentApi: {
|
|
228
302
|
/**
|
|
229
|
-
*
|
|
230
|
-
**/
|
|
231
|
-
queryFeeDetails: AugmentedCall<
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
uxt: Extrinsic | IExtrinsic | string | Uint8Array,
|
|
245
|
-
len: u32 | AnyNumber | Uint8Array,
|
|
246
|
-
) => Observable<RuntimeDispatchInfo>
|
|
247
|
-
>;
|
|
248
|
-
/**
|
|
249
|
-
* Query the output of the current LengthToFee given some input
|
|
250
|
-
**/
|
|
251
|
-
queryLengthToFee: AugmentedCall<
|
|
252
|
-
ApiType,
|
|
253
|
-
(length: u32 | AnyNumber | Uint8Array) => Observable<Balance>
|
|
254
|
-
>;
|
|
255
|
-
/**
|
|
256
|
-
* Query the output of the current WeightToFee given some input
|
|
257
|
-
**/
|
|
258
|
-
queryWeightToFee: AugmentedCall<
|
|
259
|
-
ApiType,
|
|
260
|
-
(
|
|
261
|
-
weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array,
|
|
262
|
-
) => Observable<Balance>
|
|
263
|
-
>;
|
|
303
|
+
*
|
|
304
|
+
**/
|
|
305
|
+
queryFeeDetails: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
**/
|
|
309
|
+
queryInfo: AugmentedCall<ApiType, (uxt: Extrinsic | IExtrinsic | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
|
|
310
|
+
/**
|
|
311
|
+
*
|
|
312
|
+
**/
|
|
313
|
+
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
|
|
314
|
+
/**
|
|
315
|
+
*
|
|
316
|
+
**/
|
|
317
|
+
queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<u128>>;
|
|
264
318
|
};
|
|
265
|
-
/** 0xf3ff14d5ab527059/
|
|
319
|
+
/** 0xf3ff14d5ab527059/ */
|
|
266
320
|
transactionPaymentCallApi: {
|
|
267
321
|
/**
|
|
268
|
-
*
|
|
269
|
-
**/
|
|
270
|
-
queryCallFeeDetails: AugmentedCall<
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
call: Call | IMethod | string | Uint8Array,
|
|
284
|
-
len: u32 | AnyNumber | Uint8Array,
|
|
285
|
-
) => Observable<RuntimeDispatchInfo>
|
|
286
|
-
>;
|
|
287
|
-
/**
|
|
288
|
-
* Query the output of the current LengthToFee given some input
|
|
289
|
-
**/
|
|
290
|
-
queryLengthToFee: AugmentedCall<
|
|
291
|
-
ApiType,
|
|
292
|
-
(length: u32 | AnyNumber | Uint8Array) => Observable<Balance>
|
|
293
|
-
>;
|
|
294
|
-
/**
|
|
295
|
-
* Query the output of the current WeightToFee given some input
|
|
296
|
-
**/
|
|
297
|
-
queryWeightToFee: AugmentedCall<
|
|
298
|
-
ApiType,
|
|
299
|
-
(
|
|
300
|
-
weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array,
|
|
301
|
-
) => Observable<Balance>
|
|
302
|
-
>;
|
|
322
|
+
* Query fee details of a given encoded `Call`.
|
|
323
|
+
**/
|
|
324
|
+
queryCallFeeDetails: AugmentedCall<ApiType, (call: ArgonRuntimeRuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentFeeDetails>>;
|
|
325
|
+
/**
|
|
326
|
+
* Query information of a dispatch class, weight, and fee of a given encoded `Call`.
|
|
327
|
+
**/
|
|
328
|
+
queryCallInfo: AugmentedCall<ApiType, (call: ArgonRuntimeRuntimeCall | IMethod | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<PalletTransactionPaymentRuntimeDispatchInfo>>;
|
|
329
|
+
/**
|
|
330
|
+
* Query the output of the current `LengthToFee` given some input.
|
|
331
|
+
**/
|
|
332
|
+
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
|
|
333
|
+
/**
|
|
334
|
+
* Query the output of the current `WeightToFee` given some input.
|
|
335
|
+
**/
|
|
336
|
+
queryWeightToFee: AugmentedCall<ApiType, (weight: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<u128>>;
|
|
303
337
|
};
|
|
304
338
|
} // AugmentedCalls
|
|
305
339
|
} // declare module
|