@polymeshassociation/polymesh-types 7.3.0 → 7.4.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.
- package/CHANGELOG.md +3 -3
- package/generated/types.d.ts +35 -2
- package/generated/types.d.ts.map +1 -1
- package/generated/types.js +36 -1
- package/generated/types.js.map +1 -1
- package/package.json +1 -1
- package/polkadot/augment-api-consts.d.ts +94 -2
- package/polkadot/augment-api-consts.d.ts.map +1 -1
- package/polkadot/augment-api-errors.d.ts +192 -8
- package/polkadot/augment-api-errors.d.ts.map +1 -1
- package/polkadot/augment-api-events.d.ts +400 -2
- package/polkadot/augment-api-events.d.ts.map +1 -1
- package/polkadot/augment-api-query.d.ts +395 -2
- package/polkadot/augment-api-query.d.ts.map +1 -1
- package/polkadot/augment-api-tx.d.ts +510 -2
- package/polkadot/augment-api-tx.d.ts.map +1 -1
- package/polkadot/lookup.d.ts +1079 -327
- package/polkadot/lookup.d.ts.map +1 -1
- package/polkadot/lookup.js +1126 -329
- package/polkadot/lookup.js.map +1 -1
- package/polkadot/registry.d.ts +70 -1
- package/polkadot/registry.d.ts.map +1 -1
- package/polkadot/types-lookup.d.ts +1087 -332
- package/polkadot/types-lookup.d.ts.map +1 -1
|
@@ -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, PalletContractsWasmDeterminism, 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, PolymeshContractsApi, PolymeshContractsChainExtensionExtrinsicId, PolymeshContractsNextUpgrade, 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,6 +1945,464 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1945
1945
|
PolymeshPrimitivesAssetAssetId
|
|
1946
1946
|
]>;
|
|
1947
1947
|
};
|
|
1948
|
+
confidentialAssets: {
|
|
1949
|
+
/**
|
|
1950
|
+
* Create a settlement with batched leg affirmations.
|
|
1951
|
+
*
|
|
1952
|
+
* # Arguments
|
|
1953
|
+
* * `origin` - The origin of the call.
|
|
1954
|
+
* * `proof` - The settlement proof with batched leg affirmations.
|
|
1955
|
+
*
|
|
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.
|
|
1970
|
+
*
|
|
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.
|
|
1978
|
+
**/
|
|
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
|
+
Bytes
|
|
1986
|
+
]>;
|
|
1987
|
+
/**
|
|
1988
|
+
* Create a new settlement.
|
|
1989
|
+
*
|
|
1990
|
+
* # Arguments
|
|
1991
|
+
* * `origin` - The origin of the call.
|
|
1992
|
+
* * `proof` - The settlement proof.
|
|
1993
|
+
*
|
|
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.
|
|
1999
|
+
**/
|
|
2000
|
+
createSettlement: AugmentedSubmittable<(proof: PolymeshDartBpLegSettlementProof | {
|
|
2001
|
+
memo?: any;
|
|
2002
|
+
rootBlock?: any;
|
|
2003
|
+
legs?: any;
|
|
2004
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2005
|
+
PolymeshDartBpLegSettlementProof
|
|
2006
|
+
]>;
|
|
2007
|
+
/**
|
|
2008
|
+
* Create and execute an instant settlement.
|
|
2009
|
+
*
|
|
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
|
|
2025
|
+
]>;
|
|
2026
|
+
/**
|
|
2027
|
+
* Receiver affirms a settlement leg as the last pending affirmation.
|
|
2028
|
+
*
|
|
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
|
|
2051
|
+
]>;
|
|
2052
|
+
/**
|
|
2053
|
+
* Sender affirms a settlement leg as the last pending affirmation.
|
|
2054
|
+
*
|
|
2055
|
+
* This can only be used when the sender affirmation is the last pending affirmation for the settlement.
|
|
2056
|
+
*
|
|
2057
|
+
* # Arguments
|
|
2058
|
+
* * `origin` - The origin of the call.
|
|
2059
|
+
* * `proof` - The instant sender affirmation proof.
|
|
2060
|
+
*
|
|
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.
|
|
2080
|
+
*
|
|
2081
|
+
* # Arguments
|
|
2082
|
+
* * `origin` - The origin of the call.
|
|
2083
|
+
* * `proof` - The mediator affirmation proof.
|
|
2084
|
+
*
|
|
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
|
|
2100
|
+
]>;
|
|
2101
|
+
/**
|
|
2102
|
+
* Mint a Confidential asset.
|
|
2103
|
+
*
|
|
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
|
|
2129
|
+
]>;
|
|
2130
|
+
/**
|
|
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.
|
|
2229
|
+
**/
|
|
2230
|
+
registerAccounts: AugmentedSubmittable<(proof: PolymeshDartBpKeysAccountRegistrationProof | {
|
|
2231
|
+
accounts?: any;
|
|
2232
|
+
inner?: any;
|
|
2233
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2234
|
+
PolymeshDartBpKeysAccountRegistrationProof
|
|
2235
|
+
]>;
|
|
2236
|
+
/**
|
|
2237
|
+
* Register encryption keys for auditors/mediators.
|
|
2238
|
+
*
|
|
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.
|
|
2247
|
+
**/
|
|
2248
|
+
registerEncryptionKeys: AugmentedSubmittable<(proof: PolymeshDartBpKeysEncryptionKeyRegistrationProof | {
|
|
2249
|
+
keys_?: any;
|
|
2250
|
+
inner?: any;
|
|
2251
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2252
|
+
PolymeshDartBpKeysEncryptionKeyRegistrationProof
|
|
2253
|
+
]>;
|
|
2254
|
+
/**
|
|
2255
|
+
* Batch register multiple fee accounts.
|
|
2256
|
+
*
|
|
2257
|
+
* This is used to register fee accounts for Confidential private fee payments.
|
|
2258
|
+
*
|
|
2259
|
+
* # Arguments
|
|
2260
|
+
* * `origin` - The origin of the call.
|
|
2261
|
+
* * `proof` - The batched fee account registration proof.
|
|
2262
|
+
*
|
|
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.
|
|
2295
|
+
**/
|
|
2296
|
+
relayerSubmitBatchedProofs: AugmentedSubmittable<(proof: PolymeshDartBpFeeFeePaymentWithBatchedProofs | {
|
|
2297
|
+
feePayment?: any;
|
|
2298
|
+
batchedProofs?: any;
|
|
2299
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2300
|
+
PolymeshDartBpFeeFeePaymentWithBatchedProofs
|
|
2301
|
+
]>;
|
|
2302
|
+
/**
|
|
2303
|
+
* Sender affirms a settlement leg.
|
|
2304
|
+
*
|
|
2305
|
+
* # Arguments
|
|
2306
|
+
* * `origin` - The origin of the call.
|
|
2307
|
+
* * `proof` - The sender affirmation proof.
|
|
2308
|
+
*
|
|
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.
|
|
2327
|
+
*
|
|
2328
|
+
* # Arguments
|
|
2329
|
+
* * `origin` - The origin of the call.
|
|
2330
|
+
* * `proof` - The sender revert affirmation proof.
|
|
2331
|
+
*
|
|
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.
|
|
2349
|
+
*
|
|
2350
|
+
* # Arguments
|
|
2351
|
+
* * `origin` - The origin of the call.
|
|
2352
|
+
* * `proof` - The sender update proof.
|
|
2353
|
+
*
|
|
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.
|
|
2379
|
+
**/
|
|
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
|
|
2404
|
+
]>;
|
|
2405
|
+
};
|
|
1948
2406
|
contracts: {
|
|
1949
2407
|
/**
|
|
1950
2408
|
* Makes a call to an account, optionally transferring some balance.
|
|
@@ -3482,6 +3940,56 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3482
3940
|
u32
|
|
3483
3941
|
]>;
|
|
3484
3942
|
};
|
|
3943
|
+
multiBlockMigrations: {
|
|
3944
|
+
/**
|
|
3945
|
+
* Clears the `Historic` set.
|
|
3946
|
+
*
|
|
3947
|
+
* `map_cursor` must be set to the last value that was returned by the
|
|
3948
|
+
* `HistoricCleared` event. The first time `None` can be used. `limit` must be chosen in a
|
|
3949
|
+
* way that will result in a sensible weight.
|
|
3950
|
+
**/
|
|
3951
|
+
clearHistoric: AugmentedSubmittable<(selector: PalletMigrationsHistoricCleanupSelector | {
|
|
3952
|
+
Specific: any;
|
|
3953
|
+
} | {
|
|
3954
|
+
Wildcard: any;
|
|
3955
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3956
|
+
PalletMigrationsHistoricCleanupSelector
|
|
3957
|
+
]>;
|
|
3958
|
+
/**
|
|
3959
|
+
* Forces the onboarding of the migrations.
|
|
3960
|
+
*
|
|
3961
|
+
* This process happens automatically on a runtime upgrade. It is in place as an emergency
|
|
3962
|
+
* measurement. The cursor needs to be `None` for this to succeed.
|
|
3963
|
+
**/
|
|
3964
|
+
forceOnboardMbms: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3965
|
+
/**
|
|
3966
|
+
* Allows root to set an active cursor to forcefully start/forward the migration process.
|
|
3967
|
+
*
|
|
3968
|
+
* This is an edge-case version of [`Self::force_set_cursor`] that allows to set the
|
|
3969
|
+
* `started_at` value to the next block number. Otherwise this would not be possible, since
|
|
3970
|
+
* `force_set_cursor` takes an absolute block number. Setting `started_at` to `None`
|
|
3971
|
+
* indicates that the current block number plus one should be used.
|
|
3972
|
+
**/
|
|
3973
|
+
forceSetActiveCursor: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array, innerCursor: Option<Bytes> | null | Uint8Array | Bytes | string, startedAt: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [
|
|
3974
|
+
u32,
|
|
3975
|
+
Option<Bytes>,
|
|
3976
|
+
Option<u32>
|
|
3977
|
+
]>;
|
|
3978
|
+
/**
|
|
3979
|
+
* Allows root to set a cursor to forcefully start, stop or forward the migration process.
|
|
3980
|
+
*
|
|
3981
|
+
* Should normally not be needed and is only in place as emergency measure. Note that
|
|
3982
|
+
* restarting the migration process in this manner will not call the
|
|
3983
|
+
* [`MigrationStatusHandler::started`] hook or emit an `UpgradeStarted` event.
|
|
3984
|
+
**/
|
|
3985
|
+
forceSetCursor: AugmentedSubmittable<(cursor: Option<PalletMigrationsMigrationCursor> | null | Uint8Array | PalletMigrationsMigrationCursor | {
|
|
3986
|
+
Active: any;
|
|
3987
|
+
} | {
|
|
3988
|
+
Stuck: any;
|
|
3989
|
+
} | string) => SubmittableExtrinsic<ApiType>, [
|
|
3990
|
+
Option<PalletMigrationsMigrationCursor>
|
|
3991
|
+
]>;
|
|
3992
|
+
};
|
|
3485
3993
|
multiSig: {
|
|
3486
3994
|
/**
|
|
3487
3995
|
* Accepts a multisig signer authorization given to signer's key (AccountId).
|