Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10.11.1 #5759

Merged
merged 1 commit into from
Nov 18, 2023
Merged

10.11.1 #5759

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CHANGELOG

## master
## 10.11.1 Nov 18, 2023

Contributed:

Expand All @@ -11,6 +11,7 @@ Changes:

- Add known `intrablockEntropy` storage key
- Add support for `SkipCheckIfFeeless` signed extension
- Ensure all usages of `balances.transfer` (in tests) have been removed
- Drop support for Node 16 (EOL 11 Sep 2023)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"sideEffects": false,
"type": "module",
"version": "10.10.2-8-x",
"version": "10.11.0",
"versions": {
"git": "10.10.2-8-x",
"npm": "10.10.1"
Expand Down
12 changes: 6 additions & 6 deletions packages/api-augment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/api-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
14 changes: 7 additions & 7 deletions packages/api-contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
24 changes: 12 additions & 12 deletions packages/api-derive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion packages/api-derive/src/bounties/bounties.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down
28 changes: 14 additions & 14 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,29 @@
"./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",
"rxjs": "^7.8.1",
"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"
}
}
2 changes: 1 addition & 1 deletion packages/api/src/base/Getters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
* });
Expand Down
10 changes: 5 additions & 5 deletions packages/api/src/checkTypes.manual.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>);

Expand All @@ -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);

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/rx/Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions packages/rpc-augment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
10 changes: 5 additions & 5 deletions packages/rpc-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
6 changes: 3 additions & 3 deletions packages/rpc-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
20 changes: 10 additions & 10 deletions packages/typegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions packages/types-augment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
8 changes: 4 additions & 4 deletions packages/types-codec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "10.10.2-8-x",
"version": "10.11.0",
"main": "index.js",
"dependencies": {
"@polkadot/util": "^12.6.1",
"@polkadot/x-bigint": "^12.6.1",
"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"
}
}
6 changes: 3 additions & 3 deletions packages/types-create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Loading