Skip to content

Commit efc4a29

Browse files
authored
1 parent ed14218 commit efc4a29

File tree

23 files changed

+175
-174
lines changed

23 files changed

+175
-174
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CHANGELOG
22

3-
## master
3+
## 10.11.1 Nov 18, 2023
44

55
Contributed:
66

@@ -11,6 +11,7 @@ Changes:
1111

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

1617

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"sideEffects": false,
1616
"type": "module",
17-
"version": "10.10.2-8-x",
17+
"version": "10.11.0",
1818
"versions": {
1919
"git": "10.10.2-8-x",
2020
"npm": "10.10.1"

packages/api-augment/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
"./detectPackage.cjs"
1919
],
2020
"type": "module",
21-
"version": "10.10.2-8-x",
21+
"version": "10.11.0",
2222
"main": "index.js",
2323
"dependencies": {
24-
"@polkadot/api-base": "10.10.2-8-x",
25-
"@polkadot/rpc-augment": "10.10.2-8-x",
26-
"@polkadot/types": "10.10.2-8-x",
27-
"@polkadot/types-augment": "10.10.2-8-x",
28-
"@polkadot/types-codec": "10.10.2-8-x",
24+
"@polkadot/api-base": "10.11.0",
25+
"@polkadot/rpc-augment": "10.11.0",
26+
"@polkadot/types": "10.11.0",
27+
"@polkadot/types-augment": "10.11.0",
28+
"@polkadot/types-codec": "10.11.0",
2929
"@polkadot/util": "^12.6.1",
3030
"tslib": "^2.6.2"
3131
}

packages/api-base/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
"./detectPackage.cjs"
1919
],
2020
"type": "module",
21-
"version": "10.10.2-8-x",
21+
"version": "10.11.0",
2222
"main": "index.js",
2323
"dependencies": {
24-
"@polkadot/rpc-core": "10.10.2-8-x",
25-
"@polkadot/types": "10.10.2-8-x",
24+
"@polkadot/rpc-core": "10.11.0",
25+
"@polkadot/types": "10.11.0",
2626
"@polkadot/util": "^12.6.1",
2727
"rxjs": "^7.8.1",
2828
"tslib": "^2.6.2"

packages/api-contract/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@
1818
"./detectPackage.cjs"
1919
],
2020
"type": "module",
21-
"version": "10.10.2-8-x",
21+
"version": "10.11.0",
2222
"main": "index.js",
2323
"dependencies": {
24-
"@polkadot/api": "10.10.2-8-x",
25-
"@polkadot/api-augment": "10.10.2-8-x",
26-
"@polkadot/types": "10.10.2-8-x",
27-
"@polkadot/types-codec": "10.10.2-8-x",
28-
"@polkadot/types-create": "10.10.2-8-x",
24+
"@polkadot/api": "10.11.0",
25+
"@polkadot/api-augment": "10.11.0",
26+
"@polkadot/types": "10.11.0",
27+
"@polkadot/types-codec": "10.11.0",
28+
"@polkadot/types-create": "10.11.0",
2929
"@polkadot/util": "^12.6.1",
3030
"@polkadot/util-crypto": "^12.6.1",
3131
"rxjs": "^7.8.1",
3232
"tslib": "^2.6.2"
3333
},
3434
"devDependencies": {
35-
"@polkadot/api-augment": "10.10.2-8-x",
35+
"@polkadot/api-augment": "10.11.0",
3636
"@polkadot/keyring": "^12.6.1"
3737
}
3838
}

packages/api-derive/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,25 @@
1818
"./detectPackage.cjs"
1919
],
2020
"type": "module",
21-
"version": "10.10.2-8-x",
21+
"version": "10.11.0",
2222
"main": "index.js",
2323
"dependencies": {
24-
"@polkadot/api": "10.10.2-8-x",
25-
"@polkadot/api-augment": "10.10.2-8-x",
26-
"@polkadot/api-base": "10.10.2-8-x",
27-
"@polkadot/rpc-core": "10.10.2-8-x",
28-
"@polkadot/types": "10.10.2-8-x",
29-
"@polkadot/types-codec": "10.10.2-8-x",
24+
"@polkadot/api": "10.11.0",
25+
"@polkadot/api-augment": "10.11.0",
26+
"@polkadot/api-base": "10.11.0",
27+
"@polkadot/rpc-core": "10.11.0",
28+
"@polkadot/types": "10.11.0",
29+
"@polkadot/types-codec": "10.11.0",
3030
"@polkadot/util": "^12.6.1",
3131
"@polkadot/util-crypto": "^12.6.1",
3232
"rxjs": "^7.8.1",
3333
"tslib": "^2.6.2"
3434
},
3535
"devDependencies": {
36-
"@polkadot/api": "10.10.2-8-x",
37-
"@polkadot/api-augment": "10.10.2-8-x",
38-
"@polkadot/rpc-augment": "10.10.2-8-x",
39-
"@polkadot/rpc-provider": "10.10.2-8-x",
40-
"@polkadot/types-support": "10.10.2-8-x"
36+
"@polkadot/api": "10.11.0",
37+
"@polkadot/api-augment": "10.11.0",
38+
"@polkadot/rpc-augment": "10.11.0",
39+
"@polkadot/rpc-provider": "10.11.0",
40+
"@polkadot/types-support": "10.11.0"
4141
}
4242
}

packages/api-derive/src/bounties/bounties.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ describe('bounties derive', () => {
7474
});
7575

