Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
72ce4e2a36 | ||
|
|
993096b3ef | ||
|
|
1a9fe6b728 | ||
|
|
651d651213 | ||
|
|
42b9735c32 | ||
|
|
c364ee3301 | ||
|
|
f96e8c42a0 | ||
|
|
7a2da0c6d1 | ||
|
|
8fd076380e | ||
|
|
bfd1d517dd | ||
|
|
75a5702c13 | ||
|
|
6316fae5fa | ||
|
|
76ba1e54b7 | ||
|
|
cb1078ac4b | ||
|
|
c998d261fd | ||
|
|
c71bd49ee4 | ||
|
|
4e71139ab9 | ||
|
|
b22620b8fe | ||
|
|
40ac28be04 | ||
|
|
669d7ccdcb | ||
|
|
58b3808da9 | ||
|
|
1bed656be8 | ||
|
|
e750800dec | ||
|
|
fd1871b2cd | ||
|
|
8cc1038252 | ||
|
|
7494451e00 | ||
|
|
f7e5d6091e | ||
|
|
7b41b63048 | ||
|
|
61a6fbdbd1 | ||
|
|
173b3119bc | ||
|
|
d5e31e4d44 | ||
|
|
9670dd9c66 | ||
|
|
145d067ab9 | ||
|
|
e84c58d1d0 | ||
|
|
8efc552b9b | ||
|
|
2b3d40a29b | ||
|
|
d91d29cff5 | ||
|
|
17fa8fa120 | ||
|
|
cecd43305e | ||
|
|
9501da9e25 |
@@ -1,5 +1,54 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 15.0.2 Dec 13, 2024
|
||||
|
||||
Changes:
|
||||
|
||||
- Fix metadata on init when its value is u32 max ([#6043](https://github.com/polkadot-js/api/pull/6043))
|
||||
- This ensures runtime api information is correctly generated and the correct metadata is used as part of the registry. At the moment this is only an issue on westend asset hub, as reported by users.
|
||||
|
||||
|
||||
## 15.0.1 Nov 27, 2024
|
||||
|
||||
Breaking Changes:
|
||||
|
||||
- Allow external signers to modify the payload ([#6030](https://github.com/polkadot-js/api/pull/6030)) (Thanks to https://github.com/Tbaut)
|
||||
- Add `allowCallDataAlteration` to `SignatureOptions`, and `SignerOptions`. This will default to true when its not inputted. This is strictly tied to signing payloads via external signers.
|
||||
|
||||
Contributed:
|
||||
|
||||
- fix(ExtrinsicPayload): decode assetId with and without option ([#6037](https://github.com/polkadot-js/api/pull/6037)) (Thanks to https://github.com/carlosala)
|
||||
|
||||
Changes:
|
||||
|
||||
- Adjust ExtrinsicV5 to fit current spec ([#6029](https://github.com/polkadot-js/api/pull/6029))
|
||||
- This removes the `signed` functionality for ExtrinsicV5 since it is no longer supported
|
||||
- Update docs for WsProvider, and RpcCore ([#6031](https://github.com/polkadot-js/api/pull/6031))
|
||||
- Add testing for assetId access from ExtrinsicPayload ([#6033](https://github.com/polkadot-js/api/pull/6033))
|
||||
- Update Substrate types to 1.16.2 ([#6034](https://github.com/polkadot-js/api/pull/6034))
|
||||
|
||||
|
||||
## 14.3.1 Nov 11, 2024
|
||||
|
||||
Changes:
|
||||
|
||||
- Add rpcCacheCapacity option to ApiOptions ([#6020](https://github.com/polkadot-js/api/pull/6020))
|
||||
- Update metadata script for types-support ([#6021](https://github.com/polkadot-js/api/pull/6021))
|
||||
- Add AssetHub to types-support and test generation ([#6022](https://github.com/polkadot-js/api/pull/6022))
|
||||
- Fix node v22 testing compatibility w/ dev bump ([#6024](https://github.com/polkadot-js/api/pull/6024))
|
||||
- Fix isClaimed for edgecase with non validator Ids ([#6027](https://github.com/polkadot-js/api/pull/6027))
|
||||
- Fix isClaimed in api.derive.staking.{stakerRewards, stakerRewardsMultiEras, stakerRewardsMulti} ([#6026](https://github.com/polkadot-js/api/pull/6026))
|
||||
- Upgrade common to 13.2.3 ([#6025](https://github.com/polkadot-js/api/pull/6025))
|
||||
|
||||
|
||||
## 14.2.3 Nov 5, 2024
|
||||
|
||||
Changes:
|
||||
|
||||
- Increase RPC-CORE default cache capacity ([#6016](https://github.com/polkadot-js/api/pull/6016))
|
||||
- Set CI to use Node.js Iron (v20) ([#6018](https://github.com/polkadot-js/api/pull/6018))
|
||||
|
||||
|
||||
## 14.2.2 Oct 31, 2024
|
||||
|
||||
Changes:
|
||||
|
||||
+3
-2
@@ -1,5 +1,5 @@
|
||||
3512 Jaco Bump deps (#5785)
|
||||
121 Tarik Gul 14.2.2 (#6014)
|
||||
139 Tarik Gul 15.0.2 (#6044)
|
||||
83 Amaury Martiny StatementKind: Regular and Saft (#2303)
|
||||
37 Keith Ingram Update contract types and rpc (#4541)
|
||||
35 Stefanie Doll Updated child storage parameters (#1709)
|
||||
@@ -16,13 +16,13 @@
|
||||
5 Jake Naviasky Fixing approvalFlagsToBools. (#1250)
|
||||
5 Julien Eluard General WsProvider extensibility improvements (#5467)
|
||||
5 Matias Volpe Bump @substrate/connect to 0.8.10 (#5863)
|
||||
5 Thibaut Sardan Allow external signers to modify the payload (#6030)
|
||||
4 Alex D Use derive customAccount and customLocks for balance overrides (#3248)
|
||||
4 Alex Wang fix issue that creates duplicate providers (#983)
|
||||
4 Alexander Popiak Add asset id in signing (#4009)
|
||||
4 Joshy Orndorff spelling; efect -> effect (#2295)
|
||||
4 Nantian fix bigint type (#3869)
|
||||
4 Scott Twiname Add support for historical BlockNumber rpc methods (#4574)
|
||||
4 Thibaut Sardan no subscription for http (#3127)
|
||||
3 André Silva add support for ValidationCodeHash (#3640)
|
||||
3 Antoine Estienne Adapted to display moonbeam author (#3108)
|
||||
3 Arjan Zijderveld Added `Emergency` to `ElectionPhase` (#3707)
|
||||
@@ -60,6 +60,7 @@
|
||||
1 Brad Larson [NEW] Support for custom headers with providers (#2423)
|
||||
1 Btwiuse Arch Add side effect check workaround (#4994) (#5009)
|
||||
1 Cameron Marshall implement xcm dry run api (#5970)
|
||||
1 Carlo Sala fix(ExtrinsicPayload): decode assetId with and without option (#6037)
|
||||
1 chriswmercer little readme tweak (#279)
|
||||
1 codingsh #2182 - add: search for docs (#2232)
|
||||
1 coolcorexix Investigate 4559 v2 (#4608)
|
||||
|
||||
+4
-4
@@ -14,10 +14,10 @@
|
||||
},
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"version": "14.2.2",
|
||||
"version": "15.0.2",
|
||||
"versions": {
|
||||
"git": "14.2.2",
|
||||
"npm": "14.2.2"
|
||||
"git": "15.0.2",
|
||||
"npm": "15.0.2"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
@@ -40,7 +40,7 @@
|
||||
"test:one": "polkadot-dev-run-test --env node"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.81.2",
|
||||
"@polkadot/dev": "^0.82.1",
|
||||
"@polkadot/typegen": "workspace:packages/typegen",
|
||||
"@types/node": "^22.7.5"
|
||||
},
|
||||
|
||||
@@ -18,15 +18,15 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "14.2.2",
|
||||
"version": "15.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-base": "14.2.2",
|
||||
"@polkadot/rpc-augment": "14.2.2",
|
||||
"@polkadot/types": "14.2.2",
|
||||
"@polkadot/types-augment": "14.2.2",
|
||||
"@polkadot/types-codec": "14.2.2",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/api-base": "15.0.2",
|
||||
"@polkadot/rpc-augment": "15.0.2",
|
||||
"@polkadot/types": "15.0.2",
|
||||
"@polkadot/types-augment": "15.0.2",
|
||||
"@polkadot/types-codec": "15.0.2",
|
||||
"@polkadot/util": "^13.2.3",
|
||||
"tslib": "^2.8.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '14.2.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-augment', path: 'auto', type: 'auto', version: '15.0.2' };
|
||||
|
||||
@@ -256,6 +256,7 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
[key: string]: Codec;
|
||||
};
|
||||
broker: {
|
||||
maxAutoRenewals: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Maximum number of legacy leases.
|
||||
**/
|
||||
@@ -1235,6 +1236,56 @@ declare module '@polkadot/api-base/types/consts' {
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
revive: {
|
||||
apiVersion: u16 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The percentage of the storage deposit that should be held for using a code hash.
|
||||
* Instantiating a contract, or calling [`chain_extension::Ext::lock_delegate_dependency`]
|
||||
* protects the code from being removed. In order to prevent abuse these actions are
|
||||
* protected with a percentage of the code deposit.
|
||||
**/
|
||||
codeHashLockupDepositPercent: Perbill & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount of balance a caller has to pay for each byte of storage.
|
||||
*
|
||||
* # Note
|
||||
*
|
||||
* It is safe to chage this value on a live chain as all refunds are pro rata.
|
||||
**/
|
||||
depositPerByte: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The amount of balance a caller has to pay for each storage item.
|
||||
*
|
||||
* # Note
|
||||
*
|
||||
* It is safe to chage this value on a live chain as all refunds are pro rata.
|
||||
**/
|
||||
depositPerItem: u128 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* The maximum length of a contract code in bytes.
|
||||
*
|
||||
* This value hugely affects the memory requirements of this pallet since all the code of
|
||||
* all contracts on the call stack will need to be held in memory. Setting of a correct
|
||||
* value will be enforced in [`Pallet::integrity_test`].
|
||||
**/
|
||||
maxCodeLen: u32 & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Make contract callable functions marked as `#[unstable]` available.
|
||||
*
|
||||
* Contracts that use `#[unstable]` functions won't be able to be uploaded unless
|
||||
* this is set to `true`. This is only meant for testnets and dev nodes in order to
|
||||
* experiment with new features.
|
||||
*
|
||||
* # Warning
|
||||
*
|
||||
* Do **not** set to `true` on productions chains.
|
||||
**/
|
||||
unsafeUnstableInterface: bool & AugmentedConst<ApiType>;
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
};
|
||||
safeMode: {
|
||||
/**
|
||||
* The amount that will be reserved upon calling [`Pallet::enter`].
|
||||
|
||||
@@ -564,6 +564,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The lease expiry time has already passed.
|
||||
**/
|
||||
AlreadyExpired: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Attempted to disable auto-renewal for a core that didn't have it enabled.
|
||||
**/
|
||||
AutoRenewalNotEnabled: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The pivot mask for the interlacing is complete (and therefore not a strict subset).
|
||||
**/
|
||||
@@ -593,6 +597,14 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The history item does not exist.
|
||||
**/
|
||||
NoHistory: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Only cores which are assigned to a task can be auto-renewed.
|
||||
**/
|
||||
NonTaskAutoRenewal: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The caller doesn't have the permission to enable or disable auto-renewal.
|
||||
**/
|
||||
NoPermission: AugmentedError<ApiType>;
|
||||
/**
|
||||
* There is no sale happening currently.
|
||||
**/
|
||||
@@ -625,6 +637,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The sale limit has been reached.
|
||||
**/
|
||||
SoldOut: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Failed to get the sovereign account of a task.
|
||||
**/
|
||||
SovereignAccountNotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* An item cannot be dropped because it is still valid.
|
||||
**/
|
||||
@@ -633,6 +649,10 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* The purchase cannot happen yet as the sale period is yet to begin.
|
||||
**/
|
||||
TooEarly: AugmentedError<ApiType>;
|
||||
/**
|
||||
* We reached the limit for auto-renewals.
|
||||
**/
|
||||
TooManyAutoRenewals: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The maximum amount of leases has already been reached.
|
||||
**/
|
||||
@@ -2188,10 +2208,6 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
* Preimage has already been noted on-chain.
|
||||
**/
|
||||
AlreadyNoted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
|
||||
**/
|
||||
NoCost: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The user is not authorized to perform this action.
|
||||
**/
|
||||
@@ -2521,6 +2537,182 @@ declare module '@polkadot/api-base/types/errors' {
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
revive: {
|
||||
/**
|
||||
* Can not add a delegate dependency to the code hash of the contract itself.
|
||||
**/
|
||||
CannotAddSelfAsDelegateDependency: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No code info could be found at the supplied code hash.
|
||||
**/
|
||||
CodeInfoNotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Code removal was denied because the code is still in use by at least one contract.
|
||||
**/
|
||||
CodeInUse: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No code could be found at the supplied code hash.
|
||||
**/
|
||||
CodeNotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The contract failed to compile or is missing the correct entry points.
|
||||
*
|
||||
* A more detailed error can be found on the node console if debug messages are enabled
|
||||
* by supplying `-lruntime::revive=debug`.
|
||||
**/
|
||||
CodeRejected: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The code supplied to `instantiate_with_code` exceeds the limit specified in the
|
||||
* current schedule.
|
||||
**/
|
||||
CodeTooLarge: AugmentedError<ApiType>;
|
||||
/**
|
||||
* No contract was found at the specified address.
|
||||
**/
|
||||
ContractNotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The contract ran to completion but decided to revert its storage changes.
|
||||
* Please note that this error is only returned from extrinsics. When called directly
|
||||
* or via RPC an `Ok` will be returned. In this case the caller needs to inspect the flags
|
||||
* to determine whether a reversion has taken place.
|
||||
**/
|
||||
ContractReverted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Contract trapped during execution.
|
||||
**/
|
||||
ContractTrapped: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Input passed to a contract API function failed to decode as expected type.
|
||||
**/
|
||||
DecodingFailed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The contract already depends on the given delegate dependency.
|
||||
**/
|
||||
DelegateDependencyAlreadyExists: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The dependency was not found in the contract's delegate dependencies.
|
||||
**/
|
||||
DelegateDependencyNotFound: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A contract with the same AccountId already exists.
|
||||
**/
|
||||
DuplicateContract: AugmentedError<ApiType>;
|
||||
/**
|
||||
* PolkaVM failed during code execution. Probably due to a malformed program.
|
||||
**/
|
||||
ExecutionFailed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* `seal_call` forwarded this contracts input. It therefore is no longer available.
|
||||
**/
|
||||
InputForwarded: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid combination of flags supplied to `seal_call` or `seal_delegate_call`.
|
||||
**/
|
||||
InvalidCallFlags: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid schedule supplied, e.g. with zero weight of a basic operation.
|
||||
**/
|
||||
InvalidSchedule: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Invalid storage flags were passed to one of the storage syscalls.
|
||||
**/
|
||||
InvalidStorageFlags: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The contract tried to call a syscall which does not exist (at its current api level).
|
||||
**/
|
||||
InvalidSyscall: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Performing a call was denied because the calling depth reached the limit
|
||||
* of what is specified in the schedule.
|
||||
**/
|
||||
MaxCallDepthReached: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The contract has reached its maximum number of delegate dependencies.
|
||||
**/
|
||||
MaxDelegateDependenciesReached: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A pending migration needs to complete before the extrinsic can be called.
|
||||
**/
|
||||
MigrationInProgress: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The chain does not provide a chain extension. Calling the chain extension results
|
||||
* in this error. Note that this usually shouldn't happen as deploying such contracts
|
||||
* is rejected.
|
||||
**/
|
||||
NoChainExtension: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Migrate dispatch call was attempted but no migration was performed.
|
||||
**/
|
||||
NoMigrationPerformed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A buffer outside of sandbox memory was passed to a contract API function.
|
||||
**/
|
||||
OutOfBounds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The executed contract exhausted its gas limit.
|
||||
**/
|
||||
OutOfGas: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Can not add more data to transient storage.
|
||||
**/
|
||||
OutOfTransientStorage: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The output buffer supplied to a contract API call was too small.
|
||||
**/
|
||||
OutputBufferTooSmall: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A contract called into the runtime which then called back into this pallet.
|
||||
**/
|
||||
ReenteredPallet: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A call tried to invoke a contract that is flagged as non-reentrant.
|
||||
**/
|
||||
ReentranceDenied: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A contract attempted to invoke a state modifying API while being in read-only mode.
|
||||
**/
|
||||
StateChangeDenied: AugmentedError<ApiType>;
|
||||
/**
|
||||
* More storage was created than allowed by the storage deposit limit.
|
||||
**/
|
||||
StorageDepositLimitExhausted: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Origin doesn't have enough balance to pay the required storage deposits.
|
||||
**/
|
||||
StorageDepositNotEnoughFunds: AugmentedError<ApiType>;
|
||||
/**
|
||||
* A contract self destructed in its constructor.
|
||||
*
|
||||
* This can be triggered by a call to `seal_terminate`.
|
||||
**/
|
||||
TerminatedInConstructor: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Termination of a contract is not allowed while the contract is already
|
||||
* on the call stack. Can be triggered by `seal_terminate`.
|
||||
**/
|
||||
TerminatedWhileReentrant: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The amount of topics passed to `seal_deposit_events` exceeds the limit.
|
||||
**/
|
||||
TooManyTopics: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Performing the requested transfer failed. Probably because there isn't enough
|
||||
* free balance in the sender's account.
|
||||
**/
|
||||
TransferFailed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* The size defined in `T::MaxValueSize` was exceeded.
|
||||
**/
|
||||
ValueTooLarge: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Failed to decode the XCM program.
|
||||
**/
|
||||
XCMDecodeFailed: AugmentedError<ApiType>;
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
};
|
||||
safeMode: {
|
||||
/**
|
||||
* The account already has a deposit reserved and can therefore not enter or extend again.
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
||||
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, H256, Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpStakingExposure, SpStatementStoreStatement, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletReviveExecOrigin, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpStakingExposure, SpStatementStoreStatement, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
@@ -159,7 +159,7 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
|
||||
* has been paid by `who` in an asset `asset_id`.
|
||||
**/
|
||||
AssetTxFeePaid: AugmentedEvent<ApiType, [who: AccountId32, actualFee: u128, tip: u128, assetId: u32], { who: AccountId32, actualFee: u128, tip: u128, assetId: u32 }>;
|
||||
AssetTxFeePaid: AugmentedEvent<ApiType, [who: AccountId32, actualFee: u128, tip: u128, assetId: FrameSupportTokensFungibleUnionOfNativeOrWithId], { who: AccountId32, actualFee: u128, tip: u128, assetId: FrameSupportTokensFungibleUnionOfNativeOrWithId }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -285,17 +285,6 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
assetTxPayment: {
|
||||
/**
|
||||
* A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
|
||||
* has been paid by `who` in an asset `asset_id`.
|
||||
**/
|
||||
AssetTxFeePaid: AugmentedEvent<ApiType, [who: AccountId32, actualFee: u128, tip: u128, assetId: Option<u32>], { who: AccountId32, actualFee: u128, tip: u128, assetId: Option<u32> }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
balances: {
|
||||
/**
|
||||
* A balance was set by root.
|
||||
@@ -447,6 +436,20 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A Region has been assigned to a particular task.
|
||||
**/
|
||||
Assigned: AugmentedEvent<ApiType, [regionId: PalletBrokerRegionId, duration: u32, task: u32], { regionId: PalletBrokerRegionId, duration: u32, task: u32 }>;
|
||||
AutoRenewalDisabled: AugmentedEvent<ApiType, [core: u16, task: u32], { core: u16, task: u32 }>;
|
||||
AutoRenewalEnabled: AugmentedEvent<ApiType, [core: u16, task: u32], { core: u16, task: u32 }>;
|
||||
/**
|
||||
* Failed to auto-renew a core, likely due to the payer account not being sufficiently
|
||||
* funded.
|
||||
**/
|
||||
AutoRenewalFailed: AugmentedEvent<ApiType, [core: u16, payer: Option<AccountId32>], { core: u16, payer: Option<AccountId32> }>;
|
||||
/**
|
||||
* The auto-renewal limit has been reached upon renewing cores.
|
||||
*
|
||||
* This should never happen, given that enable_auto_renew checks for this before enabling
|
||||
* auto-renewal.
|
||||
**/
|
||||
AutoRenewalLimitReached: AugmentedEvent<ApiType, []>;
|
||||
/**
|
||||
* Some historical Instantaneous Core Pool Revenue is ready for payout claims.
|
||||
**/
|
||||
@@ -655,6 +658,14 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* An \[account\] has cancelled a previous delegation operation.
|
||||
**/
|
||||
Undelegated: AugmentedEvent<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* An account that has voted
|
||||
**/
|
||||
Voted: AugmentedEvent<ApiType, [who: AccountId32, vote: PalletConvictionVotingVoteAccountVote], { who: AccountId32, vote: PalletConvictionVotingVoteAccountVote }>;
|
||||
/**
|
||||
* A vote that been removed
|
||||
**/
|
||||
VoteRemoved: AugmentedEvent<ApiType, [who: AccountId32, vote: PalletConvictionVotingVoteAccountVote], { who: AccountId32, vote: PalletConvictionVotingVoteAccountVote }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
@@ -1422,8 +1433,10 @@ declare module '@polkadot/api-base/types/events' {
|
||||
* A member has been removed from a pool.
|
||||
*
|
||||
* The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
|
||||
* Any funds that are still delegated (i.e. dangling delegation) are released and are
|
||||
* represented by `released_balance`.
|
||||
**/
|
||||
MemberRemoved: AugmentedEvent<ApiType, [poolId: u32, member: AccountId32], { poolId: u32, member: AccountId32 }>;
|
||||
MemberRemoved: AugmentedEvent<ApiType, [poolId: u32, member: AccountId32, releasedBalance: u128], { poolId: u32, member: AccountId32, releasedBalance: u128 }>;
|
||||
/**
|
||||
* Topped up deficit in frozen ED of the reward pool.
|
||||
**/
|
||||
@@ -1883,6 +1896,69 @@ declare module '@polkadot/api-base/types/events' {
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
revive: {
|
||||
/**
|
||||
* A contract was called either by a plain account or another contract.
|
||||
*
|
||||
* # Note
|
||||
*
|
||||
* Please keep in mind that like all events this is only emitted for successful
|
||||
* calls. This is because on failure all storage changes including events are
|
||||
* rolled back.
|
||||
**/
|
||||
Called: AugmentedEvent<ApiType, [caller: PalletReviveExecOrigin, contract: AccountId32], { caller: PalletReviveExecOrigin, contract: AccountId32 }>;
|
||||
/**
|
||||
* A code with the specified hash was removed.
|
||||
**/
|
||||
CodeRemoved: AugmentedEvent<ApiType, [codeHash: H256, depositReleased: u128, remover: AccountId32], { codeHash: H256, depositReleased: u128, remover: AccountId32 }>;
|
||||
/**
|
||||
* Code with the specified hash has been stored.
|
||||
**/
|
||||
CodeStored: AugmentedEvent<ApiType, [codeHash: H256, depositHeld: u128, uploader: AccountId32], { codeHash: H256, depositHeld: u128, uploader: AccountId32 }>;
|
||||
/**
|
||||
* A contract's code was updated.
|
||||
**/
|
||||
ContractCodeUpdated: AugmentedEvent<ApiType, [contract: AccountId32, newCodeHash: H256, oldCodeHash: H256], { contract: AccountId32, newCodeHash: H256, oldCodeHash: H256 }>;
|
||||
/**
|
||||
* A custom event emitted by the contract.
|
||||
**/
|
||||
ContractEmitted: AugmentedEvent<ApiType, [contract: AccountId32, data: Bytes], { contract: AccountId32, data: Bytes }>;
|
||||
/**
|
||||
* A contract delegate called a code hash.
|
||||
*
|
||||
* # Note
|
||||
*
|
||||
* Please keep in mind that like all events this is only emitted for successful
|
||||
* calls. This is because on failure all storage changes including events are
|
||||
* rolled back.
|
||||
**/
|
||||
DelegateCalled: AugmentedEvent<ApiType, [contract: AccountId32, codeHash: H256], { contract: AccountId32, codeHash: H256 }>;
|
||||
/**
|
||||
* Contract deployed by address at the specified address.
|
||||
**/
|
||||
Instantiated: AugmentedEvent<ApiType, [deployer: AccountId32, contract: AccountId32], { deployer: AccountId32, contract: AccountId32 }>;
|
||||
/**
|
||||
* Some funds have been transferred and held as storage deposit.
|
||||
**/
|
||||
StorageDepositTransferredAndHeld: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Some storage deposit funds have been transferred and released.
|
||||
**/
|
||||
StorageDepositTransferredAndReleased: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, amount: u128], { from: AccountId32, to: AccountId32, amount: u128 }>;
|
||||
/**
|
||||
* Contract has been removed.
|
||||
*
|
||||
* # Note
|
||||
*
|
||||
* The only way for a contract to be removed and emitting this event is by calling
|
||||
* `seal_terminate`.
|
||||
**/
|
||||
Terminated: AugmentedEvent<ApiType, [contract: AccountId32, beneficiary: AccountId32], { contract: AccountId32, beneficiary: AccountId32 }>;
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
};
|
||||
rootTesting: {
|
||||
/**
|
||||
* Event dispatched when the trigger_defensive extrinsic is called.
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
|
||||
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerOnDemandRevenueRecord, PalletBrokerPoolIoRecord, PalletBrokerPotentialRenewalId, PalletBrokerPotentialRenewalRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMigrationsMigrationCursor, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAutoRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerOnDemandRevenueRecord, PalletBrokerPoolIoRecord, PalletBrokerPotentialRenewalId, PalletBrokerPotentialRenewalRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsTypeU128, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMigrationsMigrationCursor, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletReviveStorageContractInfo, PalletReviveStorageDeletionQueueManager, PalletReviveWasmCodeInfo, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from '@polkadot/types/lookup';
|
||||
import type { Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
@@ -408,6 +408,12 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
broker: {
|
||||
/**
|
||||
* Keeping track of cores which have auto-renewal enabled.
|
||||
*
|
||||
* Sorted by `CoreIndex` to make the removal of cores from auto-renewal more efficient.
|
||||
**/
|
||||
autoRenewals: AugmentedQuery<ApiType, () => Observable<Vec<PalletBrokerAutoRenewalRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* The current configuration of this pallet.
|
||||
**/
|
||||
@@ -1675,6 +1681,41 @@ declare module '@polkadot/api-base/types/storage' {
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
revive: {
|
||||
/**
|
||||
* A mapping from a contract's code hash to its code info.
|
||||
**/
|
||||
codeInfoOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletReviveWasmCodeInfo>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* The code associated with a given account.
|
||||
**/
|
||||
contractInfoOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletReviveStorageContractInfo>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
||||
/**
|
||||
* Evicted contracts that await child trie deletion.
|
||||
*
|
||||
* Child trie deletion is a heavy operation depending on the amount of storage items
|
||||
* stored in said trie. Therefore this operation is performed lazily in `on_idle`.
|
||||
**/
|
||||
deletionQueue: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
||||
/**
|
||||
* A pair of monotonic counters used to track the latest contract marked for deletion
|
||||
* and the latest deleted contract in queue.
|
||||
**/
|
||||
deletionQueueCounter: AugmentedQuery<ApiType, () => Observable<PalletReviveStorageDeletionQueueManager>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* A migration can span across multiple blocks. This storage defines a cursor to track the
|
||||
* progress of the migration, enabling us to resume from the last completed position.
|
||||
**/
|
||||
migrationInProgress: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
|
||||
/**
|
||||
* A mapping from a contract's code hash to its code.
|
||||
**/
|
||||
pristineCode: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
};
|
||||
safeMode: {
|
||||
/**
|
||||
* Holds the reserve that was taken from an account at a specific block number.
|
||||
|
||||
@@ -12,7 +12,7 @@ import type { OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
||||
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { AccountId32, H256, RuntimeCall, Slot } from '@polkadot/types/interfaces/runtime';
|
||||
import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemEventRecord, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsPrimitivesContractAccessError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesExecReturnValue, PalletContractsPrimitivesStorageDeposit, PalletContractsWasmDeterminism, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMixnetMixnode, SpMixnetMixnodesErr, SpMixnetSessionStatus, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpStatementStoreRuntimeApiInvalidStatement, SpStatementStoreRuntimeApiStatementSource, SpStatementStoreRuntimeApiValidStatement, SpStatementStoreStatement, SpVersionRuntimeVersion, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemEventRecord, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsPrimitivesContractAccessError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesExecReturnValue, PalletContractsPrimitivesStorageDeposit, PalletContractsWasmDeterminism, PalletRevivePrimitivesCode, PalletRevivePrimitivesCodeUploadReturnValue, PalletRevivePrimitivesContractAccessError, PalletRevivePrimitivesContractResult, PalletRevivePrimitivesExecReturnValue, PalletRevivePrimitivesStorageDeposit, PalletTransactionPaymentFeeDetails, PalletTransactionPaymentRuntimeDispatchInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeConfiguration, SpConsensusBabeEpoch, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyForkVotingProofOpaqueValue, SpConsensusBeefyFutureBlockVotingProof, SpConsensusBeefyValidatorSet, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpCoreCryptoKeyTypeId, SpInherentsCheckInherentsResult, SpInherentsInherentData, SpMixnetMixnode, SpMixnetMixnodesErr, SpMixnetSessionStatus, SpMmrPrimitivesError, SpMmrPrimitivesLeafProof, SpRuntimeBlock, SpRuntimeDispatchError, SpRuntimeExtrinsicInclusionMode, SpRuntimeHeader, SpRuntimeTransactionValidityTransactionSource, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityValidTransaction, SpStatementStoreRuntimeApiInvalidStatement, SpStatementStoreRuntimeApiStatementSource, SpStatementStoreRuntimeApiValidStatement, SpStatementStoreStatement, SpVersionRuntimeVersion, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
import type { IExtrinsic, Observable } from '@polkadot/types/types';
|
||||
|
||||
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
||||
@@ -109,6 +109,10 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Return the block number where BEEFY consensus is enabled/started
|
||||
**/
|
||||
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<u32>>>;
|
||||
/**
|
||||
* Generates a proof that the `prev_block_number` is part of the canonical chain at, `best_known_block_number`.
|
||||
**/
|
||||
generateAncestryProof: AugmentedCall<ApiType, (prev_block_number: u32 | AnyNumber | Uint8Array, best_known_block_number: Option<u32> | null | Uint8Array | u32 | AnyNumber) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Generates a proof of key ownership for the given authority in the, given set. An example usage of this module is coupled with the, session historical module to prove that a given authority key is, tied to a given staking identity during a specific session. Proofs, of key ownership are necessary for submitting equivocation reports., NOTE: even though the API takes a `set_id` as parameter the current, implementations ignores this parameter and instead relies on this, method being called at the correct block height, i.e. any point at, which the given set id is live on-chain. Future implementations will, instead use indexed data through an offchain worker, not requiring, older states to be available.
|
||||
**/
|
||||
@@ -117,6 +121,14 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Submits an unsigned extrinsic to report a double voting equivocation. The caller, must provide the double voting proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`). The, extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
|
||||
**/
|
||||
submitReportDoubleVotingUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusBeefyDoubleVotingProof | { first?: any; second?: any } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Submits an unsigned extrinsic to report a fork voting equivocation. The caller, must provide the fork voting proof (the ancestry proof should be obtained using, `generate_ancestry_proof`) and a key ownership proof (should be obtained using, `generate_key_ownership_proof`). The extrinsic will be unsigned and should only, be accepted for local authorship (not to be broadcast to the network). This method, returns `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
|
||||
**/
|
||||
submitReportForkVotingUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusBeefyForkVotingProofOpaqueValue | { vote?: any; ancestryProof?: any; header?: any } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Submits an unsigned extrinsic to report a future block voting equivocation. The caller, must provide the future block voting proof and a key ownership proof, (should be obtained using `generate_key_ownership_proof`)., The extrinsic will be unsigned and should only be accepted for local, authorship (not to be broadcast to the network). This method returns, `None` when creation of the extrinsic fails, e.g. if equivocation, reporting is disabled for the given runtime (i.e. this method is, hardcoded to return `None`). Only useful in an offchain context.
|
||||
**/
|
||||
submitReportFutureBlockVotingUnsignedExtrinsic: AugmentedCall<ApiType, (equivocation_proof: SpConsensusBeefyFutureBlockVotingProof | { vote?: any } | string | Uint8Array, key_owner_proof: Bytes | string | Uint8Array) => Observable<Option<Null>>>;
|
||||
/**
|
||||
* Return the current active BEEFY validator set
|
||||
**/
|
||||
@@ -205,7 +217,7 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
buildState: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<Null, Text>>>;
|
||||
/**
|
||||
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by, `id`.,, If `id` is `None` the function returns JSON blob representation of the default, `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default, `RuntimeGenesisConfig`.,, Otherwise function returns a JSON representation of the built-in, named, `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not, exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of, (potentially nested) key-value pairs that are intended for customizing the default, runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation, of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can, be used in `build_state` method.
|
||||
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by, `id`.,, If `id` is `None` the function returns JSON blob representation of the default, `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default, `RuntimeGenesisConfig`.,, Otherwise function returns a JSON representation of the built-in, named, `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not, exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of, (potentially nested) key-value pairs that are intended for customizing the default, runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation, of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can, be used in `build_state` method.
|
||||
**/
|
||||
getPreset: AugmentedCall<ApiType, (id: Option<Text> | null | Uint8Array | Text | string) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
@@ -354,6 +366,10 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Returns the pending slash for a given pool member.
|
||||
**/
|
||||
memberPendingSlash: AugmentedCall<ApiType, (member: AccountId32 | string | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Returns the total contribution of a pool member including any balance that is unbonding.
|
||||
**/
|
||||
memberTotalBalance: AugmentedCall<ApiType, (who: AccountId32 | string | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Returns the pending rewards for the member that the AccountId was given for.
|
||||
**/
|
||||
@@ -362,6 +378,10 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
* Returns the equivalent balance of `points` for a given pool.
|
||||
**/
|
||||
pointsToBalance: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array, points: u128 | AnyNumber | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Total balance contributed to the pool.
|
||||
**/
|
||||
poolBalance: AugmentedCall<ApiType, (pool_id: u32 | AnyNumber | Uint8Array) => Observable<u128>>;
|
||||
/**
|
||||
* Returns true if the pool with `pool_id` needs migration.,, This can happen when the `pallet-nomination-pools` has switched to using strategy, [`DelegateStake`](pallet_nomination_pools::adapter::DelegateStake) but the pool, still has funds that were staked using the older strategy, [TransferStake](pallet_nomination_pools::adapter::TransferStake). Use, [`migrate_pool_to_delegate_stake`](pallet_nomination_pools::Call::migrate_pool_to_delegate_stake), to migrate the pool.
|
||||
**/
|
||||
@@ -386,6 +406,36 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x8c403e5c4a9fd442/ */
|
||||
reviveApi: {
|
||||
/**
|
||||
* Perform a call from a specified account to a given contract.,, See [`crate::Pallet::bare_call`].
|
||||
**/
|
||||
call: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, dest: AccountId32 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, gas_limit: Option<SpWeightsWeightV2Weight> | null | Uint8Array | SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber, input_data: Bytes | string | Uint8Array) => Observable<{
|
||||
readonly gasConsumed: SpWeightsWeightV2Weight;
|
||||
readonly gasRequired: SpWeightsWeightV2Weight;
|
||||
readonly storageDeposit: PalletRevivePrimitivesStorageDeposit;
|
||||
readonly debugMessage: Bytes;
|
||||
readonly result: Result<PalletRevivePrimitivesExecReturnValue, SpRuntimeDispatchError>;
|
||||
readonly events: Option<Vec<FrameSystemEventRecord>>;
|
||||
} & Struct>>;
|
||||
/**
|
||||
* Query a given storage key in a given contract.,, Returns `Ok(Some(Vec<u8>))` if the storage value exists under the given key in the, specified account and `Ok(None)` if it doesn't. If the account specified by the address, doesn't exist, or doesn't have a contract then `Err` is returned.
|
||||
**/
|
||||
getStorage: AugmentedCall<ApiType, (address: AccountId32 | string | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Result<Option<Bytes>, PalletRevivePrimitivesContractAccessError>>>;
|
||||
/**
|
||||
* Instantiate a new contract.,, See `[crate::Pallet::bare_instantiate]`.
|
||||
**/
|
||||
instantiate: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, gas_limit: Option<SpWeightsWeightV2Weight> | null | Uint8Array | SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber, code: PalletRevivePrimitivesCode | { Upload: any } | { Existing: any } | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => Observable<PalletRevivePrimitivesContractResult>>;
|
||||
/**
|
||||
* Upload new code without instantiating a contract from it.,, See [`crate::Pallet::bare_upload_code`].
|
||||
**/
|
||||
uploadCode: AugmentedCall<ApiType, (origin: AccountId32 | string | Uint8Array, code: Bytes | string | Uint8Array, storage_deposit_limit: Option<u128> | null | Uint8Array | u128 | AnyNumber) => Observable<Result<PalletRevivePrimitivesCodeUploadReturnValue, SpRuntimeDispatchError>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xab3c0572291feb8b/ */
|
||||
sessionKeys: {
|
||||
/**
|
||||
|
||||
@@ -10,7 +10,7 @@ import type { Data } from '@polkadot/types';
|
||||
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
||||
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, SpConsensusBeefyForkVotingProof, SpConsensusBeefyFutureBlockVotingProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
||||
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';
|
||||
|
||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||
@@ -240,7 +240,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* calls to render the liquidity withdrawable and rectify the exchange rate.
|
||||
*
|
||||
* Once liquidity is added, someone may successfully call
|
||||
* [`Pallet::swap_exact_tokens_for_tokens`] successfully.
|
||||
* [`Pallet::swap_exact_tokens_for_tokens`].
|
||||
**/
|
||||
addLiquidity: AugmentedSubmittable<(asset1: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, asset2: FrameSupportTokensFungibleUnionOfNativeOrWithId | { Native: any } | { WithId: any } | string | Uint8Array, amount1Desired: u128 | AnyNumber | Uint8Array, amount2Desired: u128 | AnyNumber | Uint8Array, amount1Min: u128 | AnyNumber | Uint8Array, amount2Min: u128 | AnyNumber | Uint8Array, mintTo: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId, u128, u128, u128, u128, AccountId32]>;
|
||||
/**
|
||||
@@ -726,8 +726,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
||||
* asset.
|
||||
*
|
||||
* The asset class must be frozen before calling `start_destroy`.
|
||||
**/
|
||||
startDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||
/**
|
||||
@@ -801,6 +799,25 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* `target`.
|
||||
**/
|
||||
transfer: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, target: 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>]>;
|
||||
/**
|
||||
* Transfer the entire transferable balance from the caller asset account.
|
||||
*
|
||||
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
||||
* any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
|
||||
* transferred by this function. To ensure that this function results in a killed account,
|
||||
* you might need to prepare the account by removing any reference counters, storage
|
||||
* deposits, etc...
|
||||
*
|
||||
* The dispatch origin of this call must be Signed.
|
||||
*
|
||||
* - `id`: The identifier of the asset for the account holding a deposit.
|
||||
* - `dest`: The recipient of the transfer.
|
||||
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
||||
* of the funds the asset account has, causing the sender asset account to be killed
|
||||
* (false), or transfer everything except at least the minimum balance, which will
|
||||
* guarantee to keep the sender asset account alive (true).
|
||||
**/
|
||||
transferAll: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, bool]>;
|
||||
/**
|
||||
* Transfer some asset balance from a previously delegated account to some third-party
|
||||
* account.
|
||||
@@ -1006,7 +1023,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* and validate the given key ownership proof against the extracted offender.
|
||||
* If both are valid, the offence will be reported.
|
||||
**/
|
||||
reportForkVoting: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyForkVotingProof | { vote?: any; ancestryProof?: any; header?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyForkVotingProof, SpSessionMembershipProof]>;
|
||||
reportForkVoting: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyForkVotingProofAncestryProof | { vote?: any; ancestryProof?: any; header?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyForkVotingProofAncestryProof, SpSessionMembershipProof]>;
|
||||
/**
|
||||
* Report fork voting equivocation. This method will verify the equivocation proof
|
||||
* and validate the given key ownership proof against the extracted offender.
|
||||
@@ -1017,7 +1034,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* if the block author is defined it will be defined as the equivocation
|
||||
* reporter.
|
||||
**/
|
||||
reportForkVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyForkVotingProof | { vote?: any; ancestryProof?: any; header?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyForkVotingProof, SpSessionMembershipProof]>;
|
||||
reportForkVotingUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusBeefyForkVotingProofAncestryProof | { vote?: any; ancestryProof?: any; header?: any } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | { session?: any; trieNodes?: any; validatorCount?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusBeefyForkVotingProofAncestryProof, SpSessionMembershipProof]>;
|
||||
/**
|
||||
* Report future block voting equivocation. This method will verify the equivocation proof
|
||||
* and validate the given key ownership proof against the extracted offender.
|
||||
@@ -1195,6 +1212,16 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `config`: The configuration for this pallet.
|
||||
**/
|
||||
configure: AugmentedSubmittable<(config: PalletBrokerConfigRecord | { advanceNotice?: any; interludeLength?: any; leadinLength?: any; regionLength?: any; idealBulkProportion?: any; limitCoresOffered?: any; renewalBump?: any; contributionTimeout?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletBrokerConfigRecord]>;
|
||||
/**
|
||||
* Extrinsic for disabling auto renewal.
|
||||
*
|
||||
* Callable by the sovereign account of the task on the specified core.
|
||||
*
|
||||
* - `origin`: Must be the sovereign account of the task.
|
||||
* - `core`: The core for which we want to disable auto renewal.
|
||||
* - `task`: The task for which we want to disable auto renewal.
|
||||
**/
|
||||
disableAutoRenew: AugmentedSubmittable<(core: u16 | AnyNumber | Uint8Array, task: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, u32]>;
|
||||
/**
|
||||
* Drop an expired Instantaneous Pool Contribution record from the chain.
|
||||
*
|
||||
@@ -1224,6 +1251,20 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `when`: The timeslice to which the expired renewal refers. This must have passed.
|
||||
**/
|
||||
dropRenewal: AugmentedSubmittable<(core: u16 | AnyNumber | Uint8Array, when: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u16, u32]>;
|
||||
/**
|
||||
* Extrinsic for enabling auto renewal.
|
||||
*
|
||||
* Callable by the sovereign account of the task on the specified core. This account
|
||||
* will be charged at the start of every bulk period for renewing core time.
|
||||
*
|
||||
* - `origin`: Must be the sovereign account of the task
|
||||
* - `core`: The core to which the task to be renewed is currently assigned.
|
||||
* - `task`: The task for which we want to enable auto renewal.
|
||||
* - `workload_end_hint`: should be used when enabling auto-renewal for a core that is not
|
||||
* expiring in the upcoming bulk period (e.g., due to holding a lease) since it would be
|
||||
* inefficient to look up when the core expires to schedule the next renewal.
|
||||
**/
|
||||
enableAutoRenew: AugmentedSubmittable<(core: u16 | AnyNumber | Uint8Array, task: u32 | AnyNumber | Uint8Array, workloadEndHint: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [u16, u32, Option<u32>]>;
|
||||
/**
|
||||
* Split a Bulk Coretime Region into two wholly-overlapping Regions with complementary
|
||||
* interlace masks which together make up the original Region's interlace mask.
|
||||
@@ -2732,7 +2773,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:
|
||||
*
|
||||
* ```nocompile
|
||||
* Self::registrars().get(reg_index).unwrap().fee
|
||||
* Registrars::<T>::get().get(reg_index).unwrap().fee
|
||||
* ```
|
||||
*
|
||||
* Emits `JudgementRequested` if successful.
|
||||
@@ -4003,8 +4044,13 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
createWithPoolId: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, nominator: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, bouncer: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, MultiAddress, MultiAddress, MultiAddress, u32]>;
|
||||
/**
|
||||
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
||||
* pools account and immediately increases the pools bond.
|
||||
* Stake funds with a pool. The amount to bond is transferred from the member to the pool
|
||||
* account and immediately increases the pools bond.
|
||||
*
|
||||
* The method of transferring the amount to the pool account is determined by
|
||||
* [`adapter::StakeStrategyType`]. If the pool is configured to use
|
||||
* [`adapter::StakeStrategyType::Delegate`], the funds remain in the account of
|
||||
* the `origin`, while the pool gains the right to use these funds for staking.
|
||||
*
|
||||
* # Note
|
||||
*
|
||||
@@ -4617,8 +4663,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
*
|
||||
* - `id`: The identifier of the asset to be destroyed. This must identify an existing
|
||||
* asset.
|
||||
*
|
||||
* The asset class must be frozen before calling `start_destroy`.
|
||||
**/
|
||||
startDestroy: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
||||
/**
|
||||
@@ -4692,6 +4736,25 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
* `target`.
|
||||
**/
|
||||
transfer: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, target: 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>]>;
|
||||
/**
|
||||
* Transfer the entire transferable balance from the caller asset account.
|
||||
*
|
||||
* NOTE: This function only attempts to transfer _transferable_ balances. This means that
|
||||
* any held, frozen, or minimum balance (when `keep_alive` is `true`), will not be
|
||||
* transferred by this function. To ensure that this function results in a killed account,
|
||||
* you might need to prepare the account by removing any reference counters, storage
|
||||
* deposits, etc...
|
||||
*
|
||||
* The dispatch origin of this call must be Signed.
|
||||
*
|
||||
* - `id`: The identifier of the asset for the account holding a deposit.
|
||||
* - `dest`: The recipient of the transfer.
|
||||
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
|
||||
* of the funds the asset account has, causing the sender asset account to be killed
|
||||
* (false), or transfer everything except at least the minimum balance, which will
|
||||
* guarantee to keep the sender asset account alive (true).
|
||||
**/
|
||||
transferAll: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, MultiAddress, bool]>;
|
||||
/**
|
||||
* Transfer some asset balance from a previously delegated account to some third-party
|
||||
* account.
|
||||
@@ -5355,6 +5418,109 @@ declare module '@polkadot/api-base/types/submittable' {
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
revive: {
|
||||
/**
|
||||
* Makes a call to an account, optionally transferring some balance.
|
||||
*
|
||||
* # Parameters
|
||||
*
|
||||
* * `dest`: Address of the contract to call.
|
||||
* * `value`: The balance to transfer from the `origin` to `dest`.
|
||||
* * `gas_limit`: The gas limit enforced when executing the constructor.
|
||||
* * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
|
||||
* caller to pay for the storage consumed.
|
||||
* * `data`: The input data to pass to the contract.
|
||||
*
|
||||
* * If the account is a smart-contract account, the associated code will be
|
||||
* executed and any value will be transferred.
|
||||
* * If the account is a regular account, any value will be transferred.
|
||||
* * If no account exists and the call value is not less than `existential_deposit`,
|
||||
* a regular account will be created and any value will be transferred.
|
||||
**/
|
||||
call: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, SpWeightsWeightV2Weight, Compact<u128>, Bytes]>;
|
||||
/**
|
||||
* Instantiates a contract from a previously deployed wasm binary.
|
||||
*
|
||||
* This function is identical to [`Self::instantiate_with_code`] but without the
|
||||
* code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
|
||||
* must be supplied.
|
||||
**/
|
||||
instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, SpWeightsWeightV2Weight, Compact<u128>, H256, Bytes, Bytes]>;
|
||||
/**
|
||||
* Instantiates a new contract from the supplied `code` optionally transferring
|
||||
* some balance.
|
||||
*
|
||||
* This dispatchable has the same effect as calling [`Self::upload_code`] +
|
||||
* [`Self::instantiate`]. Bundling them together provides efficiency gains. Please
|
||||
* also check the documentation of [`Self::upload_code`].
|
||||
*
|
||||
* # Parameters
|
||||
*
|
||||
* * `value`: The balance to transfer from the `origin` to the newly created contract.
|
||||
* * `gas_limit`: The gas limit enforced when executing the constructor.
|
||||
* * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
|
||||
* from the caller to pay for the storage consumed.
|
||||
* * `code`: The contract code to deploy in raw bytes.
|
||||
* * `data`: The input data to pass to the contract constructor.
|
||||
* * `salt`: Used for the address derivation. See [`Pallet::contract_address`].
|
||||
*
|
||||
* Instantiation is executed as follows:
|
||||
*
|
||||
* - The supplied `code` is deployed, and a `code_hash` is created for that code.
|
||||
* - If the `code_hash` already exists on the chain the underlying `code` will be shared.
|
||||
* - The destination address is computed based on the sender, code_hash and the salt.
|
||||
* - The smart-contract account is created at the computed address.
|
||||
* - The `value` is transferred to the new account.
|
||||
* - The `deploy` function is executed in the context of the newly-created account.
|
||||
**/
|
||||
instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, SpWeightsWeightV2Weight, Compact<u128>, Bytes, Bytes, Bytes]>;
|
||||
/**
|
||||
* When a migration is in progress, this dispatchable can be used to run migration steps.
|
||||
* Calls that contribute to advancing the migration have their fees waived, as it's helpful
|
||||
* for the chain. Note that while the migration is in progress, the pallet will also
|
||||
* leverage the `on_idle` hooks to run migration steps.
|
||||
**/
|
||||
migrate: AugmentedSubmittable<(weightLimit: SpWeightsWeightV2Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpWeightsWeightV2Weight]>;
|
||||
/**
|
||||
* Remove the code stored under `code_hash` and refund the deposit to its owner.
|
||||
*
|
||||
* A code can only be removed by its original uploader (its owner) and only if it is
|
||||
* not used by any contract.
|
||||
**/
|
||||
removeCode: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
|
||||
/**
|
||||
* Privileged function that changes the code of an existing contract.
|
||||
*
|
||||
* This takes care of updating refcounts and all other necessary operations. Returns
|
||||
* an error if either the `code_hash` or `dest` do not exist.
|
||||
*
|
||||
* # Note
|
||||
*
|
||||
* This does **not** change the address of the contract in question. This means
|
||||
* that the contract address is no longer derived from its code hash after calling
|
||||
* this dispatchable.
|
||||
**/
|
||||
setCode: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, H256]>;
|
||||
/**
|
||||
* Upload new `code` without instantiating a contract from it.
|
||||
*
|
||||
* If the code does not already exist a deposit is reserved from the caller
|
||||
* and unreserved only when [`Self::remove_code`] is called. The size of the reserve
|
||||
* depends on the size of the supplied `code`.
|
||||
*
|
||||
* # Note
|
||||
*
|
||||
* Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
|
||||
* To avoid this situation a constructor could employ access control so that it can
|
||||
* only be instantiated by permissioned entities. The same is true when uploading
|
||||
* through [`Self::instantiate_with_code`].
|
||||
**/
|
||||
uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes, Compact<u128>]>;
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
};
|
||||
rootTesting: {
|
||||
/**
|
||||
* A dispatch that will fill the block weight up to the given ratio.
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "14.2.2",
|
||||
"version": "15.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "14.2.2",
|
||||
"@polkadot/types": "14.2.2",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/rpc-core": "15.0.2",
|
||||
"@polkadot/types": "15.0.2",
|
||||
"@polkadot/util": "^13.2.3",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.8.0"
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '14.2.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-base', path: 'auto', type: 'auto', version: '15.0.2' };
|
||||
|
||||
@@ -18,22 +18,22 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "14.2.2",
|
||||
"version": "15.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "14.2.2",
|
||||
"@polkadot/api-augment": "14.2.2",
|
||||
"@polkadot/types": "14.2.2",
|
||||
"@polkadot/types-codec": "14.2.2",
|
||||
"@polkadot/types-create": "14.2.2",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/util-crypto": "^13.2.2",
|
||||
"@polkadot/api": "15.0.2",
|
||||
"@polkadot/api-augment": "15.0.2",
|
||||
"@polkadot/types": "15.0.2",
|
||||
"@polkadot/types-codec": "15.0.2",
|
||||
"@polkadot/types-create": "15.0.2",
|
||||
"@polkadot/util": "^13.2.3",
|
||||
"@polkadot/util-crypto": "^13.2.3",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "14.2.2",
|
||||
"@polkadot/keyring": "^13.2.2",
|
||||
"@polkadot/types-support": "14.2.2"
|
||||
"@polkadot/api-augment": "15.0.2",
|
||||
"@polkadot/keyring": "^13.2.3",
|
||||
"@polkadot/types-support": "15.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '14.2.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-contract', path: 'auto', type: 'auto', version: '15.0.2' };
|
||||
|
||||
@@ -18,25 +18,25 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "14.2.2",
|
||||
"version": "15.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api": "14.2.2",
|
||||
"@polkadot/api-augment": "14.2.2",
|
||||
"@polkadot/api-base": "14.2.2",
|
||||
"@polkadot/rpc-core": "14.2.2",
|
||||
"@polkadot/types": "14.2.2",
|
||||
"@polkadot/types-codec": "14.2.2",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/util-crypto": "^13.2.2",
|
||||
"@polkadot/api": "15.0.2",
|
||||
"@polkadot/api-augment": "15.0.2",
|
||||
"@polkadot/api-base": "15.0.2",
|
||||
"@polkadot/rpc-core": "15.0.2",
|
||||
"@polkadot/types": "15.0.2",
|
||||
"@polkadot/types-codec": "15.0.2",
|
||||
"@polkadot/util": "^13.2.3",
|
||||
"@polkadot/util-crypto": "^13.2.3",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "14.2.2",
|
||||
"@polkadot/api-augment": "14.2.2",
|
||||
"@polkadot/rpc-augment": "14.2.2",
|
||||
"@polkadot/rpc-provider": "14.2.2",
|
||||
"@polkadot/types-support": "14.2.2"
|
||||
"@polkadot/api": "15.0.2",
|
||||
"@polkadot/api-augment": "15.0.2",
|
||||
"@polkadot/rpc-augment": "15.0.2",
|
||||
"@polkadot/rpc-provider": "15.0.2",
|
||||
"@polkadot/types-support": "15.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '14.2.2' };
|
||||
export const packageInfo = { name: '@polkadot/api-derive', path: 'auto', type: 'auto', version: '15.0.2' };
|
||||
|
||||
@@ -84,6 +84,8 @@ function parseRewards (api: DeriveApi, stashId: AccountId, [erasPoints, erasPref
|
||||
return {
|
||||
era,
|
||||
eraReward,
|
||||
// This might not always be accurate as you need validator account information in order to see if the rewards have been claimed.
|
||||
// This is possibly adjusted in `filterRewards` when need be.
|
||||
isClaimed: claimedRewardsEras.some((c) => c.eq(era)),
|
||||
isEmpty,
|
||||
isValidator,
|
||||
@@ -151,12 +153,26 @@ function filterRewards (eras: EraIndex[], valInfo: [string, DeriveStakingQuery][
|
||||
return true;
|
||||
})
|
||||
.filter(({ validators }) => Object.keys(validators).length !== 0)
|
||||
.map((reward) =>
|
||||
objectSpread({}, reward, {
|
||||
isClaimed: filter.some((f) => reward.era.eq(f)),
|
||||
.map((reward) => {
|
||||
let isClaimed = reward.isClaimed;
|
||||
const valKeys = Object.keys(reward.validators);
|
||||
|
||||
if (!reward.isClaimed && valKeys.length) {
|
||||
for (const key of valKeys) {
|
||||
const info = queryValidators.find((i) => i.accountId.toString() === key);
|
||||
|
||||
if (info) {
|
||||
isClaimed = info.claimedRewardsEras.toArray().some((era) => era.eq(reward.era));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return objectSpread({}, reward, {
|
||||
isClaimed,
|
||||
nominators: reward.nominating.filter((n) => reward.validators[n.validatorId])
|
||||
})
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
export function _stakerRewardsEras (instanceId: string, api: DeriveApi): (eras: EraIndex[], withActive?: boolean) => Observable<ErasResult> {
|
||||
|
||||
+17
-17
@@ -18,29 +18,29 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "14.2.2",
|
||||
"version": "15.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/api-augment": "14.2.2",
|
||||
"@polkadot/api-base": "14.2.2",
|
||||
"@polkadot/api-derive": "14.2.2",
|
||||
"@polkadot/keyring": "^13.2.2",
|
||||
"@polkadot/rpc-augment": "14.2.2",
|
||||
"@polkadot/rpc-core": "14.2.2",
|
||||
"@polkadot/rpc-provider": "14.2.2",
|
||||
"@polkadot/types": "14.2.2",
|
||||
"@polkadot/types-augment": "14.2.2",
|
||||
"@polkadot/types-codec": "14.2.2",
|
||||
"@polkadot/types-create": "14.2.2",
|
||||
"@polkadot/types-known": "14.2.2",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/util-crypto": "^13.2.2",
|
||||
"@polkadot/api-augment": "15.0.2",
|
||||
"@polkadot/api-base": "15.0.2",
|
||||
"@polkadot/api-derive": "15.0.2",
|
||||
"@polkadot/keyring": "^13.2.3",
|
||||
"@polkadot/rpc-augment": "15.0.2",
|
||||
"@polkadot/rpc-core": "15.0.2",
|
||||
"@polkadot/rpc-provider": "15.0.2",
|
||||
"@polkadot/types": "15.0.2",
|
||||
"@polkadot/types-augment": "15.0.2",
|
||||
"@polkadot/types-codec": "15.0.2",
|
||||
"@polkadot/types-create": "15.0.2",
|
||||
"@polkadot/types-known": "15.0.2",
|
||||
"@polkadot/util": "^13.2.3",
|
||||
"@polkadot/util-crypto": "^13.2.3",
|
||||
"eventemitter3": "^5.0.1",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api-augment": "14.2.2",
|
||||
"@polkadot/types-support": "14.2.2"
|
||||
"@polkadot/api-augment": "15.0.2",
|
||||
"@polkadot/types-support": "15.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -153,6 +153,7 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
|
||||
this._rpcCore = new RpcCore(this.#instanceId, this.#registry, {
|
||||
isPedantic: this._options.isPedantic,
|
||||
provider,
|
||||
rpcCacheCapacity: this._options.rpcCacheCapacity,
|
||||
userRpc: this._options.rpc
|
||||
}) as (RpcCore & RpcInterface);
|
||||
this._isConnected = new BehaviorSubject(this._rpcCore.provider.isConnected);
|
||||
|
||||
@@ -412,7 +412,8 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
|
||||
: await firstValueFrom(this._rpcCore.state.call('Metadata_metadata_versions', '0x'));
|
||||
const versions = typeRegistry.createType('Vec<u32>', metadataVersionsAsBytes);
|
||||
|
||||
metadataVersion = versions.reduce((largest, current) => current.gt(largest) ? current : largest);
|
||||
// For unstable versions of the metadata the last value is set to u32 MAX in the runtime. This ensures only supported stable versions are used.
|
||||
metadataVersion = versions.filter((ver) => SUPPORTED_METADATA_VERSIONS.includes(ver.toNumber())).reduce((largest, current) => current.gt(largest) ? current : largest);
|
||||
} catch (e) {
|
||||
l.debug((e as Error).message);
|
||||
l.warn('error with state_call::Metadata_metadata_versions, rpc::state::get_metadata will be used');
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '14.2.2' };
|
||||
export const packageInfo = { name: '@polkadot/api', path: 'auto', type: 'auto', version: '15.0.2' };
|
||||
|
||||
@@ -325,6 +325,7 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
|
||||
#signViaSigner = async (address: Address | string | Uint8Array, options: SignatureOptions, header: Header | null): Promise<SignerInfo> => {
|
||||
const signer = options.signer || api.signer;
|
||||
const allowCallDataAlteration = options.allowCallDataAlteration ?? true;
|
||||
|
||||
if (!signer) {
|
||||
throw new Error('No signer specified, either via api.setSigner or via sign options. You possibly need to pass through an explicit keypair for the origin so it can be used for signing.');
|
||||
@@ -367,7 +368,10 @@ export function createClass <ApiType extends ApiTypes> ({ api, apiType, blockHas
|
||||
throw new Error(`When using the signedTransaction field, the transaction must be signed. Recieved isSigned: ${ext.isSigned}`);
|
||||
}
|
||||
|
||||
this.#validateSignedTransaction(payload, ext);
|
||||
if (!allowCallDataAlteration) {
|
||||
this.#validateSignedTransaction(payload, ext);
|
||||
}
|
||||
|
||||
// This is only used for signAsync - signAndSend does not need to adjust the super payload or
|
||||
// add the signature.
|
||||
super.addSignature(address, result.signature, newSignerPayload.toPayload());
|
||||
|
||||
@@ -80,6 +80,10 @@ export interface ApiOptions extends RegisteredTypes {
|
||||
* @description User-defined RPC methods
|
||||
*/
|
||||
rpc?: Record<string, Record<string, DefinitionRpc | DefinitionRpcSub>>;
|
||||
/**
|
||||
* @description Defines the size of the cache for the rpc-core. Defaults to 1024 * 10 * 10.
|
||||
*/
|
||||
rpcCacheCapacity?: number;
|
||||
/**
|
||||
* @description Overrides for state_call usage (this will be removed in some future version)
|
||||
*/
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "14.2.2",
|
||||
"version": "15.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-core": "14.2.2",
|
||||
"@polkadot/types": "14.2.2",
|
||||
"@polkadot/types-codec": "14.2.2",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/rpc-core": "15.0.2",
|
||||
"@polkadot/types": "15.0.2",
|
||||
"@polkadot/types-codec": "15.0.2",
|
||||
"@polkadot/util": "^13.2.3",
|
||||
"tslib": "^2.8.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '14.2.2' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-augment', path: 'auto', type: 'auto', version: '15.0.2' };
|
||||
|
||||
@@ -18,18 +18,18 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "14.2.2",
|
||||
"version": "15.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/rpc-augment": "14.2.2",
|
||||
"@polkadot/rpc-provider": "14.2.2",
|
||||
"@polkadot/types": "14.2.2",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/rpc-augment": "15.0.2",
|
||||
"@polkadot/rpc-provider": "15.0.2",
|
||||
"@polkadot/types": "15.0.2",
|
||||
"@polkadot/util": "^13.2.3",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^13.2.2",
|
||||
"@polkadot/rpc-augment": "14.2.2"
|
||||
"@polkadot/keyring": "^13.2.3",
|
||||
"@polkadot/rpc-augment": "15.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ import type { RpcCoreStats, RpcInterfaceMethod } from './types/index.js';
|
||||
|
||||
import { Observable, publishReplay, refCount } from 'rxjs';
|
||||
|
||||
import { DEFAULT_CAPACITY, LRUCache } from '@polkadot/rpc-provider';
|
||||
import { LRUCache } from '@polkadot/rpc-provider';
|
||||
import { rpcDefinitions } from '@polkadot/types';
|
||||
import { hexToU8a, isFunction, isNull, isUndefined, lazyMethod, logger, memoize, objectSpread, u8aConcat, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
@@ -33,6 +33,10 @@ type MemoizedRpcInterfaceMethod = Memoized<RpcInterfaceMethod> & {
|
||||
interface Options {
|
||||
isPedantic?: boolean;
|
||||
provider: ProviderInterface;
|
||||
/**
|
||||
* Custom size of the rpc LRUCache capacity. Defaults to `RPC_CORE_DEFAULT_CAPACITY` (1024 * 10 * 10)
|
||||
*/
|
||||
rpcCacheCapacity?: number;
|
||||
userRpc?: Record<string, Record<string, DefinitionRpc | DefinitionRpcSub>>;
|
||||
}
|
||||
|
||||
@@ -47,6 +51,8 @@ const EMPTY_META = {
|
||||
}
|
||||
};
|
||||
|
||||
const RPC_CORE_DEFAULT_CAPACITY = 1024 * 10 * 10;
|
||||
|
||||
// utility method to create a nicely-formatted error
|
||||
/** @internal */
|
||||
function logErrorMessage (method: string, { noErrorLog, params, type }: DefinitionRpc, error: Error): void {
|
||||
@@ -107,9 +113,11 @@ export class RpcCore {
|
||||
/**
|
||||
* @constructor
|
||||
* Default constructor for the core RPC handler
|
||||
* @param {ProviderInterface} provider An API provider using any of the supported providers (HTTP, SC or WebSocket)
|
||||
* @param {Registry} registry Type Registry
|
||||
* @param {ProviderInterface} options.provider An API provider using any of the supported providers (HTTP, SC or WebSocket)
|
||||
* @param {number} [options.rpcCacheCapacity] Custom size of the rpc LRUCache capacity. Defaults to `RPC_CORE_DEFAULT_CAPACITY` (1024 * 10 * 10)
|
||||
*/
|
||||
constructor (instanceId: string, registry: Registry, { isPedantic = true, provider, userRpc = {} }: Options) {
|
||||
constructor (instanceId: string, registry: Registry, { isPedantic = true, provider, rpcCacheCapacity, userRpc = {} }: Options) {
|
||||
if (!provider || !isFunction(provider.send)) {
|
||||
throw new Error('Expected Provider to API create');
|
||||
}
|
||||
@@ -123,7 +131,7 @@ export class RpcCore {
|
||||
|
||||
// these are the base keys (i.e. part of jsonrpc)
|
||||
this.sections.push(...sectionNames);
|
||||
this.#storageCache = new LRUCache(DEFAULT_CAPACITY);
|
||||
this.#storageCache = new LRUCache(rpcCacheCapacity || RPC_CORE_DEFAULT_CAPACITY);
|
||||
// decorate all interfaces, defined and user on this instance
|
||||
this.addUserInterfaces(userRpc);
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '14.2.2' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-core', path: 'auto', type: 'auto', version: '15.0.2' };
|
||||
|
||||
@@ -18,17 +18,17 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "14.2.2",
|
||||
"version": "15.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^13.2.2",
|
||||
"@polkadot/types": "14.2.2",
|
||||
"@polkadot/types-support": "14.2.2",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/util-crypto": "^13.2.2",
|
||||
"@polkadot/x-fetch": "^13.2.2",
|
||||
"@polkadot/x-global": "^13.2.2",
|
||||
"@polkadot/x-ws": "^13.2.2",
|
||||
"@polkadot/keyring": "^13.2.3",
|
||||
"@polkadot/types": "15.0.2",
|
||||
"@polkadot/types-support": "15.0.2",
|
||||
"@polkadot/util": "^13.2.3",
|
||||
"@polkadot/util-crypto": "^13.2.3",
|
||||
"@polkadot/x-fetch": "^13.2.3",
|
||||
"@polkadot/x-global": "^13.2.3",
|
||||
"@polkadot/x-ws": "^13.2.3",
|
||||
"eventemitter3": "^5.0.1",
|
||||
"mock-socket": "^9.3.1",
|
||||
"nock": "^13.5.5",
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// cache space (depending on the historic queries this would vary, metadata
|
||||
// for Kusama/Polkadot/Substrate falls between 600-750K, 2x for estimate)
|
||||
|
||||
export const DEFAULT_CAPACITY = 64;
|
||||
export const DEFAULT_CAPACITY = 1024;
|
||||
|
||||
class LRUNode {
|
||||
readonly key: string;
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '14.2.2' };
|
||||
export const packageInfo = { name: '@polkadot/rpc-provider', path: 'auto', type: 'auto', version: '15.0.2' };
|
||||
|
||||
@@ -104,10 +104,11 @@ export class WsProvider implements ProviderInterface {
|
||||
#timeout: number;
|
||||
|
||||
/**
|
||||
* @param {string | string[]} endpoint The endpoint url. Usually `ws://ip:9944` or `wss://ip:9944`, may provide an array of endpoint strings.
|
||||
* @param {string | string[]} endpoint The endpoint url. Usually `ws://ip:9944` or `wss://ip:9944`, may provide an array of endpoint strings.
|
||||
* @param {number | false} autoConnectMs Whether to connect automatically or not (default). Provided value is used as a delay between retries.
|
||||
* @param {Record<string, string>} headers The headers provided to the underlying WebSocket
|
||||
* @param {number} [timeout] Custom timeout value used per request . Defaults to `DEFAULT_TIMEOUT_MS`
|
||||
* @param {number} [cacheCapacity] Custom size of the WsProvider LRUCache. Defaults to `DEFAULT_CAPACITY` (1024)
|
||||
*/
|
||||
constructor (endpoint: string | string[] = defaults.WS_URL, autoConnectMs: number | false = RETRY_DELAY, headers: Record<string, string> = {}, timeout?: number, cacheCapacity?: number) {
|
||||
const endpoints = Array.isArray(endpoint)
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "14.2.2",
|
||||
"version": "15.0.2",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.mjs",
|
||||
@@ -28,18 +28,18 @@
|
||||
"polkadot-types-internal-metadata": "./scripts/polkadot-types-internal-metadata.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@polkadot/api": "14.2.2",
|
||||
"@polkadot/api-augment": "14.2.2",
|
||||
"@polkadot/rpc-augment": "14.2.2",
|
||||
"@polkadot/rpc-provider": "14.2.2",
|
||||
"@polkadot/types": "14.2.2",
|
||||
"@polkadot/types-augment": "14.2.2",
|
||||
"@polkadot/types-codec": "14.2.2",
|
||||
"@polkadot/types-create": "14.2.2",
|
||||
"@polkadot/types-support": "14.2.2",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/util-crypto": "^13.2.2",
|
||||
"@polkadot/x-ws": "^13.2.2",
|
||||
"@polkadot/api": "15.0.2",
|
||||
"@polkadot/api-augment": "15.0.2",
|
||||
"@polkadot/rpc-augment": "15.0.2",
|
||||
"@polkadot/rpc-provider": "15.0.2",
|
||||
"@polkadot/types": "15.0.2",
|
||||
"@polkadot/types-augment": "15.0.2",
|
||||
"@polkadot/types-codec": "15.0.2",
|
||||
"@polkadot/types-create": "15.0.2",
|
||||
"@polkadot/types-support": "15.0.2",
|
||||
"@polkadot/util": "^13.2.3",
|
||||
"@polkadot/util-crypto": "^13.2.3",
|
||||
"@polkadot/x-ws": "^13.2.3",
|
||||
"handlebars": "^4.7.8",
|
||||
"tslib": "^2.8.0",
|
||||
"yargs": "^17.7.2"
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '14.2.2' };
|
||||
export const packageInfo = { name: '@polkadot/typegen', path: 'auto', type: 'auto', version: '15.0.2' };
|
||||
|
||||
@@ -18,12 +18,12 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "14.2.2",
|
||||
"version": "15.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types": "14.2.2",
|
||||
"@polkadot/types-codec": "14.2.2",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/types": "15.0.2",
|
||||
"@polkadot/types-codec": "15.0.2",
|
||||
"@polkadot/util": "^13.2.3",
|
||||
"tslib": "^2.8.0"
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '14.2.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-augment', path: 'auto', type: 'auto', version: '15.0.2' };
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -18,17 +18,17 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "14.2.2",
|
||||
"version": "15.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/x-bigint": "^13.2.2",
|
||||
"@polkadot/util": "^13.2.3",
|
||||
"@polkadot/x-bigint": "^13.2.3",
|
||||
"tslib": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "14.2.2",
|
||||
"@polkadot/types-augment": "14.2.2",
|
||||
"@polkadot/types-support": "14.2.2",
|
||||
"@polkadot/util-crypto": "^13.2.2"
|
||||
"@polkadot/types": "15.0.2",
|
||||
"@polkadot/types-augment": "15.0.2",
|
||||
"@polkadot/types-support": "15.0.2",
|
||||
"@polkadot/util-crypto": "^13.2.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '14.2.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-codec', path: 'auto', type: 'auto', version: '15.0.2' };
|
||||
|
||||
@@ -18,14 +18,14 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "14.2.2",
|
||||
"version": "15.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/types-codec": "14.2.2",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/types-codec": "15.0.2",
|
||||
"@polkadot/util": "^13.2.3",
|
||||
"tslib": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "14.2.2"
|
||||
"@polkadot/types": "15.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '14.2.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-create', path: 'auto', type: 'auto', version: '15.0.2' };
|
||||
|
||||
@@ -18,17 +18,17 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "14.2.2",
|
||||
"version": "15.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/networks": "^13.2.2",
|
||||
"@polkadot/types": "14.2.2",
|
||||
"@polkadot/types-codec": "14.2.2",
|
||||
"@polkadot/types-create": "14.2.2",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/networks": "^13.2.3",
|
||||
"@polkadot/types": "15.0.2",
|
||||
"@polkadot/types-codec": "15.0.2",
|
||||
"@polkadot/types-create": "15.0.2",
|
||||
"@polkadot/util": "^13.2.3",
|
||||
"tslib": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/api": "14.2.2"
|
||||
"@polkadot/api": "15.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '14.2.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-known', path: 'auto', type: 'auto', version: '15.0.2' };
|
||||
|
||||
@@ -16,6 +16,8 @@ import * as allGen from './index.js';
|
||||
|
||||
const keys = ['kusama', 'polkadot', 'westend'] as const;
|
||||
const urls = {
|
||||
'asset-hub-kusama': 'wss://kusama-asset-hub-rpc.polkadot.io',
|
||||
'asset-hub-polkadot': 'wss://polkadot-asset-hub-rpc.polkadot.io',
|
||||
kusama: 'wss://kusama-rpc.polkadot.io',
|
||||
polkadot: 'wss://rpc.polkadot.io',
|
||||
westend: 'wss://westend-rpc.polkadot.io'
|
||||
|
||||
@@ -18,10 +18,10 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "14.2.2",
|
||||
"version": "15.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/util": "^13.2.3",
|
||||
"tslib": "^2.8.0"
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,122 @@
|
||||
// Copyright 2017-2024 @polkadot/types-support authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
//To run a asset-hub-kusama node please refer to types-support/src/metadata/README.md
|
||||
|
||||
export default {
|
||||
"methods": [
|
||||
"account_nextIndex",
|
||||
"archive_unstable_body",
|
||||
"archive_unstable_call",
|
||||
"archive_unstable_finalizedHeight",
|
||||
"archive_unstable_genesisHash",
|
||||
"archive_unstable_hashByHeight",
|
||||
"archive_unstable_header",
|
||||
"archive_unstable_storage",
|
||||
"author_hasKey",
|
||||
"author_hasSessionKeys",
|
||||
"author_insertKey",
|
||||
"author_pendingExtrinsics",
|
||||
"author_removeExtrinsic",
|
||||
"author_rotateKeys",
|
||||
"author_submitAndWatchExtrinsic",
|
||||
"author_submitExtrinsic",
|
||||
"author_unwatchExtrinsic",
|
||||
"chainHead_v1_body",
|
||||
"chainHead_v1_call",
|
||||
"chainHead_v1_continue",
|
||||
"chainHead_v1_follow",
|
||||
"chainHead_v1_header",
|
||||
"chainHead_v1_stopOperation",
|
||||
"chainHead_v1_storage",
|
||||
"chainHead_v1_unfollow",
|
||||
"chainHead_v1_unpin",
|
||||
"chainSpec_v1_chainName",
|
||||
"chainSpec_v1_genesisHash",
|
||||
"chainSpec_v1_properties",
|
||||
"chain_getBlock",
|
||||
"chain_getBlockHash",
|
||||
"chain_getFinalisedHead",
|
||||
"chain_getFinalizedHead",
|
||||
"chain_getHead",
|
||||
"chain_getHeader",
|
||||
"chain_getRuntimeVersion",
|
||||
"chain_subscribeAllHeads",
|
||||
"chain_subscribeFinalisedHeads",
|
||||
"chain_subscribeFinalizedHeads",
|
||||
"chain_subscribeNewHead",
|
||||
"chain_subscribeNewHeads",
|
||||
"chain_subscribeRuntimeVersion",
|
||||
"chain_unsubscribeAllHeads",
|
||||
"chain_unsubscribeFinalisedHeads",
|
||||
"chain_unsubscribeFinalizedHeads",
|
||||
"chain_unsubscribeNewHead",
|
||||
"chain_unsubscribeNewHeads",
|
||||
"chain_unsubscribeRuntimeVersion",
|
||||
"childstate_getKeys",
|
||||
"childstate_getKeysPaged",
|
||||
"childstate_getKeysPagedAt",
|
||||
"childstate_getStorage",
|
||||
"childstate_getStorageEntries",
|
||||
"childstate_getStorageHash",
|
||||
"childstate_getStorageSize",
|
||||
"dev_getBlockStats",
|
||||
"offchain_localStorageGet",
|
||||
"offchain_localStorageSet",
|
||||
"payment_queryFeeDetails",
|
||||
"payment_queryInfo",
|
||||
"rpc_methods",
|
||||
"state_call",
|
||||
"state_callAt",
|
||||
"state_getChildReadProof",
|
||||
"state_getKeys",
|
||||
"state_getKeysPaged",
|
||||
"state_getKeysPagedAt",
|
||||
"state_getMetadata",
|
||||
"state_getPairs",
|
||||
"state_getReadProof",
|
||||
"state_getRuntimeVersion",
|
||||
"state_getStorage",
|
||||
"state_getStorageAt",
|
||||
"state_getStorageHash",
|
||||
"state_getStorageHashAt",
|
||||
"state_getStorageSize",
|
||||
"state_getStorageSizeAt",
|
||||
"state_queryStorage",
|
||||
"state_queryStorageAt",
|
||||
"state_subscribeRuntimeVersion",
|
||||
"state_subscribeStorage",
|
||||
"state_traceBlock",
|
||||
"state_trieMigrationStatus",
|
||||
"state_unsubscribeRuntimeVersion",
|
||||
"state_unsubscribeStorage",
|
||||
"subscribe_newHead",
|
||||
"system_accountNextIndex",
|
||||
"system_addLogFilter",
|
||||
"system_addReservedPeer",
|
||||
"system_chain",
|
||||
"system_chainType",
|
||||
"system_dryRun",
|
||||
"system_dryRunAt",
|
||||
"system_health",
|
||||
"system_localListenAddresses",
|
||||
"system_localPeerId",
|
||||
"system_name",
|
||||
"system_nodeRoles",
|
||||
"system_peers",
|
||||
"system_properties",
|
||||
"system_removeReservedPeer",
|
||||
"system_reservedPeers",
|
||||
"system_resetLogFilter",
|
||||
"system_syncState",
|
||||
"system_unstable_networkState",
|
||||
"system_version",
|
||||
"transactionWatch_v1_submitAndWatch",
|
||||
"transactionWatch_v1_unwatch",
|
||||
"transaction_v1_broadcast",
|
||||
"transaction_v1_stop",
|
||||
"unsubscribe_newHead"
|
||||
]
|
||||
};
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,90 @@
|
||||
// Copyright 2017-2024 @polkadot/types-support authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
//To run a asset-hub-kusama node please refer to types-support/src/metadata/README.md
|
||||
|
||||
export default {
|
||||
"specName": "statemine",
|
||||
"implName": "statemine",
|
||||
"authoringVersion": 1,
|
||||
"specVersion": 1003000,
|
||||
"implVersion": 0,
|
||||
"apis": [
|
||||
[
|
||||
"0xdd718d5cc53262d4",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xd7bdd8a272ca0d65",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xdf6acb689907609b",
|
||||
5
|
||||
],
|
||||
[
|
||||
"0x37e397fc7c91f5e4",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x40fe3ad401f8959a",
|
||||
6
|
||||
],
|
||||
[
|
||||
"0xd2bc9897eed08f15",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xf78b278be53f454c",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xab3c0572291feb8b",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xbc9d89904f5b923f",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x8a8047a53a8277ec",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x37c8bb1350a9a2a8",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0xf3ff14d5ab527059",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x6ff52ee858e6c5bd",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x91b1c8b16328eb92",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x9ffb505aa738d69c",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xde92b8a0426b9bf6",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xea93e3f16f3d6962",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xfbc577b9d747efd6",
|
||||
1
|
||||
]
|
||||
],
|
||||
"transactionVersion": 15,
|
||||
"stateVersion": 0
|
||||
};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,122 @@
|
||||
// Copyright 2017-2024 @polkadot/types-support authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
//To run a asset-hub-polkadot node please refer to types-support/src/metadata/README.md
|
||||
|
||||
export default {
|
||||
"methods": [
|
||||
"account_nextIndex",
|
||||
"archive_unstable_body",
|
||||
"archive_unstable_call",
|
||||
"archive_unstable_finalizedHeight",
|
||||
"archive_unstable_genesisHash",
|
||||
"archive_unstable_hashByHeight",
|
||||
"archive_unstable_header",
|
||||
"archive_unstable_storage",
|
||||
"author_hasKey",
|
||||
"author_hasSessionKeys",
|
||||
"author_insertKey",
|
||||
"author_pendingExtrinsics",
|
||||
"author_removeExtrinsic",
|
||||
"author_rotateKeys",
|
||||
"author_submitAndWatchExtrinsic",
|
||||
"author_submitExtrinsic",
|
||||
"author_unwatchExtrinsic",
|
||||
"chainHead_v1_body",
|
||||
"chainHead_v1_call",
|
||||
"chainHead_v1_continue",
|
||||
"chainHead_v1_follow",
|
||||
"chainHead_v1_header",
|
||||
"chainHead_v1_stopOperation",
|
||||
"chainHead_v1_storage",
|
||||
"chainHead_v1_unfollow",
|
||||
"chainHead_v1_unpin",
|
||||
"chainSpec_v1_chainName",
|
||||
"chainSpec_v1_genesisHash",
|
||||
"chainSpec_v1_properties",
|
||||
"chain_getBlock",
|
||||
"chain_getBlockHash",
|
||||
"chain_getFinalisedHead",
|
||||
"chain_getFinalizedHead",
|
||||
"chain_getHead",
|
||||
"chain_getHeader",
|
||||
"chain_getRuntimeVersion",
|
||||
"chain_subscribeAllHeads",
|
||||
"chain_subscribeFinalisedHeads",
|
||||
"chain_subscribeFinalizedHeads",
|
||||
"chain_subscribeNewHead",
|
||||
"chain_subscribeNewHeads",
|
||||
"chain_subscribeRuntimeVersion",
|
||||
"chain_unsubscribeAllHeads",
|
||||
"chain_unsubscribeFinalisedHeads",
|
||||
"chain_unsubscribeFinalizedHeads",
|
||||
"chain_unsubscribeNewHead",
|
||||
"chain_unsubscribeNewHeads",
|
||||
"chain_unsubscribeRuntimeVersion",
|
||||
"childstate_getKeys",
|
||||
"childstate_getKeysPaged",
|
||||
"childstate_getKeysPagedAt",
|
||||
"childstate_getStorage",
|
||||
"childstate_getStorageEntries",
|
||||
"childstate_getStorageHash",
|
||||
"childstate_getStorageSize",
|
||||
"dev_getBlockStats",
|
||||
"offchain_localStorageGet",
|
||||
"offchain_localStorageSet",
|
||||
"payment_queryFeeDetails",
|
||||
"payment_queryInfo",
|
||||
"rpc_methods",
|
||||
"state_call",
|
||||
"state_callAt",
|
||||
"state_getChildReadProof",
|
||||
"state_getKeys",
|
||||
"state_getKeysPaged",
|
||||
"state_getKeysPagedAt",
|
||||
"state_getMetadata",
|
||||
"state_getPairs",
|
||||
"state_getReadProof",
|
||||
"state_getRuntimeVersion",
|
||||
"state_getStorage",
|
||||
"state_getStorageAt",
|
||||
"state_getStorageHash",
|
||||
"state_getStorageHashAt",
|
||||
"state_getStorageSize",
|
||||
"state_getStorageSizeAt",
|
||||
"state_queryStorage",
|
||||
"state_queryStorageAt",
|
||||
"state_subscribeRuntimeVersion",
|
||||
"state_subscribeStorage",
|
||||
"state_traceBlock",
|
||||
"state_trieMigrationStatus",
|
||||
"state_unsubscribeRuntimeVersion",
|
||||
"state_unsubscribeStorage",
|
||||
"subscribe_newHead",
|
||||
"system_accountNextIndex",
|
||||
"system_addLogFilter",
|
||||
"system_addReservedPeer",
|
||||
"system_chain",
|
||||
"system_chainType",
|
||||
"system_dryRun",
|
||||
"system_dryRunAt",
|
||||
"system_health",
|
||||
"system_localListenAddresses",
|
||||
"system_localPeerId",
|
||||
"system_name",
|
||||
"system_nodeRoles",
|
||||
"system_peers",
|
||||
"system_properties",
|
||||
"system_removeReservedPeer",
|
||||
"system_reservedPeers",
|
||||
"system_resetLogFilter",
|
||||
"system_syncState",
|
||||
"system_unstable_networkState",
|
||||
"system_version",
|
||||
"transactionWatch_v1_submitAndWatch",
|
||||
"transactionWatch_v1_unwatch",
|
||||
"transaction_v1_broadcast",
|
||||
"transaction_v1_stop",
|
||||
"unsubscribe_newHead"
|
||||
]
|
||||
};
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,90 @@
|
||||
// Copyright 2017-2024 @polkadot/types-support authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/* eslint-disable */
|
||||
|
||||
//To run a asset-hub-polkadot node please refer to types-support/src/metadata/README.md
|
||||
|
||||
export default {
|
||||
"specName": "statemint",
|
||||
"implName": "statemint",
|
||||
"authoringVersion": 1,
|
||||
"specVersion": 1003003,
|
||||
"implVersion": 0,
|
||||
"apis": [
|
||||
[
|
||||
"0xdd718d5cc53262d4",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xd7bdd8a272ca0d65",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xdf6acb689907609b",
|
||||
5
|
||||
],
|
||||
[
|
||||
"0x37e397fc7c91f5e4",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x40fe3ad401f8959a",
|
||||
6
|
||||
],
|
||||
[
|
||||
"0xd2bc9897eed08f15",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0xf78b278be53f454c",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xab3c0572291feb8b",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xbc9d89904f5b923f",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x37c8bb1350a9a2a8",
|
||||
4
|
||||
],
|
||||
[
|
||||
"0xf3ff14d5ab527059",
|
||||
3
|
||||
],
|
||||
[
|
||||
"0x6ff52ee858e6c5bd",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x91b1c8b16328eb92",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x9ffb505aa738d69c",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0xde92b8a0426b9bf6",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xea93e3f16f3d6962",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0xfbc577b9d747efd6",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x8a8047a53a8277ec",
|
||||
1
|
||||
]
|
||||
],
|
||||
"transactionVersion": 15,
|
||||
"stateVersion": 0
|
||||
};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -68,6 +68,10 @@ export default {
|
||||
"0x68b66ba122c93fa7",
|
||||
2
|
||||
],
|
||||
[
|
||||
"0x8c403e5c4a9fd442",
|
||||
1
|
||||
],
|
||||
[
|
||||
"0x37c8bb1350a9a2a8",
|
||||
4
|
||||
@@ -86,7 +90,7 @@ export default {
|
||||
],
|
||||
[
|
||||
"0x49eaaf1b548a0cb0",
|
||||
4
|
||||
5
|
||||
],
|
||||
[
|
||||
"0x91d5df18b0d2cf58",
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '14.2.2' };
|
||||
export const packageInfo = { name: '@polkadot/types-support', path: 'auto', type: 'auto', version: '15.0.2' };
|
||||
|
||||
@@ -18,20 +18,20 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "14.2.2",
|
||||
"version": "15.0.2",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@polkadot/keyring": "^13.2.2",
|
||||
"@polkadot/types-augment": "14.2.2",
|
||||
"@polkadot/types-codec": "14.2.2",
|
||||
"@polkadot/types-create": "14.2.2",
|
||||
"@polkadot/util": "^13.2.2",
|
||||
"@polkadot/util-crypto": "^13.2.2",
|
||||
"@polkadot/keyring": "^13.2.3",
|
||||
"@polkadot/types-augment": "15.0.2",
|
||||
"@polkadot/types-codec": "15.0.2",
|
||||
"@polkadot/types-create": "15.0.2",
|
||||
"@polkadot/util": "^13.2.3",
|
||||
"@polkadot/util-crypto": "^13.2.3",
|
||||
"rxjs": "^7.8.1",
|
||||
"tslib": "^2.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^13.2.2",
|
||||
"@polkadot/types-support": "14.2.2"
|
||||
"@polkadot/keyring": "^13.2.3",
|
||||
"@polkadot/types-support": "15.0.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,36 +57,19 @@ describe('Extrinsic', (): void => {
|
||||
registry.setMetadata(metadata);
|
||||
|
||||
describe('SignedExtrinsic', () => {
|
||||
it('Should work when the version and preamble is passed in', () => {
|
||||
const extrinsic = new Extrinsic(
|
||||
it('Should error with a signed extrinsic, when the version is passed in', () => {
|
||||
expect(() => new Extrinsic(
|
||||
registry,
|
||||
'0x51028500d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d011e0b7d9438899333c50121f8e10144952d51c3bb8d0ea11dd1f24940d8ff615ad351d95ed9f41f078748ed7cf182864a20b38eebfaef6629433365eb90c0148c007502000000000603008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a480b00a0724e1809',
|
||||
{ preamble: 'signed', version: 5 }
|
||||
);
|
||||
|
||||
expect(extrinsic.signer.toString()).toEqual('5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY');
|
||||
expect(extrinsic.era.toHuman()).toEqual({ MortalEra: { period: '64', phase: '39' } });
|
||||
expect(extrinsic.nonce.toNumber()).toEqual(0);
|
||||
expect(extrinsic.tip.toHuman()).toEqual('0');
|
||||
expect(extrinsic.callIndex).toEqual(new Uint8Array([6, 3]));
|
||||
expect(extrinsic.args[0].toHex()).toEqual('0x008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48');
|
||||
expect(extrinsic.args[1].toHuman()).toEqual('10,000,000,000,000');
|
||||
{ version: 5 }
|
||||
)).toThrow('Signed Extrinsics are currently only available for ExtrinsicV4');
|
||||
});
|
||||
|
||||
it('Should work when the version and preamble is not passed in', () => {
|
||||
const extrinsic = new Extrinsic(
|
||||
it('Should error when the version and preamble is not passed in, and its a signed extrinsic', () => {
|
||||
expect(() => new Extrinsic(
|
||||
registry,
|
||||
'0x51028500d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d011e0b7d9438899333c50121f8e10144952d51c3bb8d0ea11dd1f24940d8ff615ad351d95ed9f41f078748ed7cf182864a20b38eebfaef6629433365eb90c0148c007502000000000603008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a480b00a0724e1809'
|
||||
);
|
||||
|
||||
expect(extrinsic.version).toEqual(133);
|
||||
expect(extrinsic.signer.toString()).toEqual('5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY');
|
||||
expect(extrinsic.era.toHuman()).toEqual({ MortalEra: { period: '64', phase: '39' } });
|
||||
expect(extrinsic.nonce.toNumber()).toEqual(0);
|
||||
expect(extrinsic.tip.toHuman()).toEqual('0');
|
||||
expect(extrinsic.callIndex).toEqual(new Uint8Array([6, 3]));
|
||||
expect(extrinsic.args[0].toHex()).toEqual('0x008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48');
|
||||
expect(extrinsic.args[1].toHuman()).toEqual('10,000,000,000,000');
|
||||
)).toThrow('Signed Extrinsics are currently only available for ExtrinsicV4');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import type { ExtrinsicValueV5 } from './v5/Extrinsic.js';
|
||||
import { AbstractBase } from '@polkadot/types-codec';
|
||||
import { compactAddLength, compactFromU8a, compactToU8a, isHex, isU8a, objectProperty, objectSpread, u8aConcat, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { BARE_EXTRINSIC, BIT_SIGNED, BIT_UNSIGNED, DEFAULT_PREAMBLE, GENERAL_EXTRINSIC, LATEST_EXTRINSIC_VERSION, LOWEST_SUPPORTED_EXTRINSIC_FORMAT_VERSION, SIGNED_EXTRINSIC, TYPE_MASK, VERSION_MASK } from './constants.js';
|
||||
import { BARE_EXTRINSIC, BIT_SIGNED, BIT_UNSIGNED, DEFAULT_PREAMBLE, GENERAL_EXTRINSIC, LATEST_EXTRINSIC_VERSION, LOWEST_SUPPORTED_EXTRINSIC_FORMAT_VERSION, TYPE_MASK, VERSION_MASK } from './constants.js';
|
||||
|
||||
interface CreateOptions {
|
||||
version?: number;
|
||||
@@ -40,22 +40,18 @@ const VERSIONS = [
|
||||
|
||||
const PREAMBLE = {
|
||||
bare: 'ExtrinsicV5',
|
||||
general: 'GeneralExtrinsic',
|
||||
signed: 'ExtrinsicV5'
|
||||
general: 'GeneralExtrinsic'
|
||||
};
|
||||
|
||||
const PreambleMask = {
|
||||
bare: BARE_EXTRINSIC,
|
||||
general: GENERAL_EXTRINSIC,
|
||||
signed: SIGNED_EXTRINSIC
|
||||
general: GENERAL_EXTRINSIC
|
||||
};
|
||||
|
||||
const preambleUnMask: Record<string, Preamble> = {
|
||||
0: 'bare',
|
||||
// eslint-disable-next-line sort-keys
|
||||
64: 'general',
|
||||
// eslint-disable-next-line sort-keys
|
||||
128: 'signed'
|
||||
64: 'general'
|
||||
};
|
||||
|
||||
export { LATEST_EXTRINSIC_VERSION };
|
||||
@@ -295,7 +291,11 @@ abstract class ExtrinsicBase<A extends AnyTuple> extends AbstractBase<ExtrinsicV
|
||||
if (this.type <= LOWEST_SUPPORTED_EXTRINSIC_FORMAT_VERSION) {
|
||||
return this.type | (this.isSigned ? BIT_SIGNED : BIT_UNSIGNED);
|
||||
} else {
|
||||
return this.type | (this.isSigned ? PreambleMask.signed : this.isGeneral() ? PreambleMask.general : PreambleMask.bare);
|
||||
if (this.isSigned) {
|
||||
throw new Error('Signed Extrinsics are currently only available for ExtrinsicV4');
|
||||
}
|
||||
|
||||
return this.type | (this.isGeneral() ? PreambleMask.general : PreambleMask.bare);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
import { u8aToHex } from '@polkadot/util';
|
||||
|
||||
import { TypeRegistry } from '../create/index.js';
|
||||
import { fallbackExtensions } from './signedExtensions/index.js';
|
||||
import { GenericExtrinsicPayload as ExtrinsicPayload } from './index.js';
|
||||
|
||||
describe('ExtrinsicPayload', (): void => {
|
||||
@@ -21,6 +22,18 @@ describe('ExtrinsicPayload', (): void => {
|
||||
tip: '0x00000000000000000000000000005678'
|
||||
};
|
||||
|
||||
const TEST_WITH_ASSET = {
|
||||
address: '5DTestUPts3kjeXSTMyerHihn1uwMfLj8vU8sqF7qYrFabHE',
|
||||
assetId: '0x010002043205011f' as `0x${string}`,
|
||||
blockHash: '0xde8f69eeb5e065e18c6950ff708d7e551f68dc9bf59a07c52367c0280f805ec7',
|
||||
era: '0x0703',
|
||||
genesisHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
|
||||
method: '0x0600ffd7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9e56c',
|
||||
nonce: '0x00001234',
|
||||
specVersion: 123,
|
||||
tip: '0x00000000000000000000000000005678'
|
||||
};
|
||||
|
||||
it('creates and can re-create from itself (U8a)', (): void => {
|
||||
const a = new ExtrinsicPayload(registry, TEST, { version: 4 });
|
||||
const b = new ExtrinsicPayload(registry, a.toU8a(), { version: 4 });
|
||||
@@ -37,6 +50,30 @@ describe('ExtrinsicPayload', (): void => {
|
||||
expect(a.toJSON()).toEqual(b.toJSON());
|
||||
});
|
||||
|
||||
it('handles assetId correctly', () => {
|
||||
const reg = new TypeRegistry();
|
||||
|
||||
reg.setSignedExtensions(fallbackExtensions.concat(['ChargeAssetTxPayment']));
|
||||
const ext = new ExtrinsicPayload(reg, TEST_WITH_ASSET, { version: 4 });
|
||||
// remove option byte
|
||||
const ext2 = new ExtrinsicPayload(reg, { ...TEST_WITH_ASSET, assetId: `0x${TEST_WITH_ASSET.assetId.slice(4)}` }, { version: 4 });
|
||||
|
||||
expect(ext.assetId.toJSON()).toEqual({
|
||||
interior: {
|
||||
x2: [
|
||||
{
|
||||
palletInstance: 50
|
||||
},
|
||||
{
|
||||
generalIndex: 1984
|
||||
}
|
||||
]
|
||||
},
|
||||
parents: 0
|
||||
});
|
||||
expect(ext.assetId.toJSON()).toEqual(ext2.assetId.toJSON());
|
||||
});
|
||||
|
||||
it('handles toU8a(true) correctly', (): void => {
|
||||
expect(
|
||||
u8aToHex(
|
||||
|
||||
@@ -36,8 +36,7 @@ const VERSIONS = [
|
||||
const PREAMBLES = {
|
||||
bare: 'ExtrinsicPayloadV5',
|
||||
// Not supported yet
|
||||
general: 'ExtrinsicPayloadV5',
|
||||
signed: 'ExtrinsicPayloadV5'
|
||||
general: 'ExtrinsicPayloadV5'
|
||||
};
|
||||
|
||||
/** @internal */
|
||||
@@ -58,12 +57,18 @@ function decodeExtrinsicPayload (registry: Registry, value?: GenericExtrinsicPay
|
||||
* ref: https://github.com/polkadot-js/api/pull/5967
|
||||
*/
|
||||
if (value && (value as ExtrinsicPayloadValue).assetId && isHex((value as ExtrinsicPayloadValue).assetId)) {
|
||||
const adjustedPayload = {
|
||||
...(value as ExtrinsicPayloadValue),
|
||||
assetId: registry.createType('TAssetConversion', hexToU8a((value as ExtrinsicPayloadValue).assetId)).toJSON()
|
||||
};
|
||||
const assetId = registry.createType('TAssetConversion', hexToU8a((value as ExtrinsicPayloadValue).assetId));
|
||||
|
||||
return registry.createTypeUnsafe(extVersion, [adjustedPayload, { version }]);
|
||||
// we only want to adjust the payload if the hex passed has the option
|
||||
if ((value as ExtrinsicPayloadValue).assetId === '0x00' ||
|
||||
(value as ExtrinsicPayloadValue).assetId === '0x01' + assetId.toHex().slice(2)) {
|
||||
const adjustedPayload = {
|
||||
...(value as ExtrinsicPayloadValue),
|
||||
assetId: assetId.toJSON()
|
||||
};
|
||||
|
||||
return registry.createTypeUnsafe(extVersion, [adjustedPayload, { version }]);
|
||||
}
|
||||
}
|
||||
|
||||
return registry.createTypeUnsafe(extVersion, [value, { version }]);
|
||||
|
||||
@@ -22,8 +22,6 @@ export const TYPE_MASK = 0b11000000;
|
||||
|
||||
export const BARE_EXTRINSIC = 0b00000000;
|
||||
|
||||
export const SIGNED_EXTRINSIC = 0b10000000;
|
||||
|
||||
export const GENERAL_EXTRINSIC = 0b01000000;
|
||||
|
||||
export const LOWEST_SUPPORTED_EXTRINSIC_FORMAT_VERSION = 4;
|
||||
|
||||
@@ -22,4 +22,4 @@ export interface ExtrinsicExtraValue {
|
||||
tip?: AnyNumber;
|
||||
}
|
||||
|
||||
export type Preamble = 'signed' | 'bare' | 'general';
|
||||
export type Preamble = 'bare' | 'general';
|
||||
|
||||
@@ -14,13 +14,6 @@ export function sign (registry: Registry, signerPair: IKeyringPair, u8a: Uint8Ar
|
||||
return signerPair.sign(encoded, options);
|
||||
}
|
||||
|
||||
// a helper function for both types of payloads, Raw and metadata-known
|
||||
export function signV5 (registry: Registry, signerPair: IKeyringPair, u8a: Uint8Array, options?: SignOptions): Uint8Array {
|
||||
const encoded = registry.hash(u8a);
|
||||
|
||||
return signerPair.sign(encoded, options);
|
||||
}
|
||||
|
||||
export function signGeneral (registry: Registry, u8a: Uint8Array): Uint8Array {
|
||||
const encoded = registry.hash(u8a);
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ import rpcMetadata from '@polkadot/types-support/metadata/static-substrate';
|
||||
|
||||
import { TypeRegistry } from '../../create/index.js';
|
||||
import { decorateExtrinsics, Metadata } from '../../metadata/index.js';
|
||||
import { fallbackExtensions } from '../signedExtensions/index.js';
|
||||
import { GenericExtrinsicPayloadV4 as ExtrinsicPayload } from './index.js';
|
||||
|
||||
const registry = new TypeRegistry();
|
||||
@@ -36,4 +37,38 @@ describe('ExtrinsicPayload', (): void => {
|
||||
]
|
||||
});
|
||||
});
|
||||
|
||||
it('correctly decodes assetId', () => {
|
||||
const TEST_WITH_ASSET = {
|
||||
address: '5DTestUPts3kjeXSTMyerHihn1uwMfLj8vU8sqF7qYrFabHE',
|
||||
assetId: '0x0002043205011f' as `0x${string}`,
|
||||
blockHash: '0xde8f69eeb5e065e18c6950ff708d7e551f68dc9bf59a07c52367c0280f805ec7',
|
||||
era: '0x0703',
|
||||
genesisHash: '0xdcd1346701ca8396496e52aa2785b1748deb6db09551b72159dcb3e08991025b',
|
||||
method: '0x0600ffd7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9e56c',
|
||||
nonce: '0x00001234',
|
||||
specVersion: 123,
|
||||
tip: '0x00000000000000000000000000005678',
|
||||
transactionVersion: '0x00'
|
||||
};
|
||||
|
||||
const reg = new TypeRegistry();
|
||||
|
||||
reg.setSignedExtensions(fallbackExtensions.concat(['ChargeAssetTxPayment']));
|
||||
const ext = new ExtrinsicPayload(reg, TEST_WITH_ASSET);
|
||||
|
||||
expect(ext.assetId.toJSON()).toEqual({
|
||||
interior: {
|
||||
x2: [
|
||||
{
|
||||
palletInstance: 50
|
||||
},
|
||||
{
|
||||
generalIndex: 1984
|
||||
}
|
||||
]
|
||||
},
|
||||
parents: 0
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -48,9 +48,9 @@ describe('ExtrinsicV5', (): void => {
|
||||
);
|
||||
});
|
||||
|
||||
it('creates a signed extrinsic', (): void => {
|
||||
it('Errors when creating a signed Extrinsic', (): void => {
|
||||
expect(
|
||||
new Extrinsic(
|
||||
() => new Extrinsic(
|
||||
registry,
|
||||
tx['balances']['transferAllowDeath'](keyring.bob.publicKey, 6969n)
|
||||
).sign(keyring.alice, {
|
||||
@@ -69,19 +69,6 @@ describe('ExtrinsicV5', (): void => {
|
||||
},
|
||||
tip: 2
|
||||
}).toHex()
|
||||
).toEqual(
|
||||
'0x' +
|
||||
'00' +
|
||||
'd172a74cda4c865912c32ba0a80a57ae69abae410e5ccb59dee84e2f4432db4f' +
|
||||
'00' + // ed25519
|
||||
'84181ebef350cc212e70e042b6ebcd33ca955bf9497711a64aa7c64e2b8c2732' +
|
||||
'ab837715364eab7be5cc76f74eefa36d3ba9ee698264ed28a286c8360fc9aa0c' +
|
||||
'00' + // TransactionExtension version
|
||||
'0004080000' + // era. nonce, tip, mode
|
||||
'0600' +
|
||||
'00' +
|
||||
'd7568e5f0a7eda67a82691ff379ac4bba4f9c9b859fe779b5d46363b61ad2db9' +
|
||||
'e56c'
|
||||
);
|
||||
).toThrow('Extrinsic: ExtrinsicV5 does not include signing support');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -89,28 +89,28 @@ export class GenericExtrinsicV5 extends Struct implements IExtrinsicV5Impl {
|
||||
|
||||
/**
|
||||
* @description Add an [[ExtrinsicSignatureV5]] to the extrinsic (already generated)
|
||||
*
|
||||
* [Disabled for ExtrinsicV5]
|
||||
*/
|
||||
public addSignature (signer: Address | Uint8Array | string, signature: Uint8Array | HexString, payload: ExtrinsicPayloadValue | Uint8Array | HexString): GenericExtrinsicV5 {
|
||||
this.signature.addSignature(signer, signature, payload);
|
||||
|
||||
return this;
|
||||
public addSignature (_signer: Address | Uint8Array | string, _signature: Uint8Array | HexString, _payload: ExtrinsicPayloadValue | Uint8Array | HexString): GenericExtrinsicV5 {
|
||||
throw new Error('Extrinsic: ExtrinsicV5 does not include signing support');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Sign the extrinsic with a specific keypair
|
||||
*
|
||||
* [Disabled for ExtrinsicV5]
|
||||
*/
|
||||
public sign (account: IKeyringPair, options: SignatureOptions): GenericExtrinsicV5 {
|
||||
this.signature.sign(this.method, account, options);
|
||||
|
||||
return this;
|
||||
public sign (_account: IKeyringPair, _options: SignatureOptions): GenericExtrinsicV5 {
|
||||
throw new Error('Extrinsic: ExtrinsicV5 does not include signing support');
|
||||
}
|
||||
|
||||
/**
|
||||
* @describe Adds a fake signature to the extrinsic
|
||||
*
|
||||
* [Disabled for ExtrinsicV5]
|
||||
*/
|
||||
public signFake (signer: Address | Uint8Array | string, options: SignatureOptions): GenericExtrinsicV5 {
|
||||
this.signature.signFake(this.method, signer, options);
|
||||
|
||||
return this;
|
||||
public signFake (_signer: Address | Uint8Array | string, _options: SignatureOptions): GenericExtrinsicV5 {
|
||||
throw new Error('Extrinsic: ExtrinsicV5 does not include signing support');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// Copyright 2017-2024 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { SignOptions } from '@polkadot/keyring/types';
|
||||
import type { Hash, MultiLocation } from '@polkadot/types/interfaces';
|
||||
import type { Bytes } from '@polkadot/types-codec';
|
||||
import type { Inspect, Registry } from '@polkadot/types-codec/types';
|
||||
@@ -10,11 +9,9 @@ import type { BlockHash } from '../../interfaces/chain/index.js';
|
||||
import type { ExtrinsicEra } from '../../interfaces/extrinsics/index.js';
|
||||
import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber, IOption } from '../../types/index.js';
|
||||
|
||||
import { Enum, Struct } from '@polkadot/types-codec';
|
||||
import { Struct } from '@polkadot/types-codec';
|
||||
import { objectSpread } from '@polkadot/util';
|
||||
|
||||
import { signV5 } from '../util.js';
|
||||
|
||||
/**
|
||||
* @name GenericExtrinsicPayloadV5
|
||||
* @description
|
||||
@@ -22,21 +19,12 @@ import { signV5 } from '../util.js';
|
||||
* variable length based on the contents included
|
||||
*/
|
||||
export class GenericExtrinsicPayloadV5 extends Struct {
|
||||
#signOptions: SignOptions;
|
||||
|
||||
constructor (registry: Registry, value?: ExtrinsicPayloadValue | Uint8Array | HexString) {
|
||||
super(registry, objectSpread(
|
||||
{ method: 'Bytes' },
|
||||
registry.getSignedExtensionTypes(),
|
||||
registry.getSignedExtensionExtra()
|
||||
), value);
|
||||
|
||||
// Do detection for the type of extrinsic, in the case of MultiSignature
|
||||
// this is an enum, in the case of AnySignature, this is a Hash only
|
||||
// (which may be 64 or 65 bytes)
|
||||
this.#signOptions = {
|
||||
withType: registry.createTypeUnsafe('ExtrinsicSignature', []) instanceof Enum
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -118,13 +106,10 @@ export class GenericExtrinsicPayloadV5 extends Struct {
|
||||
|
||||
/**
|
||||
* @description Sign the payload with the keypair
|
||||
*
|
||||
* [Disabled for ExtrinsicV5]
|
||||
*/
|
||||
public sign (signerPair: IKeyringPair): Uint8Array {
|
||||
// NOTE The `toU8a({ method: true })` argument is absolutely critical, we
|
||||
// don't want the method (Bytes) to have the length prefix included. This
|
||||
// means that the data-as-signed is un-decodable, but is also doesn't need
|
||||
// the extra information, only the pure data (and is not decoded) ...
|
||||
// The same applies to V1..V3, if we have a V6, carry this comment
|
||||
return signV5(this.registry, signerPair, this.toU8a({ method: true }), this.#signOptions);
|
||||
public sign (_signerPair: IKeyringPair): Uint8Array {
|
||||
throw new Error('Extrinsic: ExtrinsicV5 does not include signing support');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,25 +61,15 @@ describe('ExtrinsicSignatureV4', (): void => {
|
||||
registry.setMetadata(metadata);
|
||||
|
||||
expect(
|
||||
new ExtrinsicSignature(registry).signFake(
|
||||
() => new ExtrinsicSignature(registry).signFake(
|
||||
registry.createType('Call'),
|
||||
pairs.alice.publicKey,
|
||||
signOptions
|
||||
).toHex()
|
||||
).toEqual(
|
||||
'0x' +
|
||||
'00' + // MultiAddress
|
||||
'd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d' +
|
||||
'01' +
|
||||
'0101010101010101010101010101010101010101010101010101010101010101' +
|
||||
'0101010101010101010101010101010101010101010101010101010101010101' +
|
||||
'00' + // TransactionExtension version
|
||||
'00a5010000' +
|
||||
'00' // Mode
|
||||
);
|
||||
).toThrow('Extrinsic: ExtrinsicV5 does not include signing support');
|
||||
});
|
||||
|
||||
it('fake signs default (AccountId address)', (): void => {
|
||||
it('Errors on fake sign', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
const metadata = new Metadata(registry, metadataStatic);
|
||||
|
||||
@@ -90,76 +80,26 @@ describe('ExtrinsicSignatureV4', (): void => {
|
||||
});
|
||||
|
||||
expect(
|
||||
new ExtrinsicSignature(registry).signFake(
|
||||
() => new ExtrinsicSignature(registry).signFake(
|
||||
registry.createType('Call'),
|
||||
pairs.alice.address,
|
||||
signOptions
|
||||
).toHex()
|
||||
).toEqual(
|
||||
'0x' +
|
||||
// Address = AccountId, no prefix
|
||||
'd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d' +
|
||||
// This is a prefix-less signature, anySignture as opposed to Multi above
|
||||
'0101010101010101010101010101010101010101010101010101010101010101' +
|
||||
'0101010101010101010101010101010101010101010101010101010101010101' +
|
||||
'00' + // TransactionExtension version
|
||||
'00a5010000' +
|
||||
'00' // mode
|
||||
);
|
||||
).toThrow('Extrinsic: ExtrinsicV5 does not include signing support');
|
||||
});
|
||||
|
||||
it('fake signs with non-enum signature', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
const metadata = new Metadata(registry, metadataStatic);
|
||||
|
||||
registry.setMetadata(metadata);
|
||||
registry.register({
|
||||
Address: 'AccountId',
|
||||
ExtrinsicSignature: '[u8;65]'
|
||||
});
|
||||
|
||||
expect(
|
||||
new ExtrinsicSignature(registry).signFake(
|
||||
registry.createType('Call'),
|
||||
pairs.alice.address,
|
||||
signOptions
|
||||
).toHex()
|
||||
).toEqual(
|
||||
'0x' +
|
||||
// Address = AccountId, no prefix
|
||||
'd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d' +
|
||||
// 65 bytes here
|
||||
'01' +
|
||||
'0101010101010101010101010101010101010101010101010101010101010101' +
|
||||
'0101010101010101010101010101010101010101010101010101010101010101' +
|
||||
'00' + // TransactionExtension version
|
||||
'00a5010000' +
|
||||
'00' // mode
|
||||
);
|
||||
});
|
||||
|
||||
it('injects a signature', (): void => {
|
||||
it('Errors on injecting a signature', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
const metadata = new Metadata(registry, metadataStatic);
|
||||
|
||||
registry.setMetadata(metadata);
|
||||
|
||||
expect(
|
||||
new ExtrinsicSignature(registry).addSignature(
|
||||
() => new ExtrinsicSignature(registry).addSignature(
|
||||
pairs.alice.publicKey,
|
||||
new Uint8Array(65).fill(1),
|
||||
new Uint8Array(0)
|
||||
).toHex()
|
||||
).toEqual(
|
||||
'0x' +
|
||||
'00' + // MultiAddress
|
||||
'd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d' +
|
||||
'01' +
|
||||
'0101010101010101010101010101010101010101010101010101010101010101' +
|
||||
'0101010101010101010101010101010101010101010101010101010101010101' +
|
||||
'00' + // TransactionExtension version
|
||||
'00000000' +
|
||||
'00' // mode
|
||||
);
|
||||
).toThrow('Extrinsic: ExtrinsicV5 does not include signing support');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -9,18 +9,11 @@ import type { ExtrinsicPayloadValue, ICompact, IExtrinsicSignature, IKeyringPair
|
||||
import type { ExtrinsicSignatureOptions } from '../types.js';
|
||||
|
||||
import { Struct } from '@polkadot/types-codec';
|
||||
import { isU8a, isUndefined, objectProperties, objectSpread, stringify, u8aToHex } from '@polkadot/util';
|
||||
import { objectProperties, objectSpread } from '@polkadot/util';
|
||||
|
||||
import { EMPTY_U8A, IMMORTAL_ERA } from '../constants.js';
|
||||
import { GenericExtrinsicPayloadV5 } from './ExtrinsicPayload.js';
|
||||
|
||||
// Ensure we have enough data for all types of signatures
|
||||
const FAKE_SIGNATURE = new Uint8Array(256).fill(1);
|
||||
|
||||
function toAddress (registry: Registry, address: Address | Uint8Array | string): Address {
|
||||
return registry.createTypeUnsafe('Address', [isU8a(address) ? u8aToHex(address) : address]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @name GenericExtrinsicSignatureV5
|
||||
* @description
|
||||
@@ -28,11 +21,9 @@ function toAddress (registry: Registry, address: Address | Uint8Array | string):
|
||||
*/
|
||||
export class GenericExtrinsicSignatureV5 extends Struct implements IExtrinsicSignature {
|
||||
#signKeys: string[];
|
||||
#transactionExtensionVersion: number;
|
||||
|
||||
constructor (registry: Registry, value?: GenericExtrinsicSignatureV5 | Uint8Array, { isSigned }: ExtrinsicSignatureOptions = {}) {
|
||||
const signTypes = registry.getSignedExtensionTypes();
|
||||
const signedVersion = registry.getTransactionExtensionVersion();
|
||||
|
||||
super(
|
||||
registry,
|
||||
@@ -44,7 +35,6 @@ export class GenericExtrinsicSignatureV5 extends Struct implements IExtrinsicSig
|
||||
GenericExtrinsicSignatureV5.decodeExtrinsicSignature(value, isSigned)
|
||||
);
|
||||
|
||||
this.#transactionExtensionVersion = signedVersion;
|
||||
this.#signKeys = Object.keys(signTypes);
|
||||
|
||||
objectProperties(this, this.#signKeys, (k) => this.get(k));
|
||||
@@ -150,35 +140,20 @@ export class GenericExtrinsicSignatureV5 extends Struct implements IExtrinsicSig
|
||||
return this.getT('transactionExtensionVersion');
|
||||
}
|
||||
|
||||
protected _injectSignature (signer: Address, signature: ExtrinsicSignature, payload: GenericExtrinsicPayloadV5): IExtrinsicSignature {
|
||||
// use the fields exposed to guide the getters
|
||||
for (let i = 0, count = this.#signKeys.length; i < count; i++) {
|
||||
const k = this.#signKeys[i];
|
||||
const v = payload.get(k);
|
||||
|
||||
if (k === 'transactionExtensionVersion') {
|
||||
this.set(k, this.registry.createType('u8', this.#transactionExtensionVersion));
|
||||
} else if (!isUndefined(v)) {
|
||||
this.set(k, v);
|
||||
}
|
||||
}
|
||||
|
||||
// additional fields (exposed in struct itself)
|
||||
this.set('signer', signer);
|
||||
this.set('signature', signature);
|
||||
|
||||
return this;
|
||||
/**
|
||||
* [Disabled for ExtrinsicV5]
|
||||
*/
|
||||
protected _injectSignature (_signer: Address, _signature: ExtrinsicSignature, _payload: GenericExtrinsicPayloadV5): IExtrinsicSignature {
|
||||
throw new Error('Extrinsic: ExtrinsicV5 does not include signing support');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Adds a raw signature
|
||||
*
|
||||
* [Disabled for ExtrinsicV5]
|
||||
*/
|
||||
public addSignature (signer: Address | Uint8Array | string, signature: Uint8Array | HexString, payload: ExtrinsicPayloadValue | Uint8Array | HexString): IExtrinsicSignature {
|
||||
return this._injectSignature(
|
||||
toAddress(this.registry, signer),
|
||||
this.registry.createTypeUnsafe('ExtrinsicSignature', [signature]),
|
||||
new GenericExtrinsicPayloadV5(this.registry, payload)
|
||||
);
|
||||
public addSignature (_signer: Address | Uint8Array | string, _signature: Uint8Array | HexString, _payload: ExtrinsicPayloadValue | Uint8Array | HexString): IExtrinsicSignature {
|
||||
throw new Error('Extrinsic: ExtrinsicV5 does not include signing support');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -197,36 +172,20 @@ export class GenericExtrinsicSignatureV5 extends Struct implements IExtrinsicSig
|
||||
|
||||
/**
|
||||
* @description Generate a payload and applies the signature from a keypair
|
||||
*
|
||||
* [Disabled for ExtrinsicV5]
|
||||
*/
|
||||
public sign (method: Call, account: IKeyringPair, options: SignatureOptions): IExtrinsicSignature {
|
||||
if (!account?.addressRaw) {
|
||||
throw new Error(`Expected a valid keypair for signing, found ${stringify(account)}`);
|
||||
}
|
||||
|
||||
const payload = this.createPayload(method, options);
|
||||
|
||||
return this._injectSignature(
|
||||
toAddress(this.registry, account.addressRaw),
|
||||
this.registry.createTypeUnsafe('ExtrinsicSignature', [payload.sign(account)]),
|
||||
payload
|
||||
);
|
||||
public sign (_method: Call, _account: IKeyringPair, _options: SignatureOptions): IExtrinsicSignature {
|
||||
throw new Error('Extrinsic: ExtrinsicV5 does not include signing support');
|
||||
}
|
||||
|
||||
/**
|
||||
* @description Generate a payload and applies a fake signature
|
||||
*
|
||||
* [Disabled for ExtrinsicV5]
|
||||
*/
|
||||
public signFake (method: Call, address: Address | Uint8Array | string, options: SignatureOptions): IExtrinsicSignature {
|
||||
if (!address) {
|
||||
throw new Error(`Expected a valid address for signing, found ${stringify(address)}`);
|
||||
}
|
||||
|
||||
const payload = this.createPayload(method, options);
|
||||
|
||||
return this._injectSignature(
|
||||
toAddress(this.registry, address),
|
||||
this.registry.createTypeUnsafe('ExtrinsicSignature', [FAKE_SIGNATURE]),
|
||||
payload
|
||||
);
|
||||
public signFake (_method: Call, _address: Address | Uint8Array | string, _options: SignatureOptions): IExtrinsicSignature {
|
||||
throw new Error('Extrinsic: ExtrinsicV5 does not include signing support');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// Copyright 2017-2024 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import assetHubKusamaData from '@polkadot/types-support/metadata/v15/asset-hub-kusama-hex';
|
||||
import assetHubPolkadotData from '@polkadot/types-support/metadata/v15/asset-hub-polkadot-hex';
|
||||
import kusamaData from '@polkadot/types-support/metadata/v15/kusama-hex';
|
||||
import polkadotData from '@polkadot/types-support/metadata/v15/polkadot-hex';
|
||||
import substrateData from '@polkadot/types-support/metadata/v15/substrate-hex';
|
||||
@@ -8,6 +10,12 @@ import substrateData from '@polkadot/types-support/metadata/v15/substrate-hex';
|
||||
import { testMeta } from '../util/testUtil.js';
|
||||
|
||||
testMeta(15, {
|
||||
'asset-hub-kusama': {
|
||||
data: assetHubKusamaData
|
||||
},
|
||||
'asset-hub-polkadot': {
|
||||
data: assetHubPolkadotData
|
||||
},
|
||||
kusama: {
|
||||
data: kusamaData
|
||||
},
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @polkadot/dev
|
||||
|
||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '14.2.2' };
|
||||
export const packageInfo = { name: '@polkadot/types', path: 'auto', type: 'auto', version: '15.0.2' };
|
||||
|
||||
@@ -188,6 +188,7 @@ export interface IExtrinsicEra extends Codec {
|
||||
}
|
||||
|
||||
export interface SignatureOptions {
|
||||
allowCallDataAlteration?: boolean;
|
||||
blockHash: Uint8Array | string;
|
||||
era?: IExtrinsicEra;
|
||||
genesisHash: Uint8Array | string;
|
||||
|
||||
+78
-36
@@ -7,6 +7,8 @@ import { fetch } from '@polkadot/x-fetch';
|
||||
|
||||
const PREAMBLE = '// Copyright 2017-2024 @polkadot/types-support authors & contributors\n// SPDX-License-Identifier: Apache-2.0\n\n/* eslint-disable */\n\n';
|
||||
const CMD = {
|
||||
'asset-hub-kusama': `${PREAMBLE}//To run a asset-hub-kusama node please refer to types-support/src/metadata/README.md\n\nexport default`,
|
||||
'asset-hub-polkadot': `${PREAMBLE}//To run a asset-hub-polkadot node please refer to types-support/src/metadata/README.md\n\nexport default`,
|
||||
kusama: `${PREAMBLE}// cargo run --release -- purge-chain -y --chain kusama-dev && cargo run --release -- --chain kusama-dev --alice --force-authoring\n\nexport default`,
|
||||
polkadot: `${PREAMBLE}// cargo run --release -- purge-chain -y --dev && cargo run --release -- --dev\n\nexport default`,
|
||||
substrate: `${PREAMBLE}// cargo run --release -- purge-chain -y --dev && cargo run --release -- --dev\n\nexport default`,
|
||||
@@ -17,47 +19,87 @@ const CMD = {
|
||||
const META_VERSION_HEX = '0x0f000000';
|
||||
const META_VERSION = 15;
|
||||
|
||||
let requestId = 0;
|
||||
/**
|
||||
* Parse the specName given any exceptions.
|
||||
*
|
||||
* @param {'polkadot' | 'kusama' | 'node' | 'statemint' | 'statemine'} specName
|
||||
* @returns {'polkadot' | 'kusama' | 'substrate' | 'asset-hub-kusama' | 'asset-hub-polkadot'}
|
||||
*/
|
||||
const parseChainName = (specName) => {
|
||||
switch (specName) {
|
||||
case 'node':
|
||||
return 'substrate';
|
||||
case 'statemine':
|
||||
return 'asset-hub-kusama';
|
||||
case 'statemint':
|
||||
return 'asset-hub-polkadot';
|
||||
default:
|
||||
return specName;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Small CLI parser.
|
||||
*
|
||||
* @param {'rpc_methods' | 'state_getMetadata' | 'state_getRuntimeVersion' | 'state_call'} method
|
||||
* @param {string[]} params
|
||||
* @returns {Promise<any>}
|
||||
* This script accepts `--url` to specify the endpoint to query the metadata from.
|
||||
*
|
||||
* @returns {string}
|
||||
*/
|
||||
async function get (method, params = []) {
|
||||
const res = await fetch('http://127.0.0.1:9944', {
|
||||
body: JSON.stringify({
|
||||
id: ++requestId,
|
||||
jsonrpc: '2.0',
|
||||
method,
|
||||
params
|
||||
}),
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
method: 'POST'
|
||||
});
|
||||
const body = await res.json();
|
||||
const getUrl = () => {
|
||||
const [,, command, ...args] = process.argv;
|
||||
|
||||
return body.result;
|
||||
}
|
||||
if (command === '--url') {
|
||||
return args.join(' ');
|
||||
}
|
||||
|
||||
/** @type {[string[], string, { specName: 'polkadot' | 'kusama' | 'node'; specVersion: string; }]} */
|
||||
const [methods, metadata, version] = await Promise.all([
|
||||
get('rpc_methods'),
|
||||
get('state_call', ['Metadata_metadata_at_version', META_VERSION_HEX]),
|
||||
get('state_getRuntimeVersion')
|
||||
]);
|
||||
const chain = version.specName === 'node'
|
||||
? 'substrate'
|
||||
: version.specName;
|
||||
const metaVer = parseInt(metadata.substring(10, 12), 16);
|
||||
const path = `packages/types-support/src/metadata/v${META_VERSION}/${chain}`;
|
||||
return 'http://127.0.0.1:9944';
|
||||
};
|
||||
|
||||
fs.writeFileSync(`${path}-hex.ts`, `${CMD[chain]} '${metadata}';\n`);
|
||||
fs.writeFileSync(`${path}-rpc.ts`, `${CMD[chain]} ${JSON.stringify(methods, null, 2)};\n`);
|
||||
fs.writeFileSync(`${path}-ver.ts`, `${CMD[chain]} ${JSON.stringify(version, null, 2)};\n`);
|
||||
const main = async () => {
|
||||
let requestId = 0;
|
||||
|
||||
console.log(`Retrieved ${chain}/${version.specVersion}, metadata v${metaVer}`);
|
||||
const chainUrl = getUrl();
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {'rpc_methods' | 'state_getMetadata' | 'state_getRuntimeVersion' | 'state_call'} method
|
||||
* @param {string[]} params
|
||||
* @returns {Promise<any>}
|
||||
*/
|
||||
async function get (method, params = []) {
|
||||
const res = await fetch(chainUrl, {
|
||||
body: JSON.stringify({
|
||||
id: ++requestId,
|
||||
jsonrpc: '2.0',
|
||||
method,
|
||||
params
|
||||
}),
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
method: 'POST'
|
||||
});
|
||||
const body = await res.json();
|
||||
|
||||
return body.result;
|
||||
}
|
||||
|
||||
/** @type {[string[], string, { specName: 'polkadot' | 'kusama' | 'node' | 'statemine' | 'statemint'; specVersion: string; }]} */
|
||||
const [methods, metadata, version] = await Promise.all([
|
||||
get('rpc_methods'),
|
||||
get('state_call', ['Metadata_metadata_at_version', META_VERSION_HEX]),
|
||||
get('state_getRuntimeVersion')
|
||||
]);
|
||||
const chain = parseChainName(version.specName);
|
||||
const metaVer = parseInt(metadata.substring(20, 22), 16);
|
||||
const path = `packages/types-support/src/metadata/v${META_VERSION}/${chain}`;
|
||||
|
||||
fs.writeFileSync(`${path}-hex.ts`, `${CMD[chain]} '${metadata}';\n`);
|
||||
fs.writeFileSync(`${path}-rpc.ts`, `${CMD[chain]} ${JSON.stringify(methods, null, 2)};\n`);
|
||||
fs.writeFileSync(`${path}-ver.ts`, `${CMD[chain]} ${JSON.stringify(version, null, 2)};\n`);
|
||||
|
||||
console.log(`Retrieved ${chain}/${version.specVersion}, metadata v${metaVer}`);
|
||||
};
|
||||
|
||||
main().catch((err) => console.error(err)).finally(() => process.exit());
|
||||
|
||||
@@ -447,27 +447,27 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/api-augment@npm:14.2.2, @polkadot/api-augment@workspace:packages/api-augment":
|
||||
"@polkadot/api-augment@npm:15.0.2, @polkadot/api-augment@workspace:packages/api-augment":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api-augment@workspace:packages/api-augment"
|
||||
dependencies:
|
||||
"@polkadot/api-base": "npm:14.2.2"
|
||||
"@polkadot/rpc-augment": "npm:14.2.2"
|
||||
"@polkadot/types": "npm:14.2.2"
|
||||
"@polkadot/types-augment": "npm:14.2.2"
|
||||
"@polkadot/types-codec": "npm:14.2.2"
|
||||
"@polkadot/util": "npm:^13.2.2"
|
||||
"@polkadot/api-base": "npm:15.0.2"
|
||||
"@polkadot/rpc-augment": "npm:15.0.2"
|
||||
"@polkadot/types": "npm:15.0.2"
|
||||
"@polkadot/types-augment": "npm:15.0.2"
|
||||
"@polkadot/types-codec": "npm:15.0.2"
|
||||
"@polkadot/util": "npm:^13.2.3"
|
||||
tslib: "npm:^2.8.0"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api-base@npm:14.2.2, @polkadot/api-base@workspace:packages/api-base":
|
||||
"@polkadot/api-base@npm:15.0.2, @polkadot/api-base@workspace:packages/api-base":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api-base@workspace:packages/api-base"
|
||||
dependencies:
|
||||
"@polkadot/rpc-core": "npm:14.2.2"
|
||||
"@polkadot/types": "npm:14.2.2"
|
||||
"@polkadot/util": "npm:^13.2.2"
|
||||
"@polkadot/rpc-core": "npm:15.0.2"
|
||||
"@polkadot/types": "npm:15.0.2"
|
||||
"@polkadot/util": "npm:^13.2.3"
|
||||
rxjs: "npm:^7.8.1"
|
||||
tslib: "npm:^2.8.0"
|
||||
languageName: unknown
|
||||
@@ -477,93 +477,93 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
|
||||
dependencies:
|
||||
"@polkadot/api": "npm:14.2.2"
|
||||
"@polkadot/api-augment": "npm:14.2.2"
|
||||
"@polkadot/keyring": "npm:^13.2.2"
|
||||
"@polkadot/types": "npm:14.2.2"
|
||||
"@polkadot/types-codec": "npm:14.2.2"
|
||||
"@polkadot/types-create": "npm:14.2.2"
|
||||
"@polkadot/types-support": "npm:14.2.2"
|
||||
"@polkadot/util": "npm:^13.2.2"
|
||||
"@polkadot/util-crypto": "npm:^13.2.2"
|
||||
"@polkadot/api": "npm:15.0.2"
|
||||
"@polkadot/api-augment": "npm:15.0.2"
|
||||
"@polkadot/keyring": "npm:^13.2.3"
|
||||
"@polkadot/types": "npm:15.0.2"
|
||||
"@polkadot/types-codec": "npm:15.0.2"
|
||||
"@polkadot/types-create": "npm:15.0.2"
|
||||
"@polkadot/types-support": "npm:15.0.2"
|
||||
"@polkadot/util": "npm:^13.2.3"
|
||||
"@polkadot/util-crypto": "npm:^13.2.3"
|
||||
rxjs: "npm:^7.8.1"
|
||||
tslib: "npm:^2.8.0"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api-derive@npm:14.2.2, @polkadot/api-derive@workspace:packages/api-derive":
|
||||
"@polkadot/api-derive@npm:15.0.2, @polkadot/api-derive@workspace:packages/api-derive":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api-derive@workspace:packages/api-derive"
|
||||
dependencies:
|
||||
"@polkadot/api": "npm:14.2.2"
|
||||
"@polkadot/api-augment": "npm:14.2.2"
|
||||
"@polkadot/api-base": "npm:14.2.2"
|
||||
"@polkadot/rpc-augment": "npm:14.2.2"
|
||||
"@polkadot/rpc-core": "npm:14.2.2"
|
||||
"@polkadot/rpc-provider": "npm:14.2.2"
|
||||
"@polkadot/types": "npm:14.2.2"
|
||||
"@polkadot/types-codec": "npm:14.2.2"
|
||||
"@polkadot/types-support": "npm:14.2.2"
|
||||
"@polkadot/util": "npm:^13.2.2"
|
||||
"@polkadot/util-crypto": "npm:^13.2.2"
|
||||
"@polkadot/api": "npm:15.0.2"
|
||||
"@polkadot/api-augment": "npm:15.0.2"
|
||||
"@polkadot/api-base": "npm:15.0.2"
|
||||
"@polkadot/rpc-augment": "npm:15.0.2"
|
||||
"@polkadot/rpc-core": "npm:15.0.2"
|
||||
"@polkadot/rpc-provider": "npm:15.0.2"
|
||||
"@polkadot/types": "npm:15.0.2"
|
||||
"@polkadot/types-codec": "npm:15.0.2"
|
||||
"@polkadot/types-support": "npm:15.0.2"
|
||||
"@polkadot/util": "npm:^13.2.3"
|
||||
"@polkadot/util-crypto": "npm:^13.2.3"
|
||||
rxjs: "npm:^7.8.1"
|
||||
tslib: "npm:^2.8.0"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api@npm:14.2.2, @polkadot/api@workspace:packages/api":
|
||||
"@polkadot/api@npm:15.0.2, @polkadot/api@workspace:packages/api":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api@workspace:packages/api"
|
||||
dependencies:
|
||||
"@polkadot/api-augment": "npm:14.2.2"
|
||||
"@polkadot/api-base": "npm:14.2.2"
|
||||
"@polkadot/api-derive": "npm:14.2.2"
|
||||
"@polkadot/keyring": "npm:^13.2.2"
|
||||
"@polkadot/rpc-augment": "npm:14.2.2"
|
||||
"@polkadot/rpc-core": "npm:14.2.2"
|
||||
"@polkadot/rpc-provider": "npm:14.2.2"
|
||||
"@polkadot/types": "npm:14.2.2"
|
||||
"@polkadot/types-augment": "npm:14.2.2"
|
||||
"@polkadot/types-codec": "npm:14.2.2"
|
||||
"@polkadot/types-create": "npm:14.2.2"
|
||||
"@polkadot/types-known": "npm:14.2.2"
|
||||
"@polkadot/types-support": "npm:14.2.2"
|
||||
"@polkadot/util": "npm:^13.2.2"
|
||||
"@polkadot/util-crypto": "npm:^13.2.2"
|
||||
"@polkadot/api-augment": "npm:15.0.2"
|
||||
"@polkadot/api-base": "npm:15.0.2"
|
||||
"@polkadot/api-derive": "npm:15.0.2"
|
||||
"@polkadot/keyring": "npm:^13.2.3"
|
||||
"@polkadot/rpc-augment": "npm:15.0.2"
|
||||
"@polkadot/rpc-core": "npm:15.0.2"
|
||||
"@polkadot/rpc-provider": "npm:15.0.2"
|
||||
"@polkadot/types": "npm:15.0.2"
|
||||
"@polkadot/types-augment": "npm:15.0.2"
|
||||
"@polkadot/types-codec": "npm:15.0.2"
|
||||
"@polkadot/types-create": "npm:15.0.2"
|
||||
"@polkadot/types-known": "npm:15.0.2"
|
||||
"@polkadot/types-support": "npm:15.0.2"
|
||||
"@polkadot/util": "npm:^13.2.3"
|
||||
"@polkadot/util-crypto": "npm:^13.2.3"
|
||||
eventemitter3: "npm:^5.0.1"
|
||||
rxjs: "npm:^7.8.1"
|
||||
tslib: "npm:^2.8.0"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/dev-test@npm:^0.81.2":
|
||||
version: 0.81.2
|
||||
resolution: "@polkadot/dev-test@npm:0.81.2"
|
||||
"@polkadot/dev-test@npm:^0.82.1":
|
||||
version: 0.82.1
|
||||
resolution: "@polkadot/dev-test@npm:0.82.1"
|
||||
dependencies:
|
||||
jsdom: "npm:^24.0.0"
|
||||
tslib: "npm:^2.7.0"
|
||||
checksum: 10/1028c3b1804567128f1cc796df2285827bb8d9d54afee8c81f28821d2205e7f4522bd9659eb2e7645a080568d43b394279db12b1c2debdc447d5567317b7c2fc
|
||||
checksum: 10/669690400183b33187a526c9b5d5427957e30ace31635975a7b20d2cbfc4bda002f9ea71bde87e9e37d8153bc5b56b7d6059b52a3fe973fce6023595a438e3df
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/dev-ts@npm:^0.81.2":
|
||||
version: 0.81.2
|
||||
resolution: "@polkadot/dev-ts@npm:0.81.2"
|
||||
"@polkadot/dev-ts@npm:^0.82.1":
|
||||
version: 0.82.1
|
||||
resolution: "@polkadot/dev-ts@npm:0.82.1"
|
||||
dependencies:
|
||||
json5: "npm:^2.2.3"
|
||||
tslib: "npm:^2.7.0"
|
||||
typescript: "npm:^5.5.4"
|
||||
checksum: 10/cb25e9523cbad5029f7e149135aa003286d9c907677902e6a1ffe4a905d6c31f6c88a647b3be0e51b09e62528fca2a3121f12a748942ecd6eccefd8da1eb3369
|
||||
checksum: 10/a7ac2a614bf93e2406d65e153f110d55c8b2a7eaf44672622586dd2f9bc0d6e4a36e0a05a66654370a1c66061a7668f0df93151142c7d9a281d56df4827c9418
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/dev@npm:^0.81.2":
|
||||
version: 0.81.2
|
||||
resolution: "@polkadot/dev@npm:0.81.2"
|
||||
"@polkadot/dev@npm:^0.82.1":
|
||||
version: 0.82.1
|
||||
resolution: "@polkadot/dev@npm:0.82.1"
|
||||
dependencies:
|
||||
"@eslint/js": "npm:^8.56.0"
|
||||
"@polkadot/dev-test": "npm:^0.81.2"
|
||||
"@polkadot/dev-ts": "npm:^0.81.2"
|
||||
"@polkadot/dev-test": "npm:^0.82.1"
|
||||
"@polkadot/dev-ts": "npm:^0.82.1"
|
||||
"@rollup/plugin-alias": "npm:^5.1.0"
|
||||
"@rollup/plugin-commonjs": "npm:^25.0.7"
|
||||
"@rollup/plugin-dynamic-import-vars": "npm:^2.1.2"
|
||||
@@ -628,73 +628,73 @@ __metadata:
|
||||
polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs
|
||||
polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs
|
||||
polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs
|
||||
checksum: 10/304d2e1e5a5669b0888026fd0fb3e82dba75e1a85c9c40481d0832b072bac9ba6f9e9755db4bdce4c2aa10c631ef7f4fba84114a1b6490d25aa5b4f6dff65299
|
||||
checksum: 10/5739c27e09db8bf09582f1016d7db83ca6c09eb9ece9b4c3df05073670dccb5ecb05464e26c4aaea846354dc6cfcea26f6dd727fc2c42bc8e04e04f9319e5321
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/keyring@npm:^13.2.2":
|
||||
version: 13.2.2
|
||||
resolution: "@polkadot/keyring@npm:13.2.2"
|
||||
"@polkadot/keyring@npm:^13.2.3":
|
||||
version: 13.2.3
|
||||
resolution: "@polkadot/keyring@npm:13.2.3"
|
||||
dependencies:
|
||||
"@polkadot/util": "npm:13.2.2"
|
||||
"@polkadot/util-crypto": "npm:13.2.2"
|
||||
"@polkadot/util": "npm:13.2.3"
|
||||
"@polkadot/util-crypto": "npm:13.2.3"
|
||||
tslib: "npm:^2.8.0"
|
||||
peerDependencies:
|
||||
"@polkadot/util": 13.2.2
|
||||
"@polkadot/util-crypto": 13.2.2
|
||||
checksum: 10/552972c5e4c26f8a95dbb18552cbcfb04c87e085022153a705025987bb77655dc6c32709ea4b8300ebe74945a32b7f8a88ab50460d1962b847335daeae19bda1
|
||||
"@polkadot/util": 13.2.3
|
||||
"@polkadot/util-crypto": 13.2.3
|
||||
checksum: 10/c89cbdd3830f54cabcfde01527b7597a215b39dd7f26a374b1f0f43051fb0443385607548528c0b11eb42ca05d90569f38b13aeeed25858ccfa7ecf1d7345a21
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/networks@npm:13.2.2, @polkadot/networks@npm:^13.2.2":
|
||||
version: 13.2.2
|
||||
resolution: "@polkadot/networks@npm:13.2.2"
|
||||
"@polkadot/networks@npm:13.2.3, @polkadot/networks@npm:^13.2.3":
|
||||
version: 13.2.3
|
||||
resolution: "@polkadot/networks@npm:13.2.3"
|
||||
dependencies:
|
||||
"@polkadot/util": "npm:13.2.2"
|
||||
"@polkadot/util": "npm:13.2.3"
|
||||
"@substrate/ss58-registry": "npm:^1.51.0"
|
||||
tslib: "npm:^2.8.0"
|
||||
checksum: 10/a1282e7104ed0c3ca0c8b42db115fa95ae99e03ea878e1837db92b04fada55c0ed7a55a63c2d36d248ec467e471e72c49026f75233eddd7dbd7037e3a1c81bb2
|
||||
checksum: 10/83c4d6321b67c8a5eaf55189dba2180e49600d12ebd55fe861780241fbe8969c972a8b184c91b64a03880c74502889f35ec2eef124f7288e27f2e77ecc4f5e39
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/rpc-augment@npm:14.2.2, @polkadot/rpc-augment@workspace:packages/rpc-augment":
|
||||
"@polkadot/rpc-augment@npm:15.0.2, @polkadot/rpc-augment@workspace:packages/rpc-augment":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/rpc-augment@workspace:packages/rpc-augment"
|
||||
dependencies:
|
||||
"@polkadot/rpc-core": "npm:14.2.2"
|
||||
"@polkadot/types": "npm:14.2.2"
|
||||
"@polkadot/types-codec": "npm:14.2.2"
|
||||
"@polkadot/util": "npm:^13.2.2"
|
||||
"@polkadot/rpc-core": "npm:15.0.2"
|
||||
"@polkadot/types": "npm:15.0.2"
|
||||
"@polkadot/types-codec": "npm:15.0.2"
|
||||
"@polkadot/util": "npm:^13.2.3"
|
||||
tslib: "npm:^2.8.0"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/rpc-core@npm:14.2.2, @polkadot/rpc-core@workspace:packages/rpc-core":
|
||||
"@polkadot/rpc-core@npm:15.0.2, @polkadot/rpc-core@workspace:packages/rpc-core":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
|
||||
dependencies:
|
||||
"@polkadot/keyring": "npm:^13.2.2"
|
||||
"@polkadot/rpc-augment": "npm:14.2.2"
|
||||
"@polkadot/rpc-provider": "npm:14.2.2"
|
||||
"@polkadot/types": "npm:14.2.2"
|
||||
"@polkadot/util": "npm:^13.2.2"
|
||||
"@polkadot/keyring": "npm:^13.2.3"
|
||||
"@polkadot/rpc-augment": "npm:15.0.2"
|
||||
"@polkadot/rpc-provider": "npm:15.0.2"
|
||||
"@polkadot/types": "npm:15.0.2"
|
||||
"@polkadot/util": "npm:^13.2.3"
|
||||
rxjs: "npm:^7.8.1"
|
||||
tslib: "npm:^2.8.0"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/rpc-provider@npm:14.2.2, @polkadot/rpc-provider@workspace:packages/rpc-provider":
|
||||
"@polkadot/rpc-provider@npm:15.0.2, @polkadot/rpc-provider@workspace:packages/rpc-provider":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
|
||||
dependencies:
|
||||
"@polkadot/keyring": "npm:^13.2.2"
|
||||
"@polkadot/types": "npm:14.2.2"
|
||||
"@polkadot/types-support": "npm:14.2.2"
|
||||
"@polkadot/util": "npm:^13.2.2"
|
||||
"@polkadot/util-crypto": "npm:^13.2.2"
|
||||
"@polkadot/x-fetch": "npm:^13.2.2"
|
||||
"@polkadot/x-global": "npm:^13.2.2"
|
||||
"@polkadot/x-ws": "npm:^13.2.2"
|
||||
"@polkadot/keyring": "npm:^13.2.3"
|
||||
"@polkadot/types": "npm:15.0.2"
|
||||
"@polkadot/types-support": "npm:15.0.2"
|
||||
"@polkadot/util": "npm:^13.2.3"
|
||||
"@polkadot/util-crypto": "npm:^13.2.3"
|
||||
"@polkadot/x-fetch": "npm:^13.2.3"
|
||||
"@polkadot/x-global": "npm:^13.2.3"
|
||||
"@polkadot/x-ws": "npm:^13.2.3"
|
||||
"@substrate/connect": "npm:0.8.11"
|
||||
eventemitter3: "npm:^5.0.1"
|
||||
mock-socket: "npm:^9.3.1"
|
||||
@@ -710,18 +710,18 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/typegen@workspace:packages/typegen"
|
||||
dependencies:
|
||||
"@polkadot/api": "npm:14.2.2"
|
||||
"@polkadot/api-augment": "npm:14.2.2"
|
||||
"@polkadot/rpc-augment": "npm:14.2.2"
|
||||
"@polkadot/rpc-provider": "npm:14.2.2"
|
||||
"@polkadot/types": "npm:14.2.2"
|
||||
"@polkadot/types-augment": "npm:14.2.2"
|
||||
"@polkadot/types-codec": "npm:14.2.2"
|
||||
"@polkadot/types-create": "npm:14.2.2"
|
||||
"@polkadot/types-support": "npm:14.2.2"
|
||||
"@polkadot/util": "npm:^13.2.2"
|
||||
"@polkadot/util-crypto": "npm:^13.2.2"
|
||||
"@polkadot/x-ws": "npm:^13.2.2"
|
||||
"@polkadot/api": "npm:15.0.2"
|
||||
"@polkadot/api-augment": "npm:15.0.2"
|
||||
"@polkadot/rpc-augment": "npm:15.0.2"
|
||||
"@polkadot/rpc-provider": "npm:15.0.2"
|
||||
"@polkadot/types": "npm:15.0.2"
|
||||
"@polkadot/types-augment": "npm:15.0.2"
|
||||
"@polkadot/types-codec": "npm:15.0.2"
|
||||
"@polkadot/types-create": "npm:15.0.2"
|
||||
"@polkadot/types-support": "npm:15.0.2"
|
||||
"@polkadot/util": "npm:^13.2.3"
|
||||
"@polkadot/util-crypto": "npm:^13.2.3"
|
||||
"@polkadot/x-ws": "npm:^13.2.3"
|
||||
"@types/yargs": "npm:^17.0.33"
|
||||
handlebars: "npm:^4.7.8"
|
||||
tslib: "npm:^2.8.0"
|
||||
@@ -735,113 +735,113 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-augment@npm:14.2.2, @polkadot/types-augment@workspace:packages/types-augment":
|
||||
"@polkadot/types-augment@npm:15.0.2, @polkadot/types-augment@workspace:packages/types-augment":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-augment@workspace:packages/types-augment"
|
||||
dependencies:
|
||||
"@polkadot/types": "npm:14.2.2"
|
||||
"@polkadot/types-codec": "npm:14.2.2"
|
||||
"@polkadot/util": "npm:^13.2.2"
|
||||
"@polkadot/types": "npm:15.0.2"
|
||||
"@polkadot/types-codec": "npm:15.0.2"
|
||||
"@polkadot/util": "npm:^13.2.3"
|
||||
tslib: "npm:^2.8.0"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-codec@npm:14.2.2, @polkadot/types-codec@workspace:packages/types-codec":
|
||||
"@polkadot/types-codec@npm:15.0.2, @polkadot/types-codec@workspace:packages/types-codec":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-codec@workspace:packages/types-codec"
|
||||
dependencies:
|
||||
"@polkadot/types": "npm:14.2.2"
|
||||
"@polkadot/types-augment": "npm:14.2.2"
|
||||
"@polkadot/types-support": "npm:14.2.2"
|
||||
"@polkadot/util": "npm:^13.2.2"
|
||||
"@polkadot/util-crypto": "npm:^13.2.2"
|
||||
"@polkadot/x-bigint": "npm:^13.2.2"
|
||||
"@polkadot/types": "npm:15.0.2"
|
||||
"@polkadot/types-augment": "npm:15.0.2"
|
||||
"@polkadot/types-support": "npm:15.0.2"
|
||||
"@polkadot/util": "npm:^13.2.3"
|
||||
"@polkadot/util-crypto": "npm:^13.2.3"
|
||||
"@polkadot/x-bigint": "npm:^13.2.3"
|
||||
tslib: "npm:^2.8.0"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-create@npm:14.2.2, @polkadot/types-create@workspace:packages/types-create":
|
||||
"@polkadot/types-create@npm:15.0.2, @polkadot/types-create@workspace:packages/types-create":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-create@workspace:packages/types-create"
|
||||
dependencies:
|
||||
"@polkadot/types": "npm:14.2.2"
|
||||
"@polkadot/types-codec": "npm:14.2.2"
|
||||
"@polkadot/util": "npm:^13.2.2"
|
||||
"@polkadot/types": "npm:15.0.2"
|
||||
"@polkadot/types-codec": "npm:15.0.2"
|
||||
"@polkadot/util": "npm:^13.2.3"
|
||||
tslib: "npm:^2.8.0"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-known@npm:14.2.2, @polkadot/types-known@workspace:packages/types-known":
|
||||
"@polkadot/types-known@npm:15.0.2, @polkadot/types-known@workspace:packages/types-known":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-known@workspace:packages/types-known"
|
||||
dependencies:
|
||||
"@polkadot/api": "npm:14.2.2"
|
||||
"@polkadot/networks": "npm:^13.2.2"
|
||||
"@polkadot/types": "npm:14.2.2"
|
||||
"@polkadot/types-codec": "npm:14.2.2"
|
||||
"@polkadot/types-create": "npm:14.2.2"
|
||||
"@polkadot/util": "npm:^13.2.2"
|
||||
"@polkadot/api": "npm:15.0.2"
|
||||
"@polkadot/networks": "npm:^13.2.3"
|
||||
"@polkadot/types": "npm:15.0.2"
|
||||
"@polkadot/types-codec": "npm:15.0.2"
|
||||
"@polkadot/types-create": "npm:15.0.2"
|
||||
"@polkadot/util": "npm:^13.2.3"
|
||||
tslib: "npm:^2.8.0"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-support@npm:14.2.2, @polkadot/types-support@workspace:packages/types-support":
|
||||
"@polkadot/types-support@npm:15.0.2, @polkadot/types-support@workspace:packages/types-support":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-support@workspace:packages/types-support"
|
||||
dependencies:
|
||||
"@polkadot/util": "npm:^13.2.2"
|
||||
"@polkadot/util": "npm:^13.2.3"
|
||||
tslib: "npm:^2.8.0"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types@npm:14.2.2, @polkadot/types@workspace:packages/types":
|
||||
"@polkadot/types@npm:15.0.2, @polkadot/types@workspace:packages/types":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types@workspace:packages/types"
|
||||
dependencies:
|
||||
"@polkadot/keyring": "npm:^13.2.2"
|
||||
"@polkadot/types-augment": "npm:14.2.2"
|
||||
"@polkadot/types-codec": "npm:14.2.2"
|
||||
"@polkadot/types-create": "npm:14.2.2"
|
||||
"@polkadot/types-support": "npm:14.2.2"
|
||||
"@polkadot/util": "npm:^13.2.2"
|
||||
"@polkadot/util-crypto": "npm:^13.2.2"
|
||||
"@polkadot/keyring": "npm:^13.2.3"
|
||||
"@polkadot/types-augment": "npm:15.0.2"
|
||||
"@polkadot/types-codec": "npm:15.0.2"
|
||||
"@polkadot/types-create": "npm:15.0.2"
|
||||
"@polkadot/types-support": "npm:15.0.2"
|
||||
"@polkadot/util": "npm:^13.2.3"
|
||||
"@polkadot/util-crypto": "npm:^13.2.3"
|
||||
rxjs: "npm:^7.8.1"
|
||||
tslib: "npm:^2.8.0"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/util-crypto@npm:13.2.2, @polkadot/util-crypto@npm:^13.2.2":
|
||||
version: 13.2.2
|
||||
resolution: "@polkadot/util-crypto@npm:13.2.2"
|
||||
"@polkadot/util-crypto@npm:13.2.3, @polkadot/util-crypto@npm:^13.2.3":
|
||||
version: 13.2.3
|
||||
resolution: "@polkadot/util-crypto@npm:13.2.3"
|
||||
dependencies:
|
||||
"@noble/curves": "npm:^1.3.0"
|
||||
"@noble/hashes": "npm:^1.3.3"
|
||||
"@polkadot/networks": "npm:13.2.2"
|
||||
"@polkadot/util": "npm:13.2.2"
|
||||
"@polkadot/networks": "npm:13.2.3"
|
||||
"@polkadot/util": "npm:13.2.3"
|
||||
"@polkadot/wasm-crypto": "npm:^7.4.1"
|
||||
"@polkadot/wasm-util": "npm:^7.4.1"
|
||||
"@polkadot/x-bigint": "npm:13.2.2"
|
||||
"@polkadot/x-randomvalues": "npm:13.2.2"
|
||||
"@polkadot/x-bigint": "npm:13.2.3"
|
||||
"@polkadot/x-randomvalues": "npm:13.2.3"
|
||||
"@scure/base": "npm:^1.1.7"
|
||||
tslib: "npm:^2.8.0"
|
||||
peerDependencies:
|
||||
"@polkadot/util": 13.2.2
|
||||
checksum: 10/7f00b4a89be841cfa67c2a25717c21ead158ed52b3f166b5140dae6b2b20e011823b2c06b7df7df95216d964265db151d8785e3db8823ab62ffcc8986d769cd7
|
||||
"@polkadot/util": 13.2.3
|
||||
checksum: 10/47baf5cab1bd2ca20633ef324a35d7b8a4ecb6bff41eb9e0dac8229495d3a7e74f7bc685d652dd465c9339598fa4e885abce8f539329e77b32a1aa0920169825
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/util@npm:13.2.2, @polkadot/util@npm:^13.2.2":
|
||||
version: 13.2.2
|
||||
resolution: "@polkadot/util@npm:13.2.2"
|
||||
"@polkadot/util@npm:13.2.3, @polkadot/util@npm:^13.2.3":
|
||||
version: 13.2.3
|
||||
resolution: "@polkadot/util@npm:13.2.3"
|
||||
dependencies:
|
||||
"@polkadot/x-bigint": "npm:13.2.2"
|
||||
"@polkadot/x-global": "npm:13.2.2"
|
||||
"@polkadot/x-textdecoder": "npm:13.2.2"
|
||||
"@polkadot/x-textencoder": "npm:13.2.2"
|
||||
"@polkadot/x-bigint": "npm:13.2.3"
|
||||
"@polkadot/x-global": "npm:13.2.3"
|
||||
"@polkadot/x-textdecoder": "npm:13.2.3"
|
||||
"@polkadot/x-textencoder": "npm:13.2.3"
|
||||
"@types/bn.js": "npm:^5.1.6"
|
||||
bn.js: "npm:^5.2.1"
|
||||
tslib: "npm:^2.8.0"
|
||||
checksum: 10/acf145fdf49ad7e39a8df2c24eba510956281196902684fa42ce3b4f2152863478a5410b9f64b9a73ab689f37b64f8e01af15027a29812417b1333f143d14c21
|
||||
checksum: 10/45c493224599a003cb52c98d0be502088e3e05dc74e1c505d579aae77341bf1769fbe1ca6c13df8b581235690f78c3b36f8525d378af9df5663a1c21becc4766
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -925,77 +925,77 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-bigint@npm:13.2.2, @polkadot/x-bigint@npm:^13.2.2":
|
||||
version: 13.2.2
|
||||
resolution: "@polkadot/x-bigint@npm:13.2.2"
|
||||
"@polkadot/x-bigint@npm:13.2.3, @polkadot/x-bigint@npm:^13.2.3":
|
||||
version: 13.2.3
|
||||
resolution: "@polkadot/x-bigint@npm:13.2.3"
|
||||
dependencies:
|
||||
"@polkadot/x-global": "npm:13.2.2"
|
||||
"@polkadot/x-global": "npm:13.2.3"
|
||||
tslib: "npm:^2.8.0"
|
||||
checksum: 10/00cdd6298a82971c700b1cb9d9dda26423a46fe86044fe74c5c14cb15d70ca912f044a1c935416fb363b58f84544e7f7a5a79eedefccdfbc56e5185637781c90
|
||||
checksum: 10/1ede67d15b2e66eb8546e6f7ea9bd3599969eda2a75339a5e7077d1db67e1cebd61b5b4522c344ee3210e3117e9c8c36fe623fc691e0d4a8c0f9b0dc39b768a5
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-fetch@npm:^13.2.2":
|
||||
version: 13.2.2
|
||||
resolution: "@polkadot/x-fetch@npm:13.2.2"
|
||||
"@polkadot/x-fetch@npm:^13.2.3":
|
||||
version: 13.2.3
|
||||
resolution: "@polkadot/x-fetch@npm:13.2.3"
|
||||
dependencies:
|
||||
"@polkadot/x-global": "npm:13.2.2"
|
||||
"@polkadot/x-global": "npm:13.2.3"
|
||||
node-fetch: "npm:^3.3.2"
|
||||
tslib: "npm:^2.8.0"
|
||||
checksum: 10/19110cbe80ec105eb4f86f162f6f86a930e18bd189d422dbb724a5a0cf7ad83167ed86671835fd43948f5f92295b570ec7bb997f308359bf9ddb6cea335b4438
|
||||
checksum: 10/55104a2f6ca60acc25e15becf67988f19e702afa985283451436ca42a417e04d87f91332a1afba78537691c370f7a053ec6e07ba111464d25ccbecc99864eac7
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-global@npm:13.2.2, @polkadot/x-global@npm:^13.2.2":
|
||||
version: 13.2.2
|
||||
resolution: "@polkadot/x-global@npm:13.2.2"
|
||||
"@polkadot/x-global@npm:13.2.3, @polkadot/x-global@npm:^13.2.3":
|
||||
version: 13.2.3
|
||||
resolution: "@polkadot/x-global@npm:13.2.3"
|
||||
dependencies:
|
||||
tslib: "npm:^2.8.0"
|
||||
checksum: 10/9b2747c6b581943c82d6228e886fd491ea41068e07d1da3654c9acc27ace5e1b8682c6e9f8ceaffe68aa88fb386758ebe70f595fde8a5a2544361999e39e74f1
|
||||
checksum: 10/163b11c938c4496a94fd476b909b8358007c17e9a251d627c4114d14419c8cd462d8246a580a28e859c91d71c384fc3acfeb27d2e0559c4a443226cbb25df560
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-randomvalues@npm:13.2.2":
|
||||
version: 13.2.2
|
||||
resolution: "@polkadot/x-randomvalues@npm:13.2.2"
|
||||
"@polkadot/x-randomvalues@npm:13.2.3":
|
||||
version: 13.2.3
|
||||
resolution: "@polkadot/x-randomvalues@npm:13.2.3"
|
||||
dependencies:
|
||||
"@polkadot/x-global": "npm:13.2.2"
|
||||
"@polkadot/x-global": "npm:13.2.3"
|
||||
tslib: "npm:^2.8.0"
|
||||
peerDependencies:
|
||||
"@polkadot/util": 13.2.2
|
||||
"@polkadot/util": 13.2.3
|
||||
"@polkadot/wasm-util": "*"
|
||||
checksum: 10/d30e37bc659f4fe045b421e80fc37849e92351ff64244c90651f35ef1fb8722ad1d8d421fc459d039a5f53b9072635f4f531a5a0fd029269025a86178b44b327
|
||||
checksum: 10/864b94a2f031582095afc4e0b2ecbb315cb76122b35f359f236704d8e753b0225c7a6f78a68c990bfbb7b2ea8287d05f0fcb9c27a3c2bd785408de3074fa9636
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-textdecoder@npm:13.2.2":
|
||||
version: 13.2.2
|
||||
resolution: "@polkadot/x-textdecoder@npm:13.2.2"
|
||||
"@polkadot/x-textdecoder@npm:13.2.3":
|
||||
version: 13.2.3
|
||||
resolution: "@polkadot/x-textdecoder@npm:13.2.3"
|
||||
dependencies:
|
||||
"@polkadot/x-global": "npm:13.2.2"
|
||||
"@polkadot/x-global": "npm:13.2.3"
|
||||
tslib: "npm:^2.8.0"
|
||||
checksum: 10/8fcf79d362141f011123230f7f82f9145cd7c0c7f2ac8caa89f0b8a59e457aad6ffb6e05dee98bd7e254dbd87cce6660dea50e7a41b09830f81e1e350f49a276
|
||||
checksum: 10/e67cfb4677cd8a43ed7678421562280947bf22b13d8d4b0ac49e20a34939bbd7de02b8e51a1f5f138c0884847d7c782fb6bbb13d2d7556d1bb7a4e39508c949d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-textencoder@npm:13.2.2":
|
||||
version: 13.2.2
|
||||
resolution: "@polkadot/x-textencoder@npm:13.2.2"
|
||||
"@polkadot/x-textencoder@npm:13.2.3":
|
||||
version: 13.2.3
|
||||
resolution: "@polkadot/x-textencoder@npm:13.2.3"
|
||||
dependencies:
|
||||
"@polkadot/x-global": "npm:13.2.2"
|
||||
"@polkadot/x-global": "npm:13.2.3"
|
||||
tslib: "npm:^2.8.0"
|
||||
checksum: 10/e382f7b1601b11b91fa17242af0357ecd7db4bd7f6db2cea88eef9a5bb3f64271089569b34e28685d62f8e89e870876f2872ec2f34a8aee44515f47e79cd4f0f
|
||||
checksum: 10/54630e2ca156cda7d5f8eb3d5283f43d2729c579d032d9d2b088c2a599d3be905c237d9ebcca3fd432e1fca9d1d0349585e4bf8e27000946a2d6f3c8fef1009d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/x-ws@npm:^13.2.2":
|
||||
version: 13.2.2
|
||||
resolution: "@polkadot/x-ws@npm:13.2.2"
|
||||
"@polkadot/x-ws@npm:^13.2.3":
|
||||
version: 13.2.3
|
||||
resolution: "@polkadot/x-ws@npm:13.2.3"
|
||||
dependencies:
|
||||
"@polkadot/x-global": "npm:13.2.2"
|
||||
"@polkadot/x-global": "npm:13.2.3"
|
||||
tslib: "npm:^2.8.0"
|
||||
ws: "npm:^8.18.0"
|
||||
checksum: 10/f98fcf8350c691c78e2a06487dd57071e13d64014c8192fae2b4fd75435edd946bc4847142933f58046c93709160c912d7d8fa990b8f02b4db929f610b34c77b
|
||||
checksum: 10/35c66899e1bdfeaf2956d663124fc4c33fb1f0b47f3e14f9f9aa8f1e291a7a14cae264aa15baadf7ba85f5c314fbfce61b1fc4bfad3b1d3fc51c1f1dfa60659d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -7945,7 +7945,7 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "root-workspace-0b6124@workspace:."
|
||||
dependencies:
|
||||
"@polkadot/dev": "npm:^0.81.2"
|
||||
"@polkadot/dev": "npm:^0.82.1"
|
||||
"@polkadot/typegen": "workspace:packages/typegen"
|
||||
"@types/node": "npm:^22.7.5"
|
||||
languageName: unknown
|
||||
|
||||
Reference in New Issue
Block a user