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
641
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-5f9501 to 0.0.0-611d6d

27

interfaces/augment-api-consts.d.ts

@@ -119,6 +119,2 @@ import '@polkadot/api-base/types/consts';

/**
* Maximum count of keys allowed per MSA
**/
maxKeys: u8 & AugmentedConst<ApiType>;
/**
* Maximum provider name size allowed per MSA association

@@ -128,6 +124,27 @@ **/

/**
* Maximum count of keys allowed per MSA
**/
maxPublicKeysPerMsa: u8 & AugmentedConst<ApiType>;
/**
* Maximum count of schemas granted for publishing data per Provider
**/
maxSchemaGrants: u32 & AugmentedConst<ApiType>;
maxSchemaGrantsPerDelegation: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of signatures that can be assigned to a virtual bucket. In other
* words, no more than this many signatures can be assigned a specific first-key value.
**/
maxSignaturesPerBucket: u32 & AugmentedConst<ApiType>;
/**
* The number of blocks per virtual "bucket" in the PayloadSignatureRegistry
* Virtual buckets are the first part of the double key in the PayloadSignatureRegistry
* StorageDoubleMap. This permits a key grouping that enables mass removal
* of stale signatures which are no longer at risk of replay.
**/
mortalityWindowSize: u32 & AugmentedConst<ApiType>;
/**
* The total number of virtual buckets
* There are exactly NumberOfBuckets first-key values in PayloadSignatureRegistry.
**/
numberOfBuckets: u32 & AugmentedConst<ApiType>;
/**
* Generic const

@@ -134,0 +151,0 @@ **/

@@ -363,3 +363,3 @@ import '@polkadot/api-base/types/errors';

**/
ExceedsMaxSchemaGrants: AugmentedError<ApiType>;
ExceedsMaxSchemaGrantsPerDelegation: AugmentedError<ApiType>;
/**

@@ -430,2 +430,6 @@ * An invalid schema Id was provided

/**
* Attempted to add a signature when the signature is already in the registry
**/
SignatureAlreadySubmitted: AugmentedError<ApiType>;
/**
* Origin attempted to add a delegate for someone else's MSA

@@ -432,0 +436,0 @@ **/

27

interfaces/augment-api-query.d.ts

@@ -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, 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 { 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, SpRuntimeMultiSignature, SpTrieStorageProof } from '@polkadot/types/lookup';
import type { Observable } from '@polkadot/types/types';

@@ -267,8 +267,2 @@ export declare type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;

/**
* Storage type for key to MSA information
* - Key: AccountId
* - Value: [`MessageSourceId`]
**/
messageSourceIdOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u64>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Storage type for MSA identifier

@@ -285,2 +279,15 @@ * - Value: The current maximum MSA Id

/**
* PayloadSignatureRegistry is used to prevent replay attacks for extrinsics
* that take an externally-signed payload.
* For this to work, the payload must include a mortality block number, which
* is used in lieu of a monotonically increasing nonce.
**/
payloadSignatureRegistry: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: SpRuntimeMultiSignature | {
Ed25519: any;
} | {
Sr25519: any;
} | {
Ecdsa: any;
} | string | Uint8Array) => Observable<Option<u32>>, [u32, SpRuntimeMultiSignature]> & QueryableStorageEntry<ApiType, [u32, SpRuntimeMultiSignature]>;
/**
* Storage type for mapping the relationship between a Delegator and its Provider.

@@ -298,2 +305,8 @@ * - Keys: Delegator MSA, Provider MSA

/**
* Storage type for key to MSA information
* - Key: AccountId
* - Value: [`MessageSourceId`]
**/
publicKeyToMsaId: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u64>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
/**
* Generic query

@@ -300,0 +313,0 @@ **/

