+4
-4
@@ -25,10 +25,10 @@
|
||||
"test:watch": "polkadot-dev-run-test --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.17",
|
||||
"@babel/register": "^7.12.13",
|
||||
"@babel/runtime": "^7.12.18",
|
||||
"@polkadot/dev": "^0.61.26",
|
||||
"@babel/core": "^7.13.1",
|
||||
"@babel/register": "^7.13.0",
|
||||
"@babel/runtime": "^7.13.7",
|
||||
"@polkadot/dev": "^0.61.27",
|
||||
"@polkadot/ts": "^0.3.59",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/jest": "^26.0.20",
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.18",
|
||||
"@babel/runtime": "^7.13.7",
|
||||
"@polkadot/api": "3.10.3-3",
|
||||
"@polkadot/types": "3.10.3-3",
|
||||
"@polkadot/util": "^5.7.1",
|
||||
"@polkadot/x-rxjs": "^5.7.1",
|
||||
"@polkadot/util": "^5.7.2-3",
|
||||
"@polkadot/x-rxjs": "^5.7.2-3",
|
||||
"bn.js": "^4.11.9"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,17 +12,17 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.18",
|
||||
"@babel/runtime": "^7.13.7",
|
||||
"@polkadot/api": "3.10.3-3",
|
||||
"@polkadot/rpc-core": "3.10.3-3",
|
||||
"@polkadot/types": "3.10.3-3",
|
||||
"@polkadot/util": "^5.7.1",
|
||||
"@polkadot/util-crypto": "^5.7.1",
|
||||
"@polkadot/x-rxjs": "^5.7.1",
|
||||
"@polkadot/util": "^5.7.2-3",
|
||||
"@polkadot/util-crypto": "^5.7.2-3",
|
||||
"@polkadot/x-rxjs": "^5.7.2-3",
|
||||
"bn.js": "^4.11.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^5.7.1",
|
||||
"@polkadot/keyring": "^5.7.2-3",
|
||||
"@polkadot/rpc-provider": "3.10.3-3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ describe('bounties derive', () => {
|
||||
let storageKey: (index: number) => StorageKey;
|
||||
let defaultBounty: () => Bounty;
|
||||
let emptyOption: <T extends Codec> (typeName: keyof InterfaceTypes) => Option<T>;
|
||||
let optionOf: <T extends Codec> (value: T)=> Option<T>;
|
||||
let optionOf: <T extends Codec> (value: T) => Option<T>;
|
||||
let bountyIndex: (index: number) => BountyIndex;
|
||||
let proposalIndex: (index: number) => ProposalIndex;
|
||||
let bytes: (value: string) => Bytes;
|
||||
|
||||
@@ -15,17 +15,17 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.18",
|
||||
"@babel/runtime": "^7.13.7",
|
||||
"@polkadot/api-derive": "3.10.3-3",
|
||||
"@polkadot/keyring": "^5.7.1",
|
||||
"@polkadot/keyring": "^5.7.2-3",
|
||||
"@polkadot/metadata": "3.10.3-3",
|
||||
"@polkadot/rpc-core": "3.10.3-3",
|
||||
"@polkadot/rpc-provider": "3.10.3-3",
|
||||
"@polkadot/types": "3.10.3-3",
|
||||
"@polkadot/types-known": "3.10.3-3",
|
||||
"@polkadot/util": "^5.7.1",
|
||||
"@polkadot/util-crypto": "^5.7.1",
|
||||
"@polkadot/x-rxjs": "^5.7.1",
|
||||
"@polkadot/util": "^5.7.2-3",
|
||||
"@polkadot/util-crypto": "^5.7.2-3",
|
||||
"@polkadot/x-rxjs": "^5.7.2-3",
|
||||
"bn.js": "^4.11.9",
|
||||
"eventemitter3": "^4.0.7"
|
||||
}
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.18",
|
||||
"@babel/runtime": "^7.13.7",
|
||||
"@polkadot/types": "3.10.3-3",
|
||||
"@polkadot/types-known": "3.10.3-3",
|
||||
"@polkadot/util": "^5.7.1",
|
||||
"@polkadot/util-crypto": "^5.7.1",
|
||||
"@polkadot/util": "^5.7.2-3",
|
||||
"@polkadot/util-crypto": "^5.7.2-3",
|
||||
"bn.js": "^4.11.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^5.7.1"
|
||||
"@polkadot/keyring": "^5.7.2-3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,14 +12,14 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.18",
|
||||
"@babel/runtime": "^7.13.7",
|
||||
"@polkadot/metadata": "3.10.3-3",
|
||||
"@polkadot/rpc-provider": "3.10.3-3",
|
||||
"@polkadot/types": "3.10.3-3",
|
||||
"@polkadot/util": "^5.7.1",
|
||||
"@polkadot/x-rxjs": "^5.7.1"
|
||||
"@polkadot/util": "^5.7.2-3",
|
||||
"@polkadot/x-rxjs": "^5.7.2-3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^5.7.1"
|
||||
"@polkadot/keyring": "^5.7.2-3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,18 +12,18 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.18",
|
||||
"@babel/runtime": "^7.13.7",
|
||||
"@polkadot/types": "3.10.3-3",
|
||||
"@polkadot/util": "^5.7.1",
|
||||
"@polkadot/util-crypto": "^5.7.1",
|
||||
"@polkadot/x-fetch": "^5.7.1",
|
||||
"@polkadot/x-global": "^5.7.1",
|
||||
"@polkadot/x-ws": "^5.7.1",
|
||||
"@polkadot/util": "^5.7.2-3",
|
||||
"@polkadot/util-crypto": "^5.7.2-3",
|
||||
"@polkadot/x-fetch": "^5.7.2-3",
|
||||
"@polkadot/x-global": "^5.7.2-3",
|
||||
"@polkadot/x-ws": "^5.7.2-3",
|
||||
"bn.js": "^4.11.9",
|
||||
"eventemitter3": "^4.0.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^5.7.1",
|
||||
"@polkadot/keyring": "^5.7.2-3",
|
||||
"@polkadot/metadata": "3.10.3-3",
|
||||
"mock-socket": "^9.0.3",
|
||||
"nock": "^13.0.7"
|
||||
|
||||
@@ -19,14 +19,14 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/typegen#readme",
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.12.17",
|
||||
"@babel/register": "^7.12.13",
|
||||
"@babel/runtime": "^7.12.18",
|
||||
"@babel/core": "^7.13.1",
|
||||
"@babel/register": "^7.13.0",
|
||||
"@babel/runtime": "^7.13.7",
|
||||
"@polkadot/api": "3.10.3-3",
|
||||
"@polkadot/metadata": "3.10.3-3",
|
||||
"@polkadot/rpc-provider": "3.10.3-3",
|
||||
"@polkadot/types": "3.10.3-3",
|
||||
"@polkadot/util": "^5.7.1",
|
||||
"@polkadot/util": "^5.7.2-3",
|
||||
"handlebars": "^4.7.7",
|
||||
"websocket": "^1.0.33",
|
||||
"yargs": "^16.2.0"
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.18",
|
||||
"@polkadot/networks": "^5.7.1",
|
||||
"@babel/runtime": "^7.13.7",
|
||||
"@polkadot/networks": "^5.7.2-3",
|
||||
"@polkadot/types": "3.10.3-3",
|
||||
"@polkadot/util": "^5.7.1",
|
||||
"@polkadot/util": "^5.7.2-3",
|
||||
"bn.js": "^4.11.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -15,15 +15,15 @@
|
||||
"bugs": "https://github.com/polkadot-js/api/issues",
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.18",
|
||||
"@babel/runtime": "^7.13.7",
|
||||
"@polkadot/metadata": "3.10.3-3",
|
||||
"@polkadot/util": "^5.7.1",
|
||||
"@polkadot/util-crypto": "^5.7.1",
|
||||
"@polkadot/x-rxjs": "^5.7.1",
|
||||
"@polkadot/util": "^5.7.2-3",
|
||||
"@polkadot/util-crypto": "^5.7.2-3",
|
||||
"@polkadot/x-rxjs": "^5.7.2-3",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
"bn.js": "^4.11.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^5.7.1"
|
||||
"@polkadot/keyring": "^5.7.2-3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ const encoders: Record<TypeDefInfo, (typeDef: TypeDef) => string> = {
|
||||
[TypeDefInfo.VecFixed]: (typeDef: TypeDef): string => encodeVecFixed(typeDef)
|
||||
};
|
||||
|
||||
function encodeType (typeDef:TypeDef): string {
|
||||
function encodeType (typeDef: TypeDef): string {
|
||||
const encoder = encoders[typeDef.info];
|
||||
|
||||
assert(encoder, `Cannot encode type: ${JSON.stringify(typeDef)}`);
|
||||
|
||||
Reference in New Issue
Block a user