@polymeshassociation/polymesh-types 7.3.0 → 7.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  import '@polkadot/api-base/types/submittable';
2
2
  import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableExtrinsicFunction } from '@polkadot/api-base/types';
3
- import type { BTreeSet, Bytes, Compact, Option, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
3
+ import type { BTreeMap, BTreeSet, Bytes, Compact, Option, Text, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { AccountId32, Call, H160, H256, MultiAddress, Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
6
- import type { PalletBalancesAdjustmentDirection, PalletContractsWasmDeterminism, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCaKind, PalletCorporateActionsInitiateCorporateActionArgs, PalletCorporateActionsRecordDateSpec, PalletCorporateActionsTargetIdentities, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletPipsSnapshotResult, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStoFundingMethod, PalletStoPriceTier, PalletValidatorsSlashingSwitch, PolymeshContractsApi, PolymeshContractsChainExtensionExtrinsicId, PolymeshContractsNextUpgrade, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetHolder, PolymeshPrimitivesAssetAssetHolderKind, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAssetNonFungibleType, PolymeshPrimitivesAuthorizationAuthorizationData, PolymeshPrimitivesBeneficiary, PolymeshPrimitivesCheckpointScheduleCheckpoints, PolymeshPrimitivesComplianceManagerComplianceRequirement, PolymeshPrimitivesCondition, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesIdentityClaimClaim, PolymeshPrimitivesIdentityClaimClaimType, PolymeshPrimitivesIdentityClaimScope, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesIdentitySecondaryKeyWithAuth, PolymeshPrimitivesMaybeBlock, PolymeshPrimitivesMemo, PolymeshPrimitivesNftNfTs, PolymeshPrimitivesNftNftCollectionKeys, PolymeshPrimitivesNftNftMetadataAttribute, PolymeshPrimitivesPortfolioFund, PolymeshPrimitivesPosRatio, PolymeshPrimitivesProtocolFeeProtocolOp, PolymeshPrimitivesSecondaryKey, PolymeshPrimitivesSecondaryKeyExtrinsicPermissions, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesSettlementAffirmationCount, PolymeshPrimitivesSettlementAffirmationRequirement, PolymeshPrimitivesSettlementAssetCount, PolymeshPrimitivesSettlementLeg, PolymeshPrimitivesSettlementReceiptDetails, PolymeshPrimitivesSettlementSettlementType, PolymeshPrimitivesSettlementVenueType, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesStatisticsStatUpdate, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeOriginCaller, PolymeshRuntimeDevelopRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyForkVotingProofAncestryProof, SpConsensusBeefyFutureBlockVotingProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
6
+ import type { PalletBalancesAdjustmentDirection, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCaKind, PalletCorporateActionsInitiateCorporateActionArgs, PalletCorporateActionsRecordDateSpec, PalletCorporateActionsTargetIdentities, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, PalletPipsSnapshotResult, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStoFundingMethod, PalletStoPriceTier, PalletValidatorsSlashingSwitch, PolymeshDartBpAccountBatchedAccountAssetRegistrationProof, PolymeshDartBpAffirmationProofsInstantReceiverAffirmationProof, PolymeshDartBpAffirmationProofsInstantSenderAffirmationProof, PolymeshDartBpAffirmationProofsReceiverAffirmationProof, PolymeshDartBpAffirmationProofsReceiverClaimProof, PolymeshDartBpAffirmationProofsReceiverRevertAffirmationProof, PolymeshDartBpAffirmationProofsSenderAffirmationProof, PolymeshDartBpAffirmationProofsSenderCounterUpdateProof, PolymeshDartBpAffirmationProofsSenderRevertAffirmationProof, PolymeshDartBpAssetAssetMintingProof, PolymeshDartBpBatchedBatchedProofs, PolymeshDartBpFeeBatchedFeeAccountRegistrationProof, PolymeshDartBpFeeBatchedFeeAccountTopupProof, PolymeshDartBpFeeFeePaymentWithBatchedProofs, PolymeshDartBpKeysAccountPublicKey, PolymeshDartBpKeysAccountRegistrationProof, PolymeshDartBpKeysEncryptionKeyRegistrationProof, PolymeshDartBpKeysEncryptionPublicKey, PolymeshDartBpLegInstantInstantSettlementProof, PolymeshDartBpLegProofsBatchedSettlementProof, PolymeshDartBpLegProofsMediatorAffirmationProof, PolymeshDartBpLegSettlementProof, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetHolder, PolymeshPrimitivesAssetAssetHolderKind, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAssetNonFungibleType, PolymeshPrimitivesAuthorizationAuthorizationData, PolymeshPrimitivesBeneficiary, PolymeshPrimitivesCheckpointScheduleCheckpoints, PolymeshPrimitivesComplianceManagerComplianceRequirement, PolymeshPrimitivesCondition, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesIdentityClaimClaim, PolymeshPrimitivesIdentityClaimClaimType, PolymeshPrimitivesIdentityClaimScope, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesIdentitySecondaryKeyWithAuth, PolymeshPrimitivesMaybeBlock, PolymeshPrimitivesMemo, PolymeshPrimitivesNftNfTs, PolymeshPrimitivesNftNftCollectionKeys, PolymeshPrimitivesNftNftMetadataAttribute, PolymeshPrimitivesPortfolioFund, PolymeshPrimitivesPosRatio, PolymeshPrimitivesProtocolFeeProtocolOp, PolymeshPrimitivesSecondaryKey, PolymeshPrimitivesSecondaryKeyExtrinsicPermissions, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesSettlementAffirmationCount, PolymeshPrimitivesSettlementAffirmationRequirement, PolymeshPrimitivesSettlementAssetCount, PolymeshPrimitivesSettlementLeg, PolymeshPrimitivesSettlementReceiptDetails, PolymeshPrimitivesSettlementSettlementType, PolymeshPrimitivesSettlementVenueType, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesStatisticsStatUpdate, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeOriginCaller, PolymeshRuntimeDevelopRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyDoubleVotingProof, SpConsensusBeefyForkVotingProofAncestryProof, SpConsensusBeefyFutureBlockVotingProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
7
7
  export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
8
8
  export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
9
9
  export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
@@ -1945,226 +1945,462 @@ declare module '@polkadot/api-base/types/submittable' {
1945
1945
  PolymeshPrimitivesAssetAssetId
1946
1946
  ]>;
1947
1947
  };
1948
- contracts: {
1948
+ confidentialAssets: {
1949
1949
  /**
1950
- * Makes a call to an account, optionally transferring some balance.
1950
+ * Create a settlement with batched leg affirmations.
1951
1951
  *
1952
- * # Parameters
1952
+ * # Arguments
1953
+ * * `origin` - The origin of the call.
1954
+ * * `proof` - The settlement proof with batched leg affirmations.
1953
1955
  *
1954
- * * `dest`: Address of the contract to call.
1955
- * * `value`: The balance to transfer from the `origin` to `dest`.
1956
- * * `gas_limit`: The gas limit enforced when executing the constructor.
1957
- * * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
1958
- * caller to pay for the storage consumed.
1959
- * * `data`: The input data to pass to the contract.
1956
+ * # Errors
1957
+ * * `BadOrigin` if `origin` isn't signed.
1958
+ * * `InvalidProof` if the proof is invalid.
1959
+ * * `SettlementMissingLegs` if the settlement has no legs.
1960
+ * * `SettlementTooManyLegs` if the settlement has more legs than the maximum allowed.
1961
+ **/
1962
+ batchedSettlement: AugmentedSubmittable<(proof: PolymeshDartBpLegProofsBatchedSettlementProof | {
1963
+ settlement?: any;
1964
+ legAffirmations?: any;
1965
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1966
+ PolymeshDartBpLegProofsBatchedSettlementProof
1967
+ ]>;
1968
+ /**
1969
+ * Create a new Confidential Asset.
1960
1970
  *
1961
- * * If the account is a smart-contract account, the associated code will be
1962
- * executed and any value will be transferred.
1963
- * * If the account is a regular account, any value will be transferred.
1964
- * * If no account exists and the call value is not less than `existential_deposit`,
1965
- * a regular account will be created and any value will be transferred.
1971
+ * # Arguments
1972
+ * * `auditor_or_mediator` - The auditor or mediator public key.
1973
+ *
1974
+ * # Errors
1975
+ * * `BadOrigin` if `origin` isn't signed.
1976
+ * * `AccountMissing` if the auditor or mediator is not registered.
1977
+ * * `EncryptionKeyMissing` if the encryption key of the auditor or mediator is not registered.
1966
1978
  **/
1967
- call: AugmentedSubmittable<(dest: MultiAddress | {
1968
- Id: any;
1969
- } | {
1970
- Index: any;
1971
- } | {
1972
- Raw: any;
1973
- } | {
1974
- Address32: any;
1975
- } | {
1976
- Address20: any;
1977
- } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
1978
- refTime?: any;
1979
- proofSize?: any;
1980
- } | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1981
- MultiAddress,
1982
- Compact<u128>,
1983
- SpWeightsWeightV2Weight,
1984
- Option<Compact<u128>>,
1979
+ createAsset: AugmentedSubmittable<(name: Text | string, symbol: Text | string, decimals: u8 | AnyNumber | Uint8Array, mediators: BTreeMap<PolymeshDartBpKeysAccountPublicKey, PolymeshDartBpKeysEncryptionPublicKey>, auditors: BTreeSet<PolymeshDartBpKeysEncryptionPublicKey>, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
1980
+ Text,
1981
+ Text,
1982
+ u8,
1983
+ BTreeMap<PolymeshDartBpKeysAccountPublicKey, PolymeshDartBpKeysEncryptionPublicKey>,
1984
+ BTreeSet<PolymeshDartBpKeysEncryptionPublicKey>,
1985
1985
  Bytes
1986
1986
  ]>;
1987
1987
  /**
1988
- * Deprecated version if [`Self::call`] for use in an in-storage `Call`.
1988
+ * Create a new settlement.
1989
+ *
1990
+ * # Arguments
1991
+ * * `origin` - The origin of the call.
1992
+ * * `proof` - The settlement proof.
1989
1993
  *
1990
- * @deprecated 1D weight is used in this extrinsic, please migrate to `call`
1994
+ * # Errors
1995
+ * * `BadOrigin` if `origin` isn't signed.
1996
+ * * `InvalidProof` if the proof is invalid.
1997
+ * * `SettlementMissingLegs` if the settlement has no legs.
1998
+ * * `SettlementTooManyLegs` if the settlement has more legs than the maximum allowed.
1991
1999
  **/
1992
- callOldWeight: AugmentedSubmittable<(dest: MultiAddress | {
1993
- Id: any;
1994
- } | {
1995
- Index: any;
1996
- } | {
1997
- Raw: any;
1998
- } | {
1999
- Address32: any;
2000
- } | {
2001
- Address20: any;
2002
- } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2003
- MultiAddress,
2004
- Compact<u128>,
2005
- Compact<u64>,
2006
- Option<Compact<u128>>,
2007
- Bytes
2000
+ createSettlement: AugmentedSubmittable<(proof: PolymeshDartBpLegSettlementProof | {
2001
+ memo?: any;
2002
+ rootBlock?: any;
2003
+ legs?: any;
2004
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2005
+ PolymeshDartBpLegSettlementProof
2008
2006
  ]>;
2009
2007
  /**
2010
- * Instantiates a contract from a previously deployed wasm binary.
2008
+ * Create and execute an instant settlement.
2011
2009
  *
2012
- * This function is identical to [`Self::instantiate_with_code`] but without the
2013
- * code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
2014
- * must be supplied.
2015
- **/
2016
- instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
2017
- refTime?: any;
2018
- proofSize?: any;
2019
- } | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2020
- Compact<u128>,
2021
- SpWeightsWeightV2Weight,
2022
- Option<Compact<u128>>,
2023
- H256,
2024
- Bytes,
2025
- Bytes
2010
+ * # Arguments
2011
+ * * `origin` - The origin of the call.
2012
+ * * `proof` - The settlement proof with batched leg affirmations.
2013
+ *
2014
+ * # Errors
2015
+ * * `BadOrigin` if `origin` isn't signed.
2016
+ * * `InvalidProof` if the proof is invalid.
2017
+ * * `SettlementMissingLegs` if the settlement has no legs.
2018
+ * * `SettlementTooManyLegs` if the settlement has more legs than the maximum allowed.
2019
+ **/
2020
+ executeInstantSettlement: AugmentedSubmittable<(proof: PolymeshDartBpLegInstantInstantSettlementProof | {
2021
+ settlement?: any;
2022
+ legAffirmations?: any;
2023
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2024
+ PolymeshDartBpLegInstantInstantSettlementProof
2026
2025
  ]>;
2027
2026
  /**
2028
- * Deprecated version if [`Self::instantiate`] for use in an in-storage `Call`.
2027
+ * Receiver affirms a settlement leg as the last pending affirmation.
2029
2028
  *
2030
- * @deprecated 1D weight is used in this extrinsic, please migrate to `instantiate`
2031
- **/
2032
- instantiateOldWeight: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2033
- Compact<u128>,
2034
- Compact<u64>,
2035
- Option<Compact<u128>>,
2036
- H256,
2037
- Bytes,
2038
- Bytes
2029
+ * This can only be used when the receiver affirmation is the last pending affirmation for the settlement.
2030
+ *
2031
+ * # Arguments
2032
+ * * `origin` - The origin of the call.
2033
+ * * `proof` - The instant receiver affirmation proof.
2034
+ *
2035
+ * # Errors
2036
+ * * `BadOrigin` if `origin` isn't signed.
2037
+ * * `SettlementNotPending` if the settlement is not pending.
2038
+ * * `SettlementNotFound` if the settlement is not found.
2039
+ * * `LegNotFound` if the leg is not found in the settlement.
2040
+ * * `AlreadyAffirmed` if the leg has already been affirmed by the receiver.
2041
+ * * `NotLastPendingAffirmation` if the receiver affirmation is not the last pending affirmation for the settlement.
2042
+ **/
2043
+ instantReceiverAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsInstantReceiverAffirmationProof | {
2044
+ legRef?: any;
2045
+ rootBlock?: any;
2046
+ updatedAccountStateCommitment?: any;
2047
+ nullifier?: any;
2048
+ inner?: any;
2049
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2050
+ PolymeshDartBpAffirmationProofsInstantReceiverAffirmationProof
2039
2051
  ]>;
2040
2052
  /**
2041
- * Instantiates a new contract from the supplied `code` optionally transferring
2042
- * some balance.
2053
+ * Sender affirms a settlement leg as the last pending affirmation.
2043
2054
  *
2044
- * This dispatchable has the same effect as calling [`Self::upload_code`] +
2045
- * [`Self::instantiate`]. Bundling them together provides efficiency gains. Please
2046
- * also check the documentation of [`Self::upload_code`].
2055
+ * This can only be used when the sender affirmation is the last pending affirmation for the settlement.
2047
2056
  *
2048
- * # Parameters
2057
+ * # Arguments
2058
+ * * `origin` - The origin of the call.
2059
+ * * `proof` - The instant sender affirmation proof.
2049
2060
  *
2050
- * * `value`: The balance to transfer from the `origin` to the newly created contract.
2051
- * * `gas_limit`: The gas limit enforced when executing the constructor.
2052
- * * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
2053
- * from the caller to pay for the storage consumed.
2054
- * * `code`: The contract code to deploy in raw bytes.
2055
- * * `data`: The input data to pass to the contract constructor.
2056
- * * `salt`: Used for the address derivation. See [`Pallet::contract_address`].
2061
+ * # Errors
2062
+ * * `BadOrigin` if `origin` isn't signed.
2063
+ * * `SettlementNotPending` if the settlement is not pending.
2064
+ * * `SettlementNotFound` if the settlement is not found.
2065
+ * * `LegNotFound` if the leg is not found in the settlement.
2066
+ * * `AlreadyAffirmed` if the leg has already been affirmed by the sender.
2067
+ * * `NotLastPendingAffirmation` if the sender affirmation is not the last pending affirmation for the settlement.
2068
+ **/
2069
+ instantSenderAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsInstantSenderAffirmationProof | {
2070
+ legRef?: any;
2071
+ rootBlock?: any;
2072
+ updatedAccountStateCommitment?: any;
2073
+ nullifier?: any;
2074
+ inner?: any;
2075
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2076
+ PolymeshDartBpAffirmationProofsInstantSenderAffirmationProof
2077
+ ]>;
2078
+ /**
2079
+ * Mediator affirms a settlement leg.
2057
2080
  *
2058
- * Instantiation is executed as follows:
2081
+ * # Arguments
2082
+ * * `origin` - The origin of the call.
2083
+ * * `proof` - The mediator affirmation proof.
2059
2084
  *
2060
- * - The supplied `code` is deployed, and a `code_hash` is created for that code.
2061
- * - If the `code_hash` already exists on the chain the underlying `code` will be shared.
2062
- * - The destination address is computed based on the sender, code_hash and the salt.
2063
- * - The smart-contract account is created at the computed address.
2064
- * - The `value` is transferred to the new account.
2065
- * - The `deploy` function is executed in the context of the newly-created account.
2066
- **/
2067
- instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
2068
- refTime?: any;
2069
- proofSize?: any;
2070
- } | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2071
- Compact<u128>,
2072
- SpWeightsWeightV2Weight,
2073
- Option<Compact<u128>>,
2074
- Bytes,
2075
- Bytes,
2076
- Bytes
2085
+ * # Errors
2086
+ * * `BadOrigin` if `origin` isn't signed.
2087
+ * * `SettlementNotPending` if the settlement is not pending.
2088
+ * * `SettlementNotFound` if the settlement is not found.
2089
+ * * `LegNotFound` if the leg is not found in the settlement.
2090
+ * * `AlreadyAffirmed` if the leg has already been affirmed by the mediator.
2091
+ * * `WrongMediatorId` if the mediator ID does not match the expected mediator for the leg.
2092
+ **/
2093
+ mediatorAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpLegProofsMediatorAffirmationProof | {
2094
+ legRef?: any;
2095
+ accept?: any;
2096
+ keyIndex?: any;
2097
+ inner?: any;
2098
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2099
+ PolymeshDartBpLegProofsMediatorAffirmationProof
2077
2100
  ]>;
2078
2101
  /**
2079
- * Deprecated version if [`Self::instantiate_with_code`] for use in an in-storage `Call`.
2102
+ * Mint a Confidential asset.
2080
2103
  *
2081
- * @deprecated 1D weight is used in this extrinsic, please migrate to `instantiate_with_code`
2082
- **/
2083
- instantiateWithCodeOldWeight: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2084
- Compact<u128>,
2085
- Compact<u64>,
2086
- Option<Compact<u128>>,
2087
- Bytes,
2088
- Bytes,
2089
- Bytes
2104
+ * # Arguments
2105
+ * * `origin` - The origin of the call. They must be the owner of the Confidential asset and Confidential account.
2106
+ * * `proof` - The minting proof.
2107
+ *
2108
+ * # Errors
2109
+ * * `BadOrigin` if `origin` isn't signed.
2110
+ * * `AccountMissing` if the Confidential account is not registered.
2111
+ * * `AssetMissing` if the Confidential asset is not registered.
2112
+ * * `NotAccountOwner` if the caller is not the owner of the Confidential account.
2113
+ * * `InvalidProof` if the proof is invalid.
2114
+ * * `NotAssetOwner` if the caller is not the owner of the Confidential asset.
2115
+ * * `MaxTotalSupplyExceeded` if the total supply of the Confidential asset exceeds the maximum total supply.
2116
+ * * `NullifierAlreadyUsed` if the nullifier for the account state commitment has already been used.
2117
+ **/
2118
+ mintAsset: AugmentedSubmittable<(proof: PolymeshDartBpAssetAssetMintingProof | {
2119
+ pk?: any;
2120
+ pkEnc?: any;
2121
+ assetId?: any;
2122
+ amount?: any;
2123
+ rootBlock?: any;
2124
+ updatedAccountStateCommitment?: any;
2125
+ nullifier?: any;
2126
+ inner?: any;
2127
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2128
+ PolymeshDartBpAssetAssetMintingProof
2090
2129
  ]>;
2091
2130
  /**
2092
- * When a migration is in progress, this dispatchable can be used to run migration steps.
2093
- * Calls that contribute to advancing the migration have their fees waived, as it's helpful
2094
- * for the chain. Note that while the migration is in progress, the pallet will also
2095
- * leverage the `on_idle` hooks to run migration steps.
2131
+ * Receiver affirms a settlement leg.
2132
+ *
2133
+ * # Arguments
2134
+ * * `origin` - The origin of the call.
2135
+ * * `proof` - The receiver affirmation proof.
2136
+ *
2137
+ * # Errors
2138
+ * * `BadOrigin` if `origin` isn't signed.
2139
+ * * `SettlementNotPending` if the settlement is not pending.
2140
+ * * `SettlementNotFound` if the settlement is not found.
2141
+ * * `LegNotFound` if the leg is not found in the settlement.
2142
+ * * `AlreadyAffirmed` if the leg has already been affirmed by the receiver.
2143
+ **/
2144
+ receiverAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsReceiverAffirmationProof | {
2145
+ legRef?: any;
2146
+ rootBlock?: any;
2147
+ updatedAccountStateCommitment?: any;
2148
+ nullifier?: any;
2149
+ inner?: any;
2150
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2151
+ PolymeshDartBpAffirmationProofsReceiverAffirmationProof
2152
+ ]>;
2153
+ /**
2154
+ * Receiver claims their assets after a settlement has been executed.
2155
+ *
2156
+ * # Arguments
2157
+ * * `origin` - The origin of the call.
2158
+ * * `proof` - The receiver claim proof.
2159
+ *
2160
+ * # Errors
2161
+ * * `BadOrigin` if `origin` isn't signed.
2162
+ * * `SettlementNotExecuted` if the settlement has not been executed.
2163
+ * * `SettlementNotFound` if the settlement is not found.
2164
+ * * `LegNotFound` if the leg is not found in the settlement.
2165
+ **/
2166
+ receiverClaim: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsReceiverClaimProof | {
2167
+ legRef?: any;
2168
+ rootBlock?: any;
2169
+ updatedAccountStateCommitment?: any;
2170
+ nullifier?: any;
2171
+ inner?: any;
2172
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2173
+ PolymeshDartBpAffirmationProofsReceiverClaimProof
2174
+ ]>;
2175
+ /**
2176
+ * Receiver reverts their affirmation.
2177
+ *
2178
+ * # Arguments
2179
+ * * `origin` - The origin of the call.
2180
+ * * `proof` - The receiver revert affirmation proof.
2181
+ *
2182
+ * # Errors
2183
+ * * `BadOrigin` if `origin` isn't signed.
2184
+ * * `SettlementAlreadyExecuted` if the settlement has already been executed.
2185
+ * * `SettlementNotFound` if the settlement is not found.
2186
+ * * `LegNotFound` if the leg is not found in the settlement.
2187
+ **/
2188
+ receiverRevertAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsReceiverRevertAffirmationProof | {
2189
+ legRef?: any;
2190
+ rootBlock?: any;
2191
+ updatedAccountStateCommitment?: any;
2192
+ nullifier?: any;
2193
+ inner?: any;
2194
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2195
+ PolymeshDartBpAffirmationProofsReceiverRevertAffirmationProof
2196
+ ]>;
2197
+ /**
2198
+ * Batch register multiple accounts and assets.
2199
+ *
2200
+ * This is used to initialize the first account state commitment of the Confidential asset for the Confidential account.
2201
+ *
2202
+ * # Arguments
2203
+ * * `origin` - The origin of the call. They must be the owner of the Confidential account.
2204
+ * * `proof` - The Batched Account asset registration proof.
2205
+ *
2206
+ * # Errors
2207
+ * * `BadOrigin` if `origin` isn't signed.
2208
+ * * `AccountMissing` if the Confidential account is not registered.
2209
+ * * `AssetMissing` if the Confidential asset is not registered.
2210
+ * * `AccountAssetAlreadyRegistered` if the Confidential account has already registered the Confidential asset.
2211
+ * * `NotAccountOwner` if the caller is not the owner of the Confidential account.
2212
+ * * `InvalidProof` if the proof is invalid.
2213
+ **/
2214
+ registerAccountAssets: AugmentedSubmittable<(proof: PolymeshDartBpAccountBatchedAccountAssetRegistrationProof | {
2215
+ proofs?: any;
2216
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2217
+ PolymeshDartBpAccountBatchedAccountAssetRegistrationProof
2218
+ ]>;
2219
+ /**
2220
+ * Register a dart account.
2221
+ *
2222
+ * # Arguments
2223
+ * * `account` the dart account to register.
2224
+ * * `encryption_key` the encryption key for the dart account.
2225
+ *
2226
+ * # Errors
2227
+ * * `BadOrigin` if `origin` isn't signed.
2228
+ * * `AccountAlreadyCreated` if the dart account or encryption key is already registered.
2096
2229
  **/
2097
- migrate: AugmentedSubmittable<(weightLimit: SpWeightsWeightV2Weight | {
2098
- refTime?: any;
2099
- proofSize?: any;
2230
+ registerAccounts: AugmentedSubmittable<(proof: PolymeshDartBpKeysAccountRegistrationProof | {
2231
+ accounts?: any;
2232
+ inner?: any;
2100
2233
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2101
- SpWeightsWeightV2Weight
2234
+ PolymeshDartBpKeysAccountRegistrationProof
2102
2235
  ]>;
2103
2236
  /**
2104
- * Remove the code stored under `code_hash` and refund the deposit to its owner.
2237
+ * Register encryption keys for auditors/mediators.
2105
2238
  *
2106
- * A code can only be removed by its original uploader (its owner) and only if it is
2107
- * not used by any contract.
2239
+ * # Arguments
2240
+ * * `origin` - The origin of the call.
2241
+ * * `proof` - The auditor/mediator encryption registration proof.
2242
+ *
2243
+ * # Errors
2244
+ * * `BadOrigin` if `origin` isn't signed.
2245
+ * * `EncryptionKeyAlreadyRegistered` if the encryption key is already registered.
2246
+ * * `InvalidProof` if the proof is invalid.
2108
2247
  **/
2109
- removeCode: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2110
- H256
2248
+ registerEncryptionKeys: AugmentedSubmittable<(proof: PolymeshDartBpKeysEncryptionKeyRegistrationProof | {
2249
+ keys_?: any;
2250
+ inner?: any;
2251
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2252
+ PolymeshDartBpKeysEncryptionKeyRegistrationProof
2111
2253
  ]>;
2112
2254
  /**
2113
- * Privileged function that changes the code of an existing contract.
2255
+ * Batch register multiple fee accounts.
2114
2256
  *
2115
- * This takes care of updating refcounts and all other necessary operations. Returns
2116
- * an error if either the `code_hash` or `dest` do not exist.
2257
+ * This is used to register fee accounts for Confidential private fee payments.
2117
2258
  *
2118
- * # Note
2259
+ * # Arguments
2260
+ * * `origin` - The origin of the call.
2261
+ * * `proof` - The batched fee account registration proof.
2119
2262
  *
2120
- * This does **not** change the address of the contract in question. This means
2121
- * that the contract address is no longer derived from its code hash after calling
2122
- * this dispatchable.
2263
+ * # Errors
2264
+ * * `BadOrigin` if `origin` isn't signed.
2265
+ * * `FeeAccountAlreadyRegistered` if the fee account or encryption key is already registered.
2266
+ * * `NullifierAlreadyUsed` if the nullifier for the fee account state commitment has already been used.
2267
+ * * `InvalidFeeAssetId` if the fee asset ID is invalid.
2268
+ * * `InvalidProof` if the proof is invalid.
2269
+ * * `InsufficientBalance` if the caller has insufficient balance to pay the deposit.
2270
+ **/
2271
+ registerFeeAccounts: AugmentedSubmittable<(proof: PolymeshDartBpFeeBatchedFeeAccountRegistrationProof | {
2272
+ proofs?: any;
2273
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2274
+ PolymeshDartBpFeeBatchedFeeAccountRegistrationProof
2275
+ ]>;
2276
+ /**
2277
+ * Relayer submit a batch of proofs paid using a private fee payment.
2278
+ *
2279
+ * Users can use a Relayer service to submit their Confidential proofs for privacy (i.e., the origin is not the user).
2280
+ * The Relayer is paid/reimbursed using a private fee payment from the user's Confidential fee account.
2281
+ *
2282
+ * Relayers can charge a commission fee on top of the transaction fee (i.e. `commission fee + transaction fee = fee amount`).
2283
+ *
2284
+ * Relayers should verify that the fee payment proof is valid before submitting the batched Confidential proofs. They are not required
2285
+ * to verify the batched Confidential proofs. If the user's Confidential proofs are invalid, the user is still responsible for paying the fee to the relayer.
2286
+ *
2287
+ * # Arguments
2288
+ * * `origin` - The origin of the call. This is the relayer.
2289
+ * * `proof` - The fee payment proof and batched Confidential proofs.
2290
+ *
2291
+ * # Errors
2292
+ * * `BadOrigin` if `origin` isn't signed.
2293
+ * * `InvalidFeePaymentProof` if the fee payment proof is invalid.
2294
+ * * `InsufficientFeePayment` if the fee payment is insufficient to cover the relayer fee.
2123
2295
  **/
2124
- setCode: AugmentedSubmittable<(dest: MultiAddress | {
2125
- Id: any;
2126
- } | {
2127
- Index: any;
2128
- } | {
2129
- Raw: any;
2130
- } | {
2131
- Address32: any;
2132
- } | {
2133
- Address20: any;
2134
- } | string | Uint8Array, codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2135
- MultiAddress,
2136
- H256
2296
+ relayerSubmitBatchedProofs: AugmentedSubmittable<(proof: PolymeshDartBpFeeFeePaymentWithBatchedProofs | {
2297
+ feePayment?: any;
2298
+ batchedProofs?: any;
2299
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2300
+ PolymeshDartBpFeeFeePaymentWithBatchedProofs
2137
2301
  ]>;
2138
2302
  /**
2139
- * Upload new `code` without instantiating a contract from it.
2303
+ * Sender affirms a settlement leg.
2140
2304
  *
2141
- * If the code does not already exist a deposit is reserved from the caller
2142
- * and unreserved only when [`Self::remove_code`] is called. The size of the reserve
2143
- * depends on the size of the supplied `code`.
2305
+ * # Arguments
2306
+ * * `origin` - The origin of the call.
2307
+ * * `proof` - The sender affirmation proof.
2144
2308
  *
2145
- * If the code already exists in storage it will still return `Ok` and upgrades
2146
- * the in storage version to the current
2147
- * [`InstructionWeights::version`](InstructionWeights).
2309
+ * # Errors
2310
+ * * `BadOrigin` if `origin` isn't signed.
2311
+ * * `SettlementNotPending` if the settlement is not pending.
2312
+ * * `SettlementNotFound` if the settlement is not found.
2313
+ * * `LegNotFound` if the leg is not found in the settlement.
2314
+ * * `AlreadyAffirmed` if the leg has already been affirmed by the sender.
2315
+ **/
2316
+ senderAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsSenderAffirmationProof | {
2317
+ legRef?: any;
2318
+ rootBlock?: any;
2319
+ updatedAccountStateCommitment?: any;
2320
+ nullifier?: any;
2321
+ inner?: any;
2322
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2323
+ PolymeshDartBpAffirmationProofsSenderAffirmationProof
2324
+ ]>;
2325
+ /**
2326
+ * Sender reverts their affirmation.
2148
2327
  *
2149
- * - `determinism`: If this is set to any other value but [`Determinism::Enforced`] then
2150
- * the only way to use this code is to delegate call into it from an offchain execution.
2151
- * Set to [`Determinism::Enforced`] if in doubt.
2328
+ * # Arguments
2329
+ * * `origin` - The origin of the call.
2330
+ * * `proof` - The sender revert affirmation proof.
2152
2331
  *
2153
- * # Note
2332
+ * # Errors
2333
+ * * `BadOrigin` if `origin` isn't signed.
2334
+ * * `SettlementAlreadyExecuted` if the settlement has already been executed.
2335
+ * * `SettlementNotFound` if the settlement is not found.
2336
+ * * `LegNotFound` if the leg is not found in the settlement.
2337
+ **/
2338
+ senderRevertAffirmation: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsSenderRevertAffirmationProof | {
2339
+ legRef?: any;
2340
+ rootBlock?: any;
2341
+ updatedAccountStateCommitment?: any;
2342
+ nullifier?: any;
2343
+ inner?: any;
2344
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2345
+ PolymeshDartBpAffirmationProofsSenderRevertAffirmationProof
2346
+ ]>;
2347
+ /**
2348
+ * Sender updates their counter after a settlement has been executed.
2154
2349
  *
2155
- * Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
2156
- * To avoid this situation a constructor could employ access control so that it can
2157
- * only be instantiated by permissioned entities. The same is true when uploading
2158
- * through [`Self::instantiate_with_code`].
2350
+ * # Arguments
2351
+ * * `origin` - The origin of the call.
2352
+ * * `proof` - The sender update proof.
2159
2353
  *
2160
- * Use [`Determinism::Relaxed`] exclusively for non-deterministic code. If the uploaded
2161
- * code is deterministic, specifying [`Determinism::Relaxed`] will be disregarded and
2162
- * result in higher gas costs.
2354
+ * # Errors
2355
+ * * `BadOrigin` if `origin` isn't signed.
2356
+ * * `SettlementNotExecuted` if the settlement has not been executed.
2357
+ * * `SettlementNotFound` if the settlement is not found.
2358
+ * * `LegNotFound` if the leg is not found in the settlement.
2359
+ **/
2360
+ senderUpdateCounter: AugmentedSubmittable<(proof: PolymeshDartBpAffirmationProofsSenderCounterUpdateProof | {
2361
+ legRef?: any;
2362
+ rootBlock?: any;
2363
+ updatedAccountStateCommitment?: any;
2364
+ nullifier?: any;
2365
+ inner?: any;
2366
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2367
+ PolymeshDartBpAffirmationProofsSenderCounterUpdateProof
2368
+ ]>;
2369
+ /**
2370
+ * Submit a batch of proofs.
2371
+ *
2372
+ * # Arguments
2373
+ * * `origin` - The origin of the call.
2374
+ * * `proof` - The batched proofs.
2375
+ *
2376
+ * # Errors
2377
+ * * `BadOrigin` if `origin` isn't signed.
2378
+ * * `InvalidProof` if any of the proofs are invalid.
2163
2379
  **/
2164
- uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, determinism: PalletContractsWasmDeterminism | 'Enforced' | 'Relaxed' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2165
- Bytes,
2166
- Option<Compact<u128>>,
2167
- PalletContractsWasmDeterminism
2380
+ submitBatchedProofs: AugmentedSubmittable<(proof: PolymeshDartBpBatchedBatchedProofs | {
2381
+ proofs?: any;
2382
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2383
+ PolymeshDartBpBatchedBatchedProofs
2384
+ ]>;
2385
+ /**
2386
+ * Toup a batch of fee accounts.
2387
+ *
2388
+ * # Arguments
2389
+ * * `origin` - The origin of the call.
2390
+ * * `proof` - The batched fee account topup proof.
2391
+ *
2392
+ * # Errors
2393
+ * * `BadOrigin` if `origin` isn't signed.
2394
+ * * `FeeAccountMissing` if the fee account is not registered.
2395
+ * * `InvalidFeeAssetId` if the fee asset ID is invalid.
2396
+ * * `InvalidProof` if the proof is invalid.
2397
+ * * `InsufficientBalance` if the caller has insufficient balance to pay the deposit.
2398
+ **/
2399
+ topupFeeAccounts: AugmentedSubmittable<(proof: PolymeshDartBpFeeBatchedFeeAccountTopupProof | {
2400
+ rootBlock?: any;
2401
+ proofs?: any;
2402
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
2403
+ PolymeshDartBpFeeBatchedFeeAccountTopupProof
2168
2404
  ]>;
2169
2405
  };
2170
2406
  corporateAction: {
@@ -3482,6 +3718,56 @@ declare module '@polkadot/api-base/types/submittable' {
3482
3718
  u32
3483
3719
  ]>;
3484
3720
  };
3721
+ multiBlockMigrations: {
3722
+ /**
3723
+ * Clears the `Historic` set.
3724
+ *
3725
+ * `map_cursor` must be set to the last value that was returned by the
3726
+ * `HistoricCleared` event. The first time `None` can be used. `limit` must be chosen in a
3727
+ * way that will result in a sensible weight.
3728
+ **/
3729
+ clearHistoric: AugmentedSubmittable<(selector: PalletMigrationsHistoricCleanupSelector | {
3730
+ Specific: any;
3731
+ } | {
3732
+ Wildcard: any;
3733
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
3734
+ PalletMigrationsHistoricCleanupSelector
3735
+ ]>;
3736
+ /**
3737
+ * Forces the onboarding of the migrations.
3738
+ *
3739
+ * This process happens automatically on a runtime upgrade. It is in place as an emergency
3740
+ * measurement. The cursor needs to be `None` for this to succeed.
3741
+ **/
3742
+ forceOnboardMbms: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
3743
+ /**
3744
+ * Allows root to set an active cursor to forcefully start/forward the migration process.
3745
+ *
3746
+ * This is an edge-case version of [`Self::force_set_cursor`] that allows to set the
3747
+ * `started_at` value to the next block number. Otherwise this would not be possible, since
3748
+ * `force_set_cursor` takes an absolute block number. Setting `started_at` to `None`
3749
+ * indicates that the current block number plus one should be used.
3750
+ **/
3751
+ forceSetActiveCursor: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array, innerCursor: Option<Bytes> | null | Uint8Array | Bytes | string, startedAt: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [
3752
+ u32,
3753
+ Option<Bytes>,
3754
+ Option<u32>
3755
+ ]>;
3756
+ /**
3757
+ * Allows root to set a cursor to forcefully start, stop or forward the migration process.
3758
+ *
3759
+ * Should normally not be needed and is only in place as emergency measure. Note that
3760
+ * restarting the migration process in this manner will not call the
3761
+ * [`MigrationStatusHandler::started`] hook or emit an `UpgradeStarted` event.
3762
+ **/
3763
+ forceSetCursor: AugmentedSubmittable<(cursor: Option<PalletMigrationsMigrationCursor> | null | Uint8Array | PalletMigrationsMigrationCursor | {
3764
+ Active: any;
3765
+ } | {
3766
+ Stuck: any;
3767
+ } | string) => SubmittableExtrinsic<ApiType>, [
3768
+ Option<PalletMigrationsMigrationCursor>
3769
+ ]>;
3770
+ };
3485
3771
  multiSig: {
3486
3772
  /**
3487
3773
  * Accepts a multisig signer authorization given to signer's key (AccountId).
@@ -4238,115 +4524,6 @@ declare module '@polkadot/api-base/types/submittable' {
4238
4524
  Call
4239
4525
  ]>;
4240
4526
  };
4241
- polymeshContracts: {
4242
- /**
4243
- * Instantiates a smart contract defining it with the given `code` and `salt`.
4244
- *
4245
- * The contract will be attached as a secondary key,
4246
- * with `perms` as its permissions, to `origin`'s identity.
4247
- *
4248
- * The contract is transferred `endowment` amount of POLYX.
4249
- * This is distinct from the `gas_limit`,
4250
- * which controls how much gas the deployment code may at most consume.
4251
- *
4252
- * # Arguments
4253
- * - `endowment` amount of POLYX to transfer to the contract.
4254
- * - `gas_limit` for how much gas the `deploy` code in the contract may at most consume.
4255
- * - `storage_deposit_limit` The maximum amount of balance that can be charged/reserved
4256
- * from the caller to pay for the storage consumed.
4257
- * - `code` with the WASM binary defining the smart contract.
4258
- * - `data` The input data to pass to the contract constructor.
4259
- * - `salt` used for contract address derivation.
4260
- * By varying this, the same `code` can be used under the same identity.
4261
- * - `perms` that the new secondary key will have.
4262
- *
4263
- * # Errors
4264
- * - All the errors in `pallet_contracts::Call::instantiate_with_code` can also happen here.
4265
- * - CDD/Permissions are checked, unlike in `pallet_contracts`.
4266
- * - Errors that arise when adding a new secondary key can also occur here.
4267
- **/
4268
- instantiateWithCodePerms: AugmentedSubmittable<(endowment: u128 | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
4269
- refTime?: any;
4270
- proofSize?: any;
4271
- } | string | Uint8Array, storageDepositLimit: Option<u128> | null | Uint8Array | u128 | AnyNumber, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array, perms: PolymeshPrimitivesSecondaryKeyPermissions | {
4272
- asset?: any;
4273
- extrinsic?: any;
4274
- portfolio?: any;
4275
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4276
- u128,
4277
- SpWeightsWeightV2Weight,
4278
- Option<u128>,
4279
- Bytes,
4280
- Bytes,
4281
- Bytes,
4282
- PolymeshPrimitivesSecondaryKeyPermissions
4283
- ]>;
4284
- /**
4285
- * Instantiates a smart contract defining using the given `code_hash` and `salt`.
4286
- *
4287
- * Unlike `instantiate_with_code`,
4288
- * this assumes that at least one contract with the same WASM code has already been uploaded.
4289
- *
4290
- * The contract will be attached as a secondary key,
4291
- * with `perms` as its permissions, to `origin`'s identity.
4292
- *
4293
- * The contract is transferred `endowment` amount of POLYX.
4294
- * This is distinct from the `gas_limit`,
4295
- * which controls how much gas the deployment code may at most consume.
4296
- *
4297
- * # Arguments
4298
- * - `endowment` amount of POLYX to transfer to the contract.
4299
- * - `gas_limit` for how much gas the `deploy` code in the contract may at most consume.
4300
- * - `storage_deposit_limit` The maximum amount of balance that can be charged/reserved
4301
- * from the caller to pay for the storage consumed.
4302
- * - `code_hash` of an already uploaded WASM binary.
4303
- * - `data` The input data to pass to the contract constructor.
4304
- * - `salt` used for contract address derivation.
4305
- * By varying this, the same `code` can be used under the same identity.
4306
- * - `perms` that the new secondary key will have.
4307
- *
4308
- * # Errors
4309
- * - All the errors in `pallet_contracts::Call::instantiate` can also happen here.
4310
- * - CDD/Permissions are checked, unlike in `pallet_contracts`.
4311
- * - Errors that arise when adding a new secondary key can also occur here.
4312
- **/
4313
- instantiateWithHashPerms: AugmentedSubmittable<(endowment: u128 | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
4314
- refTime?: any;
4315
- proofSize?: any;
4316
- } | string | Uint8Array, storageDepositLimit: Option<u128> | null | Uint8Array | u128 | AnyNumber, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array, perms: PolymeshPrimitivesSecondaryKeyPermissions | {
4317
- asset?: any;
4318
- extrinsic?: any;
4319
- portfolio?: any;
4320
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4321
- u128,
4322
- SpWeightsWeightV2Weight,
4323
- Option<u128>,
4324
- H256,
4325
- Bytes,
4326
- Bytes,
4327
- PolymeshPrimitivesSecondaryKeyPermissions
4328
- ]>;
4329
- /**
4330
- * Update CallRuntime whitelist.
4331
- *
4332
- * # Arguments
4333
- *
4334
- * # Errors
4335
- **/
4336
- updateCallRuntimeWhitelist: AugmentedSubmittable<(updates: Vec<ITuple<[PolymeshContractsChainExtensionExtrinsicId, bool]>> | [PolymeshContractsChainExtensionExtrinsicId, bool | boolean | Uint8Array][]) => SubmittableExtrinsic<ApiType>, [
4337
- Vec<ITuple<[PolymeshContractsChainExtensionExtrinsicId, bool]>>
4338
- ]>;
4339
- upgradeApi: AugmentedSubmittable<(api: PolymeshContractsApi | {
4340
- desc?: any;
4341
- major?: any;
4342
- } | string | Uint8Array, nextUpgrade: PolymeshContractsNextUpgrade | {
4343
- chainVersion?: any;
4344
- apiHash?: any;
4345
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4346
- PolymeshContractsApi,
4347
- PolymeshContractsNextUpgrade
4348
- ]>;
4349
- };
4350
4527
  polymeshTransactionPayment: {
4351
4528
  setDisableFees: AugmentedSubmittable<(value: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
4352
4529
  bool
@@ -7273,10 +7450,6 @@ declare module '@polkadot/api-base/types/submittable' {
7273
7450
  PolymeshPrimitivesIdentityId,
7274
7451
  Vec<AccountId32>
7275
7452
  ]>;
7276
- payoutStakersBySystem: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
7277
- AccountId32,
7278
- u32
7279
- ]>;
7280
7453
  /**
7281
7454
  * Remove an identity from the pool of (wannabe) validator identities. Effects are known in the next session.
7282
7455
  *