Align runtime APIs with latest Substrate (#5521)
This commit is contained in:
@@ -17,9 +17,10 @@ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||
import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||
@@ -86,6 +87,10 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
};
|
||||
/** 0x49eaaf1b548a0cb0/1 */
|
||||
beefyApi: {
|
||||
/**
|
||||
* Return the block number where BEEFY consensus is enabled/started
|
||||
**/
|
||||
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
|
||||
/**
|
||||
* Return the current active BEEFY validator set
|
||||
**/
|
||||
@@ -208,10 +213,18 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
};
|
||||
/** 0x17a6bc0d0062aeb3/1 */
|
||||
nominationPoolsApi: {
|
||||
/**
|
||||
* Returns the equivalent points of `new_funds` for a given pool.
|
||||
**/
|
||||
balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||
/**
|
||||
* Returns the pending rewards for the given member.
|
||||
**/
|
||||
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
||||
/**
|
||||
* Returns the equivalent balance of `points` for a given pool.
|
||||
**/
|
||||
pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
@@ -322,6 +335,17 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x18ef58a3b67ba770/1 */
|
||||
stakingApi: {
|
||||
/**
|
||||
* Returns the nominations quota for a nominator with a given balance.
|
||||
**/
|
||||
nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xd2bc9897eed08f15/3 */
|
||||
taggedTransactionQueue: {
|
||||
/**
|
||||
|
||||
@@ -17,9 +17,10 @@ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||
import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
||||
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
||||
@@ -86,6 +87,10 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
};
|
||||
/** 0x49eaaf1b548a0cb0/1 */
|
||||
beefyApi: {
|
||||
/**
|
||||
* Return the block number where BEEFY consensus is enabled/started
|
||||
**/
|
||||
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
|
||||
/**
|
||||
* Return the current active BEEFY validator set
|
||||
**/
|
||||
@@ -208,10 +213,18 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
};
|
||||
/** 0x17a6bc0d0062aeb3/1 */
|
||||
nominationPoolsApi: {
|
||||
/**
|
||||
* Returns the equivalent points of `new_funds` for a given pool.
|
||||
**/
|
||||
balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||
/**
|
||||
* Returns the pending rewards for the given member.
|
||||
**/
|
||||
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
||||
/**
|
||||
* Returns the equivalent balance of `points` for a given pool.
|
||||
**/
|
||||
pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
@@ -322,6 +335,17 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x18ef58a3b67ba770/1 */
|
||||
stakingApi: {
|
||||
/**
|
||||
* Returns the nominations quota for a nominator with a given balance.
|
||||
**/
|
||||
nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xd2bc9897eed08f15/3 */
|
||||
taggedTransactionQueue: {
|
||||
/**
|
||||
|
||||
@@ -17,6 +17,8 @@ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
||||
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { NftCollectionId, NftItemId } from '@polkadot/types/interfaces/nfts';
|
||||
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
||||
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
|
||||
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
||||
@@ -216,12 +218,51 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x899a250cbe84f250/1 */
|
||||
nftsApi: {
|
||||
/**
|
||||
* An attribute
|
||||
**/
|
||||
attribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* A collection attribute
|
||||
**/
|
||||
collectionAttribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* A collection owner
|
||||
**/
|
||||
collectionOwner: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array) => Observable<Option<AccountId>>>;
|
||||
/**
|
||||
* A custom attribute
|
||||
**/
|
||||
customAttribute: AugmentedCall<ApiType, (account: AccountId | string | Uint8Array, collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Collection owner
|
||||
**/
|
||||
owner: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array) => Observable<Option<AccountId>>>;
|
||||
/**
|
||||
* System attribute
|
||||
**/
|
||||
systemAttribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x17a6bc0d0062aeb3/1 */
|
||||
nominationPoolsApi: {
|
||||
/**
|
||||
* Returns the equivalent points of `new_funds` for a given pool.
|
||||
**/
|
||||
balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||
/**
|
||||
* Returns the pending rewards for the given member.
|
||||
**/
|
||||
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
||||
/**
|
||||
* Returns the equivalent balance of `points` for a given pool.
|
||||
**/
|
||||
pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
@@ -253,6 +294,17 @@ declare module '@polkadot/api-base/types/calls' {
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0x18ef58a3b67ba770/1 */
|
||||
stakingApi: {
|
||||
/**
|
||||
* Returns the nominations quota for a nominator with a given balance.
|
||||
**/
|
||||
nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
};
|
||||
/** 0xd2bc9897eed08f15/3 */
|
||||
taggedTransactionQueue: {
|
||||
/**
|
||||
|
||||
@@ -42,7 +42,8 @@ import type { AuthIndex, AuthoritySignature, Heartbeat, HeartbeatTo244, OpaqueMu
|
||||
import type { CallIndex, LotteryConfig } from '@polkadot/types/interfaces/lottery';
|
||||
import type { ErrorMetadataLatest, ErrorMetadataV10, ErrorMetadataV11, ErrorMetadataV12, ErrorMetadataV13, ErrorMetadataV14, ErrorMetadataV9, EventMetadataLatest, EventMetadataV10, EventMetadataV11, EventMetadataV12, EventMetadataV13, EventMetadataV14, EventMetadataV9, ExtrinsicMetadataLatest, ExtrinsicMetadataV11, ExtrinsicMetadataV12, ExtrinsicMetadataV13, ExtrinsicMetadataV14, FunctionArgumentMetadataLatest, FunctionArgumentMetadataV10, FunctionArgumentMetadataV11, FunctionArgumentMetadataV12, FunctionArgumentMetadataV13, FunctionArgumentMetadataV14, FunctionArgumentMetadataV9, FunctionMetadataLatest, FunctionMetadataV10, FunctionMetadataV11, FunctionMetadataV12, FunctionMetadataV13, FunctionMetadataV14, FunctionMetadataV9, MetadataAll, MetadataLatest, MetadataV10, MetadataV11, MetadataV12, MetadataV13, MetadataV14, MetadataV9, ModuleConstantMetadataV10, ModuleConstantMetadataV11, ModuleConstantMetadataV12, ModuleConstantMetadataV13, ModuleConstantMetadataV9, ModuleMetadataV10, ModuleMetadataV11, ModuleMetadataV12, ModuleMetadataV13, ModuleMetadataV9, OpaqueMetadata, PalletCallMetadataLatest, PalletCallMetadataV14, PalletConstantMetadataLatest, PalletConstantMetadataV14, PalletErrorMetadataLatest, PalletErrorMetadataV14, PalletEventMetadataLatest, PalletEventMetadataV14, PalletMetadataLatest, PalletMetadataV14, PalletStorageMetadataLatest, PalletStorageMetadataV14, PortableType, PortableTypeV14, SignedExtensionMetadataLatest, SignedExtensionMetadataV14, StorageEntryMetadataLatest, StorageEntryMetadataV10, StorageEntryMetadataV11, StorageEntryMetadataV12, StorageEntryMetadataV13, StorageEntryMetadataV14, StorageEntryMetadataV9, StorageEntryModifierLatest, StorageEntryModifierV10, StorageEntryModifierV11, StorageEntryModifierV12, StorageEntryModifierV13, StorageEntryModifierV14, StorageEntryModifierV9, StorageEntryTypeLatest, StorageEntryTypeV10, StorageEntryTypeV11, StorageEntryTypeV12, StorageEntryTypeV13, StorageEntryTypeV14, StorageEntryTypeV9, StorageHasher, StorageHasherV10, StorageHasherV11, StorageHasherV12, StorageHasherV13, StorageHasherV14, StorageHasherV9, StorageMetadataV10, StorageMetadataV11, StorageMetadataV12, StorageMetadataV13, StorageMetadataV9 } from '@polkadot/types/interfaces/metadata';
|
||||
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafBatchProof, MmrLeafIndex, MmrLeafProof, MmrNodeIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
||||
import type { NpApiError } from '@polkadot/types/interfaces/nompools';
|
||||
import type { NftCollectionId, NftItemId } from '@polkadot/types/interfaces/nfts';
|
||||
import type { NpApiError, NpPoolId } from '@polkadot/types/interfaces/nompools';
|
||||
import type { StorageKind } from '@polkadot/types/interfaces/offchain';
|
||||
import type { DeferredOffenceOf, Kind, OffenceDetails, Offender, OpaqueTimeSlot, ReportIdOf, Reporter } from '@polkadot/types/interfaces/offences';
|
||||
import type { AbridgedCandidateReceipt, AbridgedHostConfiguration, AbridgedHrmpChannel, AssignmentId, AssignmentKind, AttestedCandidate, AuctionIndex, AuthorityDiscoveryId, AvailabilityBitfield, AvailabilityBitfieldRecord, BackedCandidate, Bidder, BufferedSessionChange, CandidateCommitments, CandidateDescriptor, CandidateEvent, CandidateHash, CandidateInfo, CandidatePendingAvailability, CandidateReceipt, CollatorId, CollatorSignature, CommittedCandidateReceipt, CoreAssignment, CoreIndex, CoreOccupied, CoreState, DisputeLocation, DisputeResult, DisputeState, DisputeStatement, DisputeStatementSet, DoubleVoteReport, DownwardMessage, ExplicitDisputeStatement, GlobalValidationData, GlobalValidationSchedule, GroupIndex, GroupRotationInfo, HeadData, HostConfiguration, HrmpChannel, HrmpChannelId, HrmpOpenChannelRequest, InboundDownwardMessage, InboundHrmpMessage, InboundHrmpMessages, IncomingParachain, IncomingParachainDeploy, IncomingParachainFixed, InvalidDisputeStatementKind, LeasePeriod, LeasePeriodOf, LocalValidationData, MessageIngestionType, MessageQueueChain, MessagingStateSnapshot, MessagingStateSnapshotEgressEntry, MultiDisputeStatementSet, NewBidder, OccupiedCore, OccupiedCoreAssumption, OldV1SessionInfo, OutboundHrmpMessage, ParaGenesisArgs, ParaId, ParaInfo, ParaLifecycle, ParaPastCodeMeta, ParaScheduling, ParaValidatorIndex, ParachainDispatchOrigin, ParachainInherentData, ParachainProposal, ParachainsInherentData, ParathreadClaim, ParathreadClaimQueue, ParathreadEntry, PersistedValidationData, PvfCheckStatement, QueuedParathread, RegisteredParachainInfo, RelayBlockNumber, RelayChainBlockNumber, RelayChainHash, RelayHash, Remark, ReplacementTimes, Retriable, ScheduledCore, Scheduling, ScrapedOnChainVotes, ServiceQuality, SessionInfo, SessionInfoValidatorGroup, SignedAvailabilityBitfield, SignedAvailabilityBitfields, SigningContext, SlotRange, SlotRange10, Statement, SubId, SystemInherentData, TransientValidationData, UpgradeGoAhead, UpgradeRestriction, UpwardMessage, ValidDisputeStatementKind, ValidationCode, ValidationCodeHash, ValidationData, ValidationDataType, ValidationFunctionParams, ValidatorSignature, ValidityAttestation, VecInboundHrmpMessage, WinnersData, WinnersData10, WinnersDataTuple, WinnersDataTuple10, WinningData, WinningData10, WinningDataEntry } from '@polkadot/types/interfaces/parachains';
|
||||
@@ -692,12 +693,15 @@ declare module '@polkadot/types/types/registry' {
|
||||
NextAuthority: NextAuthority;
|
||||
NextConfigDescriptor: NextConfigDescriptor;
|
||||
NextConfigDescriptorV1: NextConfigDescriptorV1;
|
||||
NftCollectionId: NftCollectionId;
|
||||
NftItemId: NftItemId;
|
||||
NodeRole: NodeRole;
|
||||
Nominations: Nominations;
|
||||
NominatorIndex: NominatorIndex;
|
||||
NominatorIndexCompact: NominatorIndexCompact;
|
||||
NotConnectedPeer: NotConnectedPeer;
|
||||
NpApiError: NpApiError;
|
||||
NpPoolId: NpPoolId;
|
||||
Null: Null;
|
||||
OccupiedCore: OccupiedCore;
|
||||
OccupiedCoreAssumption: OccupiedCoreAssumption;
|
||||
|
||||
@@ -7,6 +7,11 @@ export const runtime: DefinitionsCall = {
|
||||
BeefyApi: [
|
||||
{
|
||||
methods: {
|
||||
beefy_genesis: {
|
||||
description: 'Return the block number where BEEFY consensus is enabled/started',
|
||||
params: [],
|
||||
type: 'Option<BlockNumber>'
|
||||
},
|
||||
validator_set: {
|
||||
description: 'Return the current active BEEFY validator set',
|
||||
params: [],
|
||||
|
||||
@@ -29,6 +29,7 @@ export { default as identity } from './identity/definitions';
|
||||
export { default as imOnline } from './imOnline/definitions';
|
||||
export { default as lottery } from './lottery/definitions';
|
||||
export { default as mmr } from './mmr/definitions';
|
||||
export { default as nfts } from './nfts/definitions';
|
||||
export { default as nompools } from './nompools/definitions';
|
||||
export { default as offences } from './offences/definitions';
|
||||
export { default as pow } from './pow/definitions';
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
|
||||
import { runtime } from './runtime';
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
runtime,
|
||||
types: {
|
||||
NftCollectionId: 'u32',
|
||||
NftItemId: 'u32'
|
||||
}
|
||||
} as Definitions;
|
||||
@@ -0,0 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types';
|
||||
@@ -0,0 +1,110 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsCall } from '../../types';
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
NftsApi: [
|
||||
{
|
||||
methods: {
|
||||
attribute: {
|
||||
description: 'An attribute',
|
||||
params: [
|
||||
{
|
||||
name: 'collection',
|
||||
type: 'NftCollectionId'
|
||||
},
|
||||
{
|
||||
name: 'item',
|
||||
type: 'NftItemId'
|
||||
},
|
||||
{
|
||||
name: 'key',
|
||||
type: 'Bytes'
|
||||
}
|
||||
],
|
||||
type: 'Option<Bytes>'
|
||||
},
|
||||
collection_attribute: {
|
||||
description: 'A collection attribute',
|
||||
params: [
|
||||
{
|
||||
name: 'collection',
|
||||
type: 'NftCollectionId'
|
||||
},
|
||||
{
|
||||
name: 'key',
|
||||
type: 'Bytes'
|
||||
}
|
||||
],
|
||||
type: 'Option<Bytes>'
|
||||
},
|
||||
collection_owner: {
|
||||
description: 'A collection owner',
|
||||
params: [
|
||||
{
|
||||
name: 'collection',
|
||||
type: 'NftCollectionId'
|
||||
}
|
||||
],
|
||||
type: 'Option<AccountId>'
|
||||
},
|
||||
custom_attribute: {
|
||||
description: 'A custom attribute',
|
||||
params: [
|
||||
{
|
||||
name: 'account',
|
||||
type: 'AccountId'
|
||||
},
|
||||
{
|
||||
name: 'collection',
|
||||
type: 'NftCollectionId'
|
||||
},
|
||||
{
|
||||
name: 'item',
|
||||
type: 'NftItemId'
|
||||
},
|
||||
{
|
||||
name: 'key',
|
||||
type: 'Bytes'
|
||||
}
|
||||
],
|
||||
type: 'Option<Bytes>'
|
||||
},
|
||||
owner: {
|
||||
description: 'Collection owner',
|
||||
params: [
|
||||
{
|
||||
name: 'collection',
|
||||
type: 'NftCollectionId'
|
||||
},
|
||||
{
|
||||
name: 'item',
|
||||
type: 'NftItemId'
|
||||
}
|
||||
],
|
||||
type: 'Option<AccountId>'
|
||||
},
|
||||
system_attribute: {
|
||||
description: 'System attribute',
|
||||
params: [
|
||||
{
|
||||
name: 'collection',
|
||||
type: 'NftCollectionId'
|
||||
},
|
||||
{
|
||||
name: 'item',
|
||||
type: 'NftItemId'
|
||||
},
|
||||
{
|
||||
name: 'key',
|
||||
type: 'Bytes'
|
||||
}
|
||||
],
|
||||
type: 'Option<Bytes>'
|
||||
}
|
||||
},
|
||||
version: 1
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -0,0 +1,12 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
import type { u32 } from '@polkadot/types-codec';
|
||||
|
||||
/** @name NftCollectionId */
|
||||
export interface NftCollectionId extends u32 {}
|
||||
|
||||
/** @name NftItemId */
|
||||
export interface NftItemId extends u32 {}
|
||||
|
||||
export type PHANTOM_NFTS = 'nfts';
|
||||
@@ -14,6 +14,7 @@ export default {
|
||||
types: {
|
||||
NpApiError: {
|
||||
_enum: ['MemberNotFound', 'OverflowInPendingRewards']
|
||||
}
|
||||
},
|
||||
NpPoolId: 'u32'
|
||||
}
|
||||
} as Definitions;
|
||||
|
||||
@@ -7,6 +7,20 @@ export const runtime: DefinitionsCall = {
|
||||
NominationPoolsApi: [
|
||||
{
|
||||
methods: {
|
||||
balance_to_points: {
|
||||
description: 'Returns the equivalent points of `new_funds` for a given pool.',
|
||||
params: [
|
||||
{
|
||||
name: 'poolId',
|
||||
type: 'NpPoolId'
|
||||
},
|
||||
{
|
||||
name: 'newFunds',
|
||||
type: 'Balance'
|
||||
}
|
||||
],
|
||||
type: 'Balance'
|
||||
},
|
||||
pending_rewards: {
|
||||
description: 'Returns the pending rewards for the given member.',
|
||||
params: [
|
||||
@@ -16,6 +30,20 @@ export const runtime: DefinitionsCall = {
|
||||
}
|
||||
],
|
||||
type: 'Balance'
|
||||
},
|
||||
points_to_balance: {
|
||||
description: 'Returns the equivalent balance of `points` for a given pool.',
|
||||
params: [
|
||||
{
|
||||
name: 'poolId',
|
||||
type: 'NpPoolId'
|
||||
},
|
||||
{
|
||||
name: 'points',
|
||||
type: 'Balance'
|
||||
}
|
||||
],
|
||||
type: 'Balance'
|
||||
}
|
||||
},
|
||||
version: 1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Enum } from '@polkadot/types-codec';
|
||||
import type { Enum, u32 } from '@polkadot/types-codec';
|
||||
|
||||
/** @name NpApiError */
|
||||
export interface NpApiError extends Enum {
|
||||
@@ -10,4 +10,7 @@ export interface NpApiError extends Enum {
|
||||
readonly type: 'MemberNotFound' | 'OverflowInPendingRewards';
|
||||
}
|
||||
|
||||
/** @name NpPoolId */
|
||||
export interface NpPoolId extends u32 {}
|
||||
|
||||
export type PHANTOM_NOMPOOLS = 'nompools';
|
||||
|
||||
@@ -8,6 +8,8 @@ import type { Definitions } from '../../types';
|
||||
|
||||
import { objectSpread } from '@polkadot/util';
|
||||
|
||||
import { runtime } from './runtime';
|
||||
|
||||
const deprecated = {
|
||||
Points: 'u32',
|
||||
EraPoints: {
|
||||
@@ -174,6 +176,7 @@ const phragmen = {
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
runtime,
|
||||
types: objectSpread({}, deprecated, phragmen, {
|
||||
ActiveEraInfo: {
|
||||
index: 'EraIndex',
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsCall } from '../../types';
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
StakingApi: [
|
||||
{
|
||||
methods: {
|
||||
nominations_quota: {
|
||||
description: 'Returns the nominations quota for a nominator with a given balance.',
|
||||
params: [
|
||||
{
|
||||
name: 'balance',
|
||||
type: 'Balance'
|
||||
}
|
||||
],
|
||||
type: 'u32'
|
||||
}
|
||||
},
|
||||
version: 1
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -38,6 +38,7 @@ export * from './imOnline/types';
|
||||
export * from './lottery/types';
|
||||
export * from './metadata/types';
|
||||
export * from './mmr/types';
|
||||
export * from './nfts/types';
|
||||
export * from './nimbus/types';
|
||||
export * from './nompools/types';
|
||||
export * from './offchain/types';
|
||||
|
||||
Reference in New Issue
Block a user