Skip to content

Commit

Permalink
Regenerate all types
Browse files Browse the repository at this point in the history
  • Loading branch information
ebma committed Sep 25, 2024
1 parent c48b078 commit 97817d4
Show file tree
Hide file tree
Showing 9 changed files with 2,795 additions and 4,183 deletions.
39 changes: 33 additions & 6 deletions packages/types/src/argument/api-consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,26 @@
// this is required to allow for ambient/previous definitions
import '@polkadot/api-base/types/consts';

import type { AccountId32, Permill, Perquintill } from '@pendulum-chain/types/interfaces/runtime';
import type { AccountId32, Perbill, Permill, Perquintill } from '@pendulum-chain/types/interfaces/runtime';
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
import type { Option, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { Codec } from '@polkadot/types-codec/types';
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsSchedule, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, SpacewalkPrimitivesCurrencyId, XcmV3MultiLocation } from '@polkadot/types/lookup';
import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsEnvironment, PalletContractsSchedule, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, SpacewalkPrimitivesCurrencyId, StagingXcmV3MultiLocation } from '@polkadot/types/lookup';

export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;

declare module '@polkadot/api-base/types/consts' {
interface AugmentedConsts<ApiType extends ApiTypes> {
assetRegistry: {
/**
* The maximum length of a name or symbol.
**/
stringLimit: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
balances: {
/**
* The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
Expand Down Expand Up @@ -125,6 +135,13 @@ declare module '@polkadot/api-base/types/consts' {
[key: string]: Codec;
};
contracts: {
/**
* The percentage of the storage deposit that should be held for using a code hash.
* Instantiating a contract, or calling [`chain_extension::Ext::add_delegate_dependency`]
* protects the code from being removed. In order to prevent abuse these actions are
* protected with a percentage of the code deposit.
**/
codeHashLockupDepositPercent: Perbill & AugmentedConst<ApiType>;
/**
* Fallback value to limit the storage deposit if it's not being set by the caller.
**/
Expand All @@ -146,9 +163,14 @@ declare module '@polkadot/api-base/types/consts' {
**/
depositPerItem: u128 & AugmentedConst<ApiType>;
/**
* The maximum length of a contract code in bytes. This limit applies to the instrumented
* version of the code. Therefore `instantiate_with_code` can fail even when supplying
* a wasm binary below this maximum size.
* Type that bundles together all the runtime configurable interface types.
*
* This is not a real config. We just mention the type here as constant so that
* its type appears in the metadata. Only valid value is `()`.
**/
environment: PalletContractsEnvironment & AugmentedConst<ApiType>;
/**
* The maximum length of a contract code in bytes.
*
* The value should be chosen carefully taking into the account the overall memory limit
* your runtime has, as well as the [maximum allowed callstack
Expand All @@ -159,6 +181,11 @@ declare module '@polkadot/api-base/types/consts' {
* The maximum length of the debug buffer in bytes.
**/
maxDebugBufferLen: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of delegate_dependencies that a contract can lock with
* [`chain_extension::Ext::add_delegate_dependency`].
**/
maxDelegateDependencies: u32 & AugmentedConst<ApiType>;
/**
* The maximum allowable length in bytes for storage keys.
**/
Expand Down Expand Up @@ -792,7 +819,7 @@ declare module '@polkadot/api-base/types/consts' {
/**
* Self chain location.
**/
selfLocation: XcmV3MultiLocation & AugmentedConst<ApiType>;
selfLocation: StagingXcmV3MultiLocation & AugmentedConst<ApiType>;
/**
* Generic const
**/
Expand Down
57 changes: 50 additions & 7 deletions packages/types/src/argument/api-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ declare module '@polkadot/api-base/types/errors' {
* The asset id is invalid.
**/
InvalidAssetId: AugmentedError<ApiType>;
/**
* Name or symbol is too long.
**/
InvalidAssetString: AugmentedError<ApiType>;
/**
* Generic error
**/
Expand Down Expand Up @@ -162,6 +166,14 @@ declare module '@polkadot/api-base/types/errors' {
[key: string]: AugmentedError<ApiType>;
};
contracts: {
/**
* Can not add a delegate dependency to the code hash of the contract itself.
**/
CannotAddSelfAsDelegateDependency: AugmentedError<ApiType>;
/**
* No code info could be found at the supplied code hash.
**/
CodeInfoNotFound: AugmentedError<ApiType>;
/**
* Code removal was denied because the code is still in use by at least one contract.
**/
Expand All @@ -171,7 +183,7 @@ declare module '@polkadot/api-base/types/errors' {
**/
CodeNotFound: AugmentedError<ApiType>;
/**
* The contract's code was found to be invalid during validation or instrumentation.
* The contract's code was found to be invalid during validation.
*
* The most likely cause of this is that an API was used which is not supported by the
* node. This happens if an older node is used with a new version of ink!. Try updating
Expand Down Expand Up @@ -205,6 +217,14 @@ declare module '@polkadot/api-base/types/errors' {
* Input passed to a contract API function failed to decode as expected type.
**/
DecodingFailed: AugmentedError<ApiType>;
/**
* The contract already depends on the given delegate dependency.
**/
DelegateDependencyAlreadyExists: AugmentedError<ApiType>;
/**
* The dependency was not found in the contract's delegate dependencies.
**/
DelegateDependencyNotFound: AugmentedError<ApiType>;
/**
* A contract with the same AccountId already exists.
**/
Expand All @@ -222,20 +242,32 @@ declare module '@polkadot/api-base/types/errors' {
**/
InvalidCallFlags: AugmentedError<ApiType>;
/**
* A new schedule must have a greater version than the current one.
* Invalid schedule supplied, e.g. with zero weight of a basic operation.
**/
InvalidScheduleVersion: AugmentedError<ApiType>;
InvalidSchedule: AugmentedError<ApiType>;
/**
* Performing a call was denied because the calling depth reached the limit
* of what is specified in the schedule.
**/
MaxCallDepthReached: AugmentedError<ApiType>;
/**
* The contract has reached its maximum number of delegate dependencies.
**/
MaxDelegateDependenciesReached: AugmentedError<ApiType>;
/**
* A pending migration needs to complete before the extrinsic can be called.
**/
MigrationInProgress: AugmentedError<ApiType>;
/**
* The chain does not provide a chain extension. Calling the chain extension results
* in this error. Note that this usually shouldn't happen as deploying such contracts
* is rejected.
**/
NoChainExtension: AugmentedError<ApiType>;
/**
* Migrate dispatch call was attempted but no migration was performed.
**/
NoMigrationPerformed: AugmentedError<ApiType>;
/**
* A buffer outside of sandbox memory was passed to a contract API function.
**/
Expand Down Expand Up @@ -313,6 +345,10 @@ declare module '@polkadot/api-base/types/errors' {
* Account is not a member
**/
NotMember: AugmentedError<ApiType>;
/**
* Prime account is not a member
**/
PrimeAccountNotMember: AugmentedError<ApiType>;
/**
* Proposal must exist
**/
Expand Down Expand Up @@ -1082,7 +1118,7 @@ declare module '@polkadot/api-base/types/errors' {
**/
Filtered: AugmentedError<ApiType>;
/**
* The unlock operation cannot succeed because there are still users of the lock.
* The unlock operation cannot succeed because there are still consumers of the lock.
**/
InUse: AugmentedError<ApiType>;
/**
Expand All @@ -1106,8 +1142,8 @@ declare module '@polkadot/api-base/types/errors' {
**/
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.
* 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>;
/**
Expand Down Expand Up @@ -1425,7 +1461,6 @@ declare module '@polkadot/api-base/types/errors' {
DuplicateOrganizationId: AugmentedError<ApiType>;
DuplicateValidatorPublicKey: AugmentedError<ApiType>;
EmptyEnvelopeSet: AugmentedError<ApiType>;
EnvelopeSignedByUnknownValidator: AugmentedError<ApiType>;
EnvelopeSlotIndexMismatch: AugmentedError<ApiType>;
ExternalizedNHMismatch: AugmentedError<ApiType>;
ExternalizedValueMismatch: AugmentedError<ApiType>;
Expand Down Expand Up @@ -1512,6 +1547,10 @@ declare module '@polkadot/api-base/types/errors' {
* Account is not a member
**/
NotMember: AugmentedError<ApiType>;
/**
* Prime account is not a member
**/
PrimeAccountNotMember: AugmentedError<ApiType>;
/**
* Proposal must exist
**/
Expand Down Expand Up @@ -1621,6 +1660,10 @@ declare module '@polkadot/api-base/types/errors' {
* Attempt to use treasury account for buyout
**/
BuyoutWithTreasuryAccount: AugmentedError<ApiType>;
/**
* Decimals conversion error
**/
DecimalsConversionError: AugmentedError<ApiType>;
/**
* Exceeds number of allowed currencies for buyout
**/
Expand Down
Loading

0 comments on commit 97817d4

Please sign in to comment.