@polkadot/rpc-augment 16.5.4 → 17.0.1
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/augment/jsonrpc.d.ts +10 -2
- package/cjs/augment/jsonrpc.d.ts +10 -2
- package/cjs/packageInfo.js +1 -1
- package/package.json +5 -5
- package/packageInfo.js +1 -1
package/augment/jsonrpc.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { AugmentedRpc } from '@polkadot/rpc-core/types';
|
|
|
3
3
|
import type { Metadata, StorageKey } from '@polkadot/types';
|
|
4
4
|
import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u32, u64 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, Codec } from '@polkadot/types-codec/types';
|
|
6
|
-
import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
|
|
6
|
+
import type { ExtrinsicOrHash, ExtrinsicStatus, GeneratedSessionKeys } from '@polkadot/types/interfaces/author';
|
|
7
7
|
import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
|
|
8
8
|
import type { BeefyVersionedFinalityProof } from '@polkadot/types/interfaces/beefy';
|
|
9
9
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
|
@@ -15,7 +15,7 @@ import type { CreatedBlock } from '@polkadot/types/interfaces/engine';
|
|
|
15
15
|
import type { EthAccount, EthCallRequest, EthFeeHistory, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';
|
|
16
16
|
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
|
17
17
|
import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';
|
|
18
|
-
import type { MmrHash, MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr';
|
|
18
|
+
import type { MmrAncestryProof, MmrHash, MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr';
|
|
19
19
|
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
|
|
20
20
|
import type { FeeDetails, RuntimeDispatchInfoV1 } from '@polkadot/types/interfaces/payment';
|
|
21
21
|
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
|
@@ -55,6 +55,10 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
55
55
|
* Generate new session keys and returns the corresponding public keys
|
|
56
56
|
**/
|
|
57
57
|
rotateKeys: AugmentedRpc<() => Observable<Bytes>>;
|
|
58
|
+
/**
|
|
59
|
+
* Generate new session keys and returns the corresponding public keys and owner proof
|
|
60
|
+
**/
|
|
61
|
+
rotateKeysWithOwner: AugmentedRpc<(owner: Bytes | string | Uint8Array) => Observable<GeneratedSessionKeys>>;
|
|
58
62
|
/**
|
|
59
63
|
* Submit and subscribe to watch an extrinsic until unsubscribed
|
|
60
64
|
**/
|
|
@@ -426,6 +430,10 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
426
430
|
subscribeJustifications: AugmentedRpc<() => Observable<JustificationNotification>>;
|
|
427
431
|
};
|
|
428
432
|
mmr: {
|
|
433
|
+
/**
|
|
434
|
+
* Generate an MMR ancestry proof for the given block number.
|
|
435
|
+
**/
|
|
436
|
+
generateAncestryProof: AugmentedRpc<(prevBlockNumber: u64 | AnyNumber | Uint8Array, bestKnownBlockNumber?: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrAncestryProof>>;
|
|
429
437
|
/**
|
|
430
438
|
* Generate MMR proof for the given block numbers.
|
|
431
439
|
**/
|
package/cjs/augment/jsonrpc.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { AugmentedRpc } from '@polkadot/rpc-core/types';
|
|
|
3
3
|
import type { Metadata, StorageKey } from '@polkadot/types';
|
|
4
4
|
import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u32, u64 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, Codec } from '@polkadot/types-codec/types';
|
|
6
|
-
import type { ExtrinsicOrHash, ExtrinsicStatus } from '@polkadot/types/interfaces/author';
|
|
6
|
+
import type { ExtrinsicOrHash, ExtrinsicStatus, GeneratedSessionKeys } from '@polkadot/types/interfaces/author';
|
|
7
7
|
import type { EpochAuthorship } from '@polkadot/types/interfaces/babe';
|
|
8
8
|
import type { BeefyVersionedFinalityProof } from '@polkadot/types/interfaces/beefy';
|
|
9
9
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
|
@@ -15,7 +15,7 @@ import type { CreatedBlock } from '@polkadot/types/interfaces/engine';
|
|
|
15
15
|
import type { EthAccount, EthCallRequest, EthFeeHistory, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';
|
|
16
16
|
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
|
17
17
|
import type { EncodedFinalityProofs, JustificationNotification, ReportedRoundStates } from '@polkadot/types/interfaces/grandpa';
|
|
18
|
-
import type { MmrHash, MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr';
|
|
18
|
+
import type { MmrAncestryProof, MmrHash, MmrLeafBatchProof } from '@polkadot/types/interfaces/mmr';
|
|
19
19
|
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
|
|
20
20
|
import type { FeeDetails, RuntimeDispatchInfoV1 } from '@polkadot/types/interfaces/payment';
|
|
21
21
|
import type { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
|
@@ -55,6 +55,10 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
55
55
|
* Generate new session keys and returns the corresponding public keys
|
|
56
56
|
**/
|
|
57
57
|
rotateKeys: AugmentedRpc<() => Observable<Bytes>>;
|
|
58
|
+
/**
|
|
59
|
+
* Generate new session keys and returns the corresponding public keys and owner proof
|
|
60
|
+
**/
|
|
61
|
+
rotateKeysWithOwner: AugmentedRpc<(owner: Bytes | string | Uint8Array) => Observable<GeneratedSessionKeys>>;
|
|
58
62
|
/**
|
|
59
63
|
* Submit and subscribe to watch an extrinsic until unsubscribed
|
|
60
64
|
**/
|
|
@@ -426,6 +430,10 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
426
430
|
subscribeJustifications: AugmentedRpc<() => Observable<JustificationNotification>>;
|
|
427
431
|
};
|
|
428
432
|
mmr: {
|
|
433
|
+
/**
|
|
434
|
+
* Generate an MMR ancestry proof for the given block number.
|
|
435
|
+
**/
|
|
436
|
+
generateAncestryProof: AugmentedRpc<(prevBlockNumber: u64 | AnyNumber | Uint8Array, bestKnownBlockNumber?: u64 | AnyNumber | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<MmrAncestryProof>>;
|
|
429
437
|
/**
|
|
430
438
|
* Generate MMR proof for the given block numbers.
|
|
431
439
|
**/
|
package/cjs/packageInfo.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.packageInfo = void 0;
|
|
4
|
-
exports.packageInfo = { name: '@polkadot/rpc-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '
|
|
4
|
+
exports.packageInfo = { name: '@polkadot/rpc-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '17.0.1' };
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"./cjs/packageDetect.js"
|
|
19
19
|
],
|
|
20
20
|
"type": "module",
|
|
21
|
-
"version": "
|
|
21
|
+
"version": "17.0.1",
|
|
22
22
|
"main": "./cjs/index.js",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts",
|
|
@@ -129,10 +129,10 @@
|
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
"dependencies": {
|
|
132
|
-
"@polkadot/rpc-core": "
|
|
133
|
-
"@polkadot/types": "
|
|
134
|
-
"@polkadot/types-codec": "
|
|
135
|
-
"@polkadot/util": "^14.0.
|
|
132
|
+
"@polkadot/rpc-core": "17.0.1",
|
|
133
|
+
"@polkadot/types": "17.0.1",
|
|
134
|
+
"@polkadot/types-codec": "17.0.1",
|
|
135
|
+
"@polkadot/util": "^14.0.3",
|
|
136
136
|
"tslib": "^2.8.1"
|
|
137
137
|
}
|
|
138
138
|
}
|
package/packageInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageInfo = { name: '@polkadot/rpc-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '
|
|
1
|
+
export const packageInfo = { name: '@polkadot/rpc-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '17.0.1' };
|