@frequency-chain/api-augment
Advanced tools
Comparing version 0.0.0-3a23ad to 0.0.0-3cd432
@@ -5,2 +5,7 @@ # CONTRIBUTING | ||
## Custom RPC Updates | ||
CI will build everything from metadata except the custom RPCs. These are stored in `js/api-augment/definitions/[pallet].ts`. | ||
If you add a new pallet, don't forget to also add the new definitions file export to `js/api-augment/definitions/index.ts`. | ||
## Useful Links | ||
@@ -10,18 +15,13 @@ | ||
## How to Release | ||
## Running Tests | ||
1. Create a New Release on GitHub.com | ||
2. Set tag to `js-frequency-rpc-v[X.X.X]` following [Semver 2.0](https://semver.org/) | ||
3. Set title to "js-frequency-rpc-v[version] Major Feature Name" | ||
4. Set contents to follow [KeepAChangeLog.com 1.0](https://keepachangelog.com/en/1.0.0/), but limited to just the new release information | ||
```markdown | ||
## [0.1.0] - 2017-06-20 | ||
### Added | ||
- New thing | ||
### Changed | ||
- Different thing | ||
### Removed | ||
- Not a thing anymore | ||
``` | ||
5. Publish | ||
6. CI will build and publish to the npm repository | ||
Tests require getting the metadata and building first. | ||
### Chain is running | ||
- `js/api-augment` folder | ||
- `npm run fetch:local` Fetches the metadata from localhost | ||
- `npm run build` | ||
### From CLI | ||
- Frequency Project Root | ||
- `make js` |
@@ -170,8 +170,2 @@ import '@polkadot/api-base/types/errors'; | ||
}; | ||
cumulusXcm: { | ||
/** | ||
* Generic error | ||
**/ | ||
[key: string]: AugmentedError<ApiType>; | ||
}; | ||
democracy: { | ||
@@ -300,16 +294,2 @@ /** | ||
}; | ||
dmpQueue: { | ||
/** | ||
* The amount of weight given is possibly not enough for executing the message. | ||
**/ | ||
OverLimit: AugmentedError<ApiType>; | ||
/** | ||
* The message index given is unknown. | ||
**/ | ||
Unknown: AugmentedError<ApiType>; | ||
/** | ||
* Generic error | ||
**/ | ||
[key: string]: AugmentedError<ApiType>; | ||
}; | ||
messages: { | ||
@@ -407,2 +387,6 @@ /** | ||
/** | ||
* More than one account key exists for the MSA during retire attempt | ||
**/ | ||
MoreThanOneKeyExists: AugmentedError<ApiType>; | ||
/** | ||
* MsaId values have reached the maximum | ||
@@ -436,2 +420,6 @@ **/ | ||
/** | ||
* Can't retire a registered provider MSA | ||
**/ | ||
RegisteredProviderCannotBeRetired: AugmentedError<ApiType>; | ||
/** | ||
* Provider is not permitted to publish for given schema_id | ||
@@ -492,63 +480,2 @@ **/ | ||
}; | ||
polkadotXcm: { | ||
/** | ||
* The location is invalid since it already has a subscription from us. | ||
**/ | ||
AlreadySubscribed: AugmentedError<ApiType>; | ||
/** | ||
* The given location could not be used (e.g. because it cannot be expressed in the | ||
* desired version of XCM). | ||
**/ | ||
BadLocation: AugmentedError<ApiType>; | ||
/** | ||
* The version of the `Versioned` value used is not able to be interpreted. | ||
**/ | ||
BadVersion: AugmentedError<ApiType>; | ||
/** | ||
* Could not re-anchor the assets to declare the fees for the destination chain. | ||
**/ | ||
CannotReanchor: AugmentedError<ApiType>; | ||
/** | ||
* The destination `MultiLocation` provided cannot be inverted. | ||
**/ | ||
DestinationNotInvertible: AugmentedError<ApiType>; | ||
/** | ||
* The assets to be sent are empty. | ||
**/ | ||
Empty: AugmentedError<ApiType>; | ||
/** | ||
* The message execution fails the filter. | ||
**/ | ||
Filtered: AugmentedError<ApiType>; | ||
/** | ||
* Origin is invalid for sending. | ||
**/ | ||
InvalidOrigin: AugmentedError<ApiType>; | ||
/** | ||
* The referenced subscription could not be found. | ||
**/ | ||
NoSubscription: AugmentedError<ApiType>; | ||
/** | ||
* There was some other issue (i.e. not to do with routing) in sending the message. Perhaps | ||
* a lack of space for buffering the message. | ||
**/ | ||
SendFailure: AugmentedError<ApiType>; | ||
/** | ||
* Too many assets have been attempted for transfer. | ||
**/ | ||
TooManyAssets: AugmentedError<ApiType>; | ||
/** | ||
* The desired destination was unreachable, generally because there is a no way of routing | ||
* to it. | ||
**/ | ||
Unreachable: AugmentedError<ApiType>; | ||
/** | ||
* The message's weight could not be determined. | ||
**/ | ||
UnweighableMessage: AugmentedError<ApiType>; | ||
/** | ||
* Generic error | ||
**/ | ||
[key: string]: AugmentedError<ApiType>; | ||
}; | ||
preimage: { | ||
@@ -835,29 +762,3 @@ /** | ||
}; | ||
xcmpQueue: { | ||
/** | ||
* Bad overweight index. | ||
**/ | ||
BadOverweightIndex: AugmentedError<ApiType>; | ||
/** | ||
* Bad XCM data. | ||
**/ | ||
BadXcm: AugmentedError<ApiType>; | ||
/** | ||
* Bad XCM origin. | ||
**/ | ||
BadXcmOrigin: AugmentedError<ApiType>; | ||
/** | ||
* Failed to send XCM message. | ||
**/ | ||
FailedToSend: AugmentedError<ApiType>; | ||
/** | ||
* Provided weight is possibly not enough to execute the message. | ||
**/ | ||
WeightOverLimit: AugmentedError<ApiType>; | ||
/** | ||
* Generic error | ||
**/ | ||
[key: string]: AugmentedError<ApiType>; | ||
}; | ||
} | ||
} |
import '@polkadot/api-base/types/events'; | ||
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 { Bytes, Null, Option, Result, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec'; | ||
import type { ITuple } from '@polkadot/types-codec/types'; | ||
import type { AccountId32, H256, Weight } from '@polkadot/types/interfaces/runtime'; | ||
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, OrmlVestingVestingSchedule, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup'; | ||
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, OrmlVestingVestingSchedule, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, SpRuntimeDispatchError } from '@polkadot/types/lookup'; | ||
export declare type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>; | ||
@@ -175,23 +175,2 @@ declare module '@polkadot/api-base/types/events' { | ||
}; | ||
cumulusXcm: { | ||
/** | ||
* Downward message executed with the given outcome. | ||
* \[ id, outcome \] | ||
**/ | ||
ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, XcmV2TraitsOutcome]>; | ||
/** | ||
* Downward message is invalid XCM. | ||
* \[ id \] | ||
**/ | ||
InvalidFormat: AugmentedEvent<ApiType, [U8aFixed]>; | ||
/** | ||
* Downward message is unsupported version of XCM. | ||
* \[ id \] | ||
**/ | ||
UnsupportedVersion: AugmentedEvent<ApiType, [U8aFixed]>; | ||
/** | ||
* Generic event | ||
**/ | ||
[key: string]: AugmentedEvent<ApiType>; | ||
}; | ||
democracy: { | ||
@@ -341,50 +320,2 @@ /** | ||
}; | ||
dmpQueue: { | ||
/** | ||
* Downward message executed with the given outcome. | ||
**/ | ||
ExecutedDownward: AugmentedEvent<ApiType, [messageId: U8aFixed, outcome: XcmV2TraitsOutcome], { | ||
messageId: U8aFixed; | ||
outcome: XcmV2TraitsOutcome; | ||
}>; | ||
/** | ||
* Downward message is invalid XCM. | ||
**/ | ||
InvalidFormat: AugmentedEvent<ApiType, [messageId: U8aFixed], { | ||
messageId: U8aFixed; | ||
}>; | ||
/** | ||
* Downward message is overweight and was placed in the overweight queue. | ||
**/ | ||
OverweightEnqueued: AugmentedEvent<ApiType, [messageId: U8aFixed, overweightIndex: u64, requiredWeight: Weight], { | ||
messageId: U8aFixed; | ||
overweightIndex: u64; | ||
requiredWeight: Weight; | ||
}>; | ||
/** | ||
* Downward message from the overweight queue was executed. | ||
**/ | ||
OverweightServiced: AugmentedEvent<ApiType, [overweightIndex: u64, weightUsed: Weight], { | ||
overweightIndex: u64; | ||
weightUsed: Weight; | ||
}>; | ||
/** | ||
* Downward message is unsupported version of XCM. | ||
**/ | ||
UnsupportedVersion: AugmentedEvent<ApiType, [messageId: U8aFixed], { | ||
messageId: U8aFixed; | ||
}>; | ||
/** | ||
* The weight limit for handling downward messages was reached. | ||
**/ | ||
WeightExhausted: AugmentedEvent<ApiType, [messageId: U8aFixed, remainingWeight: Weight, requiredWeight: Weight], { | ||
messageId: U8aFixed; | ||
remainingWeight: Weight; | ||
requiredWeight: Weight; | ||
}>; | ||
/** | ||
* Generic event | ||
**/ | ||
[key: string]: AugmentedEvent<ApiType>; | ||
}; | ||
messages: { | ||
@@ -433,2 +364,8 @@ /** | ||
/** | ||
* The MSA has been retired. | ||
**/ | ||
MsaRetired: AugmentedEvent<ApiType, [msaId: u64], { | ||
msaId: u64; | ||
}>; | ||
/** | ||
* A delegation relationship was added with the given provider and delegator | ||
@@ -497,124 +434,2 @@ **/ | ||
}; | ||
polkadotXcm: { | ||
/** | ||
* Some assets have been placed in an asset trap. | ||
* | ||
* \[ hash, origin, assets \] | ||
**/ | ||
AssetsTrapped: AugmentedEvent<ApiType, [H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>; | ||
/** | ||
* Execution of an XCM message was attempted. | ||
* | ||
* \[ outcome \] | ||
**/ | ||
Attempted: AugmentedEvent<ApiType, [XcmV2TraitsOutcome]>; | ||
/** | ||
* Expected query response has been received but the origin location of the response does | ||
* not match that expected. The query remains registered for a later, valid, response to | ||
* be received and acted upon. | ||
* | ||
* \[ origin location, id, expected location \] | ||
**/ | ||
InvalidResponder: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>; | ||
/** | ||
* Expected query response has been received but the expected origin location placed in | ||
* storage by this runtime previously cannot be decoded. The query remains registered. | ||
* | ||
* This is unexpected (since a location placed in storage in a previously executing | ||
* runtime should be readable prior to query timeout) and dangerous since the possibly | ||
* valid response will be dropped. Manual governance intervention is probably going to be | ||
* needed. | ||
* | ||
* \[ origin location, id \] | ||
**/ | ||
InvalidResponderVersion: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>; | ||
/** | ||
* Query response has been received and query is removed. The registered notification has | ||
* been dispatched and executed successfully. | ||
* | ||
* \[ id, pallet index, call index \] | ||
**/ | ||
Notified: AugmentedEvent<ApiType, [u64, u8, u8]>; | ||
/** | ||
* Query response has been received and query is removed. The dispatch was unable to be | ||
* decoded into a `Call`; this might be due to dispatch function having a signature which | ||
* is not `(origin, QueryId, Response)`. | ||
* | ||
* \[ id, pallet index, call index \] | ||
**/ | ||
NotifyDecodeFailed: AugmentedEvent<ApiType, [u64, u8, u8]>; | ||
/** | ||
* Query response has been received and query is removed. There was a general error with | ||
* dispatching the notification call. | ||
* | ||
* \[ id, pallet index, call index \] | ||
**/ | ||
NotifyDispatchError: AugmentedEvent<ApiType, [u64, u8, u8]>; | ||
/** | ||
* Query response has been received and query is removed. The registered notification could | ||
* not be dispatched because the dispatch weight is greater than the maximum weight | ||
* originally budgeted by this runtime for the query result. | ||
* | ||
* \[ id, pallet index, call index, actual weight, max budgeted weight \] | ||
**/ | ||
NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, Weight, Weight]>; | ||
/** | ||
* A given location which had a version change subscription was dropped owing to an error | ||
* migrating the location to our new XCM format. | ||
* | ||
* \[ location, query ID \] | ||
**/ | ||
NotifyTargetMigrationFail: AugmentedEvent<ApiType, [XcmVersionedMultiLocation, u64]>; | ||
/** | ||
* A given location which had a version change subscription was dropped owing to an error | ||
* sending the notification to it. | ||
* | ||
* \[ location, query ID, error \] | ||
**/ | ||
NotifyTargetSendFail: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, XcmV2TraitsError]>; | ||
/** | ||
* Query response has been received and is ready for taking with `take_response`. There is | ||
* no registered notification call. | ||
* | ||
* \[ id, response \] | ||
**/ | ||
ResponseReady: AugmentedEvent<ApiType, [u64, XcmV2Response]>; | ||
/** | ||
* Received query response has been read and removed. | ||
* | ||
* \[ id \] | ||
**/ | ||
ResponseTaken: AugmentedEvent<ApiType, [u64]>; | ||
/** | ||
* A XCM message was sent. | ||
* | ||
* \[ origin, destination, message \] | ||
**/ | ||
Sent: AugmentedEvent<ApiType, [XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>; | ||
/** | ||
* The supported version of a location has been changed. This might be through an | ||
* automatic notification or a manual intervention. | ||
* | ||
* \[ location, XCM version \] | ||
**/ | ||
SupportedVersionChanged: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>; | ||
/** | ||
* Query response received which does not match a registered query. This may be because a | ||
* matching query was never registered, it may be because it is a duplicate response, or | ||
* because the query timed out. | ||
* | ||
* \[ origin location, id \] | ||
**/ | ||
UnexpectedResponse: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>; | ||
/** | ||
* An XCM version change notification message has been attempted to be sent. | ||
* | ||
* \[ destination, result \] | ||
**/ | ||
VersionChangeNotified: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>; | ||
/** | ||
* Generic event | ||
**/ | ||
[key: string]: AugmentedEvent<ApiType>; | ||
}; | ||
preimage: { | ||
@@ -973,64 +788,3 @@ /** | ||
}; | ||
xcmpQueue: { | ||
/** | ||
* Bad XCM format used. | ||
**/ | ||
BadFormat: AugmentedEvent<ApiType, [messageHash: Option<H256>], { | ||
messageHash: Option<H256>; | ||
}>; | ||
/** | ||
* Bad XCM version used. | ||
**/ | ||
BadVersion: AugmentedEvent<ApiType, [messageHash: Option<H256>], { | ||
messageHash: Option<H256>; | ||
}>; | ||
/** | ||
* Some XCM failed. | ||
**/ | ||
Fail: AugmentedEvent<ApiType, [messageHash: Option<H256>, error: XcmV2TraitsError, weight: Weight], { | ||
messageHash: Option<H256>; | ||
error: XcmV2TraitsError; | ||
weight: Weight; | ||
}>; | ||
/** | ||
* An XCM exceeded the individual message weight budget. | ||
**/ | ||
OverweightEnqueued: AugmentedEvent<ApiType, [sender: u32, sentAt: u32, index: u64, required: Weight], { | ||
sender: u32; | ||
sentAt: u32; | ||
index: u64; | ||
required: Weight; | ||
}>; | ||
/** | ||
* An XCM from the overweight queue was executed with the given actual weight used. | ||
**/ | ||
OverweightServiced: AugmentedEvent<ApiType, [index: u64, used: Weight], { | ||
index: u64; | ||
used: Weight; | ||
}>; | ||
/** | ||
* Some XCM was executed ok. | ||
**/ | ||
Success: AugmentedEvent<ApiType, [messageHash: Option<H256>, weight: Weight], { | ||
messageHash: Option<H256>; | ||
weight: Weight; | ||
}>; | ||
/** | ||
* An upward message was sent to the relay chain. | ||
**/ | ||
UpwardMessageSent: AugmentedEvent<ApiType, [messageHash: Option<H256>], { | ||
messageHash: Option<H256>; | ||
}>; | ||
/** | ||
* An HRMP message was sent to a sibling parachain. | ||
**/ | ||
XcmpMessageSent: AugmentedEvent<ApiType, [messageHash: Option<H256>], { | ||
messageHash: Option<H256>; | ||
}>; | ||
/** | ||
* Generic event | ||
**/ | ||
[key: string]: AugmentedEvent<ApiType>; | ||
}; | ||
} | ||
} |
@@ -6,3 +6,3 @@ import '@polkadot/api-base/types/storage'; | ||
import type { AccountId32, Call, H256, Weight } from '@polkadot/types/interfaces/runtime'; | ||
import type { CommonPrimitivesMsaProviderInfo, CommonPrimitivesMsaProviderMetadata, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, FrameSupportWeightsPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, FrequencyRococoRuntimeSessionKeys, OrmlVestingVestingSchedule, PalletAuthorshipUncleEntryItem, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletMessagesMessage, PalletPreimageRequestStatus, PalletSchedulerScheduledV3, PalletSchemasSchema, PalletTransactionPaymentReleases, PalletTreasuryProposal, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof } from '@polkadot/types/lookup'; | ||
import type { CommonPrimitivesMsaProviderInfo, CommonPrimitivesMsaProviderMetadata, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, FrameSupportWeightsPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, FrequencyRuntimeSessionKeys, OrmlVestingVestingSchedule, PalletAuthorshipUncleEntryItem, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletMessagesMessage, PalletPreimageRequestStatus, PalletSchedulerScheduledV3, PalletSchemasSchema, PalletTransactionPaymentReleases, PalletTreasuryProposal, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof } from '@polkadot/types/lookup'; | ||
import type { Observable } from '@polkadot/types/types'; | ||
@@ -247,24 +247,2 @@ export declare type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>; | ||
}; | ||
dmpQueue: { | ||
/** | ||
* The configuration. | ||
**/ | ||
configuration: AugmentedQuery<ApiType, () => Observable<CumulusPalletDmpQueueConfigData>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* The overweight messages. | ||
**/ | ||
overweight: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u32, Bytes]>>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>; | ||
/** | ||
* The page index. | ||
**/ | ||
pageIndex: AugmentedQuery<ApiType, () => Observable<CumulusPalletDmpQueuePageIndexData>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* The queue pages. | ||
**/ | ||
pages: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, Bytes]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>; | ||
/** | ||
* Generic query | ||
**/ | ||
[key: string]: QueryableStorageEntry<ApiType>; | ||
}; | ||
messages: { | ||
@@ -301,3 +279,3 @@ /** | ||
/** | ||
* Storage type for a reference counter of the number of keys assocaited to an MSA | ||
* Storage type for a reference counter of the number of keys associated to an MSA | ||
* - Key: MSA Id | ||
@@ -545,3 +523,3 @@ * - Value: [`u8`] Counter of Keys associated with the MSA | ||
**/ | ||
nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<FrequencyRococoRuntimeSessionKeys>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>; | ||
nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<FrequencyRuntimeSessionKeys>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>; | ||
/** | ||
@@ -556,3 +534,3 @@ * True if the underlying economic identities or weighting behind the validators | ||
**/ | ||
queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, FrequencyRococoRuntimeSessionKeys]>>>, []> & QueryableStorageEntry<ApiType, []>; | ||
queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, FrequencyRuntimeSessionKeys]>>>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
@@ -745,54 +723,3 @@ * The current set of validators. | ||
}; | ||
xcmpQueue: { | ||
/** | ||
* Inbound aggregate XCMP messages. It can only be one per ParaId/block. | ||
**/ | ||
inboundXcmpMessages: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>; | ||
/** | ||
* Status of the inbound XCMP channels. | ||
**/ | ||
inboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<CumulusPalletXcmpQueueInboundChannelDetails>>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* The messages outbound in a given XCMP channel. | ||
**/ | ||
outboundXcmpMessages: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u16 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32, u16]> & QueryableStorageEntry<ApiType, [u32, u16]>; | ||
/** | ||
* The non-empty XCMP channels in order of becoming non-empty, and the index of the first | ||
* and last outbound message. If the two indices are equal, then it indicates an empty | ||
* queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater | ||
* than 65535 items. Queue indices for normal messages begin at one; zero is reserved in | ||
* case of the need to send a high-priority signal message this block. | ||
* The bool is true if there is a signal message waiting to be sent. | ||
**/ | ||
outboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<CumulusPalletXcmpQueueOutboundChannelDetails>>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* The messages that exceeded max individual message weight budget. | ||
* | ||
* These message stay in this storage map until they are manually dispatched via | ||
* `service_overweight`. | ||
**/ | ||
overweight: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u32, u32, Bytes]>>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>; | ||
/** | ||
* The number of overweight messages ever recorded in `Overweight`. Also doubles as the next | ||
* available free overweight index. | ||
**/ | ||
overweightCount: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* The configuration which controls the dynamics of the outbound queue. | ||
**/ | ||
queueConfig: AugmentedQuery<ApiType, () => Observable<CumulusPalletXcmpQueueQueueConfigData>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Whether or not the XCMP queue is suspended from executing incoming XCMs or not. | ||
**/ | ||
queueSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>; | ||
/** | ||
* Any signal messages waiting to be sent. | ||
**/ | ||
signalMessages: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>; | ||
/** | ||
* Generic query | ||
**/ | ||
[key: string]: QueryableStorageEntry<ApiType>; | ||
}; | ||
} | ||
} |
@@ -1,3 +0,1 @@ | ||
export { default as msa } from "../definitions/msa"; | ||
export { default as messages } from "../definitions/messages"; | ||
export { default as schemas } from "../definitions/schemas"; | ||
export * from "../definitions"; |
@@ -1,5 +0,1 @@ | ||
// Add a default export here for each definition | ||
// export { default as pallet } from "./definitions/pallet"; | ||
export { default as msa } from "../definitions/msa"; | ||
export { default as messages } from "../definitions/messages"; | ||
export { default as schemas } from "../definitions/schemas"; | ||
export * from "../definitions"; |
import '@polkadot/types/types/registry'; | ||
import type { CommonPrimitivesDsOrderedSetExt, CommonPrimitivesMsaProviderInfo, CommonPrimitivesMsaProviderMetadata, CommonPrimitivesSchemaModelType, CommonPrimitivesSchemaPayloadLocation, CommonRuntimeExtensionsCheckNonce, CumulusPalletDmpQueueCall, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueueError, CumulusPalletDmpQueueEvent, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmError, CumulusPalletXcmEvent, CumulusPalletXcmOrigin, CumulusPalletXcmpQueueCall, CumulusPalletXcmpQueueError, CumulusPalletXcmpQueueEvent, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueInboundState, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueOutboundState, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesParachainInherentParachainInherentData, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportScheduleLookupError, FrameSupportScheduleMaybeHashed, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassWeight, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonZeroSender, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckTxVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, FrequencyRococoRuntimeOriginCaller, FrequencyRococoRuntimeRuntime, FrequencyRococoRuntimeSessionKeys, OrmlUtilitiesOrderedSet, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletAuthorshipCall, PalletAuthorshipError, PalletAuthorshipUncleEntryItem, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCollatorSelectionCall, PalletCollatorSelectionCandidateInfo, PalletCollatorSelectionError, PalletCollatorSelectionEvent, PalletCollectiveCall, PalletCollectiveError, PalletCollectiveEvent, PalletCollectiveRawOrigin, PalletCollectiveVotes, PalletDemocracyCall, PalletDemocracyConviction, PalletDemocracyDelegations, PalletDemocracyError, PalletDemocracyEvent, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReferendumStatus, PalletDemocracyReleases, PalletDemocracyTally, PalletDemocracyVoteAccountVote, PalletDemocracyVotePriorLock, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletMessagesCall, PalletMessagesError, PalletMessagesEvent, PalletMessagesMessage, PalletMsaAddKeyData, PalletMsaAddProvider, PalletMsaCall, PalletMsaCheckFreeExtrinsicUse, PalletMsaError, PalletMsaEvent, PalletPreimageCall, PalletPreimageError, PalletPreimageEvent, PalletPreimageRequestStatus, PalletSchedulerCall, PalletSchedulerError, PalletSchedulerEvent, PalletSchedulerScheduledV3, PalletSchemasCall, PalletSchemasError, PalletSchemasEvent, PalletSchemasSchema, PalletSessionCall, PalletSessionError, PalletSessionEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTimestampCall, PalletTransactionPaymentChargeTransactionPayment, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUtilityCall, PalletUtilityError, PalletUtilityEvent, PalletXcmCall, PalletXcmError, PalletXcmEvent, PalletXcmOrigin, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotParachainPrimitivesXcmpMessageFormat, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Public, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeArithmeticError, SpRuntimeBlakeTwo256, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeHeader, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion, XcmDoubleEncoded, XcmV0Junction, XcmV0JunctionBodyId, XcmV0JunctionBodyPart, XcmV0JunctionNetworkId, XcmV0MultiAsset, XcmV0MultiLocation, XcmV0Order, XcmV0OriginKind, XcmV0Response, XcmV0Xcm, XcmV1Junction, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetAssetId, XcmV1MultiassetAssetInstance, XcmV1MultiassetFungibility, XcmV1MultiassetMultiAssetFilter, XcmV1MultiassetMultiAssets, XcmV1MultiassetWildFungibility, XcmV1MultiassetWildMultiAsset, XcmV1MultilocationJunctions, XcmV1Order, XcmV1Response, XcmV1Xcm, XcmV2Instruction, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2WeightLimit, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup'; | ||
import type { CommonPrimitivesMsaProviderInfo, CommonPrimitivesMsaProviderMetadata, CommonPrimitivesSchemaModelType, CommonPrimitivesSchemaPayloadLocation, CommonRuntimeExtensionsCheckNonce, CumulusPalletParachainSystemCall, CumulusPalletParachainSystemError, CumulusPalletParachainSystemEvent, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPrimitivesParachainInherentParachainInherentData, FrameSupportDispatchRawOrigin, FrameSupportPalletId, FrameSupportScheduleLookupError, FrameSupportScheduleMaybeHashed, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassWeight, FrameSupportWeightsPerDispatchClassWeightsPerClass, FrameSupportWeightsRuntimeDbWeight, FrameSystemAccountInfo, FrameSystemCall, FrameSystemError, FrameSystemEvent, FrameSystemEventRecord, FrameSystemExtensionsCheckGenesis, FrameSystemExtensionsCheckNonZeroSender, FrameSystemExtensionsCheckSpecVersion, FrameSystemExtensionsCheckTxVersion, FrameSystemExtensionsCheckWeight, FrameSystemLastRuntimeUpgradeInfo, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, FrameSystemLimitsWeightsPerClass, FrameSystemPhase, FrequencyRuntimeOriginCaller, FrequencyRuntimeRuntime, FrequencyRuntimeSessionKeys, OrmlUtilitiesOrderedSet, OrmlVestingModuleCall, OrmlVestingModuleError, OrmlVestingModuleEvent, OrmlVestingVestingSchedule, PalletAuthorshipCall, PalletAuthorshipError, PalletAuthorshipUncleEntryItem, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesCall, PalletBalancesError, PalletBalancesEvent, PalletBalancesReasons, PalletBalancesReleases, PalletBalancesReserveData, PalletCollatorSelectionCall, PalletCollatorSelectionCandidateInfo, PalletCollatorSelectionError, PalletCollatorSelectionEvent, PalletCollectiveCall, PalletCollectiveError, PalletCollectiveEvent, PalletCollectiveRawOrigin, PalletCollectiveVotes, PalletDemocracyCall, PalletDemocracyConviction, PalletDemocracyDelegations, PalletDemocracyError, PalletDemocracyEvent, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReferendumStatus, PalletDemocracyReleases, PalletDemocracyTally, PalletDemocracyVoteAccountVote, PalletDemocracyVotePriorLock, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletMessagesCall, PalletMessagesError, PalletMessagesEvent, PalletMessagesMessage, PalletMsaAddKeyData, PalletMsaAddProvider, PalletMsaCall, PalletMsaCheckFreeExtrinsicUse, PalletMsaError, PalletMsaEvent, PalletPreimageCall, PalletPreimageError, PalletPreimageEvent, PalletPreimageRequestStatus, PalletSchedulerCall, PalletSchedulerError, PalletSchedulerEvent, PalletSchedulerScheduledV3, PalletSchemasCall, PalletSchemasError, PalletSchemasEvent, PalletSchemasSchema, PalletSessionCall, PalletSessionError, PalletSessionEvent, PalletSudoCall, PalletSudoError, PalletSudoEvent, PalletTimestampCall, PalletTransactionPaymentChargeTransactionPayment, PalletTransactionPaymentEvent, PalletTransactionPaymentReleases, PalletTreasuryCall, PalletTreasuryError, PalletTreasuryEvent, PalletTreasuryProposal, PalletUtilityCall, PalletUtilityError, PalletUtilityEvent, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2AbridgedHrmpChannel, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpCoreEcdsaSignature, SpCoreEd25519Signature, SpCoreSr25519Public, SpCoreSr25519Signature, SpCoreVoid, SpRuntimeArithmeticError, SpRuntimeBlakeTwo256, SpRuntimeDigest, SpRuntimeDigestDigestItem, SpRuntimeDispatchError, SpRuntimeHeader, SpRuntimeModuleError, SpRuntimeMultiSignature, SpRuntimeTokenError, SpRuntimeTransactionalError, SpTrieStorageProof, SpVersionRuntimeVersion } from '@polkadot/types/lookup'; | ||
declare module '@polkadot/types/types/registry' { | ||
interface InterfaceTypes { | ||
CommonPrimitivesDsOrderedSetExt: CommonPrimitivesDsOrderedSetExt; | ||
CommonPrimitivesMsaProviderInfo: CommonPrimitivesMsaProviderInfo; | ||
@@ -11,7 +10,2 @@ CommonPrimitivesMsaProviderMetadata: CommonPrimitivesMsaProviderMetadata; | ||
CommonRuntimeExtensionsCheckNonce: CommonRuntimeExtensionsCheckNonce; | ||
CumulusPalletDmpQueueCall: CumulusPalletDmpQueueCall; | ||
CumulusPalletDmpQueueConfigData: CumulusPalletDmpQueueConfigData; | ||
CumulusPalletDmpQueueError: CumulusPalletDmpQueueError; | ||
CumulusPalletDmpQueueEvent: CumulusPalletDmpQueueEvent; | ||
CumulusPalletDmpQueuePageIndexData: CumulusPalletDmpQueuePageIndexData; | ||
CumulusPalletParachainSystemCall: CumulusPalletParachainSystemCall; | ||
@@ -21,13 +15,2 @@ CumulusPalletParachainSystemError: CumulusPalletParachainSystemError; | ||
CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot: CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot; | ||
CumulusPalletXcmError: CumulusPalletXcmError; | ||
CumulusPalletXcmEvent: CumulusPalletXcmEvent; | ||
CumulusPalletXcmOrigin: CumulusPalletXcmOrigin; | ||
CumulusPalletXcmpQueueCall: CumulusPalletXcmpQueueCall; | ||
CumulusPalletXcmpQueueError: CumulusPalletXcmpQueueError; | ||
CumulusPalletXcmpQueueEvent: CumulusPalletXcmpQueueEvent; | ||
CumulusPalletXcmpQueueInboundChannelDetails: CumulusPalletXcmpQueueInboundChannelDetails; | ||
CumulusPalletXcmpQueueInboundState: CumulusPalletXcmpQueueInboundState; | ||
CumulusPalletXcmpQueueOutboundChannelDetails: CumulusPalletXcmpQueueOutboundChannelDetails; | ||
CumulusPalletXcmpQueueOutboundState: CumulusPalletXcmpQueueOutboundState; | ||
CumulusPalletXcmpQueueQueueConfigData: CumulusPalletXcmpQueueQueueConfigData; | ||
CumulusPrimitivesParachainInherentParachainInherentData: CumulusPrimitivesParachainInherentParachainInherentData; | ||
@@ -61,5 +44,5 @@ FrameSupportDispatchRawOrigin: FrameSupportDispatchRawOrigin; | ||
FrameSystemPhase: FrameSystemPhase; | ||
FrequencyRococoRuntimeOriginCaller: FrequencyRococoRuntimeOriginCaller; | ||
FrequencyRococoRuntimeRuntime: FrequencyRococoRuntimeRuntime; | ||
FrequencyRococoRuntimeSessionKeys: FrequencyRococoRuntimeSessionKeys; | ||
FrequencyRuntimeOriginCaller: FrequencyRuntimeOriginCaller; | ||
FrequencyRuntimeRuntime: FrequencyRuntimeRuntime; | ||
FrequencyRuntimeSessionKeys: FrequencyRuntimeSessionKeys; | ||
OrmlUtilitiesOrderedSet: OrmlUtilitiesOrderedSet; | ||
@@ -143,10 +126,5 @@ OrmlVestingModuleCall: OrmlVestingModuleCall; | ||
PalletUtilityEvent: PalletUtilityEvent; | ||
PalletXcmCall: PalletXcmCall; | ||
PalletXcmError: PalletXcmError; | ||
PalletXcmEvent: PalletXcmEvent; | ||
PalletXcmOrigin: PalletXcmOrigin; | ||
PolkadotCorePrimitivesInboundDownwardMessage: PolkadotCorePrimitivesInboundDownwardMessage; | ||
PolkadotCorePrimitivesInboundHrmpMessage: PolkadotCorePrimitivesInboundHrmpMessage; | ||
PolkadotCorePrimitivesOutboundHrmpMessage: PolkadotCorePrimitivesOutboundHrmpMessage; | ||
PolkadotParachainPrimitivesXcmpMessageFormat: PolkadotParachainPrimitivesXcmpMessageFormat; | ||
PolkadotPrimitivesV2AbridgedHostConfiguration: PolkadotPrimitivesV2AbridgedHostConfiguration; | ||
@@ -175,37 +153,3 @@ PolkadotPrimitivesV2AbridgedHrmpChannel: PolkadotPrimitivesV2AbridgedHrmpChannel; | ||
SpVersionRuntimeVersion: SpVersionRuntimeVersion; | ||
XcmDoubleEncoded: XcmDoubleEncoded; | ||
XcmV0Junction: XcmV0Junction; | ||
XcmV0JunctionBodyId: XcmV0JunctionBodyId; | ||
XcmV0JunctionBodyPart: XcmV0JunctionBodyPart; | ||
XcmV0JunctionNetworkId: XcmV0JunctionNetworkId; | ||
XcmV0MultiAsset: XcmV0MultiAsset; | ||
XcmV0MultiLocation: XcmV0MultiLocation; | ||
XcmV0Order: XcmV0Order; | ||
XcmV0OriginKind: XcmV0OriginKind; | ||
XcmV0Response: XcmV0Response; | ||
XcmV0Xcm: XcmV0Xcm; | ||
XcmV1Junction: XcmV1Junction; | ||
XcmV1MultiAsset: XcmV1MultiAsset; | ||
XcmV1MultiLocation: XcmV1MultiLocation; | ||
XcmV1MultiassetAssetId: XcmV1MultiassetAssetId; | ||
XcmV1MultiassetAssetInstance: XcmV1MultiassetAssetInstance; | ||
XcmV1MultiassetFungibility: XcmV1MultiassetFungibility; | ||
XcmV1MultiassetMultiAssetFilter: XcmV1MultiassetMultiAssetFilter; | ||
XcmV1MultiassetMultiAssets: XcmV1MultiassetMultiAssets; | ||
XcmV1MultiassetWildFungibility: XcmV1MultiassetWildFungibility; | ||
XcmV1MultiassetWildMultiAsset: XcmV1MultiassetWildMultiAsset; | ||
XcmV1MultilocationJunctions: XcmV1MultilocationJunctions; | ||
XcmV1Order: XcmV1Order; | ||
XcmV1Response: XcmV1Response; | ||
XcmV1Xcm: XcmV1Xcm; | ||
XcmV2Instruction: XcmV2Instruction; | ||
XcmV2Response: XcmV2Response; | ||
XcmV2TraitsError: XcmV2TraitsError; | ||
XcmV2TraitsOutcome: XcmV2TraitsOutcome; | ||
XcmV2WeightLimit: XcmV2WeightLimit; | ||
XcmV2Xcm: XcmV2Xcm; | ||
XcmVersionedMultiAssets: XcmVersionedMultiAssets; | ||
XcmVersionedMultiLocation: XcmVersionedMultiLocation; | ||
XcmVersionedXcm: XcmVersionedXcm; | ||
} | ||
} |
{ | ||
"name": "@frequency-chain/api-augment", | ||
"version": "0.0.0-3a23ad", | ||
"version": "0.0.0-3cd432", | ||
"bugs": { | ||
@@ -5,0 +5,0 @@ "url": "https://github.com/LibertyDSNP/frequency/issues" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
533989
57
12429
10