@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-contract",
|
||||
"version": "1.3.0-beta.11",
|
||||
"version": "1.3.0",
|
||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -27,10 +27,10 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.8.4",
|
||||
"@polkadot/api": "^1.3.0-beta.11",
|
||||
"@polkadot/rpc-core": "^1.3.0-beta.11",
|
||||
"@polkadot/types": "^1.3.0-beta.11",
|
||||
"@polkadot/util": "^2.4.0-beta.0",
|
||||
"@polkadot/api": "^1.3.0",
|
||||
"@polkadot/rpc-core": "^1.3.0",
|
||||
"@polkadot/types": "^1.3.0",
|
||||
"@polkadot/util": "^2.4.1",
|
||||
"bn.js": "^5.1.1",
|
||||
"rxjs": "^6.5.4"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-derive",
|
||||
"version": "1.3.0-beta.11",
|
||||
"version": "1.3.0",
|
||||
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -28,17 +28,17 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.8.4",
|
||||
"@polkadot/api": "^1.3.0-beta.11",
|
||||
"@polkadot/rpc-core": "^1.3.0-beta.11",
|
||||
"@polkadot/rpc-provider": "^1.3.0-beta.11",
|
||||
"@polkadot/types": "^1.3.0-beta.11",
|
||||
"@polkadot/util": "^2.4.0-beta.0",
|
||||
"@polkadot/util-crypto": "^2.4.0-beta.0",
|
||||
"@polkadot/api": "^1.3.0",
|
||||
"@polkadot/rpc-core": "^1.3.0",
|
||||
"@polkadot/rpc-provider": "^1.3.0",
|
||||
"@polkadot/types": "^1.3.0",
|
||||
"@polkadot/util": "^2.4.1",
|
||||
"@polkadot/util-crypto": "^2.4.1",
|
||||
"bn.js": "^5.1.1",
|
||||
"memoizee": "^0.4.14",
|
||||
"rxjs": "^6.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^2.4.0-beta.0"
|
||||
"@polkadot/keyring": "^2.4.1"
|
||||
}
|
||||
}
|
||||
|
||||
+10
-10
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api",
|
||||
"version": "1.3.0-beta.11",
|
||||
"version": "1.3.0",
|
||||
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -27,19 +27,19 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.8.4",
|
||||
"@polkadot/api-derive": "^1.3.0-beta.11",
|
||||
"@polkadot/keyring": "^2.4.0-beta.0",
|
||||
"@polkadot/metadata": "^1.3.0-beta.11",
|
||||
"@polkadot/rpc-core": "^1.3.0-beta.11",
|
||||
"@polkadot/rpc-provider": "^1.3.0-beta.11",
|
||||
"@polkadot/types": "^1.3.0-beta.11",
|
||||
"@polkadot/util": "^2.4.0-beta.0",
|
||||
"@polkadot/util-crypto": "^2.4.0-beta.0",
|
||||
"@polkadot/api-derive": "^1.3.0",
|
||||
"@polkadot/keyring": "^2.4.1",
|
||||
"@polkadot/metadata": "^1.3.0",
|
||||
"@polkadot/rpc-core": "^1.3.0",
|
||||
"@polkadot/rpc-provider": "^1.3.0",
|
||||
"@polkadot/types": "^1.3.0",
|
||||
"@polkadot/util": "^2.4.1",
|
||||
"@polkadot/util-crypto": "^2.4.1",
|
||||
"bn.js": "^5.1.1",
|
||||
"eventemitter3": "^4.0.0",
|
||||
"rxjs": "^6.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^2.4.0-beta.0"
|
||||
"@polkadot/keyring": "^2.4.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,8 @@ describe('ApiPromise', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
const keyring = testKeyring({ type: 'ed25519' });
|
||||
const aliceEd = keyring.addPair(
|
||||
createPair('ed25519', {
|
||||
// eslint-disable-next-line @typescript-eslint/unbound-method
|
||||
createPair({ toSS58: keyring.encodeAddress, type: 'ed25519' }, {
|
||||
secretKey: hexToU8a('0xabf8e5bdbe30c65656c0a3cbd181ff8a56294a69dfedd27982aace4a7690911588dc3417d5058ec4b4503e0c12ea1a0a89be200fe98922423d4334014fa6b0ee'),
|
||||
publicKey: hexToU8a('0x88dc3417d5058ec4b4503e0c12ea1a0a89be200fe98922423d4334014fa6b0ee')
|
||||
})
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/jsonrpc",
|
||||
"version": "1.3.0-beta.11",
|
||||
"version": "1.3.0",
|
||||
"description": "Method definitions for the Polkadot RPC layer",
|
||||
"main": "index.js",
|
||||
"publishConfig": {
|
||||
@@ -27,7 +27,7 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/jsonrpc#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.8.4",
|
||||
"@polkadot/types": "^1.3.0-beta.11",
|
||||
"@polkadot/util": "^2.4.0-beta.0"
|
||||
"@polkadot/types": "^1.3.0",
|
||||
"@polkadot/util": "^2.4.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/metadata",
|
||||
"version": "1.3.0-beta.11",
|
||||
"version": "1.3.0",
|
||||
"description": "Helpers to extract information from runtime metadata",
|
||||
"main": "index.js",
|
||||
"publishConfig": {
|
||||
@@ -27,12 +27,12 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.8.4",
|
||||
"@polkadot/types": "^1.3.0-beta.11",
|
||||
"@polkadot/util": "^2.4.0-beta.0",
|
||||
"@polkadot/util-crypto": "^2.4.0-beta.0",
|
||||
"@polkadot/types": "^1.3.0",
|
||||
"@polkadot/util": "^2.4.1",
|
||||
"@polkadot/util-crypto": "^2.4.1",
|
||||
"bn.js": "^5.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^2.4.0-beta.0"
|
||||
"@polkadot/keyring": "^2.4.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/rpc-core",
|
||||
"version": "1.3.0-beta.11",
|
||||
"version": "1.3.0",
|
||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -27,15 +27,15 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.8.4",
|
||||
"@polkadot/jsonrpc": "^1.3.0-beta.11",
|
||||
"@polkadot/metadata": "^1.3.0-beta.11",
|
||||
"@polkadot/rpc-provider": "^1.3.0-beta.11",
|
||||
"@polkadot/types": "^1.3.0-beta.11",
|
||||
"@polkadot/util": "^2.4.0-beta.0",
|
||||
"@polkadot/jsonrpc": "^1.3.0",
|
||||
"@polkadot/metadata": "^1.3.0",
|
||||
"@polkadot/rpc-provider": "^1.3.0",
|
||||
"@polkadot/types": "^1.3.0",
|
||||
"@polkadot/util": "^2.4.1",
|
||||
"memoizee": "^0.4.14",
|
||||
"rxjs": "^6.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^2.4.0-beta.0"
|
||||
"@polkadot/keyring": "^2.4.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/rpc-provider",
|
||||
"version": "1.3.0-beta.11",
|
||||
"version": "1.3.0",
|
||||
"description": "Transport providers for the API",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -27,18 +27,18 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.8.4",
|
||||
"@polkadot/jsonrpc": "^1.3.0-beta.11",
|
||||
"@polkadot/metadata": "^1.3.0-beta.11",
|
||||
"@polkadot/types": "^1.3.0-beta.11",
|
||||
"@polkadot/util": "^2.4.0-beta.0",
|
||||
"@polkadot/util-crypto": "^2.4.0-beta.0",
|
||||
"@polkadot/jsonrpc": "^1.3.0",
|
||||
"@polkadot/metadata": "^1.3.0",
|
||||
"@polkadot/types": "^1.3.0",
|
||||
"@polkadot/util": "^2.4.1",
|
||||
"@polkadot/util-crypto": "^2.4.1",
|
||||
"bn.js": "^5.1.1",
|
||||
"eventemitter3": "^4.0.0",
|
||||
"isomorphic-fetch": "^2.2.1",
|
||||
"websocket": "^1.0.31"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^2.4.0-beta.0",
|
||||
"@polkadot/keyring": "^2.4.1",
|
||||
"mock-socket": "^9.0.3",
|
||||
"nock": "^11.8.2"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/typegen",
|
||||
"version": "1.3.0-beta.11",
|
||||
"version": "1.3.0",
|
||||
"description": "Type generation scripts",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
@@ -36,11 +36,11 @@
|
||||
"@babel/core": "^7.8.3",
|
||||
"@babel/register": "^7.8.3",
|
||||
"@babel/runtime": "^7.8.4",
|
||||
"@polkadot/api": "^1.3.0-beta.11",
|
||||
"@polkadot/jsonrpc": "^1.3.0-beta.11",
|
||||
"@polkadot/metadata": "^1.3.0-beta.11",
|
||||
"@polkadot/types": "^1.3.0-beta.11",
|
||||
"@polkadot/util": "^2.4.0-beta.0",
|
||||
"@polkadot/api": "^1.3.0",
|
||||
"@polkadot/jsonrpc": "^1.3.0",
|
||||
"@polkadot/metadata": "^1.3.0",
|
||||
"@polkadot/types": "^1.3.0",
|
||||
"@polkadot/util": "^2.4.1",
|
||||
"websocket": "^1.0.31",
|
||||
"yargs": "^15.1.0"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/types",
|
||||
"version": "1.3.0-beta.11",
|
||||
"version": "1.3.0",
|
||||
"description": "Implementation of the Parity codec",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -27,16 +27,16 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.8.4",
|
||||
"@polkadot/metadata": "^1.3.0-beta.11",
|
||||
"@polkadot/util": "^2.4.0-beta.0",
|
||||
"@polkadot/util-crypto": "^2.4.0-beta.0",
|
||||
"@polkadot/metadata": "^1.3.0",
|
||||
"@polkadot/util": "^2.4.1",
|
||||
"@polkadot/util-crypto": "^2.4.1",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
"bn.js": "^5.1.1",
|
||||
"memoizee": "^0.4.14",
|
||||
"rxjs": "^6.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^2.4.0-beta.0",
|
||||
"@polkadot/keyring": "^2.4.1",
|
||||
"@types/memoizee": "^0.4.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ export default class UInt extends AbstractInt {
|
||||
public toHuman (isExpanded?: boolean): any {
|
||||
// FIXME we need proper expansion here
|
||||
return this instanceof ClassOf(this.registry, 'Balance')
|
||||
? formatBalance(this, { withSi: true, withUnit: this.registry.chainToken }, this.registry.chainDecimals)
|
||||
? formatBalance(this, { decimals: this.registry.chainDecimals, withSi: true, withUnit: this.registry.chainToken })
|
||||
: super.toHuman(isExpanded);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user