10.11.1 (#5759)
This commit is contained in:
@@ -18,14 +18,14 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.2-8-x",
|
||||
"version": "10.11.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-base": "10.10.2-8-x",
|
||||
"@polkadot/rpc-augment": "10.10.2-8-x",
|
||||
"@polkadot/types": "10.10.2-8-x",
|
||||
"@polkadot/types-augment": "10.10.2-8-x",
|
||||
"@polkadot/types-codec": "10.10.2-8-x",
|
||||
"@polkadot/api-base": "10.11.0",
|
||||
"@polkadot/rpc-augment": "10.11.0",
|
||||
"@polkadot/types": "10.11.0",
|
||||
"@polkadot/types-augment": "10.11.0",
|
||||
"@polkadot/types-codec": "10.11.0",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.2-8-x",
|
||||
"version": "10.11.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "10.10.2-8-x",
|
||||
"@polkadot/types": "10.10.2-8-x",
|
||||
"@polkadot/rpc-core": "10.11.0",
|
||||
"@polkadot/types": "10.11.0",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
|
||||
@@ -18,21 +18,21 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.2-8-x",
|
||||
"version": "10.11.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.10.2-8-x",
|
||||
"@polkadot/api-augment": "10.10.2-8-x",
|
||||
"@polkadot/types": "10.10.2-8-x",
|
||||
"@polkadot/types-codec": "10.10.2-8-x",
|
||||
"@polkadot/types-create": "10.10.2-8-x",
|
||||
"@polkadot/api": "10.11.0",
|
||||
"@polkadot/api-augment": "10.11.0",
|
||||
"@polkadot/types": "10.11.0",
|
||||
"@polkadot/types-codec": "10.11.0",
|
||||
"@polkadot/types-create": "10.11.0",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"@polkadot/util-crypto": "^12.6.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "10.10.2-8-x",
|
||||
"@polkadot/api-augment": "10.11.0",
|
||||
"@polkadot/keyring": "^12.6.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,25 +18,25 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.2-8-x",
|
||||
"version": "10.11.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.10.2-8-x",
|
||||
"@polkadot/api-augment": "10.10.2-8-x",
|
||||
"@polkadot/api-base": "10.10.2-8-x",
|
||||
"@polkadot/rpc-core": "10.10.2-8-x",
|
||||
"@polkadot/types": "10.10.2-8-x",
|
||||
"@polkadot/types-codec": "10.10.2-8-x",
|
||||
"@polkadot/api": "10.11.0",
|
||||
"@polkadot/api-augment": "10.11.0",
|
||||
"@polkadot/api-base": "10.11.0",
|
||||
"@polkadot/rpc-core": "10.11.0",
|
||||
"@polkadot/types": "10.11.0",
|
||||
"@polkadot/types-codec": "10.11.0",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"@polkadot/util-crypto": "^12.6.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "10.10.2-8-x",
|
||||
"@polkadot/api-augment": "10.10.2-8-x",
|
||||
"@polkadot/rpc-augment": "10.10.2-8-x",
|
||||
"@polkadot/rpc-provider": "10.10.2-8-x",
|
||||
"@polkadot/types-support": "10.10.2-8-x"
|
||||
"@polkadot/api": "10.11.0",
|
||||
"@polkadot/api-augment": "10.11.0",
|
||||
"@polkadot/rpc-augment": "10.11.0",
|
||||
"@polkadot/rpc-provider": "10.11.0",
|
||||
"@polkadot/types-support": "10.11.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ describe('bounties derive', () => {
|
||||
});
|
||||
|
||||
it('creates proposal', function () {
|
||||
expect(createProposal(api.tx.balances.transfer('5EYCAe5ijiYfyeZ2JJCGq56LmPyNRAKzpG4QkoQkkQNB5e6Z', 1))).toBeTruthy();
|
||||
expect(createProposal(api.tx.balances.transferAllowDeath('5EYCAe5ijiYfyeZ2JJCGq56LmPyNRAKzpG4QkoQkkQNB5e6Z', 1))).toBeTruthy();
|
||||
});
|
||||
|
||||
it('combines bounties with descriptions', async () => {
|
||||
|
||||
+14
-14
@@ -18,21 +18,21 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.2-8-x",
|
||||
"version": "10.11.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-augment": "10.10.2-8-x",
|
||||
"@polkadot/api-base": "10.10.2-8-x",
|
||||
"@polkadot/api-derive": "10.10.2-8-x",
|
||||
"@polkadot/api-augment": "10.11.0",
|
||||
"@polkadot/api-base": "10.11.0",
|
||||
"@polkadot/api-derive": "10.11.0",
|
||||
"@polkadot/keyring": "^12.6.1",
|
||||
"@polkadot/rpc-augment": "10.10.2-8-x",
|
||||
"@polkadot/rpc-core": "10.10.2-8-x",
|
||||
"@polkadot/rpc-provider": "10.10.2-8-x",
|
||||
"@polkadot/types": "10.10.2-8-x",
|
||||
"@polkadot/types-augment": "10.10.2-8-x",
|
||||
"@polkadot/types-codec": "10.10.2-8-x",
|
||||
"@polkadot/types-create": "10.10.2-8-x",
|
||||
"@polkadot/types-known": "10.10.2-8-x",
|
||||
"@polkadot/rpc-augment": "10.11.0",
|
||||
"@polkadot/rpc-core": "10.11.0",
|
||||
"@polkadot/rpc-provider": "10.11.0",
|
||||
"@polkadot/types": "10.11.0",
|
||||
"@polkadot/types-augment": "10.11.0",
|
||||
"@polkadot/types-codec": "10.11.0",
|
||||
"@polkadot/types-create": "10.11.0",
|
||||
"@polkadot/types-known": "10.11.0",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"@polkadot/util-crypto": "^12.6.1",
|
||||
"eventemitter3": "^5.0.1",
|
||||
@@ -40,7 +40,7 @@
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "10.10.2-8-x",
|
||||
"@polkadot/types-support": "10.10.2-8-x"
|
||||
"@polkadot/api-augment": "10.11.0",
|
||||
"@polkadot/types-support": "10.11.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -219,7 +219,7 @@ export abstract class Getters<ApiType extends ApiTypes> extends Init<ApiType> im
|
||||
*
|
||||
* ```javascript
|
||||
* api.tx.balances
|
||||
* .transfer(<recipientId>, <balance>)
|
||||
* .transferAllowDeath(<recipientId>, <balance>)
|
||||
* .signAndSend(<keyPair>, ({status}) => {
|
||||
* console.log('tx status', status.asFinalized.toHex());
|
||||
* });
|
||||
|
||||
@@ -243,7 +243,7 @@ function types (api: ApiPromise): void {
|
||||
|
||||
async function tx (api: ApiPromise, pairs: TestKeyringMapSubstrate): Promise<void> {
|
||||
// transfer, also allows for bigint inputs here
|
||||
const transfer = api.tx.balances.transfer(pairs.bob.address, BigInt(123456789));
|
||||
const transfer = api.tx.balances.transferAllowDeath(pairs.bob.address, BigInt(123456789));
|
||||
|
||||
console.log('transfer casted', transfer as IMethod<AnyTuple>, transfer as IExtrinsic<AnyTuple>);
|
||||
|
||||
@@ -254,19 +254,19 @@ async function tx (api: ApiPromise, pairs: TestKeyringMapSubstrate): Promise<voi
|
||||
const nonce = await api.query.system['accountNonce']<Index>(pairs.alice.address);
|
||||
|
||||
(await api.tx.balances
|
||||
.transfer(pairs.bob.address, 12345)
|
||||
.transferAllowDeath(pairs.bob.address, 12345)
|
||||
.signAndSend(pairs.alice, { nonce })
|
||||
).toHex();
|
||||
|
||||
// just with the callback
|
||||
await api.tx.balances
|
||||
.transfer(pairs.bob.address, 12345)
|
||||
.transferAllowDeath(pairs.bob.address, 12345)
|
||||
.signAndSend(pairs.alice, ({ status }: SubmittableResult) => console.log(status.type));
|
||||
|
||||
// with options and the callback
|
||||
const nonce2 = await api.query.system['accountNonce'](pairs.alice.address);
|
||||
const unsub2 = await api.tx.balances
|
||||
.transfer(pairs.bob.address, 12345)
|
||||
.transferAllowDeath(pairs.bob.address, 12345)
|
||||
.signAndSend(pairs.alice, { nonce: nonce2 }, ({ status }: SubmittableResult): void => {
|
||||
console.log('transfer status:', status.type);
|
||||
|
||||
@@ -282,7 +282,7 @@ async function tx (api: ApiPromise, pairs: TestKeyringMapSubstrate): Promise<voi
|
||||
await api.tx.democracy['proxyVote'](123, { Split: { nay: 456, yay: 123 } }).signAndSend(pairs.alice);
|
||||
|
||||
// is
|
||||
if (api.tx.balances.transfer.is(second)) {
|
||||
if (api.tx.balances.transferAllowDeath.is(second)) {
|
||||
const [recipientId, balance] = second.args;
|
||||
|
||||
// should be LookupSource & Balance types
|
||||
|
||||
@@ -95,7 +95,7 @@ import { toRxMethod } from './decorateMethod.js';
|
||||
* switchMap(([nonce]) =>
|
||||
* api.tx.balances
|
||||
* // create transfer
|
||||
* .transfer(keyring.bob.address, 12345)
|
||||
* .transferAllowDeath(keyring.bob.address, 12345)
|
||||
* // sign the transaction
|
||||
* .sign(keyring.alice, { nonce })
|
||||
* // send the transaction
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.2-8-x",
|
||||
"version": "10.11.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "10.10.2-8-x",
|
||||
"@polkadot/types": "10.10.2-8-x",
|
||||
"@polkadot/types-codec": "10.10.2-8-x",
|
||||
"@polkadot/rpc-core": "10.11.0",
|
||||
"@polkadot/types": "10.11.0",
|
||||
"@polkadot/types-codec": "10.11.0",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
|
||||
@@ -18,18 +18,18 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.2-8-x",
|
||||
"version": "10.11.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-augment": "10.10.2-8-x",
|
||||
"@polkadot/rpc-provider": "10.10.2-8-x",
|
||||
"@polkadot/types": "10.10.2-8-x",
|
||||
"@polkadot/rpc-augment": "10.11.0",
|
||||
"@polkadot/rpc-provider": "10.11.0",
|
||||
"@polkadot/types": "10.11.0",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^12.6.1",
|
||||
"@polkadot/rpc-augment": "10.10.2-8-x"
|
||||
"@polkadot/rpc-augment": "10.11.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.2-8-x",
|
||||
"version": "10.11.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^12.6.1",
|
||||
"@polkadot/types": "10.10.2-8-x",
|
||||
"@polkadot/types-support": "10.10.2-8-x",
|
||||
"@polkadot/types": "10.11.0",
|
||||
"@polkadot/types-support": "10.11.0",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"@polkadot/util-crypto": "^12.6.1",
|
||||
"@polkadot/x-fetch": "^12.6.1",
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.2-8-x",
|
||||
"version": "10.11.0",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
|
||||
@@ -28,15 +28,15 @@
|
||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@polkadot/api": "10.10.2-8-x",
|
||||
"@polkadot/api-augment": "10.10.2-8-x",
|
||||
"@polkadot/rpc-augment": "10.10.2-8-x",
|
||||
"@polkadot/rpc-provider": "10.10.2-8-x",
|
||||
"@polkadot/types": "10.10.2-8-x",
|
||||
"@polkadot/types-augment": "10.10.2-8-x",
|
||||
"@polkadot/types-codec": "10.10.2-8-x",
|
||||
"@polkadot/types-create": "10.10.2-8-x",
|
||||
"@polkadot/types-support": "10.10.2-8-x",
|
||||
"@polkadot/api": "10.11.0",
|
||||
"@polkadot/api-augment": "10.11.0",
|
||||
"@polkadot/rpc-augment": "10.11.0",
|
||||
"@polkadot/rpc-provider": "10.11.0",
|
||||
"@polkadot/types": "10.11.0",
|
||||
"@polkadot/types-augment": "10.11.0",
|
||||
"@polkadot/types-codec": "10.11.0",
|
||||
"@polkadot/types-create": "10.11.0",
|
||||
"@polkadot/types-support": "10.11.0",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"@polkadot/util-crypto": "^12.6.1",
|
||||
"@polkadot/x-ws": "^12.6.1",
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.2-8-x",
|
||||
"version": "10.11.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types": "10.10.2-8-x",
|
||||
"@polkadot/types-codec": "10.10.2-8-x",
|
||||
"@polkadot/types": "10.11.0",
|
||||
"@polkadot/types-codec": "10.11.0",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"tslib": "^2.6.2"
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.2-8-x",
|
||||
"version": "10.11.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^12.6.1",
|
||||
@@ -26,9 +26,9 @@
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "10.10.2-8-x",
|
||||
"@polkadot/types-augment": "10.10.2-8-x",
|
||||
"@polkadot/types-support": "10.10.2-8-x",
|
||||
"@polkadot/types": "10.11.0",
|
||||
"@polkadot/types-augment": "10.11.0",
|
||||
"@polkadot/types-support": "10.11.0",
|
||||
"@polkadot/util-crypto": "^12.6.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,14 +18,14 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.2-8-x",
|
||||
"version": "10.11.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types-codec": "10.10.2-8-x",
|
||||
"@polkadot/types-codec": "10.11.0",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "10.10.2-8-x"
|
||||
"@polkadot/types": "10.11.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,17 +18,17 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.2-8-x",
|
||||
"version": "10.11.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/networks": "^12.6.1",
|
||||
"@polkadot/types": "10.10.2-8-x",
|
||||
"@polkadot/types-codec": "10.10.2-8-x",
|
||||
"@polkadot/types-create": "10.10.2-8-x",
|
||||
"@polkadot/types": "10.11.0",
|
||||
"@polkadot/types-codec": "10.11.0",
|
||||
"@polkadot/types-create": "10.11.0",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"tslib": "^2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "10.10.2-8-x"
|
||||
"@polkadot/api": "10.11.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.2-8-x",
|
||||
"version": "10.11.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^12.6.1",
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "10.10.2-8-x",
|
||||
"version": "10.11.0",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^12.6.1",
|
||||
"@polkadot/types-augment": "10.10.2-8-x",
|
||||
"@polkadot/types-codec": "10.10.2-8-x",
|
||||
"@polkadot/types-create": "10.10.2-8-x",
|
||||
"@polkadot/types-augment": "10.11.0",
|
||||
"@polkadot/types-codec": "10.11.0",
|
||||
"@polkadot/types-create": "10.11.0",
|
||||
"@polkadot/util": "^12.6.1",
|
||||
"@polkadot/util-crypto": "^12.6.1",
|
||||
"rxjs": "^7.8.1",
|
||||
@@ -32,6 +32,6 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^12.6.1",
|
||||
"@polkadot/types-support": "10.10.2-8-x"
|
||||
"@polkadot/types-support": "10.11.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ describe('Extrinsic', (): void => {
|
||||
'a90b' + // mortal era
|
||||
'1101' + // nonce, compact 68
|
||||
'0700ac23fc06' + // tip, 0.03 KSM
|
||||
'0600' + // balances.transfer (on Kusama this was 0400, changed here to match metadata)
|
||||
'0600' + // balances.transferAllowDeath (on Kusama this was 0400, changed here to match metadata)
|
||||
'00' + // MultiAddress, AccountId of recipient follows
|
||||
'495e1e506f266418af07fa0c5c108dd436f2faa59fe7d9e54403779f5bbd7718' + // recipient
|
||||
'0bc01eb1fc185f' // value, 104.560 KSM
|
||||
|
||||
Reference in New Issue
Block a user