@polkadot/api-augment 15.0.2 → 15.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/packageInfo.js +1 -1
- package/cjs/substrate/consts.d.ts +24 -8
- package/cjs/substrate/errors.d.ts +65 -17
- package/cjs/substrate/events.d.ts +138 -42
- package/cjs/substrate/query.d.ts +94 -22
- package/cjs/substrate/runtime.d.ts +28 -16
- package/cjs/substrate/tx.d.ts +189 -52
- package/package.json +6 -6
- package/packageInfo.js +1 -1
- package/substrate/consts.d.ts +24 -8
- package/substrate/errors.d.ts +65 -17
- package/substrate/events.d.ts +138 -42
- package/substrate/query.d.ts +94 -22
- package/substrate/runtime.d.ts +28 -16
- package/substrate/tx.d.ts +189 -52
package/cjs/substrate/tx.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableE
|
|
|
3
3
|
import type { Data } from '@polkadot/types';
|
|
4
4
|
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
6
|
-
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
+
import type { AccountId32, Call, H160, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
7
7
|
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerOnDemandRevenueRecord, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsTypeOption, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, PalletMixnetRegistration, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyForkVotingProofAncestryProof, SpConsensusBeefyFutureBlockVotingProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
8
8
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
9
9
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
@@ -215,6 +215,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
215
215
|
* - `P` complexity of dispatching `proposal`
|
|
216
216
|
**/
|
|
217
217
|
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
|
218
|
+
/**
|
|
219
|
+
* Disapprove the proposal and burn the cost held for storing this proposal.
|
|
220
|
+
*
|
|
221
|
+
* Parameters:
|
|
222
|
+
* - `origin`: must be the `KillOrigin`.
|
|
223
|
+
* - `proposal_hash`: The hash of the proposal that should be killed.
|
|
224
|
+
*
|
|
225
|
+
* Emits `Killed` and `ProposalCostBurned` if any cost was held for a given proposal.
|
|
226
|
+
**/
|
|
227
|
+
kill: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
218
228
|
/**
|
|
219
229
|
* Add a new proposal to either be voted on or executed directly.
|
|
220
230
|
*
|
|
@@ -232,6 +242,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
232
242
|
* - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
|
|
233
243
|
**/
|
|
234
244
|
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
|
245
|
+
/**
|
|
246
|
+
* Release the cost held for storing a proposal once the given proposal is completed.
|
|
247
|
+
*
|
|
248
|
+
* If there is no associated cost for the given proposal, this call will have no effect.
|
|
249
|
+
*
|
|
250
|
+
* Parameters:
|
|
251
|
+
* - `origin`: must be `Signed` or `Root`.
|
|
252
|
+
* - `proposal_hash`: The hash of the proposal.
|
|
253
|
+
*
|
|
254
|
+
* Emits `ProposalCostReleased` if any cost held for a given proposal.
|
|
255
|
+
**/
|
|
256
|
+
releaseProposalCost: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
235
257
|
/**
|
|
236
258
|
* Set the collective's membership.
|
|
237
259
|
*
|
|
@@ -412,21 +434,33 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
412
434
|
* ## Complexity
|
|
413
435
|
* - O(1)
|
|
414
436
|
**/
|
|
415
|
-
create: AugmentedSubmittable<(assetKind:
|
|
437
|
+
create: AugmentedSubmittable<(assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId | {
|
|
438
|
+
Native: any;
|
|
439
|
+
} | {
|
|
440
|
+
WithId: any;
|
|
441
|
+
} | string | Uint8Array, rate: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>;
|
|
416
442
|
/**
|
|
417
443
|
* Remove an existing conversion rate to native balance for the given asset.
|
|
418
444
|
*
|
|
419
445
|
* ## Complexity
|
|
420
446
|
* - O(1)
|
|
421
447
|
**/
|
|
422
|
-
remove: AugmentedSubmittable<(assetKind:
|
|
448
|
+
remove: AugmentedSubmittable<(assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId | {
|
|
449
|
+
Native: any;
|
|
450
|
+
} | {
|
|
451
|
+
WithId: any;
|
|
452
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportTokensFungibleUnionOfNativeOrWithId]>;
|
|
423
453
|
/**
|
|
424
454
|
* Update the conversion rate to native balance for the given asset.
|
|
425
455
|
*
|
|
426
456
|
* ## Complexity
|
|
427
457
|
* - O(1)
|
|
428
458
|
**/
|
|
429
|
-
update: AugmentedSubmittable<(assetKind:
|
|
459
|
+
update: AugmentedSubmittable<(assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId | {
|
|
460
|
+
Native: any;
|
|
461
|
+
} | {
|
|
462
|
+
WithId: any;
|
|
463
|
+
} | string | Uint8Array, rate: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>;
|
|
430
464
|
/**
|
|
431
465
|
* Generic tx
|
|
432
466
|
**/
|
|
@@ -1596,6 +1630,30 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1596
1630
|
* - O(1).
|
|
1597
1631
|
**/
|
|
1598
1632
|
approveBounty: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
1633
|
+
/**
|
|
1634
|
+
* Approve bountry and propose a curator simultaneously.
|
|
1635
|
+
* This call is a shortcut to calling `approve_bounty` and `propose_curator` separately.
|
|
1636
|
+
*
|
|
1637
|
+
* May only be called from `T::SpendOrigin`.
|
|
1638
|
+
*
|
|
1639
|
+
* - `bounty_id`: Bounty ID to approve.
|
|
1640
|
+
* - `curator`: The curator account whom will manage this bounty.
|
|
1641
|
+
* - `fee`: The curator fee.
|
|
1642
|
+
*
|
|
1643
|
+
* ## Complexity
|
|
1644
|
+
* - O(1).
|
|
1645
|
+
**/
|
|
1646
|
+
approveBountyWithCurator: AugmentedSubmittable<(bountyId: Compact<u32> | AnyNumber | Uint8Array, curator: MultiAddress | {
|
|
1647
|
+
Id: any;
|
|
1648
|
+
} | {
|
|
1649
|
+
Index: any;
|
|
1650
|
+
} | {
|
|
1651
|
+
Raw: any;
|
|
1652
|
+
} | {
|
|
1653
|
+
Address32: any;
|
|
1654
|
+
} | {
|
|
1655
|
+
Address20: any;
|
|
1656
|
+
} | string | Uint8Array, fee: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, Compact<u128>]>;
|
|
1599
1657
|
/**
|
|
1600
1658
|
* Award bounty to a beneficiary account. The beneficiary will be able to claim the funds
|
|
1601
1659
|
* after a delay.
|
|
@@ -2654,6 +2712,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2654
2712
|
* - `P` complexity of dispatching `proposal`
|
|
2655
2713
|
**/
|
|
2656
2714
|
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
|
2715
|
+
/**
|
|
2716
|
+
* Disapprove the proposal and burn the cost held for storing this proposal.
|
|
2717
|
+
*
|
|
2718
|
+
* Parameters:
|
|
2719
|
+
* - `origin`: must be the `KillOrigin`.
|
|
2720
|
+
* - `proposal_hash`: The hash of the proposal that should be killed.
|
|
2721
|
+
*
|
|
2722
|
+
* Emits `Killed` and `ProposalCostBurned` if any cost was held for a given proposal.
|
|
2723
|
+
**/
|
|
2724
|
+
kill: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
2657
2725
|
/**
|
|
2658
2726
|
* Add a new proposal to either be voted on or executed directly.
|
|
2659
2727
|
*
|
|
@@ -2671,6 +2739,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2671
2739
|
* - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
|
|
2672
2740
|
**/
|
|
2673
2741
|
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
|
2742
|
+
/**
|
|
2743
|
+
* Release the cost held for storing a proposal once the given proposal is completed.
|
|
2744
|
+
*
|
|
2745
|
+
* If there is no associated cost for the given proposal, this call will have no effect.
|
|
2746
|
+
*
|
|
2747
|
+
* Parameters:
|
|
2748
|
+
* - `origin`: must be `Signed` or `Root`.
|
|
2749
|
+
* - `proposal_hash`: The hash of the proposal.
|
|
2750
|
+
*
|
|
2751
|
+
* Emits `ProposalCostReleased` if any cost held for a given proposal.
|
|
2752
|
+
**/
|
|
2753
|
+
releaseProposalCost: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
2674
2754
|
/**
|
|
2675
2755
|
* Set the collective's membership.
|
|
2676
2756
|
*
|
|
@@ -3489,8 +3569,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3489
3569
|
/**
|
|
3490
3570
|
* Add an `AccountId` with permission to grant usernames with a given `suffix` appended.
|
|
3491
3571
|
*
|
|
3492
|
-
* The authority can grant up to `allocation` usernames. To top up
|
|
3493
|
-
*
|
|
3572
|
+
* The authority can grant up to `allocation` usernames. To top up the allocation or
|
|
3573
|
+
* change the account used to grant usernames, this call can be used with the updated
|
|
3574
|
+
* parameters to overwrite the existing configuration.
|
|
3494
3575
|
**/
|
|
3495
3576
|
addUsernameAuthority: AugmentedSubmittable<(authority: MultiAddress | {
|
|
3496
3577
|
Id: any;
|
|
@@ -3552,6 +3633,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3552
3633
|
} | {
|
|
3553
3634
|
Address20: any;
|
|
3554
3635
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
3636
|
+
/**
|
|
3637
|
+
* Call with [ForceOrigin](crate::Config::ForceOrigin) privileges which deletes a username
|
|
3638
|
+
* and slashes any deposit associated with it.
|
|
3639
|
+
**/
|
|
3640
|
+
killUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
3555
3641
|
/**
|
|
3556
3642
|
* Provide a judgement for an account's identity.
|
|
3557
3643
|
*
|
|
@@ -3607,11 +3693,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3607
3693
|
* controller of an account is maliciously registered as a sub-account.
|
|
3608
3694
|
**/
|
|
3609
3695
|
quitSub: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3610
|
-
/**
|
|
3611
|
-
* Remove a username that corresponds to an account with no identity. Exists when a user
|
|
3612
|
-
* gets a username but then calls `clear_identity`.
|
|
3613
|
-
**/
|
|
3614
|
-
removeDanglingUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
3615
3696
|
/**
|
|
3616
3697
|
* Remove an expired username approval. The username was approved by an authority but never
|
|
3617
3698
|
* accepted by the user and must now be beyond its expiration. The call must include the
|
|
@@ -3638,10 +3719,15 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3638
3719
|
} | {
|
|
3639
3720
|
Address20: any;
|
|
3640
3721
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
3722
|
+
/**
|
|
3723
|
+
* Permanently delete a username which has been unbinding for longer than the grace period.
|
|
3724
|
+
* Caller is refunded the fee if the username expired and the removal was successful.
|
|
3725
|
+
**/
|
|
3726
|
+
removeUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
3641
3727
|
/**
|
|
3642
3728
|
* Remove `authority` from the username authorities.
|
|
3643
3729
|
**/
|
|
3644
|
-
removeUsernameAuthority: AugmentedSubmittable<(authority: MultiAddress | {
|
|
3730
|
+
removeUsernameAuthority: AugmentedSubmittable<(suffix: Bytes | string | Uint8Array, authority: MultiAddress | {
|
|
3645
3731
|
Id: any;
|
|
3646
3732
|
} | {
|
|
3647
3733
|
Index: any;
|
|
@@ -3651,7 +3737,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3651
3737
|
Address32: any;
|
|
3652
3738
|
} | {
|
|
3653
3739
|
Address20: any;
|
|
3654
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress]>;
|
|
3740
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, MultiAddress]>;
|
|
3655
3741
|
/**
|
|
3656
3742
|
* Alter the associated name of the given sub-account.
|
|
3657
3743
|
*
|
|
@@ -3794,7 +3880,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3794
3880
|
/**
|
|
3795
3881
|
* Set the username for `who`. Must be called by a username authority.
|
|
3796
3882
|
*
|
|
3797
|
-
*
|
|
3883
|
+
* If `use_allocation` is set, the authority must have a username allocation available to
|
|
3884
|
+
* spend. Otherwise, the authority will need to put up a deposit for registering the
|
|
3885
|
+
* username.
|
|
3886
|
+
*
|
|
3887
|
+
* Users can either pre-sign their usernames or
|
|
3798
3888
|
* accept them later.
|
|
3799
3889
|
*
|
|
3800
3890
|
* Usernames must:
|
|
@@ -3818,7 +3908,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3818
3908
|
Sr25519: any;
|
|
3819
3909
|
} | {
|
|
3820
3910
|
Ecdsa: any;
|
|
3821
|
-
} | string) => SubmittableExtrinsic<ApiType>, [MultiAddress, Bytes, Option<SpRuntimeMultiSignature
|
|
3911
|
+
} | string, useAllocation: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Bytes, Option<SpRuntimeMultiSignature>, bool]>;
|
|
3912
|
+
/**
|
|
3913
|
+
* Start the process of removing a username by placing it in the unbinding usernames map.
|
|
3914
|
+
* Once the grace period has passed, the username can be deleted by calling
|
|
3915
|
+
* [remove_username](crate::Call::remove_username).
|
|
3916
|
+
**/
|
|
3917
|
+
unbindUsername: AugmentedSubmittable<(username: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
|
|
3822
3918
|
/**
|
|
3823
3919
|
* Generic tx
|
|
3824
3920
|
**/
|
|
@@ -7463,20 +7559,39 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7463
7559
|
* * If no account exists and the call value is not less than `existential_deposit`,
|
|
7464
7560
|
* a regular account will be created and any value will be transferred.
|
|
7465
7561
|
**/
|
|
7466
|
-
call: AugmentedSubmittable<(dest:
|
|
7467
|
-
Id: any;
|
|
7468
|
-
} | {
|
|
7469
|
-
Index: any;
|
|
7470
|
-
} | {
|
|
7471
|
-
Raw: any;
|
|
7472
|
-
} | {
|
|
7473
|
-
Address32: any;
|
|
7474
|
-
} | {
|
|
7475
|
-
Address20: any;
|
|
7476
|
-
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
7562
|
+
call: AugmentedSubmittable<(dest: H160 | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
7477
7563
|
refTime?: any;
|
|
7478
7564
|
proofSize?: any;
|
|
7479
|
-
} | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7565
|
+
} | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, Compact<u128>, SpWeightsWeightV2Weight, Compact<u128>, Bytes]>;
|
|
7566
|
+
/**
|
|
7567
|
+
* Dispatch an `call` with the origin set to the callers fallback address.
|
|
7568
|
+
*
|
|
7569
|
+
* Every `AccountId32` can control its corresponding fallback account. The fallback account
|
|
7570
|
+
* is the `AccountId20` with the last 12 bytes set to `0xEE`. This is essentially a
|
|
7571
|
+
* recovery function in case an `AccountId20` was used without creating a mapping first.
|
|
7572
|
+
**/
|
|
7573
|
+
dispatchAsFallbackAccount: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
|
|
7574
|
+
/**
|
|
7575
|
+
* A raw EVM transaction, typically dispatched by an Ethereum JSON-RPC server.
|
|
7576
|
+
*
|
|
7577
|
+
* # Parameters
|
|
7578
|
+
*
|
|
7579
|
+
* * `payload`: The RLP-encoded [`crate::evm::TransactionLegacySigned`].
|
|
7580
|
+
* * `gas_limit`: The gas limit enforced during contract execution.
|
|
7581
|
+
* * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
|
|
7582
|
+
* storage usage.
|
|
7583
|
+
*
|
|
7584
|
+
* # Note
|
|
7585
|
+
*
|
|
7586
|
+
* This call cannot be dispatched directly; attempting to do so will result in a failed
|
|
7587
|
+
* transaction. It serves as a wrapper for an Ethereum transaction. When submitted, the
|
|
7588
|
+
* runtime converts it into a [`sp_runtime::generic::CheckedExtrinsic`] by recovering the
|
|
7589
|
+
* signer and validating the transaction.
|
|
7590
|
+
**/
|
|
7591
|
+
ethTransact: AugmentedSubmittable<(payload: Bytes | string | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
7592
|
+
refTime?: any;
|
|
7593
|
+
proofSize?: any;
|
|
7594
|
+
} | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, SpWeightsWeightV2Weight, Compact<u128>]>;
|
|
7480
7595
|
/**
|
|
7481
7596
|
* Instantiates a contract from a previously deployed wasm binary.
|
|
7482
7597
|
*
|
|
@@ -7487,7 +7602,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7487
7602
|
instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
7488
7603
|
refTime?: any;
|
|
7489
7604
|
proofSize?: any;
|
|
7490
|
-
} | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt:
|
|
7605
|
+
} | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Option<U8aFixed> | null | Uint8Array | U8aFixed | string) => SubmittableExtrinsic<ApiType>, [Compact<u128>, SpWeightsWeightV2Weight, Compact<u128>, H256, Bytes, Option<U8aFixed>]>;
|
|
7491
7606
|
/**
|
|
7492
7607
|
* Instantiates a new contract from the supplied `code` optionally transferring
|
|
7493
7608
|
* some balance.
|
|
@@ -7504,7 +7619,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7504
7619
|
* from the caller to pay for the storage consumed.
|
|
7505
7620
|
* * `code`: The contract code to deploy in raw bytes.
|
|
7506
7621
|
* * `data`: The input data to pass to the contract constructor.
|
|
7507
|
-
* * `salt`: Used for the address derivation.
|
|
7622
|
+
* * `salt`: Used for the address derivation. If `Some` is supplied then `CREATE2`
|
|
7623
|
+
* semantics are used. If `None` then `CRATE1` is used.
|
|
7624
|
+
*
|
|
7508
7625
|
*
|
|
7509
7626
|
* Instantiation is executed as follows:
|
|
7510
7627
|
*
|
|
@@ -7518,17 +7635,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7518
7635
|
instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
7519
7636
|
refTime?: any;
|
|
7520
7637
|
proofSize?: any;
|
|
7521
|
-
} | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt:
|
|
7638
|
+
} | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Option<U8aFixed> | null | Uint8Array | U8aFixed | string) => SubmittableExtrinsic<ApiType>, [Compact<u128>, SpWeightsWeightV2Weight, Compact<u128>, Bytes, Bytes, Option<U8aFixed>]>;
|
|
7522
7639
|
/**
|
|
7523
|
-
*
|
|
7524
|
-
*
|
|
7525
|
-
*
|
|
7526
|
-
*
|
|
7640
|
+
* Register the callers account id so that it can be used in contract interactions.
|
|
7641
|
+
*
|
|
7642
|
+
* This will error if the origin is already mapped or is a eth native `Address20`. It will
|
|
7643
|
+
* take a deposit that can be released by calling [`Self::unmap_account`].
|
|
7527
7644
|
**/
|
|
7528
|
-
|
|
7529
|
-
refTime?: any;
|
|
7530
|
-
proofSize?: any;
|
|
7531
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpWeightsWeightV2Weight]>;
|
|
7645
|
+
mapAccount: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
7532
7646
|
/**
|
|
7533
7647
|
* Remove the code stored under `code_hash` and refund the deposit to its owner.
|
|
7534
7648
|
*
|
|
@@ -7548,17 +7662,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7548
7662
|
* that the contract address is no longer derived from its code hash after calling
|
|
7549
7663
|
* this dispatchable.
|
|
7550
7664
|
**/
|
|
7551
|
-
setCode: AugmentedSubmittable<(dest:
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
} | {
|
|
7560
|
-
Address20: any;
|
|
7561
|
-
} | string | Uint8Array, codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
|
|
7665
|
+
setCode: AugmentedSubmittable<(dest: H160 | string | Uint8Array, codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H160, H256]>;
|
|
7666
|
+
/**
|
|
7667
|
+
* Unregister the callers account id in order to free the deposit.
|
|
7668
|
+
*
|
|
7669
|
+
* There is no reason to ever call this function other than freeing up the deposit.
|
|
7670
|
+
* This is only useful when the account should no longer be used.
|
|
7671
|
+
**/
|
|
7672
|
+
unmapAccount: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
7562
7673
|
/**
|
|
7563
7674
|
* Upload new `code` without instantiating a contract from it.
|
|
7564
7675
|
*
|
|
@@ -8554,7 +8665,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
8554
8665
|
/**
|
|
8555
8666
|
* Schedule a portion of the stash to be unlocked ready for transfer out after the bond
|
|
8556
8667
|
* period ends. If this leaves an amount actively bonded less than
|
|
8557
|
-
*
|
|
8668
|
+
* [`asset::existential_deposit`], then it is increased to the full amount.
|
|
8558
8669
|
*
|
|
8559
8670
|
* The dispatch origin for this call must be _Signed_ by the controller, not the stash.
|
|
8560
8671
|
*
|
|
@@ -8910,6 +9021,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
8910
9021
|
* - `P` complexity of dispatching `proposal`
|
|
8911
9022
|
**/
|
|
8912
9023
|
execute: AugmentedSubmittable<(proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, Compact<u32>]>;
|
|
9024
|
+
/**
|
|
9025
|
+
* Disapprove the proposal and burn the cost held for storing this proposal.
|
|
9026
|
+
*
|
|
9027
|
+
* Parameters:
|
|
9028
|
+
* - `origin`: must be the `KillOrigin`.
|
|
9029
|
+
* - `proposal_hash`: The hash of the proposal that should be killed.
|
|
9030
|
+
*
|
|
9031
|
+
* Emits `Killed` and `ProposalCostBurned` if any cost was held for a given proposal.
|
|
9032
|
+
**/
|
|
9033
|
+
kill: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
8913
9034
|
/**
|
|
8914
9035
|
* Add a new proposal to either be voted on or executed directly.
|
|
8915
9036
|
*
|
|
@@ -8927,6 +9048,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
8927
9048
|
* - `P2` is proposals-count (code-bounded) (`threshold >= 2`)
|
|
8928
9049
|
**/
|
|
8929
9050
|
propose: AugmentedSubmittable<(threshold: Compact<u32> | AnyNumber | Uint8Array, proposal: Call | IMethod | string | Uint8Array, lengthBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Call, Compact<u32>]>;
|
|
9051
|
+
/**
|
|
9052
|
+
* Release the cost held for storing a proposal once the given proposal is completed.
|
|
9053
|
+
*
|
|
9054
|
+
* If there is no associated cost for the given proposal, this call will have no effect.
|
|
9055
|
+
*
|
|
9056
|
+
* Parameters:
|
|
9057
|
+
* - `origin`: must be `Signed` or `Root`.
|
|
9058
|
+
* - `proposal_hash`: The hash of the proposal.
|
|
9059
|
+
*
|
|
9060
|
+
* Emits `ProposalCostReleased` if any cost held for a given proposal.
|
|
9061
|
+
**/
|
|
9062
|
+
releaseProposalCost: AugmentedSubmittable<(proposalHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
|
8930
9063
|
/**
|
|
8931
9064
|
* Set the collective's membership.
|
|
8932
9065
|
*
|
|
@@ -9383,7 +9516,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
9383
9516
|
*
|
|
9384
9517
|
* Emits [`Event::AssetSpendApproved`] if successful.
|
|
9385
9518
|
**/
|
|
9386
|
-
spend: AugmentedSubmittable<(assetKind:
|
|
9519
|
+
spend: AugmentedSubmittable<(assetKind: FrameSupportTokensFungibleUnionOfNativeOrWithId | {
|
|
9520
|
+
Native: any;
|
|
9521
|
+
} | {
|
|
9522
|
+
WithId: any;
|
|
9523
|
+
} | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array, beneficiary: MultiAddress | {
|
|
9387
9524
|
Id: any;
|
|
9388
9525
|
} | {
|
|
9389
9526
|
Index: any;
|
|
@@ -9393,7 +9530,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
9393
9530
|
Address32: any;
|
|
9394
9531
|
} | {
|
|
9395
9532
|
Address20: any;
|
|
9396
|
-
} | string | Uint8Array, validFrom: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [
|
|
9533
|
+
} | string | Uint8Array, validFrom: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [FrameSupportTokensFungibleUnionOfNativeOrWithId, Compact<u128>, MultiAddress, Option<u32>]>;
|
|
9397
9534
|
/**
|
|
9398
9535
|
* Propose and approve a spend of treasury funds.
|
|
9399
9536
|
*
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"./cjs/packageDetect.js"
|
|
19
19
|
],
|
|
20
20
|
"type": "module",
|
|
21
|
-
"version": "15.
|
|
21
|
+
"version": "15.1.1",
|
|
22
22
|
"main": "./cjs/index.js",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts",
|
|
@@ -451,11 +451,11 @@
|
|
|
451
451
|
}
|
|
452
452
|
},
|
|
453
453
|
"dependencies": {
|
|
454
|
-
"@polkadot/api-base": "15.
|
|
455
|
-
"@polkadot/rpc-augment": "15.
|
|
456
|
-
"@polkadot/types": "15.
|
|
457
|
-
"@polkadot/types-augment": "15.
|
|
458
|
-
"@polkadot/types-codec": "15.
|
|
454
|
+
"@polkadot/api-base": "15.1.1",
|
|
455
|
+
"@polkadot/rpc-augment": "15.1.1",
|
|
456
|
+
"@polkadot/types": "15.1.1",
|
|
457
|
+
"@polkadot/types-augment": "15.1.1",
|
|
458
|
+
"@polkadot/types-codec": "15.1.1",
|
|
459
459
|
"@polkadot/util": "^13.2.3",
|
|
460
460
|
"tslib": "^2.8.0"
|
|
461
461
|
}
|
package/packageInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageInfo = { name: '@polkadot/api-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '15.
|
|
1
|
+
export const packageInfo = { name: '@polkadot/api-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '15.1.1' };
|
package/substrate/consts.d.ts
CHANGED
|
@@ -685,6 +685,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
685
685
|
* be another trie item whose value is the size of an account ID plus 32 bytes.
|
|
686
686
|
**/
|
|
687
687
|
subAccountDeposit: u128 & AugmentedConst<ApiType>;
|
|
688
|
+
/**
|
|
689
|
+
* The amount held on deposit per registered username. This value should change only in
|
|
690
|
+
* runtime upgrades with proper migration of existing deposits.
|
|
691
|
+
**/
|
|
692
|
+
usernameDeposit: u128 & AugmentedConst<ApiType>;
|
|
693
|
+
/**
|
|
694
|
+
* The number of blocks that must pass to enable the permanent deletion of a username by
|
|
695
|
+
* its respective authority.
|
|
696
|
+
**/
|
|
697
|
+
usernameGracePeriod: u32 & AugmentedConst<ApiType>;
|
|
688
698
|
/**
|
|
689
699
|
* Generic const
|
|
690
700
|
**/
|
|
@@ -1230,6 +1240,13 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
1230
1240
|
};
|
|
1231
1241
|
revive: {
|
|
1232
1242
|
apiVersion: u16 & AugmentedConst<ApiType>;
|
|
1243
|
+
/**
|
|
1244
|
+
* The [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain ID.
|
|
1245
|
+
*
|
|
1246
|
+
* This is a unique identifier assigned to each blockchain network,
|
|
1247
|
+
* preventing replay attacks.
|
|
1248
|
+
**/
|
|
1249
|
+
chainId: u64 & AugmentedConst<ApiType>;
|
|
1233
1250
|
/**
|
|
1234
1251
|
* The percentage of the storage deposit that should be held for using a code hash.
|
|
1235
1252
|
* Instantiating a contract, or calling [`chain_extension::Ext::lock_delegate_dependency`]
|
|
@@ -1242,7 +1259,7 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
1242
1259
|
*
|
|
1243
1260
|
* # Note
|
|
1244
1261
|
*
|
|
1245
|
-
* It is safe to
|
|
1262
|
+
* It is safe to change this value on a live chain as all refunds are pro rata.
|
|
1246
1263
|
**/
|
|
1247
1264
|
depositPerByte: u128 & AugmentedConst<ApiType>;
|
|
1248
1265
|
/**
|
|
@@ -1250,17 +1267,13 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
1250
1267
|
*
|
|
1251
1268
|
* # Note
|
|
1252
1269
|
*
|
|
1253
|
-
* It is safe to
|
|
1270
|
+
* It is safe to change this value on a live chain as all refunds are pro rata.
|
|
1254
1271
|
**/
|
|
1255
1272
|
depositPerItem: u128 & AugmentedConst<ApiType>;
|
|
1256
1273
|
/**
|
|
1257
|
-
* The
|
|
1258
|
-
*
|
|
1259
|
-
* This value hugely affects the memory requirements of this pallet since all the code of
|
|
1260
|
-
* all contracts on the call stack will need to be held in memory. Setting of a correct
|
|
1261
|
-
* value will be enforced in [`Pallet::integrity_test`].
|
|
1274
|
+
* The ratio between the decimal representation of the native token and the ETH token.
|
|
1262
1275
|
**/
|
|
1263
|
-
|
|
1276
|
+
nativeToEthRatio: u32 & AugmentedConst<ApiType>;
|
|
1264
1277
|
/**
|
|
1265
1278
|
* Make contract callable functions marked as `#[unstable]` available.
|
|
1266
1279
|
*
|
|
@@ -1664,6 +1677,9 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
1664
1677
|
**/
|
|
1665
1678
|
burn: Permill & AugmentedConst<ApiType>;
|
|
1666
1679
|
/**
|
|
1680
|
+
* DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
|
|
1681
|
+
* Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
|
|
1682
|
+
*
|
|
1667
1683
|
* The maximum number of approvals that can wait in the spending queue.
|
|
1668
1684
|
*
|
|
1669
1685
|
* NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
|