Compare commits

...
19 Commits
Author SHA1 Message Date
github-actions[bot] b824edd281 [CI Skip] release/stable 9.4.3
skip-checks: true
2022-10-02 09:35:43 +00:00
Jaco b397486fe8 9.4.3 (#5252) 2022-10-02 12:27:46 +03:00
github-actions[bot] 28d1d8193b [CI Skip] bump/beta 9.4.3-7-x
skip-checks: true
2022-10-02 07:05:01 +00:00
Jaco 6cb0c5c5be Runtime upgrade blocks (#5250) 2022-10-02 09:56:29 +03:00
github-actions[bot] f4072b9202 [CI Skip] bump/beta 9.4.3-6-x
skip-checks: true
2022-09-30 06:14:09 +00:00
Jaco 8d300a73b8 Bump deps (#5248) 2022-09-30 09:05:43 +03:00
github-actions[bot] d6d24d5b61 [CI Skip] bump/beta 9.4.3-5-x
skip-checks: true
2022-09-28 10:58:03 +00:00
Jaco 0ef93c3b94 Bump TS (#5245) 2022-09-28 13:50:14 +03:00
github-actions[bot] a6b48f8eec [CI Skip] bump/beta 9.4.3-4-x
skip-checks: true
2022-09-28 05:22:34 +00:00
Jaco a92bfca548 Add deprecated flag to RPCs (#5244)
* Add deprecated flag to RPCs

* CHANGELOG
2022-09-28 08:14:47 +03:00
github-actions[bot] 7701205d58 [CI Skip] bump/beta 9.4.3-3-x
skip-checks: true
2022-09-27 12:17:29 +00:00
Jaco 2d09e8d94e Align redeemable check with Substrate (exact) (#5243)
* Align redeemable check with Substrate (exact)

* Fix comment
2022-09-27 15:09:45 +03:00
github-actions[bot] 7b0fd81b4e [CI Skip] bump/beta 9.4.3-2-x
skip-checks: true
2022-09-27 11:28:39 +00:00
Jaco c1a6f3f302 Align staking derive redeemableSum with Rust source (currentEra vs activeEra usage) (#5242) 2022-09-27 14:18:56 +03:00
github-actions[bot] 62df7e4ead [CI Skip] bump/beta 9.4.3-1-x
skip-checks: true
2022-09-26 07:04:03 +00:00
Jaco f2cb628e25 Adjust CHANGELOG (#5238) 2022-09-26 09:53:29 +03:00
github-actions[bot] 5b0eb1b67b [CI Skip] bump/beta 9.4.3-0-x
skip-checks: true
2022-09-26 06:49:54 +00:00
Andreea Eftene 87affdcbb3 Fix code source type (#5236) 2022-09-26 09:42:09 +03:00
Andreea Eftene 4afd550db7 change prefix (#5237) 2022-09-25 20:57:16 +03:00
49 changed files with 909 additions and 660 deletions
+14
View File
@@ -1,5 +1,19 @@
# CHANGELOG
## 9.4.3 Oct 2, 2022
Contributed:
- Allow for new `ink_primitives` types (Thanks to https://github.com/statictype)
- Fix contracts runtime `instantiate` call params (Thanks to https://github.com/statictype)
Changes:
- Align staking derive redeemableSum with Rust source (`currentEra` vs `activeEra` usage)
- Add `@deprecated` flag to RPC interface generation (`contracts_*` & `state_get{Pairs/Keys}`)
- Polkadot 9280/9281, Kusama 9291 upgrade blocks
## 9.4.2 Sep 24, 2022
Contributed:
+2 -2
View File
@@ -1,4 +1,4 @@
3233 Jaco 9.4.2 (#5235)
3241 Jaco 9.4.3 (#5252)
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
37 Keith Ingram Update contract types and rpc (#4541)
35 Stefanie Doll Updated child storage parameters (#1709)
@@ -18,6 +18,7 @@
4 Scott Twiname Add support for historical BlockNumber rpc methods (#4574)
4 Thibaut Sardan no subscription for http (#3127)
3 André Silva add support for ValidationCodeHash (#3640)
3 Andreea Eftene Fix code source type (#5236)
3 Antoine Estienne Adapted to display moonbeam author (#3108)
3 Arjan Zijderveld Added `Emergency` to `ElectionPhase` (#3707)
3 Ewa Kowalska Handle no council for bounties proposals (#3062)
@@ -45,7 +46,6 @@
2 Zannis Kalampoukis fix: Typegen handles structs and vectors of structs without erroring (#4743)
2 扩散性百万甜面包 Typo, deocrateMethod -> decorateMethod (#1594)
1 Alan Sapede Adds Eth feeHistory & maxPriorityFeePerGas rpc (#4956)
1 Andreea Eftene Add storage deposit support (#4304)
1 Brad Larson [NEW] Support for custom headers with providers (#2423)
1 Btwiuse Arch Add side effect check workaround (#4994) (#5009)
1 chriswmercer little readme tweak (#279)
+7 -7
View File
@@ -11,10 +11,10 @@
},
"sideEffects": false,
"type": "module",
"version": "9.4.2",
"version": "9.4.3",
"versions": {
"git": "9.4.2",
"npm": "9.4.2"
"git": "9.4.3",
"npm": "9.4.3"
},
"workspaces": [
"packages/*"
@@ -36,15 +36,15 @@
"test:one": "NODE_OPTIONS=--experimental-vm-modules polkadot-dev-run-test --detectOpenHandles --forceExit"
},
"devDependencies": {
"@babel/core": "^7.19.1",
"@babel/core": "^7.19.3",
"@babel/register": "^7.18.9",
"@babel/runtime": "^7.19.0",
"@polkadot/dev": "^0.67.132",
"@polkadot/dev": "^0.67.135",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/jest": "^29.0.3",
"@types/jest": "^29.1.1",
"copyfiles": "^2.4.1"
},
"resolutions": {
"typescript": "^4.8.3"
"typescript": "^4.8.4"
}
}
+7 -7
View File
@@ -20,18 +20,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.4.2",
"version": "9.4.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.19.0",
"@polkadot/api-base": "9.4.2",
"@polkadot/rpc-augment": "9.4.2",
"@polkadot/types": "9.4.2",
"@polkadot/types-augment": "9.4.2",
"@polkadot/types-codec": "9.4.2",
"@polkadot/api-base": "9.4.3",
"@polkadot/rpc-augment": "9.4.3",
"@polkadot/types": "9.4.3",
"@polkadot/types-augment": "9.4.3",
"@polkadot/types-codec": "9.4.3",
"@polkadot/util": "^10.1.9"
},
"devDependencies": {
"@polkadot/types-support": "9.4.2"
"@polkadot/types-support": "9.4.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.4.2' };
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '9.4.3' };
@@ -12,7 +12,7 @@ import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyO
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
import type { BlockHash } from '@polkadot/types/interfaces/chain';
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
import type { CodeUploadResult, ContractExecResult, ContractInstantiateResult } from '@polkadot/types/interfaces/contracts';
import type { CodeSource, CodeUploadResult, ContractExecResult, ContractInstantiateResult } from '@polkadot/types/interfaces/contracts';
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
@@ -118,7 +118,7 @@ declare module '@polkadot/api-base/types/calls' {
/**
* Instantiate a new contract.
**/
instantiate: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => Observable<ContractInstantiateResult>>;
instantiate: AugmentedCall<ApiType, (origin: AccountId | string | Uint8Array, value: Balance | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<Balance> | null | Uint8Array | Balance | AnyNumber, code: CodeSource | { Upload: any } | { Existing: any } | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => Observable<ContractInstantiateResult>>;
/**
* Upload new code without instantiating a contract from it.
**/
+4 -4
View File
@@ -20,13 +20,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.4.2",
"version": "9.4.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.19.0",
"@polkadot/rpc-core": "9.4.2",
"@polkadot/types": "9.4.2",
"@polkadot/rpc-core": "9.4.3",
"@polkadot/types": "9.4.3",
"@polkadot/util": "^10.1.9",
"rxjs": "^7.5.6"
"rxjs": "^7.5.7"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.4.2' };
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '9.4.3' };
+7 -7
View File
@@ -20,20 +20,20 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.4.2",
"version": "9.4.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.19.0",
"@polkadot/api": "9.4.2",
"@polkadot/types": "9.4.2",
"@polkadot/types-codec": "9.4.2",
"@polkadot/types-create": "9.4.2",
"@polkadot/api": "9.4.3",
"@polkadot/types": "9.4.3",
"@polkadot/types-codec": "9.4.3",
"@polkadot/types-create": "9.4.3",
"@polkadot/util": "^10.1.9",
"@polkadot/util-crypto": "^10.1.9",
"rxjs": "^7.5.6"
"rxjs": "^7.5.7"
},
"devDependencies": {
"@polkadot/api-augment": "9.4.2",
"@polkadot/api-augment": "9.4.3",
"@polkadot/keyring": "^10.1.9"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.4.2' };
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '9.4.3' };
+13 -13
View File
@@ -20,25 +20,25 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.4.2",
"version": "9.4.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.19.0",
"@polkadot/api": "9.4.2",
"@polkadot/api-augment": "9.4.2",
"@polkadot/api-base": "9.4.2",
"@polkadot/rpc-core": "9.4.2",
"@polkadot/types": "9.4.2",
"@polkadot/types-codec": "9.4.2",
"@polkadot/api": "9.4.3",
"@polkadot/api-augment": "9.4.3",
"@polkadot/api-base": "9.4.3",
"@polkadot/rpc-core": "9.4.3",
"@polkadot/types": "9.4.3",
"@polkadot/types-codec": "9.4.3",
"@polkadot/util": "^10.1.9",
"@polkadot/util-crypto": "^10.1.9",
"rxjs": "^7.5.6"
"rxjs": "^7.5.7"
},
"devDependencies": {
"@polkadot/api": "9.4.2",
"@polkadot/api-augment": "9.4.2",
"@polkadot/rpc-augment": "9.4.2",
"@polkadot/rpc-provider": "9.4.2",
"@polkadot/types-support": "9.4.2"
"@polkadot/api": "9.4.3",
"@polkadot/api-augment": "9.4.3",
"@polkadot/rpc-augment": "9.4.3",
"@polkadot/rpc-provider": "9.4.3",
"@polkadot/types-support": "9.4.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.4.2' };
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '9.4.3' };
+6 -3
View File
@@ -47,9 +47,12 @@ function calculateUnlocking (api: DeriveApi, stakingLedger: PalletStakingStaking
function redeemableSum (api: DeriveApi, stakingLedger: PalletStakingStakingLedger | undefined, sessionInfo: DeriveSessionInfo): Balance {
return api.registry.createType('Balance', (stakingLedger?.unlocking || [] as PalletStakingUnlockChunk[]).reduce((total, { era, value }): BN => {
return sessionInfo.activeEra.gte(era.unwrap())
? total.iadd(value.unwrap())
: total;
// aligns with https://github.com/paritytech/substrate/blob/fdfdc73f9e64dc47934b72eb9af3e1989e4ba699/frame/staking/src/pallet/mod.rs#L973-L975
// (ensure currentEra >= era passed, as per https://github.com/paritytech/substrate/blob/fdfdc73f9e64dc47934b72eb9af3e1989e4ba699/frame/staking/src/lib.rs#L477-L494)
// NOTE: Previously we used activeEra >= era, which is incorrect for the last session
return era.unwrap().gt(sessionInfo.currentEra)
? total
: total.iadd(value.unwrap());
}, new BN(0)));
}
+15 -15
View File
@@ -20,29 +20,29 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.4.2",
"version": "9.4.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.19.0",
"@polkadot/api-augment": "9.4.2",
"@polkadot/api-base": "9.4.2",
"@polkadot/api-derive": "9.4.2",
"@polkadot/api-augment": "9.4.3",
"@polkadot/api-base": "9.4.3",
"@polkadot/api-derive": "9.4.3",
"@polkadot/keyring": "^10.1.9",
"@polkadot/rpc-augment": "9.4.2",
"@polkadot/rpc-core": "9.4.2",
"@polkadot/rpc-provider": "9.4.2",
"@polkadot/types": "9.4.2",
"@polkadot/types-augment": "9.4.2",
"@polkadot/types-codec": "9.4.2",
"@polkadot/types-create": "9.4.2",
"@polkadot/types-known": "9.4.2",
"@polkadot/rpc-augment": "9.4.3",
"@polkadot/rpc-core": "9.4.3",
"@polkadot/rpc-provider": "9.4.3",
"@polkadot/types": "9.4.3",
"@polkadot/types-augment": "9.4.3",
"@polkadot/types-codec": "9.4.3",
"@polkadot/types-create": "9.4.3",
"@polkadot/types-known": "9.4.3",
"@polkadot/util": "^10.1.9",
"@polkadot/util-crypto": "^10.1.9",
"eventemitter3": "^4.0.7",
"rxjs": "^7.5.6"
"rxjs": "^7.5.7"
},
"devDependencies": {
"@polkadot/api-augment": "9.4.2",
"@polkadot/types-support": "9.4.2"
"@polkadot/api-augment": "9.4.3",
"@polkadot/types-support": "9.4.3"
}
}
+3
View File
@@ -215,6 +215,9 @@ async function rpc (api: ApiPromise): Promise<void> {
await api.rpc.chain.subscribeNewHeads.raw((result: Uint8Array): void => {
console.log(result);
});
// deprecated methods
await api.rpc.state.getPairs('123');
}
function types (api: ApiPromise): void {
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.4.2' };
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '9.4.3' };
+4 -4
View File
@@ -20,13 +20,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.4.2",
"version": "9.4.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.19.0",
"@polkadot/rpc-core": "9.4.2",
"@polkadot/types": "9.4.2",
"@polkadot/types-codec": "9.4.2",
"@polkadot/rpc-core": "9.4.3",
"@polkadot/types": "9.4.3",
"@polkadot/types-codec": "9.4.3",
"@polkadot/util": "^10.1.9"
}
}
@@ -142,22 +142,27 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
};
contracts: {
/**
* @deprecated Use the runtime interface `api.call.contractsApi.call` instead
* Executes a call to a contract
**/
call: AugmentedRpc<(callRequest: ContractCallRequest | { origin?: any; dest?: any; value?: any; gasLimit?: any; storageDepositLimit?: any; inputData?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractExecResult>>;
/**
* @deprecated Use the runtime interface `api.call.contractsApi.getStorage` instead
* Returns the value under a specified storage key in a contract
**/
getStorage: AugmentedRpc<(address: AccountId | string | Uint8Array, key: H256 | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<Bytes>>>;
/**
* @deprecated Use the runtime interface `api.call.contractsApi.instantiate` instead
* Instantiate a new contract
**/
instantiate: AugmentedRpc<(request: InstantiateRequest | { origin?: any; value?: any; gasLimit?: any; storageDepositLimit?: any; code?: any; data?: any; salt?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<ContractInstantiateResult>>;
/**
* @deprecated Not available in newer versions of the contracts interfaces
* Returns the projected time a given contract will be able to sustain paying its rent
**/
rentProjection: AugmentedRpc<(address: AccountId | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<Option<BlockNumber>>>;
/**
* @deprecated Use the runtime interface `api.call.contractsApi.uploadCode` instead
* Upload new code without instantiating a contract from it
**/
uploadCode: AugmentedRpc<(uploadRequest: CodeUploadRequest | { origin?: any; code?: any; storageDepositLimit?: any } | string | Uint8Array, at?: BlockHash | string | Uint8Array) => Observable<CodeUploadResult>>;
@@ -442,6 +447,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
**/
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>>;
/**
* @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys
* Retrieves the keys with a certain prefix
**/
getKeys: AugmentedRpc<(key: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<StorageKey>>>;
@@ -454,6 +460,7 @@ declare module '@polkadot/rpc-core/types/jsonrpc' {
**/
getMetadata: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<Metadata>>;
/**
* @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys
* Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)
**/
getPairs: AugmentedRpc<(prefix: StorageKey | string | Uint8Array | any, at?: BlockHash | string | Uint8Array) => Observable<Vec<KeyValue>>>;
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.4.2' };
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '9.4.3' };
+6 -6
View File
@@ -20,18 +20,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.4.2",
"version": "9.4.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.19.0",
"@polkadot/rpc-augment": "9.4.2",
"@polkadot/rpc-provider": "9.4.2",
"@polkadot/types": "9.4.2",
"@polkadot/rpc-augment": "9.4.3",
"@polkadot/rpc-provider": "9.4.3",
"@polkadot/types": "9.4.3",
"@polkadot/util": "^10.1.9",
"rxjs": "^7.5.6"
"rxjs": "^7.5.7"
},
"devDependencies": {
"@polkadot/keyring": "^10.1.9",
"@polkadot/rpc-augment": "9.4.2"
"@polkadot/rpc-augment": "9.4.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.4.2' };
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '9.4.3' };
+3 -3
View File
@@ -20,13 +20,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.4.2",
"version": "9.4.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.19.0",
"@polkadot/keyring": "^10.1.9",
"@polkadot/types": "9.4.2",
"@polkadot/types-support": "9.4.2",
"@polkadot/types": "9.4.3",
"@polkadot/types-support": "9.4.3",
"@polkadot/util": "^10.1.9",
"@polkadot/util-crypto": "^10.1.9",
"@polkadot/x-fetch": "^10.1.9",
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.4.2' };
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '9.4.3' };
+11 -11
View File
@@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.4.2",
"version": "9.4.3",
"main": "index.js",
"bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
@@ -30,18 +30,18 @@
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.cjs"
},
"dependencies": {
"@babel/core": "^7.19.1",
"@babel/core": "^7.19.3",
"@babel/register": "^7.18.9",
"@babel/runtime": "^7.19.0",
"@polkadot/api": "9.4.2",
"@polkadot/api-augment": "9.4.2",
"@polkadot/rpc-augment": "9.4.2",
"@polkadot/rpc-provider": "9.4.2",
"@polkadot/types": "9.4.2",
"@polkadot/types-augment": "9.4.2",
"@polkadot/types-codec": "9.4.2",
"@polkadot/types-create": "9.4.2",
"@polkadot/types-support": "9.4.2",
"@polkadot/api": "9.4.3",
"@polkadot/api-augment": "9.4.3",
"@polkadot/rpc-augment": "9.4.3",
"@polkadot/rpc-provider": "9.4.3",
"@polkadot/types": "9.4.3",
"@polkadot/types-augment": "9.4.3",
"@polkadot/types-codec": "9.4.3",
"@polkadot/types-create": "9.4.3",
"@polkadot/types-support": "9.4.3",
"@polkadot/util": "^10.1.9",
"@polkadot/util-crypto": "^10.1.9",
"@polkadot/x-ws": "^10.1.9",
+3 -1
View File
@@ -96,7 +96,9 @@ export function generateRpcTypes (registry: TypeRegistry, importDefinitions: Rec
const item = {
args: args.join(', '),
docs: [def.description],
docs: def.deprecated
? [`@deprecated ${def.deprecated}`, def.description]
: [def.description],
generic,
name: methodName,
type
+19 -11
View File
@@ -98,14 +98,17 @@ function renderPage (page: Page): string {
? `<h3 id="#${item.link}">${item.name}</h3>`
: `### ${item.name}`;
Object.keys(item).filter((key) => !['link', 'name'].includes(key)).forEach((bullet) => {
md += `\n- **${bullet}**: ${
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
item[bullet] instanceof Vec
? docsVecToMarkdown(item[bullet] as Vec<Text>, 2).toString()
: item[bullet]
}`;
});
Object
.keys(item)
.filter((key) => !['link', 'name'].includes(key))
.forEach((bullet) => {
md += `\n- **${bullet}**: ${
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
item[bullet] instanceof Vec
? docsVecToMarkdown(item[bullet] as Vec<Text>, 2).toString()
: item[bullet]
}`;
});
md += '\n';
});
@@ -160,14 +163,19 @@ function addRpc (): string {
}).join(', ');
const type = '`' + method.type + '`';
const jsonrpc = (method.endpoint || `${sectionName}_${methodName}`);
container.items.push({
const item: SectionItem = {
interface: '`' + `api.rpc.${sectionName}.${methodName}` + '`',
jsonrpc: '`' + jsonrpc + '`',
// link: jsonrpc,
name: `${methodName}(${args}): ${type}`,
...(method.description && { summary: method.description })
});
};
if (method.deprecated) {
item.deprecated = method.deprecated;
}
container.items.push(item);
});
return all;
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.4.2' };
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '9.4.3' };
+3 -3
View File
@@ -20,12 +20,12 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.4.2",
"version": "9.4.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.19.0",
"@polkadot/types": "9.4.2",
"@polkadot/types-codec": "9.4.2",
"@polkadot/types": "9.4.3",
"@polkadot/types-codec": "9.4.3",
"@polkadot/util": "^10.1.9"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.4.2' };
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '9.4.3' };
+4 -4
View File
@@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.4.2",
"version": "9.4.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.19.0",
@@ -28,9 +28,9 @@
"@polkadot/x-bigint": "^10.1.9"
},
"devDependencies": {
"@polkadot/types": "9.4.2",
"@polkadot/types-augment": "9.4.2",
"@polkadot/types-support": "9.4.2",
"@polkadot/types": "9.4.3",
"@polkadot/types-augment": "9.4.3",
"@polkadot/types-support": "9.4.3",
"@polkadot/util-crypto": "^10.1.9"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.4.2' };
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '9.4.3' };
+3 -3
View File
@@ -20,14 +20,14 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.4.2",
"version": "9.4.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.19.0",
"@polkadot/types-codec": "9.4.2",
"@polkadot/types-codec": "9.4.3",
"@polkadot/util": "^10.1.9"
},
"devDependencies": {
"@polkadot/types": "9.4.2"
"@polkadot/types": "9.4.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.4.2' };
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '9.4.3' };
+5 -5
View File
@@ -20,17 +20,17 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.4.2",
"version": "9.4.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.19.0",
"@polkadot/networks": "^10.1.9",
"@polkadot/types": "9.4.2",
"@polkadot/types-codec": "9.4.2",
"@polkadot/types-create": "9.4.2",
"@polkadot/types": "9.4.3",
"@polkadot/types-codec": "9.4.3",
"@polkadot/types-create": "9.4.3",
"@polkadot/util": "^10.1.9"
},
"devDependencies": {
"@polkadot/api": "9.4.2"
"@polkadot/api": "9.4.3"
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.4.2' };
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '9.4.3' };
@@ -3828,6 +3828,76 @@ const upgrades: ChainUpgradesGenerated = [
1
]
]
],
[
14645900,
9291,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
1
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
2
],
[
"0x49eaaf1b548a0cb0",
1
],
[
"0x91d5df18b0d2cf58",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
1
],
[
"0xf3ff14d5ab527059",
1
],
[
"0x17a6bc0d0062aeb3",
1
]
]
]
];
@@ -2356,6 +2356,138 @@ const upgrades: ChainUpgradesGenerated = [
1
]
]
],
[
12217535,
9280,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
1
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
2
],
[
"0x49eaaf1b548a0cb0",
1
],
[
"0x91d5df18b0d2cf58",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
1
],
[
"0xf3ff14d5ab527059",
1
]
]
],
[
12245277,
9281,
[
[
"0xdf6acb689907609b",
4
],
[
"0x37e397fc7c91f5e4",
1
],
[
"0x40fe3ad401f8959a",
6
],
[
"0xd2bc9897eed08f15",
3
],
[
"0xf78b278be53f454c",
2
],
[
"0xaf2c0297a23e6d3d",
2
],
[
"0x49eaaf1b548a0cb0",
1
],
[
"0x91d5df18b0d2cf58",
1
],
[
"0xed99c5acb25eedf5",
3
],
[
"0xcbca25e39f142387",
2
],
[
"0x687ad44ad37f03c2",
1
],
[
"0xab3c0572291feb8b",
1
],
[
"0xbc9d89904f5b923f",
1
],
[
"0x37c8bb1350a9a2a8",
1
],
[
"0xf3ff14d5ab527059",
1
]
]
]
];
@@ -17,7 +17,7 @@ const upgrades: ChainUpgradesManual = [
[9611377, 9100], [9625129, 9111], [9866422, 9122], [10403784, 9130], [10960765, 9150],
[11006614, 9151], [11404482, 9160], [11601803, 9170], [12008022, 9180], [12405451, 9190],
[12665416, 9200], [12909508, 9220], [13109752, 9230], [13555777, 9250], [13727747, 9260],
[14248044, 9271], [14433840, 9280]
[14248044, 9271], [14433840, 9280], [14645900, 9291]
];
export default upgrades;
@@ -12,7 +12,7 @@ const upgrades: ChainUpgradesManual = [
[6321619, 9080], [6713249, 9090], [7217907, 9100], [7229126, 9110], [7560558, 9122],
[8115869, 9140], [8638103, 9151], [9280179, 9170], [9738717, 9180], [10156856, 9190],
[10458576, 9200], [10655116, 9220], [10879371, 9230], [11328884, 9250], [11532856, 9260],
[11933818, 9270]
[11933818, 9270], [12217535, 9280], [12245277, 9281]
];
export default upgrades;
+1 -1
View File
@@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.4.2",
"version": "9.4.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.19.0",
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '9.4.2' };
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '9.4.3' };
+6 -6
View File
@@ -20,20 +20,20 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "9.4.2",
"version": "9.4.3",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.19.0",
"@polkadot/keyring": "^10.1.9",
"@polkadot/types-augment": "9.4.2",
"@polkadot/types-codec": "9.4.2",
"@polkadot/types-create": "9.4.2",
"@polkadot/types-augment": "9.4.3",
"@polkadot/types-codec": "9.4.3",
"@polkadot/types-create": "9.4.3",
"@polkadot/util": "^10.1.9",
"@polkadot/util-crypto": "^10.1.9",
"rxjs": "^7.5.6"
"rxjs": "^7.5.7"
},
"devDependencies": {
"@polkadot/keyring": "^10.1.9",
"@polkadot/types-support": "9.4.2"
"@polkadot/types-support": "9.4.3"
}
}
@@ -5,6 +5,7 @@ import type { DefinitionsRpc } from '../../types';
export const rpc: DefinitionsRpc = {
call: {
deprecated: 'Use the runtime interface `api.call.contractsApi.call` instead',
description: 'Executes a call to a contract',
params: [
{
@@ -21,6 +22,7 @@ export const rpc: DefinitionsRpc = {
type: 'ContractExecResult'
},
getStorage: {
deprecated: 'Use the runtime interface `api.call.contractsApi.getStorage` instead',
description: 'Returns the value under a specified storage key in a contract',
params: [
{
@@ -41,6 +43,7 @@ export const rpc: DefinitionsRpc = {
type: 'Option<Bytes>'
},
instantiate: {
deprecated: 'Use the runtime interface `api.call.contractsApi.instantiate` instead',
description: 'Instantiate a new contract',
params: [
{
@@ -57,6 +60,7 @@ export const rpc: DefinitionsRpc = {
type: 'ContractInstantiateResult'
},
rentProjection: {
deprecated: 'Not available in newer versions of the contracts interfaces',
description: 'Returns the projected time a given contract will be able to sustain paying its rent',
params: [
{
@@ -73,6 +77,7 @@ export const rpc: DefinitionsRpc = {
type: 'Option<BlockNumber>'
},
uploadCode: {
deprecated: 'Use the runtime interface `api.call.contractsApi.uploadCode` instead',
description: 'Upload new code without instantiating a contract from it',
// The RPC here is terribly misnamed - somebody forgot how the RPCs
// are actually done, ie. <module>_<camelCasedMethod>
@@ -72,7 +72,7 @@ export const runtime: DefinitionsCall = {
},
{
name: 'code',
type: 'Bytes'
type: 'CodeSource'
},
{
name: 'data',
@@ -158,6 +158,7 @@ export const rpc: DefinitionsRpc = {
type: 'u64'
},
getKeys: {
deprecated: 'Use `api.rpc.state.getKeysPaged` to retrieve keys',
description: 'Retrieves the keys with a certain prefix',
params: [
{
@@ -212,6 +213,7 @@ export const rpc: DefinitionsRpc = {
type: 'Metadata'
},
getPairs: {
deprecated: 'Use `api.rpc.state.getKeysPaged` to retrieve keys',
description: 'Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)',
params: [
{
@@ -66,7 +66,8 @@ const PATHS_ALIAS = splitNamespace([
'primitive_types::*',
'sp_arithmetic::per_things::*',
// ink!
'ink_env::types::*'
'ink_env::types::*',
'ink_primitives::types::*'
]);
// Mappings for types that should be converted to set via BitVec
+1 -1
View File
@@ -3,4 +3,4 @@
// Do not edit, auto-generated by @polkadot/dev
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '9.4.2' };
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '9.4.3' };
+1
View File
@@ -28,6 +28,7 @@ export interface DefinitionRpcParam {
export interface DefinitionRpc {
alias?: string[];
aliasSection?: string;
deprecated?: string;
description: string;
endpoint?: string;
isSigned?: boolean;
+524 -523
View File
File diff suppressed because it is too large Load Diff