@argonprotocol/mainchain 1.4.13-dev.b31b2822 → 1.4.13-dev.f1c9e746
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 +12 -2
- package/browser/index.js +1 -6
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +1 -6
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +12 -2
- package/lib/index.d.ts +12 -2
- package/lib/index.js +1 -6
- package/lib/index.js.map +1 -1
- package/package.json +12 -10
- package/src/interfaces/augment-api-consts.ts +1 -0
- package/src/interfaces/augment-api-query.ts +1 -0
- package/src/interfaces/augment-api-rpc.ts +22 -2
- package/src/interfaces/augment-api-runtime.ts +1 -0
- package/src/interfaces/augment-api.ts +1 -0
- package/src/interfaces/augment-types.ts +9 -1
- package/src/interfaces/lookup.ts +3 -0
- package/src/interfaces/registry.ts +1 -0
package/browser/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export * from '@polkadot/types/lookup';
|
|
|
10
10
|
import { Observable, IExtrinsic } from '@polkadot/types/types';
|
|
11
11
|
import { AugmentedRpc } from '@polkadot/rpc-core/types';
|
|
12
12
|
import { StorageKey, Metadata, Data, TypeRegistry } from '@polkadot/types';
|
|
13
|
-
import { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
|
|
13
|
+
import { ExtrinsicOrHash, GeneratedSessionKeys, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
|
|
14
14
|
export { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
|
|
15
15
|
import { EpochAuthorship, OpaqueKeyOwnershipProof, AllowedSlots, BabeAuthorityWeight, BabeBlockWeight, BabeEpochConfiguration, BabeEquivocationProof, BabeGenesisConfiguration, BabeGenesisConfigurationV1, BabeWeight, Epoch, MaybeRandomness, MaybeVrf, NextConfigDescriptor, NextConfigDescriptorV1, Randomness, RawBabePreDigest, RawBabePreDigestCompat, RawBabePreDigestPrimary, RawBabePreDigestPrimaryTo159, RawBabePreDigestSecondaryPlain, RawBabePreDigestSecondaryTo159, RawBabePreDigestSecondaryVRF, RawBabePreDigestTo159, SlotNumber, VrfData, VrfOutput, VrfProof } from '@polkadot/types/interfaces/babe';
|
|
16
16
|
import { BeefyVersionedFinalityProof, BeefyAuthoritySet, BeefyCommitment, BeefyCompactSignedCommitment, BeefyEquivocationProof, BeefyId, BeefyNextAuthoritySet, BeefyPayload, BeefyPayloadId, BeefySignedCommitment, BeefyVoteMessage, MmrRootHash, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
|
@@ -24,7 +24,7 @@ import { CreatedBlock, ImportedAux } from '@polkadot/types/interfaces/engine';
|
|
|
24
24
|
import { EthCallRequest, EthFeeHistory, EthRichBlock, EthFilterChanges, EthLog, EthFilter, EthAccount, EthTransaction, EthReceipt, EthWork, EthTransactionRequest, EthSubKind, EthSubParams, EthSyncStatus, BlockV0, BlockV1, BlockV2, BlockV3, EIP1559Transaction, EIP2930Transaction, EIP7702Transaction, EthAccessList, EthAccessListItem, EthAddress, EthAuthorizationList, EthAuthorizationListItem, EthAuthorizationSignature, EthBlock, EthBloom, EthereumAccountId, EthereumAddress, EthereumLookupSource, EthereumSignature, EthFilterAddress, EthFilterTopic, EthFilterTopicEntry, EthFilterTopicInner, EthHeader, EthLegacyTransactionSignature, EthReceiptV0, EthReceiptV3, EthReceiptV4, EthRichHeader, EthStorageProof, EthSubResult, EthSyncInfo, EthTransactionAction, EthTransactionCondition, EthTransactionSignature, EthTransactionStatus, LegacyTransaction, TransactionV0, TransactionV1, TransactionV2, TransactionV3 } from '@polkadot/types/interfaces/eth';
|
|
25
25
|
import { Extrinsic, AnySignature, EcdsaSignature, Ed25519Signature, Era, ExtrinsicEra, ExtrinsicPayload, ExtrinsicPayloadUnknown, ExtrinsicPayloadV4, ExtrinsicPayloadV5, ExtrinsicSignature, ExtrinsicSignatureV4, ExtrinsicSignatureV5, ExtrinsicUnknown, ExtrinsicV4, ExtrinsicV5, ImmortalEra, MortalEra, MultiSignature, Signature, SignerPayload, Sr25519Signature } from '@polkadot/types/interfaces/extrinsics';
|
|
26
26
|
import { EncodedFinalityProofs, ReportedRoundStates, JustificationNotification, SetId, AuthorityList, GrandpaEquivocationProof, AuthorityIndex, AuthoritySet, AuthoritySetChange, AuthoritySetChanges, AuthorityWeight, DelayKind, DelayKindBest, ForkTreePendingChange, ForkTreePendingChangeNode, GrandpaCommit, GrandpaEquivocation, GrandpaEquivocationValue, GrandpaJustification, GrandpaPrecommit, GrandpaPrevote, GrandpaSignedPrecommit, KeyOwnerProof, NextAuthority, PendingChange, PendingPause, PendingResume, Precommits, Prevotes, RoundState, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa';
|
|
27
|
-
import { MmrLeafBatchProof, MmrHash, MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrLeafProof, MmrNodeIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
|
27
|
+
import { MmrAncestryProof, MmrLeafBatchProof, MmrHash, MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrLeafProof, MmrNodeIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
|
28
28
|
import { StorageKind } from '@polkadot/types/interfaces/offchain';
|
|
29
29
|
import { FeeDetails, RuntimeDispatchInfoV1, RuntimeDispatchInfo, InclusionFee, RuntimeDispatchInfoV2 } from '@polkadot/types/interfaces/payment';
|
|
30
30
|
import { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
|
@@ -7997,6 +7997,10 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
7997
7997
|
* Generate new session keys and returns the corresponding public keys
|
|
7998
7998
|
**/
|
|
7999
7999
|
rotateKeys: AugmentedRpc<() => Observable<Bytes>>;
|
|
8000
|
+
/**
|
|
8001
|
+
* Generate new session keys and returns the corresponding public keys and owner proof
|
|
8002
|
+
**/
|
|
8003
|
+
rotateKeysWithOwner: AugmentedRpc<(owner: Bytes | string | Uint8Array) => Observable<GeneratedSessionKeys>>;
|
|
8000
8004
|
/**
|
|
8001
8005
|
* Submit and subscribe to watch an extrinsic until unsubscribed
|
|
8002
8006
|
**/
|
|
@@ -8368,6 +8372,10 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
8368
8372
|
subscribeJustifications: AugmentedRpc<() => Observable<JustificationNotification>>;
|
|
8369
8373
|
};
|
|
8370
8374
|
mmr: {
|
|
8375
|
+
/**
|
|
8376
|
+
* Generate an MMR ancestry proof for the given block number.
|
|
8377
|
+
**/
|
|
8378
|
+
generateAncestryProof: AugmentedRpc<(prevBlockNumber: u64 | AnyNumber | Uint8Array, bestKnownBlockNumber?: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrAncestryProof>>;
|
|
8371
8379
|
/**
|
|
8372
8380
|
* Generate MMR proof for the given block numbers.
|
|
8373
8381
|
**/
|
|
@@ -9289,6 +9297,7 @@ declare module '@polkadot/types/types/registry' {
|
|
|
9289
9297
|
FungibilityV5: FungibilityV5;
|
|
9290
9298
|
FungiblesAccessError: FungiblesAccessError;
|
|
9291
9299
|
Gas: Gas;
|
|
9300
|
+
GeneratedSessionKeys: GeneratedSessionKeys;
|
|
9292
9301
|
GenesisBuildErr: GenesisBuildErr;
|
|
9293
9302
|
GiltBid: GiltBid;
|
|
9294
9303
|
GlobalValidationData: GlobalValidationData;
|
|
@@ -9455,6 +9464,7 @@ declare module '@polkadot/types/types/registry' {
|
|
|
9455
9464
|
MigrationStatusResult: MigrationStatusResult;
|
|
9456
9465
|
Mixnode: Mixnode;
|
|
9457
9466
|
MixnodesErr: MixnodesErr;
|
|
9467
|
+
MmrAncestryProof: MmrAncestryProof;
|
|
9458
9468
|
MmrBatchProof: MmrBatchProof;
|
|
9459
9469
|
MmrEncodableOpaqueLeaf: MmrEncodableOpaqueLeaf;
|
|
9460
9470
|
MmrError: MmrError;
|
package/browser/index.js
CHANGED
|
@@ -7261,13 +7261,8 @@ async function waitForLoad() {
|
|
|
7261
7261
|
await cryptoWaitReady();
|
|
7262
7262
|
}
|
|
7263
7263
|
async function getClient(host, options) {
|
|
7264
|
-
let provider;
|
|
7265
|
-
if (host.startsWith("http")) {
|
|
7266
|
-
provider = new HttpProvider(host);
|
|
7267
|
-
} else {
|
|
7268
|
-
provider = new WsProvider(host);
|
|
7269
|
-
}
|
|
7270
7264
|
options ?? (options = {});
|
|
7265
|
+
const provider = options.provider ?? (host.startsWith("http") ? new HttpProvider(host) : new WsProvider(host));
|
|
7271
7266
|
options.metadata ?? (options.metadata = {});
|
|
7272
7267
|
for (const genesisHash of Object.values(genesis_default)) {
|
|
7273
7268
|
options.metadata[`${genesisHash}-${specVersion}`] = result;
|