Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d8910f3da | ||
|
|
e6806ed7f9 | ||
|
|
218abf9568 | ||
|
|
a1df864681 | ||
|
|
45640edcff | ||
|
|
53655019b5 | ||
|
|
a1f8bedb6d | ||
|
|
9d1af1eaeb | ||
|
|
38bfd26511 | ||
|
|
1beaf9f208 | ||
|
|
29c29978dd | ||
|
|
a8d1dd0637 | ||
|
|
74571dcd26 | ||
|
|
54b4c2620a | ||
|
|
da05828e74 | ||
|
|
fa935156e1 |
+86
File diff suppressed because one or more lines are too long
Vendored
-56
File diff suppressed because one or more lines are too long
+1
-1
@@ -8,4 +8,4 @@ plugins:
|
|||||||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.js
|
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.js
|
||||||
spec: "@yarnpkg/plugin-interactive-tools"
|
spec: "@yarnpkg/plugin-interactive-tools"
|
||||||
|
|
||||||
yarnPath: .yarn/releases/yarn-rc.js
|
yarnPath: .yarn/releases/yarn-2.1.1.js
|
||||||
|
|||||||
@@ -1,13 +1,28 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 1.28.1 Aug 10, 2020
|
||||||
|
|
||||||
|
Upgrade priority: Low, unless using Centrifuge or parachains
|
||||||
|
|
||||||
|
- Update Centrifuge types to latest (Thanks to https://github.com/mikiquantum)
|
||||||
|
- Add cookbook entry for viewing block extrinsics
|
||||||
|
- Support types for time-delay proxies
|
||||||
|
- Update types for parachains
|
||||||
|
- `@polkadot/util` 3.1
|
||||||
|
- `@polkadot/wasm-crypto` 1.3
|
||||||
|
|
||||||
## 1.27.1 Aug 3, 2020
|
## 1.27.1 Aug 3, 2020
|
||||||
|
|
||||||
|
Upgrade priority: Low, unless using the Rococo chain
|
||||||
|
|
||||||
- Remove outdated example poc-3 RPC reference (Thanks to https://github.com/swswsw)
|
- Remove outdated example poc-3 RPC reference (Thanks to https://github.com/swswsw)
|
||||||
- Raw/Bytes `toHuman` detects ASCII sequence for text output
|
- Raw/Bytes `toHuman` detects ASCII sequence for text output
|
||||||
- Add know types for the Rococo chain
|
- Add know types for the Rococo chain
|
||||||
|
|
||||||
## 1.26.1 Jul 27, 2020
|
## 1.26.1 Jul 27, 2020
|
||||||
|
|
||||||
|
Upgrade priority: Low
|
||||||
|
|
||||||
- Update docs for the new `system.accountNextIndex` (Thanks to https://github.com/shawntabrizi)
|
- Update docs for the new `system.accountNextIndex` (Thanks to https://github.com/shawntabrizi)
|
||||||
- Update contracts call parameter typing (Thanks to https://github.com/kwingram25)
|
- Update contracts call parameter typing (Thanks to https://github.com/kwingram25)
|
||||||
- Adjust votingBalance to only return `freeBalance` (only council voting is free + reserved)
|
- Adjust votingBalance to only return `freeBalance` (only council voting is free + reserved)
|
||||||
@@ -18,6 +33,8 @@
|
|||||||
|
|
||||||
## 1.25.1 Jul 20, 2020
|
## 1.25.1 Jul 20, 2020
|
||||||
|
|
||||||
|
Upgrade priority: Medium, especially if using contracts.
|
||||||
|
|
||||||
- **Important** Contract RPC result updated on Substrate, on older chains supply `ContractExecResult: 'ContractExecResultTo255'`
|
- **Important** Contract RPC result updated on Substrate, on older chains supply `ContractExecResult: 'ContractExecResultTo255'`
|
||||||
- Support for custom HTTP headers in providers (Thanks to https://github.com/brad-larson)
|
- Support for custom HTTP headers in providers (Thanks to https://github.com/brad-larson)
|
||||||
- Update known types for Centrifuge (Thanks to https://github.com/philipstanislaus)
|
- Update known types for Centrifuge (Thanks to https://github.com/philipstanislaus)
|
||||||
|
|||||||
@@ -42,3 +42,20 @@ const header = await api.derive.chain.getHeader();
|
|||||||
|
|
||||||
console.log(`#${header.number}: ${header.author}`);
|
console.log(`#${header.number}: ${header.author}`);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## How do I view block extrinsic information?
|
||||||
|
|
||||||
|
The transactions are included in a signed block as part of the extrinsics - some of these will be unsigned and generated by the block author and some of these may be submitted from external sources and be signed. (Some palettes do use unsigned transactions, so signed/unsigned is not an indication of origin). To retrieve the block and display the transaction information, we can do the following -
|
||||||
|
|
||||||
|
```js
|
||||||
|
// no blockHash is specified, so we retrieve the latest
|
||||||
|
const signedBlock = await this.api.rpc.chain.getBlock();
|
||||||
|
|
||||||
|
// the information for each of the contained extrinsics
|
||||||
|
signedBlock.block.extrinsics.forEach((ex, index) => {
|
||||||
|
// the extrinsics are decoded by the API
|
||||||
|
console.log(index, ex.toHuman());
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
In the above `.toHuman()` is used to format into a human-readable representation. You can inspect/extract specific fields from the decoded extrinsic as required, for instance `ex.method.section` would return the pallete that executed this transaction.
|
||||||
|
|||||||
+1
-1
@@ -9,5 +9,5 @@
|
|||||||
"packages": [
|
"packages": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"version": "1.27.1"
|
"version": "1.28.1"
|
||||||
}
|
}
|
||||||
|
|||||||
+7
-7
@@ -24,15 +24,15 @@
|
|||||||
"test:watch": "polkadot-dev-run-test --watch"
|
"test:watch": "polkadot-dev-run-test --watch"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.11.0",
|
"@babel/core": "^7.11.1",
|
||||||
"@babel/register": "^7.10.5",
|
"@babel/register": "^7.10.5",
|
||||||
"@babel/runtime": "^7.11.0",
|
"@babel/runtime": "^7.11.2",
|
||||||
"@polkadot/dev": "^0.55.30",
|
"@polkadot/dev": "^0.55.36",
|
||||||
"@polkadot/ts": "^0.3.31",
|
"@polkadot/ts": "^0.3.36",
|
||||||
"@polkadot/typegen": "workspace:packages/typegen",
|
"@polkadot/typegen": "workspace:packages/typegen",
|
||||||
"@types/jest": "^26.0.8",
|
"@types/jest": "^26.0.9",
|
||||||
"@vuepress/plugin-search": "^1.5.2",
|
"@vuepress/plugin-search": "^1.5.3",
|
||||||
"copyfiles": "^2.3.0"
|
"copyfiles": "^2.3.0"
|
||||||
},
|
},
|
||||||
"version": "1.27.1"
|
"version": "1.28.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/api-contract",
|
"name": "@polkadot/api-contract",
|
||||||
"version": "1.27.1",
|
"version": "1.28.1",
|
||||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -26,11 +26,11 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.11.0",
|
"@babel/runtime": "^7.11.2",
|
||||||
"@polkadot/api": "1.27.1",
|
"@polkadot/api": "1.28.1",
|
||||||
"@polkadot/rpc-core": "1.27.1",
|
"@polkadot/rpc-core": "1.28.1",
|
||||||
"@polkadot/types": "1.27.1",
|
"@polkadot/types": "1.28.1",
|
||||||
"@polkadot/util": "^3.0.1",
|
"@polkadot/util": "^3.1.1",
|
||||||
"bn.js": "^5.1.2",
|
"bn.js": "^5.1.2",
|
||||||
"rxjs": "^6.6.2"
|
"rxjs": "^6.6.2"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/api-derive",
|
"name": "@polkadot/api-derive",
|
||||||
"version": "1.27.1",
|
"version": "1.28.1",
|
||||||
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
|
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -27,18 +27,18 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.11.0",
|
"@babel/runtime": "^7.11.2",
|
||||||
"@polkadot/api": "1.27.1",
|
"@polkadot/api": "1.28.1",
|
||||||
"@polkadot/rpc-core": "1.27.1",
|
"@polkadot/rpc-core": "1.28.1",
|
||||||
"@polkadot/rpc-provider": "1.27.1",
|
"@polkadot/rpc-provider": "1.28.1",
|
||||||
"@polkadot/types": "1.27.1",
|
"@polkadot/types": "1.28.1",
|
||||||
"@polkadot/util": "^3.0.1",
|
"@polkadot/util": "^3.1.1",
|
||||||
"@polkadot/util-crypto": "^3.0.1",
|
"@polkadot/util-crypto": "^3.1.1",
|
||||||
"bn.js": "^5.1.2",
|
"bn.js": "^5.1.2",
|
||||||
"memoizee": "^0.4.14",
|
"memoizee": "^0.4.14",
|
||||||
"rxjs": "^6.6.2"
|
"rxjs": "^6.6.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^3.0.1"
|
"@polkadot/keyring": "^3.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+12
-12
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/api",
|
"name": "@polkadot/api",
|
||||||
"version": "1.27.1",
|
"version": "1.28.1",
|
||||||
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
|
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -26,21 +26,21 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.11.0",
|
"@babel/runtime": "^7.11.2",
|
||||||
"@polkadot/api-derive": "1.27.1",
|
"@polkadot/api-derive": "1.28.1",
|
||||||
"@polkadot/keyring": "^3.0.1",
|
"@polkadot/keyring": "^3.1.1",
|
||||||
"@polkadot/metadata": "1.27.1",
|
"@polkadot/metadata": "1.28.1",
|
||||||
"@polkadot/rpc-core": "1.27.1",
|
"@polkadot/rpc-core": "1.28.1",
|
||||||
"@polkadot/rpc-provider": "1.27.1",
|
"@polkadot/rpc-provider": "1.28.1",
|
||||||
"@polkadot/types": "1.27.1",
|
"@polkadot/types": "1.28.1",
|
||||||
"@polkadot/types-known": "1.27.1",
|
"@polkadot/types-known": "1.28.1",
|
||||||
"@polkadot/util": "^3.0.1",
|
"@polkadot/util": "^3.1.1",
|
||||||
"@polkadot/util-crypto": "^3.0.1",
|
"@polkadot/util-crypto": "^3.1.1",
|
||||||
"bn.js": "^5.1.2",
|
"bn.js": "^5.1.2",
|
||||||
"eventemitter3": "^4.0.4",
|
"eventemitter3": "^4.0.4",
|
||||||
"rxjs": "^6.6.2"
|
"rxjs": "^6.6.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^3.0.1"
|
"@polkadot/keyring": "^3.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,8 +16,9 @@ import { SetId, StoredPendingChange, StoredState } from '@polkadot/types/interfa
|
|||||||
import { RegistrarInfo, Registration } from '@polkadot/types/interfaces/identity';
|
import { RegistrarInfo, Registration } from '@polkadot/types/interfaces/identity';
|
||||||
import { AuthIndex } from '@polkadot/types/interfaces/imOnline';
|
import { AuthIndex } from '@polkadot/types/interfaces/imOnline';
|
||||||
import { DeferredOffenceOf, Kind, OffenceDetails, OpaqueTimeSlot, ReportIdOf } from '@polkadot/types/interfaces/offences';
|
import { DeferredOffenceOf, Kind, OffenceDetails, OpaqueTimeSlot, ReportIdOf } from '@polkadot/types/interfaces/offences';
|
||||||
|
import { ProxyType } from '@polkadot/types/interfaces/proxy';
|
||||||
import { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';
|
import { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';
|
||||||
import { AccountId, AccountIndex, Balance, BalanceOf, BlockNumber, ExtrinsicsWeight, Hash, KeyTypeId, Moment, OpaqueCall, Perbill, ProxyType, Releases, ValidatorId } from '@polkadot/types/interfaces/runtime';
|
import { AccountId, AccountIndex, Balance, BalanceOf, BlockNumber, ExtrinsicsWeight, Hash, KeyTypeId, Moment, OpaqueCall, Perbill, Releases, ValidatorId } from '@polkadot/types/interfaces/runtime';
|
||||||
import { Scheduled, TaskAddress } from '@polkadot/types/interfaces/scheduler';
|
import { Scheduled, TaskAddress } from '@polkadot/types/interfaces/scheduler';
|
||||||
import { Keys, SessionIndex } from '@polkadot/types/interfaces/session';
|
import { Keys, SessionIndex } from '@polkadot/types/interfaces/session';
|
||||||
import { Bid, BidKind, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';
|
import { Bid, BidKind, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ import { Extrinsic, Signature } from '@polkadot/types/interfaces/extrinsics';
|
|||||||
import { GrandpaEquivocationProof, KeyOwnerProof } from '@polkadot/types/interfaces/grandpa';
|
import { GrandpaEquivocationProof, KeyOwnerProof } from '@polkadot/types/interfaces/grandpa';
|
||||||
import { IdentityFields, IdentityInfo, IdentityJudgement, RegistrarIndex } from '@polkadot/types/interfaces/identity';
|
import { IdentityFields, IdentityInfo, IdentityJudgement, RegistrarIndex } from '@polkadot/types/interfaces/identity';
|
||||||
import { Heartbeat } from '@polkadot/types/interfaces/imOnline';
|
import { Heartbeat } from '@polkadot/types/interfaces/imOnline';
|
||||||
import { AccountId, AccountIndex, Address, Balance, BalanceOf, BlockNumber, Call, ChangesTrieConfiguration, Hash, Header, KeyValue, LookupSource, Moment, OpaqueCall, Perbill, Percent, ProxyType, Weight } from '@polkadot/types/interfaces/runtime';
|
import { ProxyType } from '@polkadot/types/interfaces/proxy';
|
||||||
|
import { AccountId, AccountIndex, Address, Balance, BalanceOf, BlockNumber, Call, ChangesTrieConfiguration, Hash, Header, KeyValue, LookupSource, Moment, OpaqueCall, Perbill, Percent, Weight } from '@polkadot/types/interfaces/runtime';
|
||||||
import { Period, Priority } from '@polkadot/types/interfaces/scheduler';
|
import { Period, Priority } from '@polkadot/types/interfaces/scheduler';
|
||||||
import { Keys } from '@polkadot/types/interfaces/session';
|
import { Keys } from '@polkadot/types/interfaces/session';
|
||||||
import { SocietyJudgement } from '@polkadot/types/interfaces/society';
|
import { SocietyJudgement } from '@polkadot/types/interfaces/society';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/metadata",
|
"name": "@polkadot/metadata",
|
||||||
"version": "1.27.1",
|
"version": "1.28.1",
|
||||||
"description": "Helpers to extract information from runtime metadata",
|
"description": "Helpers to extract information from runtime metadata",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
@@ -26,14 +26,14 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.11.0",
|
"@babel/runtime": "^7.11.2",
|
||||||
"@polkadot/types": "1.27.1",
|
"@polkadot/types": "1.28.1",
|
||||||
"@polkadot/types-known": "1.27.1",
|
"@polkadot/types-known": "1.28.1",
|
||||||
"@polkadot/util": "^3.0.1",
|
"@polkadot/util": "^3.1.1",
|
||||||
"@polkadot/util-crypto": "^3.0.1",
|
"@polkadot/util-crypto": "^3.1.1",
|
||||||
"bn.js": "^5.1.2"
|
"bn.js": "^5.1.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^3.0.1"
|
"@polkadot/keyring": "^3.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/rpc-core",
|
"name": "@polkadot/rpc-core",
|
||||||
"version": "1.27.1",
|
"version": "1.28.1",
|
||||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -26,15 +26,15 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.11.0",
|
"@babel/runtime": "^7.11.2",
|
||||||
"@polkadot/metadata": "1.27.1",
|
"@polkadot/metadata": "1.28.1",
|
||||||
"@polkadot/rpc-provider": "1.27.1",
|
"@polkadot/rpc-provider": "1.28.1",
|
||||||
"@polkadot/types": "1.27.1",
|
"@polkadot/types": "1.28.1",
|
||||||
"@polkadot/util": "^3.0.1",
|
"@polkadot/util": "^3.1.1",
|
||||||
"memoizee": "^0.4.14",
|
"memoizee": "^0.4.14",
|
||||||
"rxjs": "^6.6.2"
|
"rxjs": "^6.6.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^3.0.1"
|
"@polkadot/keyring": "^3.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/rpc-provider",
|
"name": "@polkadot/rpc-provider",
|
||||||
"version": "1.27.1",
|
"version": "1.28.1",
|
||||||
"description": "Transport providers for the API",
|
"description": "Transport providers for the API",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -26,18 +26,18 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.11.0",
|
"@babel/runtime": "^7.11.2",
|
||||||
"@polkadot/metadata": "1.27.1",
|
"@polkadot/metadata": "1.28.1",
|
||||||
"@polkadot/types": "1.27.1",
|
"@polkadot/types": "1.28.1",
|
||||||
"@polkadot/util": "^3.0.1",
|
"@polkadot/util": "^3.1.1",
|
||||||
"@polkadot/util-crypto": "^3.0.1",
|
"@polkadot/util-crypto": "^3.1.1",
|
||||||
"bn.js": "^5.1.2",
|
"bn.js": "^5.1.2",
|
||||||
"eventemitter3": "^4.0.4",
|
"eventemitter3": "^4.0.4",
|
||||||
"isomorphic-fetch": "^2.2.1",
|
"isomorphic-fetch": "^2.2.1",
|
||||||
"websocket": "^1.0.31"
|
"websocket": "^1.0.31"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^3.0.1",
|
"@polkadot/keyring": "^3.1.1",
|
||||||
"mock-socket": "^9.0.3",
|
"mock-socket": "^9.0.3",
|
||||||
"nock": "^13.0.3"
|
"nock": "^13.0.3"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/typegen",
|
"name": "@polkadot/typegen",
|
||||||
"version": "1.27.1",
|
"version": "1.28.1",
|
||||||
"description": "Type generation scripts",
|
"description": "Type generation scripts",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
@@ -33,14 +33,14 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/typegen#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/typegen#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.11.0",
|
"@babel/core": "^7.11.1",
|
||||||
"@babel/register": "^7.10.5",
|
"@babel/register": "^7.10.5",
|
||||||
"@babel/runtime": "^7.11.0",
|
"@babel/runtime": "^7.11.2",
|
||||||
"@polkadot/api": "1.27.1",
|
"@polkadot/api": "1.28.1",
|
||||||
"@polkadot/metadata": "1.27.1",
|
"@polkadot/metadata": "1.28.1",
|
||||||
"@polkadot/rpc-provider": "1.27.1",
|
"@polkadot/rpc-provider": "1.28.1",
|
||||||
"@polkadot/types": "1.27.1",
|
"@polkadot/types": "1.28.1",
|
||||||
"@polkadot/util": "^3.0.1",
|
"@polkadot/util": "^3.1.1",
|
||||||
"handlebars": "^4.7.6",
|
"handlebars": "^4.7.6",
|
||||||
"websocket": "^1.0.31",
|
"websocket": "^1.0.31",
|
||||||
"yargs": "^15.4.1"
|
"yargs": "^15.4.1"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/types-known",
|
"name": "@polkadot/types-known",
|
||||||
"version": "1.27.1",
|
"version": "1.28.1",
|
||||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -26,9 +26,9 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.11.0",
|
"@babel/runtime": "^7.11.2",
|
||||||
"@polkadot/types": "1.27.1",
|
"@polkadot/types": "1.28.1",
|
||||||
"@polkadot/util": "^3.0.1",
|
"@polkadot/util": "^3.1.1",
|
||||||
"bn.js": "^5.1.2"
|
"bn.js": "^5.1.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ const typesModules: Record<string, OverrideModuleType> = {
|
|||||||
parachains: {
|
parachains: {
|
||||||
Id: 'ParaId'
|
Id: 'ParaId'
|
||||||
},
|
},
|
||||||
|
proxy: {
|
||||||
|
Announcement: 'ProxyAnnouncement'
|
||||||
|
},
|
||||||
society: {
|
society: {
|
||||||
Judgement: 'SocietyJudgement',
|
Judgement: 'SocietyJudgement',
|
||||||
Vote: 'SocietyVote'
|
Vote: 'SocietyVote'
|
||||||
|
|||||||
@@ -6,27 +6,46 @@ import { OverrideVersionedType } from '@polkadot/types/types';
|
|||||||
|
|
||||||
const sharedTypes = {
|
const sharedTypes = {
|
||||||
Address: 'GenericAddress',
|
Address: 'GenericAddress',
|
||||||
|
AnchorData: {
|
||||||
|
anchoredBlock: 'u64',
|
||||||
|
docRoot: 'H256',
|
||||||
|
id: 'H256'
|
||||||
|
},
|
||||||
|
Fee: {
|
||||||
|
key: 'Hash',
|
||||||
|
price: 'Balance'
|
||||||
|
},
|
||||||
LookupSource: 'GenericAddress',
|
LookupSource: 'GenericAddress',
|
||||||
|
MultiAccountData: {
|
||||||
|
deposit: 'Balance',
|
||||||
|
depositor: 'AccountId',
|
||||||
|
signatories: 'Vec<AccountId>',
|
||||||
|
threshold: 'u16'
|
||||||
|
},
|
||||||
Multiplier: 'Fixed64',
|
Multiplier: 'Fixed64',
|
||||||
|
PreCommitData: {
|
||||||
|
expirationBlock: 'u64',
|
||||||
|
identity: 'H256',
|
||||||
|
signingRoot: 'H256'
|
||||||
|
},
|
||||||
|
Proof: {
|
||||||
|
leafHash: 'H256',
|
||||||
|
sortedHashes: 'H256'
|
||||||
|
},
|
||||||
ReferendumInfo: 'ReferendumInfoTo239',
|
ReferendumInfo: 'ReferendumInfoTo239',
|
||||||
StakingLedger: 'StakingLedgerTo240',
|
StakingLedger: 'StakingLedgerTo240',
|
||||||
Weight: 'u32'
|
Weight: 'u32'
|
||||||
};
|
};
|
||||||
|
|
||||||
const versioned: OverrideVersionedType[] = [
|
const versioned: OverrideVersionedType[] = [
|
||||||
{
|
|
||||||
// most chains started at 1000 (Fulvous at 224)
|
|
||||||
minmax: [1, 228],
|
|
||||||
types: {
|
|
||||||
...sharedTypes,
|
|
||||||
Address: 'AccountId',
|
|
||||||
LookupSource: 'AccountId'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
minmax: [229, undefined],
|
minmax: [229, undefined],
|
||||||
types: {
|
types: {
|
||||||
...sharedTypes
|
...sharedTypes,
|
||||||
|
ChainId: 'u8',
|
||||||
|
DepositNonce: 'u64',
|
||||||
|
ResourceId: '[u8; 32]',
|
||||||
|
'chainbridge::ChainId': 'u8'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@polkadot/types",
|
"name": "@polkadot/types",
|
||||||
"version": "1.27.1",
|
"version": "1.28.1",
|
||||||
"description": "Implementation of the Parity codec",
|
"description": "Implementation of the Parity codec",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -26,17 +26,17 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.11.0",
|
"@babel/runtime": "^7.11.2",
|
||||||
"@polkadot/metadata": "1.27.1",
|
"@polkadot/metadata": "1.28.1",
|
||||||
"@polkadot/util": "^3.0.1",
|
"@polkadot/util": "^3.1.1",
|
||||||
"@polkadot/util-crypto": "^3.0.1",
|
"@polkadot/util-crypto": "^3.1.1",
|
||||||
"@types/bn.js": "^4.11.6",
|
"@types/bn.js": "^4.11.6",
|
||||||
"bn.js": "^5.1.2",
|
"bn.js": "^5.1.2",
|
||||||
"memoizee": "^0.4.14",
|
"memoizee": "^0.4.14",
|
||||||
"rxjs": "^6.6.2"
|
"rxjs": "^6.6.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/keyring": "^3.0.1",
|
"@polkadot/keyring": "^3.1.1",
|
||||||
"@types/memoizee": "^0.4.4"
|
"@types/memoizee": "^0.4.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,13 +27,14 @@ import { AuthIndex, AuthoritySignature, Heartbeat, HeartbeatTo244, OpaqueMultiad
|
|||||||
import { CallMetadataV0, DoubleMapTypeLatest, DoubleMapTypeV10, DoubleMapTypeV11, DoubleMapTypeV3, DoubleMapTypeV4, DoubleMapTypeV5, DoubleMapTypeV6, DoubleMapTypeV7, DoubleMapTypeV8, DoubleMapTypeV9, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV8, ErrorMetadataV9, EventMetadataLatest, EventMetadataV0, EventMetadataV1, EventMetadataV10, EventMetadataV11, EventMetadataV2, EventMetadataV3, EventMetadataV4, EventMetadataV5, EventMetadataV6, EventMetadataV7, EventMetadataV8, EventMetadataV9, ExtrinsicMetadataLatest, ExtrinsicMetadataV11, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV0, FunctionArgumentMetadataV1, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV2, FunctionArgumentMetadataV3, FunctionArgumentMetadataV4, FunctionArgumentMetadataV5, FunctionArgumentMetadataV6, FunctionArgumentMetadataV7, FunctionArgumentMetadataV8, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV0, FunctionMetadataV1, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV2, FunctionMetadataV3, FunctionMetadataV4, FunctionMetadataV5, FunctionMetadataV6, FunctionMetadataV7, FunctionMetadataV8, FunctionMetadataV9, MapTypeLatest, MapTypeV0, MapTypeV10, MapTypeV11, MapTypeV2, MapTypeV3, MapTypeV4, MapTypeV5, MapTypeV6, MapTypeV7, MapTypeV8, MapTypeV9, MetadataAll, MetadataLatest, MetadataV0, MetadataV1, MetadataV10, MetadataV11, MetadataV2, MetadataV3, MetadataV4, MetadataV5, MetadataV6, MetadataV7, MetadataV8, MetadataV9, ModuleConstantMetadataLatest, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV6, ModuleConstantMetadataV7, ModuleConstantMetadataV8, ModuleConstantMetadataV9, ModuleMetadataLatest, ModuleMetadataV0, ModuleMetadataV1, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV2, ModuleMetadataV3, ModuleMetadataV4, ModuleMetadataV5, ModuleMetadataV6, ModuleMetadataV7, ModuleMetadataV8, ModuleMetadataV9, OuterDispatchCallV0, OuterDispatchMetadataV0, OuterEventEventMetadataEventsV0, OuterEventEventMetadataV0, OuterEventMetadataV0, PlainTypeLatest, PlainTypeV0, PlainTypeV10, PlainTypeV11, PlainTypeV2, PlainTypeV3, PlainTypeV4, PlainTypeV5, PlainTypeV6, PlainTypeV7, PlainTypeV8, PlainTypeV9, RuntimeModuleMetadataV0, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV6, StorageEntryMetadataV7, StorageEntryMetadataV8, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV6, StorageEntryModifierV7, StorageEntryModifierV8, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV6, StorageEntryTypeV7, StorageEntryTypeV8, StorageEntryTypeV9, StorageFunctionMetadataV0, StorageFunctionMetadataV1, StorageFunctionMetadataV2, StorageFunctionMetadataV3, StorageFunctionMetadataV4, StorageFunctionMetadataV5, StorageFunctionModifierV0, StorageFunctionModifierV1, StorageFunctionModifierV2, StorageFunctionModifierV3, StorageFunctionModifierV4, StorageFunctionModifierV5, StorageFunctionTypeV0, StorageFunctionTypeV1, StorageFunctionTypeV2, StorageFunctionTypeV3, StorageFunctionTypeV4, StorageFunctionTypeV5, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV4, StorageHasherV5, StorageHasherV6, StorageHasherV7, StorageHasherV8, StorageHasherV9, StorageMetadataLatest, StorageMetadataV0, StorageMetadataV10, StorageMetadataV11, StorageMetadataV7, StorageMetadataV8, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata';
|
import { CallMetadataV0, DoubleMapTypeLatest, DoubleMapTypeV10, DoubleMapTypeV11, DoubleMapTypeV3, DoubleMapTypeV4, DoubleMapTypeV5, DoubleMapTypeV6, DoubleMapTypeV7, DoubleMapTypeV8, DoubleMapTypeV9, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV8, ErrorMetadataV9, EventMetadataLatest, EventMetadataV0, EventMetadataV1, EventMetadataV10, EventMetadataV11, EventMetadataV2, EventMetadataV3, EventMetadataV4, EventMetadataV5, EventMetadataV6, EventMetadataV7, EventMetadataV8, EventMetadataV9, ExtrinsicMetadataLatest, ExtrinsicMetadataV11, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV0, FunctionArgumentMetadataV1, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV2, FunctionArgumentMetadataV3, FunctionArgumentMetadataV4, FunctionArgumentMetadataV5, FunctionArgumentMetadataV6, FunctionArgumentMetadataV7, FunctionArgumentMetadataV8, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV0, FunctionMetadataV1, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV2, FunctionMetadataV3, FunctionMetadataV4, FunctionMetadataV5, FunctionMetadataV6, FunctionMetadataV7, FunctionMetadataV8, FunctionMetadataV9, MapTypeLatest, MapTypeV0, MapTypeV10, MapTypeV11, MapTypeV2, MapTypeV3, MapTypeV4, MapTypeV5, MapTypeV6, MapTypeV7, MapTypeV8, MapTypeV9, MetadataAll, MetadataLatest, MetadataV0, MetadataV1, MetadataV10, MetadataV11, MetadataV2, MetadataV3, MetadataV4, MetadataV5, MetadataV6, MetadataV7, MetadataV8, MetadataV9, ModuleConstantMetadataLatest, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV6, ModuleConstantMetadataV7, ModuleConstantMetadataV8, ModuleConstantMetadataV9, ModuleMetadataLatest, ModuleMetadataV0, ModuleMetadataV1, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV2, ModuleMetadataV3, ModuleMetadataV4, ModuleMetadataV5, ModuleMetadataV6, ModuleMetadataV7, ModuleMetadataV8, ModuleMetadataV9, OuterDispatchCallV0, OuterDispatchMetadataV0, OuterEventEventMetadataEventsV0, OuterEventEventMetadataV0, OuterEventMetadataV0, PlainTypeLatest, PlainTypeV0, PlainTypeV10, PlainTypeV11, PlainTypeV2, PlainTypeV3, PlainTypeV4, PlainTypeV5, PlainTypeV6, PlainTypeV7, PlainTypeV8, PlainTypeV9, RuntimeModuleMetadataV0, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV6, StorageEntryMetadataV7, StorageEntryMetadataV8, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV6, StorageEntryModifierV7, StorageEntryModifierV8, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV6, StorageEntryTypeV7, StorageEntryTypeV8, StorageEntryTypeV9, StorageFunctionMetadataV0, StorageFunctionMetadataV1, StorageFunctionMetadataV2, StorageFunctionMetadataV3, StorageFunctionMetadataV4, StorageFunctionMetadataV5, StorageFunctionModifierV0, StorageFunctionModifierV1, StorageFunctionModifierV2, StorageFunctionModifierV3, StorageFunctionModifierV4, StorageFunctionModifierV5, StorageFunctionTypeV0, StorageFunctionTypeV1, StorageFunctionTypeV2, StorageFunctionTypeV3, StorageFunctionTypeV4, StorageFunctionTypeV5, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV4, StorageHasherV5, StorageHasherV6, StorageHasherV7, StorageHasherV8, StorageHasherV9, StorageMetadataLatest, StorageMetadataV0, StorageMetadataV10, StorageMetadataV11, StorageMetadataV7, StorageMetadataV8, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata';
|
||||||
import { StorageKind } from '@polkadot/types/interfaces/offchain';
|
import { StorageKind } from '@polkadot/types/interfaces/offchain';
|
||||||
import { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences';
|
import { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences';
|
||||||
import { AbridgedCandidateReceipt, AttestedCandidate, AuctionIndex, Bidder, CandidateCommitments, CandidateReceipt, CollatorId, CollatorSignature, DoubleVoteReport, DownwardMessage, GlobalValidationSchedule, HeadData, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, LeasePeriod, LeasePeriodOf, LocalValidationData, NewBidder, ParaId, ParaInfo, ParaPastCodeMeta, ParaScheduling, ParachainDispatchOrigin, Remark, Retriable, Scheduling, SigningContext, SlotRange, Statement, SubId, UpwardMessage, ValidationCode, ValidatorSignature, ValidityAttestation, WinningData, WinningDataEntry } from '@polkadot/types/interfaces/parachains';
|
import { AbridgedCandidateReceipt, AttestedCandidate, AuctionIndex, Bidder, CandidateCommitments, CandidateReceipt, CollatorId, CollatorSignature, DoubleVoteReport, DownwardMessage, GlobalValidationSchedule, HeadData, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, LeasePeriod, LeasePeriodOf, LocalValidationData, NewBidder, ParaId, ParaInfo, ParaPastCodeMeta, ParaScheduling, ParachainDispatchOrigin, RelayChainBlockNumber, Remark, Retriable, Scheduling, SigningContext, SlotRange, Statement, SubId, UpwardMessage, ValidationCode, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, WinningData, WinningDataEntry } from '@polkadot/types/interfaces/parachains';
|
||||||
import { RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
import { RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||||
import { Approvals } from '@polkadot/types/interfaces/poll';
|
import { Approvals } from '@polkadot/types/interfaces/poll';
|
||||||
|
import { ProxyAnnouncement, ProxyDefinition, ProxyType } from '@polkadot/types/interfaces/proxy';
|
||||||
import { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase';
|
import { AccountStatus, AccountValidity } from '@polkadot/types/interfaces/purchase';
|
||||||
import { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';
|
import { ActiveRecovery, RecoveryConfig } from '@polkadot/types/interfaces/recovery';
|
||||||
import { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
import { RpcMethods } from '@polkadot/types/interfaces/rpc';
|
||||||
import { AccountId, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, Call, ChangesTrieConfiguration, Consensus, ConsensusEngineId, Digest, DigestItem, ExtrinsicsWeight, Fixed128, Fixed64, H160, H256, H512, Hash, Header, Index, Justification, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, OpaqueCall, Origin, Pays, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, ProxyType, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, StorageData, ValidatorId, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime';
|
import { AccountId, AccountIdOf, AccountIndex, Address, AssetId, Balance, BalanceOf, Block, BlockNumber, Call, CallHash, CallHashOf, ChangesTrieConfiguration, Consensus, ConsensusEngineId, Digest, DigestItem, ExtrinsicsWeight, Fixed128, Fixed64, H160, H256, H512, Hash, Header, Index, Justification, KeyTypeId, KeyValue, LockIdentifier, LookupSource, LookupTarget, ModuleId, Moment, OpaqueCall, Origin, Pays, Perbill, Percent, Permill, Perquintill, Phantom, PhantomData, PreRuntime, Releases, RuntimeDbWeight, Seal, SealV0, SignedBlock, StorageData, ValidatorId, Weight, WeightMultiplier } from '@polkadot/types/interfaces/runtime';
|
||||||
import { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, TaskAddress } from '@polkadot/types/interfaces/scheduler';
|
import { Period, Priority, SchedulePeriod, SchedulePriority, Scheduled, TaskAddress } from '@polkadot/types/interfaces/scheduler';
|
||||||
import { FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, ValidatorCount } from '@polkadot/types/interfaces/session';
|
import { FullIdentification, IdentificationTuple, Keys, MembershipProof, SessionIndex, SessionKeys1, SessionKeys2, SessionKeys3, SessionKeys4, SessionKeys5, SessionKeys6, ValidatorCount } from '@polkadot/types/interfaces/session';
|
||||||
import { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';
|
import { Bid, BidKind, SocietyJudgement, SocietyVote, StrikeCount, VouchingStatus } from '@polkadot/types/interfaces/society';
|
||||||
@@ -43,7 +44,7 @@ import { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';
|
|||||||
import { AccountInfo, ApplyExtrinsicResult, ChainProperties, ChainType, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, EventRecordTo76, Health, InvalidTransaction, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, Phase, RefCount, TransactionValidityError, UnknownTransaction } from '@polkadot/types/interfaces/system';
|
import { AccountInfo, ApplyExtrinsicResult, ChainProperties, ChainType, DigestOf, DispatchClass, DispatchError, DispatchErrorModule, DispatchErrorTo198, DispatchInfo, DispatchInfoTo190, DispatchInfoTo244, DispatchOutcome, DispatchResult, DispatchResultOf, DispatchResultTo198, Event, EventId, EventIndex, EventRecord, EventRecordTo76, Health, InvalidTransaction, Key, LastRuntimeUpgradeInfo, NetworkState, NetworkStatePeerset, NetworkStatePeersetInfo, NodeRole, NotConnectedPeer, Peer, PeerEndpoint, PeerEndpointAddr, PeerInfo, PeerPing, Phase, RefCount, TransactionValidityError, UnknownTransaction } from '@polkadot/types/interfaces/system';
|
||||||
import { OpenTip, OpenTipFinderTo225, OpenTipTip, OpenTipTo225, TreasuryProposal } from '@polkadot/types/interfaces/treasury';
|
import { OpenTip, OpenTipFinderTo225, OpenTipTip, OpenTipTo225, TreasuryProposal } from '@polkadot/types/interfaces/treasury';
|
||||||
import { Multiplier } from '@polkadot/types/interfaces/txpayment';
|
import { Multiplier } from '@polkadot/types/interfaces/txpayment';
|
||||||
import { CallHash, Multisig, Timepoint } from '@polkadot/types/interfaces/utility';
|
import { Multisig, Timepoint } from '@polkadot/types/interfaces/utility';
|
||||||
import { VestingInfo } from '@polkadot/types/interfaces/vesting';
|
import { VestingInfo } from '@polkadot/types/interfaces/vesting';
|
||||||
|
|
||||||
declare module '@polkadot/types/types/registry' {
|
declare module '@polkadot/types/types/registry' {
|
||||||
@@ -161,6 +162,12 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
Call: Call;
|
Call: Call;
|
||||||
'Option<Call>': Option<Call>;
|
'Option<Call>': Option<Call>;
|
||||||
'Vec<Call>': Vec<Call>;
|
'Vec<Call>': Vec<Call>;
|
||||||
|
CallHash: CallHash;
|
||||||
|
'Option<CallHash>': Option<CallHash>;
|
||||||
|
'Vec<CallHash>': Vec<CallHash>;
|
||||||
|
CallHashOf: CallHashOf;
|
||||||
|
'Option<CallHashOf>': Option<CallHashOf>;
|
||||||
|
'Vec<CallHashOf>': Vec<CallHashOf>;
|
||||||
ChangesTrieConfiguration: ChangesTrieConfiguration;
|
ChangesTrieConfiguration: ChangesTrieConfiguration;
|
||||||
'Option<ChangesTrieConfiguration>': Option<ChangesTrieConfiguration>;
|
'Option<ChangesTrieConfiguration>': Option<ChangesTrieConfiguration>;
|
||||||
'Vec<ChangesTrieConfiguration>': Vec<ChangesTrieConfiguration>;
|
'Vec<ChangesTrieConfiguration>': Vec<ChangesTrieConfiguration>;
|
||||||
@@ -258,9 +265,6 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
PhantomData: PhantomData;
|
PhantomData: PhantomData;
|
||||||
'Option<PhantomData>': Option<PhantomData>;
|
'Option<PhantomData>': Option<PhantomData>;
|
||||||
'Vec<PhantomData>': Vec<PhantomData>;
|
'Vec<PhantomData>': Vec<PhantomData>;
|
||||||
ProxyType: ProxyType;
|
|
||||||
'Option<ProxyType>': Option<ProxyType>;
|
|
||||||
'Vec<ProxyType>': Vec<ProxyType>;
|
|
||||||
Releases: Releases;
|
Releases: Releases;
|
||||||
'Option<Releases>': Option<Releases>;
|
'Option<Releases>': Option<Releases>;
|
||||||
'Vec<Releases>': Vec<Releases>;
|
'Vec<Releases>': Vec<Releases>;
|
||||||
@@ -789,6 +793,15 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
Reporter: Reporter;
|
Reporter: Reporter;
|
||||||
'Option<Reporter>': Option<Reporter>;
|
'Option<Reporter>': Option<Reporter>;
|
||||||
'Vec<Reporter>': Vec<Reporter>;
|
'Vec<Reporter>': Vec<Reporter>;
|
||||||
|
ProxyDefinition: ProxyDefinition;
|
||||||
|
'Option<ProxyDefinition>': Option<ProxyDefinition>;
|
||||||
|
'Vec<ProxyDefinition>': Vec<ProxyDefinition>;
|
||||||
|
ProxyType: ProxyType;
|
||||||
|
'Option<ProxyType>': Option<ProxyType>;
|
||||||
|
'Vec<ProxyType>': Vec<ProxyType>;
|
||||||
|
ProxyAnnouncement: ProxyAnnouncement;
|
||||||
|
'Option<ProxyAnnouncement>': Option<ProxyAnnouncement>;
|
||||||
|
'Vec<ProxyAnnouncement>': Vec<ProxyAnnouncement>;
|
||||||
ActiveRecovery: ActiveRecovery;
|
ActiveRecovery: ActiveRecovery;
|
||||||
'Option<ActiveRecovery>': Option<ActiveRecovery>;
|
'Option<ActiveRecovery>': Option<ActiveRecovery>;
|
||||||
'Vec<ActiveRecovery>': Vec<ActiveRecovery>;
|
'Vec<ActiveRecovery>': Vec<ActiveRecovery>;
|
||||||
@@ -1138,9 +1151,6 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
Multiplier: Multiplier;
|
Multiplier: Multiplier;
|
||||||
'Option<Multiplier>': Option<Multiplier>;
|
'Option<Multiplier>': Option<Multiplier>;
|
||||||
'Vec<Multiplier>': Vec<Multiplier>;
|
'Vec<Multiplier>': Vec<Multiplier>;
|
||||||
CallHash: CallHash;
|
|
||||||
'Option<CallHash>': Option<CallHash>;
|
|
||||||
'Vec<CallHash>': Vec<CallHash>;
|
|
||||||
Multisig: Multisig;
|
Multisig: Multisig;
|
||||||
'Option<Multisig>': Option<Multisig>;
|
'Option<Multisig>': Option<Multisig>;
|
||||||
'Vec<Multisig>': Vec<Multisig>;
|
'Vec<Multisig>': Vec<Multisig>;
|
||||||
@@ -1239,6 +1249,9 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
ParaScheduling: ParaScheduling;
|
ParaScheduling: ParaScheduling;
|
||||||
'Option<ParaScheduling>': Option<ParaScheduling>;
|
'Option<ParaScheduling>': Option<ParaScheduling>;
|
||||||
'Vec<ParaScheduling>': Vec<ParaScheduling>;
|
'Vec<ParaScheduling>': Vec<ParaScheduling>;
|
||||||
|
RelayChainBlockNumber: RelayChainBlockNumber;
|
||||||
|
'Option<RelayChainBlockNumber>': Option<RelayChainBlockNumber>;
|
||||||
|
'Vec<RelayChainBlockNumber>': Vec<RelayChainBlockNumber>;
|
||||||
Remark: Remark;
|
Remark: Remark;
|
||||||
'Option<Remark>': Option<Remark>;
|
'Option<Remark>': Option<Remark>;
|
||||||
'Vec<Remark>': Vec<Remark>;
|
'Vec<Remark>': Vec<Remark>;
|
||||||
@@ -1264,6 +1277,9 @@ declare module '@polkadot/types/types/registry' {
|
|||||||
UpwardMessage: UpwardMessage;
|
UpwardMessage: UpwardMessage;
|
||||||
'Option<UpwardMessage>': Option<UpwardMessage>;
|
'Option<UpwardMessage>': Option<UpwardMessage>;
|
||||||
'Vec<UpwardMessage>': Vec<UpwardMessage>;
|
'Vec<UpwardMessage>': Vec<UpwardMessage>;
|
||||||
|
ValidationFunctionParams: ValidationFunctionParams;
|
||||||
|
'Option<ValidationFunctionParams>': Option<ValidationFunctionParams>;
|
||||||
|
'Vec<ValidationFunctionParams>': Vec<ValidationFunctionParams>;
|
||||||
ValidationCode: ValidationCode;
|
ValidationCode: ValidationCode;
|
||||||
'Option<ValidationCode>': Option<ValidationCode>;
|
'Option<ValidationCode>': Option<ValidationCode>;
|
||||||
'Vec<ValidationCode>': Vec<ValidationCode>;
|
'Vec<ValidationCode>': Vec<ValidationCode>;
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ export { default as grandpa } from './grandpa/definitions';
|
|||||||
export { default as identity } from './identity/definitions';
|
export { default as identity } from './identity/definitions';
|
||||||
export { default as imOnline } from './imOnline/definitions';
|
export { default as imOnline } from './imOnline/definitions';
|
||||||
export { default as offences } from './offences/definitions';
|
export { default as offences } from './offences/definitions';
|
||||||
|
export { default as proxy } from './proxy/definitions';
|
||||||
export { default as recovery } from './recovery/definitions';
|
export { default as recovery } from './recovery/definitions';
|
||||||
export { default as scheduler } from './scheduler/definitions';
|
export { default as scheduler } from './scheduler/definitions';
|
||||||
export { default as session } from './session/definitions';
|
export { default as session } from './session/definitions';
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ export default {
|
|||||||
ParaScheduling: {
|
ParaScheduling: {
|
||||||
_enum: ['Always', 'Dynamic']
|
_enum: ['Always', 'Dynamic']
|
||||||
},
|
},
|
||||||
|
RelayChainBlockNumber: 'BlockNumber',
|
||||||
Remark: '[u8; 32]',
|
Remark: '[u8; 32]',
|
||||||
Retriable: {
|
Retriable: {
|
||||||
_enum: {
|
_enum: {
|
||||||
@@ -143,6 +144,11 @@ export default {
|
|||||||
origin: 'ParachainDispatchOrigin',
|
origin: 'ParachainDispatchOrigin',
|
||||||
data: 'Vec<u8>'
|
data: 'Vec<u8>'
|
||||||
},
|
},
|
||||||
|
ValidationFunctionParams: {
|
||||||
|
maxCodeSize: 'u32',
|
||||||
|
relayChainHeight: 'RelayChainBlockNumber',
|
||||||
|
codeUpgradeAllowed: 'Option<RelayChainBlockNumber>'
|
||||||
|
},
|
||||||
ValidationCode: 'Bytes',
|
ValidationCode: 'Bytes',
|
||||||
ValidatorSignature: 'Signature',
|
ValidatorSignature: 'Signature',
|
||||||
ValidityAttestation: {
|
ValidityAttestation: {
|
||||||
|
|||||||
@@ -161,6 +161,9 @@ export interface ParaScheduling extends Enum {
|
|||||||
readonly isDynamic: boolean;
|
readonly isDynamic: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @name RelayChainBlockNumber */
|
||||||
|
export interface RelayChainBlockNumber extends BlockNumber {}
|
||||||
|
|
||||||
/** @name Remark */
|
/** @name Remark */
|
||||||
export interface Remark extends U8aFixed {}
|
export interface Remark extends U8aFixed {}
|
||||||
|
|
||||||
@@ -220,6 +223,13 @@ export interface UpwardMessage extends Struct {
|
|||||||
/** @name ValidationCode */
|
/** @name ValidationCode */
|
||||||
export interface ValidationCode extends Bytes {}
|
export interface ValidationCode extends Bytes {}
|
||||||
|
|
||||||
|
/** @name ValidationFunctionParams */
|
||||||
|
export interface ValidationFunctionParams extends Struct {
|
||||||
|
readonly maxCodeSize: u32;
|
||||||
|
readonly relayChainHeight: RelayChainBlockNumber;
|
||||||
|
readonly codeUpgradeAllowed: Option<RelayChainBlockNumber>;
|
||||||
|
}
|
||||||
|
|
||||||
/** @name ValidatorSignature */
|
/** @name ValidatorSignature */
|
||||||
export interface ValidatorSignature extends Signature {}
|
export interface ValidatorSignature extends Signature {}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
// Copyright 2017-2020 @polkadot/types authors & contributors
|
||||||
|
// This software may be modified and distributed under the terms
|
||||||
|
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||||
|
|
||||||
|
// order important in structs... :)
|
||||||
|
/* eslint-disable sort-keys */
|
||||||
|
|
||||||
|
import { Definitions } from '../../types';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
rpc: {},
|
||||||
|
types: {
|
||||||
|
ProxyDefinition: {
|
||||||
|
delegate: 'AccountId',
|
||||||
|
proxyType: 'ProxyType',
|
||||||
|
delay: 'BlockNumber'
|
||||||
|
},
|
||||||
|
ProxyType: {
|
||||||
|
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking']
|
||||||
|
},
|
||||||
|
ProxyAnnouncement: {
|
||||||
|
real: 'AccountId',
|
||||||
|
callHash: 'Hash',
|
||||||
|
height: 'BlockNumber'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} as Definitions;
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||||
|
/* eslint-disable */
|
||||||
|
|
||||||
|
export * from './types';
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||||
|
/* eslint-disable */
|
||||||
|
|
||||||
|
import { Enum, Struct } from '@polkadot/types/codec';
|
||||||
|
import { AccountId, BlockNumber, Hash } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
|
/** @name ProxyAnnouncement */
|
||||||
|
export interface ProxyAnnouncement extends Struct {
|
||||||
|
readonly real: AccountId;
|
||||||
|
readonly callHash: Hash;
|
||||||
|
readonly height: BlockNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name ProxyDefinition */
|
||||||
|
export interface ProxyDefinition extends Struct {
|
||||||
|
readonly delegate: AccountId;
|
||||||
|
readonly proxyType: ProxyType;
|
||||||
|
readonly delay: BlockNumber;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @name ProxyType */
|
||||||
|
export interface ProxyType extends Enum {
|
||||||
|
readonly isAny: boolean;
|
||||||
|
readonly isNonTransfer: boolean;
|
||||||
|
readonly isGovernance: boolean;
|
||||||
|
readonly isStaking: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PHANTOM_PROXY = 'proxy';
|
||||||
@@ -20,6 +20,8 @@ export default {
|
|||||||
Block: 'GenericBlock',
|
Block: 'GenericBlock',
|
||||||
BlockNumber: 'u32',
|
BlockNumber: 'u32',
|
||||||
Call: 'GenericCall',
|
Call: 'GenericCall',
|
||||||
|
CallHash: 'Hash',
|
||||||
|
CallHashOf: 'CallHash',
|
||||||
ChangesTrieConfiguration: {
|
ChangesTrieConfiguration: {
|
||||||
digestInterval: 'u32',
|
digestInterval: 'u32',
|
||||||
digestLevels: 'u32'
|
digestLevels: 'u32'
|
||||||
@@ -76,9 +78,6 @@ export default {
|
|||||||
Perquintill: 'u64',
|
Perquintill: 'u64',
|
||||||
Phantom: 'Null',
|
Phantom: 'Null',
|
||||||
PhantomData: 'Null',
|
PhantomData: 'Null',
|
||||||
ProxyType: {
|
|
||||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking']
|
|
||||||
},
|
|
||||||
Releases: {
|
Releases: {
|
||||||
_enum: ['V1', 'V2', 'V3', 'V4', 'V5', 'V6', 'V7', 'V8', 'V9', 'V10']
|
_enum: ['V1', 'V2', 'V3', 'V4', 'V5', 'V6', 'V7', 'V8', 'V9', 'V10']
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -38,6 +38,12 @@ export interface BlockNumber extends u32 {}
|
|||||||
/** @name Call */
|
/** @name Call */
|
||||||
export interface Call extends GenericCall {}
|
export interface Call extends GenericCall {}
|
||||||
|
|
||||||
|
/** @name CallHash */
|
||||||
|
export interface CallHash extends Hash {}
|
||||||
|
|
||||||
|
/** @name CallHashOf */
|
||||||
|
export interface CallHashOf extends CallHash {}
|
||||||
|
|
||||||
/** @name ChangesTrieConfiguration */
|
/** @name ChangesTrieConfiguration */
|
||||||
export interface ChangesTrieConfiguration extends Struct {
|
export interface ChangesTrieConfiguration extends Struct {
|
||||||
readonly digestInterval: u32;
|
readonly digestInterval: u32;
|
||||||
@@ -166,14 +172,6 @@ export interface PhantomData extends Null {}
|
|||||||
/** @name PreRuntime */
|
/** @name PreRuntime */
|
||||||
export interface PreRuntime extends ITuple<[ConsensusEngineId, Bytes]> {}
|
export interface PreRuntime extends ITuple<[ConsensusEngineId, Bytes]> {}
|
||||||
|
|
||||||
/** @name ProxyType */
|
|
||||||
export interface ProxyType extends Enum {
|
|
||||||
readonly isAny: boolean;
|
|
||||||
readonly isNonTransfer: boolean;
|
|
||||||
readonly isGovernance: boolean;
|
|
||||||
readonly isStaking: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @name Releases */
|
/** @name Releases */
|
||||||
export interface Releases extends Enum {
|
export interface Releases extends Enum {
|
||||||
readonly isV1: boolean;
|
readonly isV1: boolean;
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ export * from './grandpa/types';
|
|||||||
export * from './identity/types';
|
export * from './identity/types';
|
||||||
export * from './imOnline/types';
|
export * from './imOnline/types';
|
||||||
export * from './offences/types';
|
export * from './offences/types';
|
||||||
|
export * from './proxy/types';
|
||||||
export * from './recovery/types';
|
export * from './recovery/types';
|
||||||
export * from './scheduler/types';
|
export * from './scheduler/types';
|
||||||
export * from './session/types';
|
export * from './session/types';
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import { Definitions } from '../../types';
|
|||||||
export default {
|
export default {
|
||||||
rpc: {},
|
rpc: {},
|
||||||
types: {
|
types: {
|
||||||
CallHash: 'H256',
|
|
||||||
Multisig: {
|
Multisig: {
|
||||||
when: 'Timepoint',
|
when: 'Timepoint',
|
||||||
deposit: 'Balance',
|
deposit: 'Balance',
|
||||||
|
|||||||
@@ -3,10 +3,7 @@
|
|||||||
|
|
||||||
import { Struct, Vec } from '@polkadot/types/codec';
|
import { Struct, Vec } from '@polkadot/types/codec';
|
||||||
import { u32 } from '@polkadot/types/primitive';
|
import { u32 } from '@polkadot/types/primitive';
|
||||||
import { AccountId, Balance, BlockNumber, H256 } from '@polkadot/types/interfaces/runtime';
|
import { AccountId, Balance, BlockNumber } from '@polkadot/types/interfaces/runtime';
|
||||||
|
|
||||||
/** @name CallHash */
|
|
||||||
export interface CallHash extends H256 {}
|
|
||||||
|
|
||||||
/** @name Multisig */
|
/** @name Multisig */
|
||||||
export interface Multisig extends Struct {
|
export interface Multisig extends Struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user