Skip to content

Commit 99774bb

Browse files
api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 10.7.1
1 parent f3da80a commit 99774bb

File tree

25 files changed

+324
-242
lines changed

25 files changed

+324
-242
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## master
44

5+
- api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 10.7.1
56
- phishing 0.21.3
67
- hw-{ledger, ledger-transports}, keyring, networks, util, util-crypto, x-{bigint, fetch, global, randomvalues, textdecoder, textencoder, ws} 12.2.1
78
- wasm-{bridge, crypto, crypto-{asmjs, init, wasm}, util} 7.2.1

api-augment/kusama/errors.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,11 +1293,6 @@ declare module 'https://deno.land/x/polkadot/api-base/types/errors.ts' {
12931293
* Para is not registered in our system.
12941294
**/
12951295
NotRegistered: AugmentedError<ApiType>;
1296-
/**
1297-
* The PVF pre-checking statement cannot be included since the PVF pre-checking mechanism
1298-
* is disabled.
1299-
**/
1300-
PvfCheckDisabled: AugmentedError<ApiType>;
13011296
/**
13021297
* The given validator already has cast a vote.
13031298
**/

api-augment/kusama/tx.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3490,7 +3490,6 @@ declare module 'https://deno.land/x/polkadot/api-base/types/submittable.ts' {
34903490
/**
34913491
* Make some on-chain remark.
34923492
*
3493-
* ## Complexity
34943493
* - `O(1)`
34953494
**/
34963495
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
@@ -3500,16 +3499,10 @@ declare module 'https://deno.land/x/polkadot/api-base/types/submittable.ts' {
35003499
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
35013500
/**
35023501
* Set the new runtime code.
3503-
*
3504-
* ## Complexity
3505-
* - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
35063502
**/
35073503
setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
35083504
/**
35093505
* Set the new runtime code without doing any checks of the given `code`.
3510-
*
3511-
* ## Complexity
3512-
* - `O(C)` where `C` length of `code`
35133506
**/
35143507
setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
35153508
/**

api-augment/packageInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

22

3-
export const packageInfo = { name: '@polkadot/api-augment', path: new URL(import.meta.url).pathname, type: 'deno', version: '10.6.1' };
3+
export const packageInfo = { name: '@polkadot/api-augment', path: new URL(import.meta.url).pathname, type: 'deno', version: '10.7.1' };

api-augment/polkadot/errors.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,11 +1229,6 @@ declare module 'https://deno.land/x/polkadot/api-base/types/errors.ts' {
12291229
* Para is not registered in our system.
12301230
**/
12311231
NotRegistered: AugmentedError<ApiType>;
1232-
/**
1233-
* The PVF pre-checking statement cannot be included since the PVF pre-checking mechanism
1234-
* is disabled.
1235-
**/
1236-
PvfCheckDisabled: AugmentedError<ApiType>;
12371232
/**
12381233
* The given validator already has cast a vote.
12391234
**/

api-augment/polkadot/tx.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3323,7 +3323,6 @@ declare module 'https://deno.land/x/polkadot/api-base/types/submittable.ts' {
33233323
/**
33243324
* Make some on-chain remark.
33253325
*
3326-
* ## Complexity
33273326
* - `O(1)`
33283327
**/
33293328
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
@@ -3333,16 +3332,10 @@ declare module 'https://deno.land/x/polkadot/api-base/types/submittable.ts' {
33333332
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
33343333
/**
33353334
* Set the new runtime code.
3336-
*
3337-
* ## Complexity
3338-
* - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
33393335
**/
33403336
setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
33413337
/**
33423338
* Set the new runtime code without doing any checks of the given `code`.
3343-
*
3344-
* ## Complexity
3345-
* - `O(C)` where `C` length of `code`
33463339
**/
33473340
setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
33483341
/**

api-augment/substrate/events.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ declare module 'https://deno.land/x/polkadot/api-base/types/events.ts' {
148148
* Some asset `asset_id` was thawed.
149149
**/
150150
AssetThawed: AugmentedEvent<ApiType, [assetId: u32], { assetId: u32 }>;
151+
/**
152+
* Some account `who` was blocked.
153+
**/
154+
Blocked: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32], { assetId: u32, who: AccountId32 }>;
151155
/**
152156
* Some assets were destroyed.
153157
**/
@@ -196,6 +200,10 @@ declare module 'https://deno.land/x/polkadot/api-base/types/events.ts' {
196200
* Some account `who` was thawed.
197201
**/
198202
Thawed: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32], { assetId: u32, who: AccountId32 }>;
203+
/**
204+
* Some account `who` was created with a deposit from `depositor`.
205+
**/
206+
Touched: AugmentedEvent<ApiType, [assetId: u32, who: AccountId32, depositor: AccountId32], { assetId: u32, who: AccountId32, depositor: AccountId32 }>;
199207
/**
200208
* Some assets were transferred.
201209
**/

api-augment/substrate/tx.ts

Lines changed: 53 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,19 @@ declare module 'https://deno.land/x/polkadot/api-base/types/submittable.ts' {
273273
* Weight: `O(1)`
274274
**/
275275
approveTransfer: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, Compact<u128>]>;
276+
/**
277+
* Disallow further unprivileged transfers of an asset `id` to and from an account `who`.
278+
*
279+
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
280+
*
281+
* - `id`: The identifier of the account's asset.
282+
* - `who`: The account to be unblocked.
283+
*
284+
* Emits `Blocked`.
285+
*
286+
* Weight: `O(1)`
287+
**/
288+
block: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
276289
/**
277290
* Reduce the balance of `who` by as much as possible up to `amount` assets of `id`.
278291
*
@@ -503,7 +516,9 @@ declare module 'https://deno.land/x/polkadot/api-base/types/submittable.ts' {
503516
**/
504517
forceTransfer: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, MultiAddress, Compact<u128>]>;
505518
/**
506-
* Disallow further unprivileged transfers from an account.
519+
* Disallow further unprivileged transfers of an asset `id` from an account `who`. `who`
520+
* must already exist as an entry in `Account`s of the asset. If you want to freeze an
521+
* account that does not have an entry, use `touch_other` first.
507522
*
508523
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
509524
*
@@ -543,16 +558,31 @@ declare module 'https://deno.land/x/polkadot/api-base/types/submittable.ts' {
543558
**/
544559
mint: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, Compact<u128>]>;
545560
/**
546-
* Return the deposit (if any) of an asset account.
561+
* Return the deposit (if any) of an asset account or a consumer reference (if any) of an
562+
* account.
547563
*
548564
* The origin must be Signed.
549565
*
550-
* - `id`: The identifier of the asset for the account to be created.
566+
* - `id`: The identifier of the asset for which the caller would like the deposit
567+
* refunded.
551568
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
552569
*
553570
* Emits `Refunded` event when successful.
554571
**/
555572
refund: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, allowBurn: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, bool]>;
573+
/**
574+
* Return the deposit (if any) of a target asset account. Useful if you are the depositor.
575+
*
576+
* The origin must be Signed and either the account owner, depositor, or asset `Admin`. In
577+
* order to burn a non-zero balance of the asset, the caller must be the account and should
578+
* use `refund`.
579+
*
580+
* - `id`: The identifier of the asset for the account holding a deposit.
581+
* - `who`: The account to refund.
582+
*
583+
* Emits `Refunded` event when successful.
584+
**/
585+
refundOther: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
556586
/**
557587
* Set the metadata for an asset.
558588
*
@@ -617,7 +647,7 @@ declare module 'https://deno.land/x/polkadot/api-base/types/submittable.ts' {
617647
**/
618648
startDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
619649
/**
620-
* Allow unprivileged transfers from an account again.
650+
* Allow unprivileged transfers to and from an account again.
621651
*
622652
* Origin must be Signed and the sender should be the Admin of the asset `id`.
623653
*
@@ -653,6 +683,19 @@ declare module 'https://deno.land/x/polkadot/api-base/types/submittable.ts' {
653683
* Emits `Touched` event when successful.
654684
**/
655685
touch: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
686+
/**
687+
* Create an asset account for `who`.
688+
*
689+
* A deposit will be taken from the signer account.
690+
*
691+
* - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account
692+
* must have sufficient funds for a deposit to be taken.
693+
* - `id`: The identifier of the asset for the account to be created.
694+
* - `who`: The account to be created.
695+
*
696+
* Emits `Touched` event when successful.
697+
**/
698+
touchOther: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress]>;
656699
/**
657700
* Move some assets from the sender account to another.
658701
*
@@ -4577,7 +4620,7 @@ declare module 'https://deno.land/x/polkadot/api-base/types/submittable.ts' {
45774620
* NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned
45784621
* unless the `origin` falls below _existential deposit_ and gets removed as dust.
45794622
**/
4580-
bond: AugmentedSubmittable<(controller: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, payee: PalletStakingRewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | { None: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, PalletStakingRewardDestination]>;
4623+
bond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, payee: PalletStakingRewardDestination | { Staked: any } | { Stash: any } | { Controller: any } | { Account: any } | { None: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, PalletStakingRewardDestination]>;
45814624
/**
45824625
* Add some extra amount that have appeared in the stash `free_balance` into the balance up
45834626
* for staking.
@@ -4789,7 +4832,10 @@ declare module 'https://deno.land/x/polkadot/api-base/types/submittable.ts' {
47894832
**/
47904833
scaleValidatorCount: AugmentedSubmittable<(factor: Percent | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Percent]>;
47914834
/**
4792-
* (Re-)set the controller of a stash.
4835+
* (Re-)sets the controller of a stash to the stash itself. This function previously
4836+
* accepted a `controller` argument to set the controller to an account other than the
4837+
* stash itself. This functionality has now been removed, now only setting the controller
4838+
* to the stash, if it is not already.
47934839
*
47944840
* Effects will be felt instantly (as soon as this function is completed successfully).
47954841
*
@@ -4801,7 +4847,7 @@ declare module 'https://deno.land/x/polkadot/api-base/types/submittable.ts' {
48014847
* - Contains a limited number of reads.
48024848
* - Writes are limited to the `origin` account key.
48034849
**/
4804-
setController: AugmentedSubmittable<(controller: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
4850+
setController: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
48054851
/**
48064852
* Set the validators who cannot be slashed (if any).
48074853
*
@@ -5040,7 +5086,6 @@ declare module 'https://deno.land/x/polkadot/api-base/types/submittable.ts' {
50405086
/**
50415087
* Make some on-chain remark.
50425088
*
5043-
* ## Complexity
50445089
* - `O(1)`
50455090
**/
50465091
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
@@ -5050,16 +5095,10 @@ declare module 'https://deno.land/x/polkadot/api-base/types/submittable.ts' {
50505095
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
50515096
/**
50525097
* Set the new runtime code.
5053-
*
5054-
* ## Complexity
5055-
* - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
50565098
**/
50575099
setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
50585100
/**
50595101
* Set the new runtime code without doing any checks of the given `code`.
5060-
*
5061-
* ## Complexity
5062-
* - `O(C)` where `C` length of `code`
50635102
**/
50645103
setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
50655104
/**

api-base/packageInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

22

3-
export const packageInfo = { name: '@polkadot/api-base', path: new URL(import.meta.url).pathname, type: 'deno', version: '10.6.1' };
3+
export const packageInfo = { name: '@polkadot/api-base', path: new URL(import.meta.url).pathname, type: 'deno', version: '10.7.1' };

api-contract/packageInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

22

3-
export const packageInfo = { name: '@polkadot/api-contract', path: new URL(import.meta.url).pathname, type: 'deno', version: '10.6.1' };
3+
export const packageInfo = { name: '@polkadot/api-contract', path: new URL(import.meta.url).pathname, type: 'deno', version: '10.7.1' };

0 commit comments

Comments
 (0)