@polkadot/rpc-augment 7.5.2-7 → 7.5.2-8
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 +9 -1
- package/package.json +4 -4
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
package/augment/jsonrpc.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import type { BeefySignedCommitment } from '@polkadot/types/interfaces/beefy';
|
|
|
8
8
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
|
9
9
|
import type { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate';
|
|
10
10
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
|
11
|
-
import type { ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequest } from '@polkadot/types/interfaces/contracts';
|
|
11
|
+
import type { CodeUploadRequest, CodeUploadResult, ContractCallRequest, ContractExecResult, ContractInstantiateResult, InstantiateRequest } from '@polkadot/types/interfaces/contracts';
|
|
12
12
|
import type { CreatedBlock } from '@polkadot/types/interfaces/engine';
|
|
13
13
|
import type { EthAccount, EthCallRequest, EthFilter, EthFilterChanges, EthLog, EthReceipt, EthRichBlock, EthSubKind, EthSubParams, EthSyncStatus, EthTransaction, EthTransactionRequest, EthWork } from '@polkadot/types/interfaces/eth';
|
|
14
14
|
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
|
@@ -161,6 +161,14 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
|
|
|
161
161
|
* Returns the projected time a given contract will be able to sustain paying its rent
|
|
162
162
|
**/
|
|
163
163
|
rentProjection: AugmentedRpc<(address: AccountId | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<BlockNumber>>>;
|
|
164
|
+
/**
|
|
165
|
+
* Upload new code without instantiating a contract from it
|
|
166
|
+
**/
|
|
167
|
+
uploadCode: AugmentedRpc<(uploadRequest: CodeUploadRequest | {
|
|
168
|
+
origin?: any;
|
|
169
|
+
code?: any;
|
|
170
|
+
storageDepositLimit?: any;
|
|
171
|
+
} | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<CodeUploadResult>>;
|
|
164
172
|
};
|
|
165
173
|
engine: {
|
|
166
174
|
/**
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./detectPackage.cjs"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "7.5.2-
|
|
23
|
+
"version": "7.5.2-8",
|
|
24
24
|
"main": "index.cjs",
|
|
25
25
|
"module": "index.js",
|
|
26
26
|
"types": "index.d.ts",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@babel/runtime": "^7.16.7",
|
|
69
|
-
"@polkadot/rpc-core": "7.5.2-
|
|
70
|
-
"@polkadot/types": "7.5.2-
|
|
71
|
-
"@polkadot/types-codec": "7.5.2-
|
|
69
|
+
"@polkadot/rpc-core": "7.5.2-8",
|
|
70
|
+
"@polkadot/types": "7.5.2-8",
|
|
71
|
+
"@polkadot/types-codec": "7.5.2-8",
|
|
72
72
|
"@polkadot/util": "^8.3.3"
|
|
73
73
|
}
|
|
74
74
|
}
|
package/packageInfo.cjs
CHANGED
package/packageInfo.js
CHANGED