@@ -1688,3 +1688,3 @@ declare const _default: {

/**
* Lookup237: common_primitives::msa::ProviderInfo<BlockNumber, MaxSchemaGrants>
* Lookup237: common_primitives::msa::ProviderInfo<BlockNumber, MaxSchemaGrantsPerDelegation>
**/

@@ -1706,3 +1706,3 @@ CommonPrimitivesMsaProviderInfo: {

/**
* Lookup242: pallet_msa::pallet::Error<T>
* Lookup243: pallet_msa::pallet::Error<T>
**/

@@ -1713,3 +1713,3 @@ PalletMsaError: {

/**
* Lookup245: pallet_messages::types::Message<MaxDataSize>
* Lookup246: pallet_messages::types::Message<MaxDataSize>
**/

@@ -1723,3 +1723,3 @@ PalletMessagesMessage: {

/**
* Lookup251: pallet_messages::pallet::Error<T>
* Lookup252: pallet_messages::pallet::Error<T>
**/

@@ -1730,3 +1730,3 @@ PalletMessagesError: {

/**
* Lookup252: pallet_schemas::types::Schema<MaxModelSize>
* Lookup253: pallet_schemas::types::Schema<MaxModelSize>
**/

@@ -1739,3 +1739,3 @@ PalletSchemasSchema: {

/**
* Lookup253: pallet_schemas::pallet::Error<T>
* Lookup254: pallet_schemas::pallet::Error<T>
**/

@@ -1746,35 +1746,35 @@ PalletSchemasError: {

/**
* Lookup256: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender<T>
* Lookup257: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender<T>
**/
FrameSystemExtensionsCheckNonZeroSender: string;
/**
* Lookup257: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
* Lookup258: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
**/
FrameSystemExtensionsCheckSpecVersion: string;
/**
* Lookup258: frame_system::extensions::check_tx_version::CheckTxVersion<T>
* Lookup259: frame_system::extensions::check_tx_version::CheckTxVersion<T>
**/
FrameSystemExtensionsCheckTxVersion: string;
/**
* Lookup259: frame_system::extensions::check_genesis::CheckGenesis<T>
* Lookup260: frame_system::extensions::check_genesis::CheckGenesis<T>
**/
FrameSystemExtensionsCheckGenesis: string;
/**
* Lookup262: common_runtime::extensions::check_nonce::CheckNonce<T>
* Lookup263: common_runtime::extensions::check_nonce::CheckNonce<T>
**/
CommonRuntimeExtensionsCheckNonce: string;
/**
* Lookup263: frame_system::extensions::check_weight::CheckWeight<T>
* Lookup264: frame_system::extensions::check_weight::CheckWeight<T>
**/
FrameSystemExtensionsCheckWeight: string;
/**
* Lookup264: pallet_transaction_payment::ChargeTransactionPayment<T>
* Lookup265: pallet_transaction_payment::ChargeTransactionPayment<T>
**/
PalletTransactionPaymentChargeTransactionPayment: string;
/**
* Lookup265: pallet_msa::CheckFreeExtrinsicUse<T>
* Lookup266: pallet_msa::CheckFreeExtrinsicUse<T>
**/
PalletMsaCheckFreeExtrinsicUse: string;
/**
* Lookup266: frequency_runtime::Runtime
* Lookup267: frequency_runtime::Runtime
**/

@@ -1781,0 +1781,0 @@ FrequencyRuntimeRuntime: string;

@@ -1691,3 +1691,3 @@ // Auto-generated via `yarn polkadot-types-from-defs`, do not edit

/**
* Lookup237: common_primitives::msa::ProviderInfo<BlockNumber, MaxSchemaGrants>
* Lookup237: common_primitives::msa::ProviderInfo<BlockNumber, MaxSchemaGrantsPerDelegation>
**/

@@ -1709,9 +1709,9 @@ CommonPrimitivesMsaProviderInfo: {

/**
* Lookup242: pallet_msa::pallet::Error<T>
* Lookup243: pallet_msa::pallet::Error<T>
**/
PalletMsaError: {
_enum: ['KeyAlreadyRegistered', 'MsaIdOverflow', 'AddKeySignatureVerificationFailed', 'NotMsaOwner', 'InvalidSignature', 'NotKeyOwner', 'NoKeyExists', 'KeyLimitExceeded', 'MoreThanOneKeyExists', 'RegisteredProviderCannotBeRetired', 'InvalidSelfRemoval', 'InvalidSelfProvider', 'InvalidSchemaId', 'DuplicateProvider', 'AddProviderSignatureVerificationFailed', 'UnauthorizedDelegator', 'UnauthorizedProvider', 'DelegationRevoked', 'DelegationNotFound', 'DelegationExpired', 'DuplicateProviderMetadata', 'ExceedsMaxProviderNameSize', 'ExceedsMaxSchemaGrants', 'SchemaNotGranted', 'ProviderNotRegistered', 'ProofHasExpired', 'ProofNotYetValid']
_enum: ['KeyAlreadyRegistered', 'MsaIdOverflow', 'AddKeySignatureVerificationFailed', 'NotMsaOwner', 'InvalidSignature', 'NotKeyOwner', 'NoKeyExists', 'KeyLimitExceeded', 'MoreThanOneKeyExists', 'RegisteredProviderCannotBeRetired', 'InvalidSelfRemoval', 'InvalidSelfProvider', 'InvalidSchemaId', 'DuplicateProvider', 'AddProviderSignatureVerificationFailed', 'UnauthorizedDelegator', 'UnauthorizedProvider', 'DelegationRevoked', 'DelegationNotFound', 'DelegationExpired', 'DuplicateProviderMetadata', 'ExceedsMaxProviderNameSize', 'ExceedsMaxSchemaGrantsPerDelegation', 'SchemaNotGranted', 'ProviderNotRegistered', 'ProofHasExpired', 'ProofNotYetValid', 'SignatureAlreadySubmitted']
},
/**
* Lookup245: pallet_messages::types::Message<MaxDataSize>
* Lookup246: pallet_messages::types::Message<MaxDataSize>
**/

@@ -1725,3 +1725,3 @@ PalletMessagesMessage: {

/**
* Lookup251: pallet_messages::pallet::Error<T>
* Lookup252: pallet_messages::pallet::Error<T>
**/

@@ -1732,3 +1732,3 @@ PalletMessagesError: {

/**
* Lookup252: pallet_schemas::types::Schema<MaxModelSize>
* Lookup253: pallet_schemas::types::Schema<MaxModelSize>
**/

@@ -1741,3 +1741,3 @@ PalletSchemasSchema: {

/**
* Lookup253: pallet_schemas::pallet::Error<T>
* Lookup254: pallet_schemas::pallet::Error<T>
**/

@@ -1748,37 +1748,37 @@ PalletSchemasError: {

/**
* Lookup256: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender<T>
* Lookup257: frame_system::extensions::check_non_zero_sender::CheckNonZeroSender<T>
**/
FrameSystemExtensionsCheckNonZeroSender: 'Null',
/**
* Lookup257: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
* Lookup258: frame_system::extensions::check_spec_version::CheckSpecVersion<T>
**/
FrameSystemExtensionsCheckSpecVersion: 'Null',
/**
* Lookup258: frame_system::extensions::check_tx_version::CheckTxVersion<T>
* Lookup259: frame_system::extensions::check_tx_version::CheckTxVersion<T>
**/
FrameSystemExtensionsCheckTxVersion: 'Null',
/**
* Lookup259: frame_system::extensions::check_genesis::CheckGenesis<T>
* Lookup260: frame_system::extensions::check_genesis::CheckGenesis<T>
**/
FrameSystemExtensionsCheckGenesis: 'Null',
/**
* Lookup262: common_runtime::extensions::check_nonce::CheckNonce<T>
* Lookup263: common_runtime::extensions::check_nonce::CheckNonce<T>
**/
CommonRuntimeExtensionsCheckNonce: 'Compact<u32>',
/**
* Lookup263: frame_system::extensions::check_weight::CheckWeight<T>
* Lookup264: frame_system::extensions::check_weight::CheckWeight<T>
**/
FrameSystemExtensionsCheckWeight: 'Null',
/**
* Lookup264: pallet_transaction_payment::ChargeTransactionPayment<T>
* Lookup265: pallet_transaction_payment::ChargeTransactionPayment<T>
**/
PalletTransactionPaymentChargeTransactionPayment: 'Compact<u128>',
/**
* Lookup265: pallet_msa::CheckFreeExtrinsicUse<T>
* Lookup266: pallet_msa::CheckFreeExtrinsicUse<T>
**/
PalletMsaCheckFreeExtrinsicUse: 'Null',
/**
* Lookup266: frequency_runtime::Runtime
* Lookup267: frequency_runtime::Runtime
**/
FrequencyRuntimeRuntime: 'Null'
};
{
"name": "@frequency-chain/api-augment",
"version": "0.0.0-5f9501",
"version": "0.0.0-611d6d",
"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

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