7676
it('creates proposal', function () {
77-
expect(createProposal(api.tx.balances.transfer('5EYCAe5ijiYfyeZ2JJCGq56LmPyNRAKzpG4QkoQkkQNB5e6Z', 1))).toBeTruthy();
77+
expect(createProposal(api.tx.balances.transferAllowDeath('5EYCAe5ijiYfyeZ2JJCGq56LmPyNRAKzpG4QkoQkkQNB5e6Z', 1))).toBeTruthy();
7878
});
7979

8080
it('combines bounties with descriptions', async () => {

packages/api/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,29 @@
1818
"./detectPackage.cjs"
1919
],
2020
"type": "module",
21-
"version": "10.10.2-8-x",
21+
"version": "10.11.0",
2222
"main": "index.js",
2323
"dependencies": {
24-
"@polkadot/api-augment": "10.10.2-8-x",
25-
"@polkadot/api-base": "10.10.2-8-x",
26-
"@polkadot/api-derive": "10.10.2-8-x",
24+
"@polkadot/api-augment": "10.11.0",
25+
"@polkadot/api-base": "10.11.0",
26+
"@polkadot/api-derive": "10.11.0",
2727
"@polkadot/keyring": "^12.6.1",
28-
"@polkadot/rpc-augment": "10.10.2-8-x",
29-
"@polkadot/rpc-core": "10.10.2-8-x",
30-
"@polkadot/rpc-provider": "10.10.2-8-x",
31-
"@polkadot/types": "10.10.2-8-x",
32-
"@polkadot/types-augment": "10.10.2-8-x",
33-
"@polkadot/types-codec": "10.10.2-8-x",
34-
"@polkadot/types-create": "10.10.2-8-x",
35-
"@polkadot/types-known": "10.10.2-8-x",
28+
"@polkadot/rpc-augment": "10.11.0",
29+
"@polkadot/rpc-core": "10.11.0",
30+
"@polkadot/rpc-provider": "10.11.0",
31+
"@polkadot/types": "10.11.0",
32+
"@polkadot/types-augment": "10.11.0",
33+
"@polkadot/types-codec": "10.11.0",
34+
"@polkadot/types-create": "10.11.0",
35+
"@polkadot/types-known": "10.11.0",
3636
"@polkadot/util": "^12.6.1",
3737
"@polkadot/util-crypto": "^12.6.1",
3838
"eventemitter3": "^5.0.1",
3939
"rxjs": "^7.8.1",
4040
"tslib": "^2.6.2"
4141
},
4242
"devDependencies": {
43-
"@polkadot/api-augment": "10.10.2-8-x",
44-
"@polkadot/types-support": "10.10.2-8-x"
43+
"@polkadot/api-augment": "10.11.0",
44+
"@polkadot/types-support": "10.11.0"
4545
}
4646
}

packages/api/src/base/Getters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export abstract class Getters<ApiType extends ApiTypes> extends Init<ApiType> im
219219
*
220220
* ```javascript
221221
* api.tx.balances
222-
* .transfer(<recipientId>, <balance>)
222+
* .transferAllowDeath(<recipientId>, <balance>)
223223
* .signAndSend(<keyPair>, ({status}) => {
224224
* console.log('tx status', status.asFinalized.toHex());
225225
* });

packages/api/src/checkTypes.manual.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ function types (api: ApiPromise): void {
243243

244244
async function tx (api: ApiPromise, pairs: TestKeyringMapSubstrate): Promise<void> {
245245
// transfer, also allows for bigint inputs here
246-
const transfer = api.tx.balances.transfer(pairs.bob.address, BigInt(123456789));
246+
const transfer = api.tx.balances.transferAllowDeath(pairs.bob.address, BigInt(123456789));
247247

248248
console.log('transfer casted', transfer as IMethod<AnyTuple>, transfer as IExtrinsic<AnyTuple>);
249249

@@ -254,19 +254,19 @@ async function tx (api: ApiPromise, pairs: TestKeyringMapSubstrate): Promise<voi
254254
const nonce = await api.query.system['accountNonce']<Index>(pairs.alice.address);
255255

256256
(await api.tx.balances
257-
.transfer(pairs.bob.address, 12345)
257+
.transferAllowDeath(pairs.bob.address, 12345)
258258
.signAndSend(pairs.alice, { nonce })
259259
).toHex();
260260

261261
// just with the callback
262262
await api.tx.balances
263-
.transfer(pairs.bob.address, 12345)
263+
.transferAllowDeath(pairs.bob.address, 12345)
264264
.signAndSend(pairs.alice, ({ status }: SubmittableResult) => console.log(status.type));
265265

266266
// with options and the callback
267267
const nonce2 = await api.query.system['accountNonce'](pairs.alice.address);
268268
const unsub2 = await api.tx.balances
269-
.transfer(pairs.bob.address, 12345)
269+
.transferAllowDeath(pairs.bob.address, 12345)
270270
.signAndSend(pairs.alice, { nonce: nonce2 }, ({ status }: SubmittableResult): void => {
271271
console.log('transfer status:', status.type);
272272

@@ -282,7 +282,7 @@ async function tx (api: ApiPromise, pairs: TestKeyringMapSubstrate): Promise<voi
282282
await api.tx.democracy['proxyVote'](123, { Split: { nay: 456, yay: 123 } }).signAndSend(pairs.alice);
283283

284284
// is
285-
if (api.tx.balances.transfer.is(second)) {
285+
if (api.tx.balances.transferAllowDeath.is(second)) {
286286
const [recipientId, balance] = second.args;
287287

288288
// should be LookupSource & Balance types

0 commit comments

Comments
 (0)