Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@frequency-chain/api-augment

Package Overview
Dependencies
Maintainers
3
Versions
629
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frequency-chain/api-augment - npm Package Compare versions

Comparing version 0.0.0-cab173 to 0.0.0-ef4b58

definitions/index.d.ts

32

CONTRIBUTING.md

@@ -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`

@@ -21,2 +21,3 @@ declare const _default: {

payload: string;
cid: string;
provider_msa_id: string;

@@ -23,0 +24,0 @@ msa_id: string;

@@ -26,8 +26,9 @@ export default {

MessageResponse: {
payload: "Vec<u8>",
payload: "Option<Vec<u8>>",
cid: "Option<Vec<u8>>",
provider_msa_id: "MessageSourceId",
msa_id: "MessageSourceId",
msa_id: "Option<MessageSourceId>",
index: "u16",
block_number: "BlockNumber",
payload_length: "u32",
payload_length: "Option<u32>", // Length of IPFS payload file
},

@@ -34,0 +35,0 @@ BlockPaginationResponseMessage: {

declare const _default: {
rpc: {
getMsaId: {
description: string;
params: {
name: string;
type: string;
}[];
type: string;
};
checkDelegations: {

@@ -12,0 +4,0 @@ description: string;

export default {
rpc: {
getMsaId: {
description: "Fetch MSA Id by Key",
params: [
{
name: "key",
type: "AccountId",
},
],
type: "Option<MessageSourceId>",
},
// // *Temporarily Removed* until https://github.com/LibertyDSNP/frequency/issues/418

@@ -35,2 +25,6 @@ // getMsaKeys: {

},
{
name: "block_number",
type: "Option<BlockNumber>",
}
],

@@ -37,0 +31,0 @@ type: "Vec<(MessageSourceId, bool)>",

declare const _default: {
rpc: {
getLatestSchemaId: {
description: string;
params: {
name: string;
type: string;
isOptional: boolean;
}[];
type: string;
};
getBySchemaId: {

@@ -13,0 +4,0 @@ description: string;

export default {
rpc: {
getLatestSchemaId: {
description: "Get the most recent (aka highest) Schema Id. Useful for then retrieving a list of all Schemas (1-[result])",
params: [
{
name: "at",
type: "BlockHash",
isOptional: true,
},
],
type: "SchemaId",
},
getBySchemaId: {

@@ -15,0 +4,0 @@ description: "Get a Schema by Id",

import '@polkadot/api-base/types/consts';
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
import type { bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { Option, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { Codec } from '@polkadot/types-codec/types';
import type { FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
import type { Permill, Weight } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion } from '@polkadot/types/lookup';
export declare type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;

@@ -139,3 +140,3 @@ declare module '@polkadot/api-base/types/consts' {

**/
maximumWeight: u64 & AugmentedConst<ApiType>;
maximumWeight: Weight & AugmentedConst<ApiType>;
/**

@@ -187,3 +188,3 @@ * The maximum number of scheduled calls in the queue for a single block.

/**
* The designated SS85 prefix of this chain.
* The designated SS58 prefix of this chain.
*

@@ -247,2 +248,39 @@ * This replaces the "ss58Format" property declared in the chain spec. Reason is

};
treasury: {
/**
* Percentage of spare funds (if any) that are burnt per spend period.
**/
burn: Permill & AugmentedConst<ApiType>;
/**
* The maximum number of approvals that can wait in the spending queue.
*
* NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
**/
maxApprovals: u32 & AugmentedConst<ApiType>;
/**
* The treasury's pallet id, used for deriving its sovereign account ID.
**/
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
/**
* Fraction of a proposal's value that should be bonded in order to place the proposal.
* An accepted proposal gets these back. A rejected proposal does not.
**/
proposalBond: Permill & AugmentedConst<ApiType>;
/**
* Maximum amount of funds that should be placed in a deposit for making a proposal.
**/
proposalBondMaximum: Option<u128> & AugmentedConst<ApiType>;
/**
* Minimum amount of funds that should be placed in a deposit for making a proposal.
**/
proposalBondMinimum: u128 & AugmentedConst<ApiType>;
/**
* Period between successive spends.
**/
spendPeriod: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
utility: {

@@ -249,0 +287,0 @@ /**

@@ -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: {

@@ -325,6 +305,2 @@ /**

/**
* Invalid Pagination Request
**/
InvalidPaginationRequest: AugmentedError<ApiType>;
/**
* Invalid payload location

@@ -412,2 +388,6 @@ **/

/**
* More than one account key exists for the MSA during retire attempt
**/
MoreThanOneKeyExists: AugmentedError<ApiType>;
/**
* MsaId values have reached the maximum

@@ -441,2 +421,6 @@ **/

/**
* Can't retire a registered provider MSA
**/
RegisteredProviderCannotBeRetired: AugmentedError<ApiType>;
/**
* Provider is not permitted to publish for given schema_id

@@ -497,63 +481,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: {

@@ -773,2 +696,29 @@ /**

};
treasury: {
/**
* The spend origin is valid but the amount it is allowed to spend is lower than the
* amount to be spent.
**/
InsufficientPermission: AugmentedError<ApiType>;
/**
* Proposer's balance is too low.
**/
InsufficientProposersBalance: AugmentedError<ApiType>;
/**
* No proposal or bounty at that index.
**/
InvalidIndex: AugmentedError<ApiType>;
/**
* Proposal has not been approved.
**/
ProposalNotApproved: AugmentedError<ApiType>;
/**
* Too many approvals in the queue.
**/
TooManyApprovals: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
utility: {

@@ -814,29 +764,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 } 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 { AccountId32, H256, Weight } from '@polkadot/types/interfaces/runtime';
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: u64], {
messageId: U8aFixed;
overweightIndex: u64;
requiredWeight: u64;
}>;
/**
* Downward message from the overweight queue was executed.
**/
OverweightServiced: AugmentedEvent<ApiType, [overweightIndex: u64, weightUsed: u64], {
overweightIndex: u64;
weightUsed: u64;
}>;
/**
* 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: u64, requiredWeight: u64], {
messageId: U8aFixed;
remainingWeight: u64;
requiredWeight: u64;
}>;
/**
* 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

@@ -462,4 +399,4 @@ **/

**/
DownwardMessagesProcessed: AugmentedEvent<ApiType, [weightUsed: u64, dmqHead: H256], {
weightUsed: u64;
DownwardMessagesProcessed: AugmentedEvent<ApiType, [weightUsed: Weight, dmqHead: H256], {
weightUsed: Weight;
dmqHead: H256;

@@ -498,124 +435,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, u64, u64]>;
/**
* 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: {

@@ -850,2 +665,61 @@ /**

};
treasury: {
/**
* Some funds have been allocated.
**/
Awarded: AugmentedEvent<ApiType, [proposalIndex: u32, award: u128, account: AccountId32], {
proposalIndex: u32;
award: u128;
account: AccountId32;
}>;
/**
* Some of our funds have been burnt.
**/
Burnt: AugmentedEvent<ApiType, [burntFunds: u128], {
burntFunds: u128;
}>;
/**
* Some funds have been deposited.
**/
Deposit: AugmentedEvent<ApiType, [value: u128], {
value: u128;
}>;
/**
* New proposal.
**/
Proposed: AugmentedEvent<ApiType, [proposalIndex: u32], {
proposalIndex: u32;
}>;
/**
* A proposal was rejected; funds were slashed.
**/
Rejected: AugmentedEvent<ApiType, [proposalIndex: u32, slashed: u128], {
proposalIndex: u32;
slashed: u128;
}>;
/**
* Spending has finished; this is the amount that rolls over until next spend.
**/
Rollover: AugmentedEvent<ApiType, [rolloverBalance: u128], {
rolloverBalance: u128;
}>;
/**
* A new spend proposal has been approved.
**/
SpendApproved: AugmentedEvent<ApiType, [proposalIndex: u32, amount: u128, beneficiary: AccountId32], {
proposalIndex: u32;
amount: u128;
beneficiary: AccountId32;
}>;
/**
* We have ended a spend period and will now allocate funds.
**/
Spending: AugmentedEvent<ApiType, [budgetRemaining: u128], {
budgetRemaining: u128;
}>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
utility: {

@@ -916,64 +790,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: u64], {
messageHash: Option<H256>;
error: XcmV2TraitsError;
weight: u64;
}>;
/**
* An XCM exceeded the individual message weight budget.
**/
OverweightEnqueued: AugmentedEvent<ApiType, [sender: u32, sentAt: u32, index: u64, required: u64], {
sender: u32;
sentAt: u32;
index: u64;
required: u64;
}>;
/**
* An XCM from the overweight queue was executed with the given actual weight used.
**/
OverweightServiced: AugmentedEvent<ApiType, [index: u64, used: u64], {
index: u64;
used: u64;
}>;
/**
* Some XCM was executed ok.
**/
Success: AugmentedEvent<ApiType, [messageHash: Option<H256>, weight: u64], {
messageHash: Option<H256>;
weight: u64;
}>;
/**
* 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>;
};
}
}

@@ -5,4 +5,4 @@ import '@polkadot/api-base/types/storage';

import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, Call, H256 } from '@polkadot/types/interfaces/runtime';
import type { CommonPrimitivesMsaProviderInfo, CommonPrimitivesMsaProviderMetadata, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, FrequencyRococoRuntimeSessionKeys, OrmlVestingVestingSchedule, PalletAuthorshipUncleEntryItem, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletMessagesMessage, PalletPreimageRequestStatus, PalletSchedulerScheduledV3, PalletSchemasSchema, PalletTransactionPaymentReleases, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV2AbridgedHostConfiguration, PolkadotPrimitivesV2PersistedValidationData, PolkadotPrimitivesV2UpgradeRestriction, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof } from '@polkadot/types/lookup';
import type { AccountId32, Call, H256, Weight } from '@polkadot/types/interfaces/runtime';
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

@@ -440,3 +418,3 @@ * - Value: [`u8`] Counter of Keys associated with the MSA

**/
reservedDmpWeightOverride: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []> & QueryableStorageEntry<ApiType, []>;
reservedDmpWeightOverride: AugmentedQuery<ApiType, () => Observable<Option<Weight>>, []> & QueryableStorageEntry<ApiType, []>;
/**

@@ -446,3 +424,3 @@ * The weight we reserve at the beginning of the block for processing XCMP messages. This

**/
reservedXcmpWeightOverride: AugmentedQuery<ApiType, () => Observable<Option<u64>>, []> & QueryableStorageEntry<ApiType, []>;
reservedXcmpWeightOverride: AugmentedQuery<ApiType, () => Observable<Option<Weight>>, []> & QueryableStorageEntry<ApiType, []>;
/**

@@ -547,3 +525,3 @@ * An option which indicates if the relay-chain restricts signalling a validation code upgrade.

**/
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]>;
/**

@@ -558,3 +536,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, []>;
/**

@@ -595,3 +573,3 @@ * The current set of validators.

**/
blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportWeightsPerDispatchClassU64>, []> & QueryableStorageEntry<ApiType, []>;
blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportWeightsPerDispatchClassWeight>, []> & QueryableStorageEntry<ApiType, []>;
/**

@@ -718,61 +696,28 @@ * Digest of the current block, also part of the block header.

};
vesting: {
treasury: {
/**
* Vesting schedules of an account.
*
* VestingSchedules: map AccountId => Vec<VestingSchedule>
* Proposal indices that have been approved but not yet awarded.
**/
vestingSchedules: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<OrmlVestingVestingSchedule>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
approvals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Generic query
* Number of proposals that have been made.
**/
[key: string]: QueryableStorageEntry<ApiType>;
};
xcmpQueue: {
proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
/**
* Inbound aggregate XCMP messages. It can only be one per ParaId/block.
* Proposals that have been made.
**/
inboundXcmpMessages: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
proposals: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasuryProposal>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
/**
* Status of the inbound XCMP channels.
* Generic query
**/
inboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<CumulusPalletXcmpQueueInboundChannelDetails>>, []> & QueryableStorageEntry<ApiType, []>;
[key: string]: QueryableStorageEntry<ApiType>;
};
vesting: {
/**
* 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.
* Vesting schedules of an account.
*
* These message stay in this storage map until they are manually dispatched via
* `service_overweight`.
* VestingSchedules: map AccountId => Vec<VestingSchedule>
**/
overweight: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u32, u32, Bytes]>>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
vestingSchedules: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<OrmlVestingVestingSchedule>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* 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

@@ -779,0 +724,0 @@ **/

@@ -144,2 +144,3 @@ import '@polkadot/rpc-core/types/jsonrpc';

/**
* @deprecated Use the runtime interface `api.call.contractsApi.call` instead
* Executes a call to a contract

@@ -156,2 +157,3 @@ **/

/**
* @deprecated Use the runtime interface `api.call.contractsApi.getStorage` instead
* Returns the value under a specified storage key in a contract

@@ -161,2 +163,3 @@ **/

/**
* @deprecated Use the runtime interface `api.call.contractsApi.instantiate` instead
* Instantiate a new contract

@@ -174,2 +177,3 @@ **/

/**
* @deprecated Not available in newer versions of the contracts interfaces
* Returns the projected time a given contract will be able to sustain paying its rent

@@ -179,2 +183,3 @@ **/

/**
* @deprecated Use the runtime interface `api.call.contractsApi.uploadCode` instead
* Upload new code without instantiating a contract from it

@@ -457,8 +462,4 @@ **/

**/
checkDelegations: AugmentedRpc<(delegator_msa_ids: Vec<MessageSourceId> | (MessageSourceId | AnyNumber | Uint8Array)[], provider_msa_id: MessageSourceId | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[MessageSourceId, bool]>>>>;
checkDelegations: AugmentedRpc<(delegator_msa_ids: Vec<MessageSourceId> | (MessageSourceId | AnyNumber | Uint8Array)[], provider_msa_id: MessageSourceId | AnyNumber | Uint8Array, block_number: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Vec<ITuple<[MessageSourceId, bool]>>>>;
/**
* Fetch MSA Id by Key
**/
getMsaId: AugmentedRpc<(key: AccountId | string | Uint8Array) => Observable<Option<MessageSourceId>>>;
/**
* Fetch the list of schema ids that a delegator has granted to provider

@@ -517,6 +518,2 @@ **/

getBySchemaId: AugmentedRpc<(schema_id: SchemaId | AnyNumber | Uint8Array) => Observable<Option<SchemaResponse>>>;
/**
* Get the most recent (aka highest) Schema Id. Useful for then retrieving a list of all Schemas (1-[result])
**/
getLatestSchemaId: AugmentedRpc<(at?: BlockHash | string | Uint8Array) => Observable<SchemaId>>;
};

@@ -549,2 +546,3 @@ state: {

/**
* @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys
* Retrieves the keys with a certain prefix

@@ -562,2 +560,3 @@ **/

/**
* @deprecated Use `api.rpc.state.getKeysPaged` to retrieve keys
* Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)

@@ -564,0 +563,0 @@ **/

@@ -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";

@@ -20,9 +20,10 @@ import type { MessageSourceId } from '@frequency-chain/api-augment/msa';

export interface MessageResponse extends Struct {
readonly payload: Bytes;
readonly payload: Option<Bytes>;
readonly cid: Option<Bytes>;
readonly provider_msa_id: MessageSourceId;
readonly msa_id: MessageSourceId;
readonly msa_id: Option<MessageSourceId>;
readonly index: u16;
readonly block_number: BlockNumber;
readonly payload_length: u32;
readonly payload_length: Option<u32>;
}
export declare type PHANTOM_MESSAGES = 'messages';
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, FrameSupportScheduleLookupError, FrameSupportScheduleMaybeHashed, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchClass, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPays, FrameSupportWeightsPerDispatchClassU32, FrameSupportWeightsPerDispatchClassU64, 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, 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,15 +15,5 @@ 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;
FrameSupportDispatchRawOrigin: FrameSupportDispatchRawOrigin;
FrameSupportPalletId: FrameSupportPalletId;
FrameSupportScheduleLookupError: FrameSupportScheduleLookupError;

@@ -42,3 +26,3 @@ FrameSupportScheduleMaybeHashed: FrameSupportScheduleMaybeHashed;

FrameSupportWeightsPerDispatchClassU32: FrameSupportWeightsPerDispatchClassU32;
FrameSupportWeightsPerDispatchClassU64: FrameSupportWeightsPerDispatchClassU64;
FrameSupportWeightsPerDispatchClassWeight: FrameSupportWeightsPerDispatchClassWeight;
FrameSupportWeightsPerDispatchClassWeightsPerClass: FrameSupportWeightsPerDispatchClassWeightsPerClass;

@@ -61,5 +45,5 @@ FrameSupportWeightsRuntimeDbWeight: FrameSupportWeightsRuntimeDbWeight;

FrameSystemPhase: FrameSystemPhase;
FrequencyRococoRuntimeOriginCaller: FrequencyRococoRuntimeOriginCaller;
FrequencyRococoRuntimeRuntime: FrequencyRococoRuntimeRuntime;
FrequencyRococoRuntimeSessionKeys: FrequencyRococoRuntimeSessionKeys;
FrequencyRuntimeOriginCaller: FrequencyRuntimeOriginCaller;
FrequencyRuntimeRuntime: FrequencyRuntimeRuntime;
FrequencyRuntimeSessionKeys: FrequencyRuntimeSessionKeys;
OrmlUtilitiesOrderedSet: OrmlUtilitiesOrderedSet;

@@ -136,13 +120,12 @@ OrmlVestingModuleCall: OrmlVestingModuleCall;

PalletTransactionPaymentReleases: PalletTransactionPaymentReleases;
PalletTreasuryCall: PalletTreasuryCall;
PalletTreasuryError: PalletTreasuryError;
PalletTreasuryEvent: PalletTreasuryEvent;
PalletTreasuryProposal: PalletTreasuryProposal;
PalletUtilityCall: PalletUtilityCall;
PalletUtilityError: PalletUtilityError;
PalletUtilityEvent: PalletUtilityEvent;
PalletXcmCall: PalletXcmCall;
PalletXcmError: PalletXcmError;
PalletXcmEvent: PalletXcmEvent;
PalletXcmOrigin: PalletXcmOrigin;
PolkadotCorePrimitivesInboundDownwardMessage: PolkadotCorePrimitivesInboundDownwardMessage;
PolkadotCorePrimitivesInboundHrmpMessage: PolkadotCorePrimitivesInboundHrmpMessage;
PolkadotCorePrimitivesOutboundHrmpMessage: PolkadotCorePrimitivesOutboundHrmpMessage;
PolkadotParachainPrimitivesXcmpMessageFormat: PolkadotParachainPrimitivesXcmpMessageFormat;
PolkadotPrimitivesV2AbridgedHostConfiguration: PolkadotPrimitivesV2AbridgedHostConfiguration;

@@ -171,37 +154,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-cab173",
"version": "0.0.0-ef4b58",
"bugs": {

@@ -17,6 +17,6 @@ "url": "https://github.com/LibertyDSNP/frequency/issues"

"devDependencies": {
"@polkadot/api": "^9.2.4",
"@polkadot/rpc-provider": "^9.2.4",
"@polkadot/typegen": "^9.2.4",
"@polkadot/types": "^9.2.4",
"@polkadot/api": "^9.4.3",
"@polkadot/rpc-provider": "^9.4.3",
"@polkadot/typegen": "^9.4.3",
"@polkadot/types": "^9.4.3",
"@types/mocha": "^9.1.1",

@@ -23,0 +23,0 @@ "@typescript-eslint/eslint-plugin": "^5.36.0",

@@ -52,9 +52,11 @@ # Javascript Custom RPC

1. Update `./definitions`
2. Build and start the chain (does not need to be on-boarded)
3. Run `npm run fetch:local`
4. Run `npm run build`
5. Commit changes
Update `./definitions` if you have changed any types or RPC calls.
To generate the JS api definitions, run
```
make js
```
This command will start a Frequency node in the background and fetch API definitions from it. To stop the Frequency process, use the PID output by the command.
## Helpful Notes

@@ -85,3 +87,3 @@

```javascript
const optionalExample = await api.rpc.msa.getMsaId(account);
const optionalExample = await api.rpc.schemas.getBySchemaId(1);
// Does the Option have a value?

@@ -88,0 +90,0 @@ if (!optionalExample.isEmpty) {

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

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc