@polkadot/rpc-augment 9.4.2 → 9.5.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 +7 -0
- package/cjs/packageInfo.js +1 -1
- package/package.json +5 -5
- package/packageInfo.js +1 -1
package/augment/jsonrpc.d.ts
CHANGED
|
@@ -138,6 +138,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
138
138
|
};
|
|
139
139
|
contracts: {
|
|
140
140
|
/**
|
|
141
|
+
* @deprecated Use the runtime interface `api.call.contractsApi.call` instead
|
|
141
142
|
* Executes a call to a contract
|
|
142
143
|
**/
|
|
143
144
|
call: AugmentedRpc<(callRequest: ContractCallRequest | {
|
|
@@ -149,10 +150,12 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
149
150
|
inputData?: any;
|
|
150
151
|
} | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractExecResult>>;
|
|
151
152
|
/**
|
|
153
|
+
* @deprecated Use the runtime interface `api.call.contractsApi.getStorage` instead
|
|
152
154
|
* Returns the value under a specified storage key in a contract
|
|
153
155
|
**/
|
|
154
156
|
getStorage: AugmentedRpc<(address: AccountId | string | Uint8Array, key: H256 | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<Bytes>>>;
|
|
155
157
|
/**
|
|
158
|
+
* @deprecated Use the runtime interface `api.call.contractsApi.instantiate` instead
|
|
156
159
|
* Instantiate a new contract
|
|
157
160
|
**/
|
|
158
161
|
instantiate: AugmentedRpc<(request: InstantiateRequest | {
|
|
@@ -165,10 +168,12 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
165
168
|
salt?: any;
|
|
166
169
|
} | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractInstantiateResult>>;
|
|
167
170
|
/**
|
|
171
|
+
* @deprecated Not available in newer versions of the contracts interfaces
|
|
168
172
|
* Returns the projected time a given contract will be able to sustain paying its rent
|
|
169
173
|
**/
|
|
170
174
|
rentProjection: AugmentedRpc<(address: AccountId | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<BlockNumber>>>;
|
|
171
175
|
/**
|
|
176
|
+
* @deprecated Use the runtime interface `api.call.contractsApi.uploadCode` instead
|
|
172
177
|
* Upload new code without instantiating a contract from it
|
|
173
178
|
**/
|
|
174
179
|
uploadCode: AugmentedRpc<(uploadRequest: CodeUploadRequest | {
|
|
@@ -497,6 +502,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
497
502
|
**/
|
|
498
503
|
getChildStorageSize: AugmentedRpc<(childStorageKey: StorageKey | string | Uint8Array | any, childDefinition: StorageKey | string | Uint8Array | any, childType: u32 | AnyNumber | Uint8Array, key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<u64>>;
|
|
499
504
|
/**
|
|
505
|
+
* @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys
|
|
500
506
|
* Retrieves the keys with a certain prefix
|
|
501
507
|
**/
|
|
502
508
|
getKeys: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
|
|
@@ -509,6 +515,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
509
515
|
**/
|
|
510
516
|
getMetadata: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<Metadata>>;
|
|
511
517
|
/**
|
|
518
|
+
* @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys
|
|
512
519
|
* Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)
|
|
513
520
|
**/
|
|
514
521
|
getPairs: AugmentedRpc<(prefix: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<KeyValue>>>;
|
package/cjs/packageInfo.js
CHANGED
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./cjs/detectPackage.js"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "9.
|
|
23
|
+
"version": "9.5.1",
|
|
24
24
|
"main": "./cjs/index.js",
|
|
25
25
|
"module": "./index.js",
|
|
26
26
|
"types": "./index.d.ts",
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@babel/runtime": "^7.19.0",
|
|
74
|
-
"@polkadot/rpc-core": "9.
|
|
75
|
-
"@polkadot/types": "9.
|
|
76
|
-
"@polkadot/types-codec": "9.
|
|
77
|
-
"@polkadot/util": "^10.1.
|
|
74
|
+
"@polkadot/rpc-core": "9.5.1",
|
|
75
|
+
"@polkadot/types": "9.5.1",
|
|
76
|
+
"@polkadot/types-codec": "9.5.1",
|
|
77
|
+
"@polkadot/util": "^10.1.10"
|
|
78
78
|
}
|
|
79
79
|
}
|
package/packageInfo.js
CHANGED
|
@@ -5,5 +5,5 @@ export const packageInfo = {
|
|
|
5
5
|
name: '@polkadot/rpc-augment',
|
|
6
6
|
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
|
|
7
7
|
type: 'esm',
|
|
8
|
-
version: '9.
|
|
8
|
+
version: '9.5.1'
|
|
9
9
|
};
|