@polymeshassociation/polymesh-types 7.4.0 → 7.6.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/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +2 -3
- package/generated/types.d.ts +10 -2
- package/generated/types.d.ts.map +1 -1
- package/generated/types.js +8 -0
- package/generated/types.js.map +1 -1
- package/package.json +1 -1
- package/polkadot/augment-api-consts.d.ts +5 -85
- package/polkadot/augment-api-consts.d.ts.map +1 -1
- package/polkadot/augment-api-errors.d.ts +50 -214
- package/polkadot/augment-api-errors.d.ts.map +1 -1
- package/polkadot/augment-api-events.d.ts +110 -150
- package/polkadot/augment-api-events.d.ts.map +1 -1
- package/polkadot/augment-api-query.d.ts +96 -98
- package/polkadot/augment-api-query.d.ts.map +1 -1
- package/polkadot/augment-api-rpc.d.ts +6 -49
- package/polkadot/augment-api-rpc.d.ts.map +1 -1
- package/polkadot/augment-api-runtime.d.ts +40 -40
- package/polkadot/augment-api-runtime.d.ts.map +1 -1
- package/polkadot/augment-api-tx.d.ts +173 -336
- package/polkadot/augment-api-tx.d.ts.map +1 -1
- package/polkadot/augment-types.d.ts +72 -1
- package/polkadot/augment-types.d.ts.map +1 -1
- package/polkadot/definitions.d.ts +0 -4
- package/polkadot/definitions.d.ts.map +1 -1
- package/polkadot/definitions.js +5 -13
- package/polkadot/definitions.js.map +1 -1
- package/polkadot/lookup.d.ts +482 -781
- package/polkadot/lookup.d.ts.map +1 -1
- package/polkadot/lookup.js +493 -830
- package/polkadot/lookup.js.map +1 -1
- package/polkadot/polymesh/definitions.d.ts +5 -0
- package/polkadot/polymesh/definitions.d.ts.map +1 -1
- package/polkadot/polymesh/definitions.js +5 -0
- package/polkadot/polymesh/definitions.js.map +1 -1
- package/polkadot/polymesh/types.d.ts +3 -0
- package/polkadot/polymesh/types.d.ts.map +1 -1
- package/polkadot/registry.d.ts +1 -36
- package/polkadot/registry.d.ts.map +1 -1
- package/polkadot/schema.d.ts +7 -43
- package/polkadot/schema.d.ts.map +1 -1
- package/polkadot/schema.js +17 -103
- package/polkadot/schema.js.map +1 -1
- package/polkadot/settlement/definitions.d.ts +2 -0
- package/polkadot/settlement/definitions.d.ts.map +1 -1
- package/polkadot/settlement/definitions.js +13 -0
- package/polkadot/settlement/definitions.js.map +1 -1
- package/polkadot/types-lookup.d.ts +517 -799
- package/polkadot/types-lookup.d.ts.map +1 -1
- package/polkadot/types.d.ts +0 -4
- package/polkadot/types.d.ts.map +1 -1
- package/polkadot/types.js +0 -4
- package/polkadot/types.js.map +1 -1
- package/rpc/index.d.ts +2 -43
- package/rpc/index.d.ts.map +1 -1
- package/rpc/index.js +12 -103
- package/rpc/index.js.map +1 -1
- package/signedExtensions/index.d.ts +4 -0
- package/signedExtensions/index.d.ts.map +1 -1
- package/signedExtensions/index.js +4 -0
- package/signedExtensions/index.js.map +1 -1
- package/types/8.1.x.json +744 -0
- package/types/index.d.ts.map +1 -1
- package/types/index.js +4 -2
- package/types/index.js.map +1 -1
- package/polkadot/asset/definitions.d.ts +0 -16
- package/polkadot/asset/definitions.d.ts.map +0 -1
- package/polkadot/asset/definitions.js +0 -44
- package/polkadot/asset/definitions.js.map +0 -1
- package/polkadot/asset/index.d.ts +0 -2
- package/polkadot/asset/index.d.ts.map +0 -1
- package/polkadot/asset/index.js +0 -20
- package/polkadot/asset/index.js.map +0 -1
- package/polkadot/asset/types.d.ts +0 -2
- package/polkadot/asset/types.d.ts.map +0 -1
- package/polkadot/asset/types.js +0 -5
- package/polkadot/asset/types.js.map +0 -1
- package/polkadot/compliance/definitions.d.ts +0 -15
- package/polkadot/compliance/definitions.d.ts.map +0 -1
- package/polkadot/compliance/definitions.js +0 -26
- package/polkadot/compliance/definitions.js.map +0 -1
- package/polkadot/compliance/index.d.ts +0 -2
- package/polkadot/compliance/index.d.ts.map +0 -1
- package/polkadot/compliance/index.js +0 -20
- package/polkadot/compliance/index.js.map +0 -1
- package/polkadot/compliance/types.d.ts +0 -2
- package/polkadot/compliance/types.d.ts.map +0 -1
- package/polkadot/compliance/types.js +0 -5
- package/polkadot/compliance/types.js.map +0 -1
- package/polkadot/nft/definitions.d.ts +0 -16
- package/polkadot/nft/definitions.d.ts.map +0 -1
- package/polkadot/nft/definitions.js +0 -39
- package/polkadot/nft/definitions.js.map +0 -1
- package/polkadot/nft/index.d.ts +0 -2
- package/polkadot/nft/index.d.ts.map +0 -1
- package/polkadot/nft/index.js +0 -20
- package/polkadot/nft/index.js.map +0 -1
- package/polkadot/nft/types.d.ts +0 -2
- package/polkadot/nft/types.d.ts.map +0 -1
- package/polkadot/nft/types.js +0 -5
- package/polkadot/nft/types.js.map +0 -1
- package/polkadot/staking/definitions.d.ts +0 -16
- package/polkadot/staking/definitions.d.ts.map +0 -1
- package/polkadot/staking/definitions.js +0 -19
- package/polkadot/staking/definitions.js.map +0 -1
- package/polkadot/staking/index.d.ts +0 -2
- package/polkadot/staking/index.d.ts.map +0 -1
- package/polkadot/staking/index.js +0 -20
- package/polkadot/staking/index.js.map +0 -1
- package/polkadot/staking/types.d.ts +0 -2
- package/polkadot/staking/types.d.ts.map +0 -1
- package/polkadot/staking/types.js +0 -5
- package/polkadot/staking/types.js.map +0 -1
- package/rpc/6.x.d.ts +0 -198
- package/rpc/6.x.d.ts.map +0 -1
- package/rpc/6.x.js +0 -378
- package/rpc/6.x.js.map +0 -1
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedSubmittable, SubmittableExtrinsic, SubmittableE
|
|
|
3
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,
|
|
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>;
|
|
@@ -166,6 +166,45 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
166
166
|
PolymeshPrimitivesAssetAssetHolder,
|
|
167
167
|
PolymeshPrimitivesAssetAssetHolderKind
|
|
168
168
|
]>;
|
|
169
|
+
/**
|
|
170
|
+
* Forces a transfer of tokens from `source` to `destination`.
|
|
171
|
+
*
|
|
172
|
+
* Unlike [`Self::controller_transfer`], which always sends the funds to the caller,
|
|
173
|
+
* this extrinsic lets the caller name an arbitrary [`AssetHolder`] as the destination.
|
|
174
|
+
*
|
|
175
|
+
* # Arguments
|
|
176
|
+
* * `origin` - The origin of the call, which can be the primary or secondary key of an identity.
|
|
177
|
+
* * `asset_id` - The [`AssetId`] associated to the asset.
|
|
178
|
+
* * `value` - The [`Balance`] of tokens that will be transferred.
|
|
179
|
+
* * `source` - The [`AssetHolder`] that will have its balance reduced.
|
|
180
|
+
* * `destination` - The [`AssetHolder`] that will have its balance increased.
|
|
181
|
+
*
|
|
182
|
+
* # Permissions
|
|
183
|
+
* * Asset
|
|
184
|
+
*
|
|
185
|
+
* # Events
|
|
186
|
+
* * `ControllerTransferTo` - When tokens are successfully transferred.
|
|
187
|
+
*
|
|
188
|
+
* # Errors
|
|
189
|
+
* * `UnexpectedNonFungibleToken` - If the asset is a non-fungible token.
|
|
190
|
+
* * `InvalidGranularity` - If the amount to transfer does not meet the granularity requirements.
|
|
191
|
+
* * `TotalSupplyOverflow` - If the total supply exceeds the maximum allowed limit.
|
|
192
|
+
* * `ReceiverAffirmationRequired` - If `destination` requires receiver affirmation for the asset.
|
|
193
|
+
**/
|
|
194
|
+
controllerTransferTo: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, source: PolymeshPrimitivesAssetAssetHolder | {
|
|
195
|
+
Portfolio: any;
|
|
196
|
+
} | {
|
|
197
|
+
Account: any;
|
|
198
|
+
} | string | Uint8Array, destination: PolymeshPrimitivesAssetAssetHolder | {
|
|
199
|
+
Portfolio: any;
|
|
200
|
+
} | {
|
|
201
|
+
Account: any;
|
|
202
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
203
|
+
PolymeshPrimitivesAssetAssetId,
|
|
204
|
+
u128,
|
|
205
|
+
PolymeshPrimitivesAssetAssetHolder,
|
|
206
|
+
PolymeshPrimitivesAssetAssetHolder
|
|
207
|
+
]>;
|
|
169
208
|
/**
|
|
170
209
|
* Creates a new asset.
|
|
171
210
|
*
|
|
@@ -306,6 +345,19 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
306
345
|
freeze: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
307
346
|
PolymeshPrimitivesAssetAssetId
|
|
308
347
|
]>;
|
|
348
|
+
/**
|
|
349
|
+
* Freezes an additional `amount` of `asset_id` tokens from `asset_holder`, on top of
|
|
350
|
+
* any tokens already frozen.
|
|
351
|
+
**/
|
|
352
|
+
freezePartialTokens: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, assetHolder: PolymeshPrimitivesAssetAssetHolder | {
|
|
353
|
+
Portfolio: any;
|
|
354
|
+
} | {
|
|
355
|
+
Account: any;
|
|
356
|
+
} | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
357
|
+
PolymeshPrimitivesAssetAssetId,
|
|
358
|
+
PolymeshPrimitivesAssetAssetHolder,
|
|
359
|
+
u128
|
|
360
|
+
]>;
|
|
309
361
|
/**
|
|
310
362
|
* Issue (i.e mint) new tokens to the caller, which must be an authorized external agent.
|
|
311
363
|
*
|
|
@@ -841,6 +893,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
841
893
|
PolymeshPrimitivesAssetMetadataAssetMetadataKey,
|
|
842
894
|
PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail
|
|
843
895
|
]>;
|
|
896
|
+
/**
|
|
897
|
+
* Freezes `amount` of `asset_id` tokens from `asset_holder`.
|
|
898
|
+
**/
|
|
899
|
+
setFrozenTokens: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, assetHolder: PolymeshPrimitivesAssetAssetHolder | {
|
|
900
|
+
Portfolio: any;
|
|
901
|
+
} | {
|
|
902
|
+
Account: any;
|
|
903
|
+
} | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
904
|
+
PolymeshPrimitivesAssetAssetId,
|
|
905
|
+
PolymeshPrimitivesAssetAssetHolder,
|
|
906
|
+
u128
|
|
907
|
+
]>;
|
|
844
908
|
/**
|
|
845
909
|
* Sets the name of the current funding round.
|
|
846
910
|
*
|
|
@@ -864,6 +928,18 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
864
928
|
PolymeshPrimitivesAssetAssetId,
|
|
865
929
|
Bytes
|
|
866
930
|
]>;
|
|
931
|
+
/**
|
|
932
|
+
* Set the status of `account` for `asset_id` to `freeze`.
|
|
933
|
+
**/
|
|
934
|
+
setHolderFrozen: AugmentedSubmittable<(assetHolder: PolymeshPrimitivesAssetAssetHolder | {
|
|
935
|
+
Portfolio: any;
|
|
936
|
+
} | {
|
|
937
|
+
Account: any;
|
|
938
|
+
} | string | Uint8Array, assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, freeze: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
939
|
+
PolymeshPrimitivesAssetAssetHolder,
|
|
940
|
+
PolymeshPrimitivesAssetAssetId,
|
|
941
|
+
bool
|
|
942
|
+
]>;
|
|
867
943
|
/**
|
|
868
944
|
* Transfer assets from the caller's default portfolio to the target address's default portfolio.
|
|
869
945
|
*
|
|
@@ -922,6 +998,19 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
922
998
|
unfreeze: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
923
999
|
PolymeshPrimitivesAssetAssetId
|
|
924
1000
|
]>;
|
|
1001
|
+
/**
|
|
1002
|
+
* Unfreezes `amount` of `asset_id` tokens from `asset_holder`, reducing the amount
|
|
1003
|
+
* currently frozen.
|
|
1004
|
+
**/
|
|
1005
|
+
unfreezePartialTokens: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, assetHolder: PolymeshPrimitivesAssetAssetHolder | {
|
|
1006
|
+
Portfolio: any;
|
|
1007
|
+
} | {
|
|
1008
|
+
Account: any;
|
|
1009
|
+
} | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1010
|
+
PolymeshPrimitivesAssetAssetId,
|
|
1011
|
+
PolymeshPrimitivesAssetAssetHolder,
|
|
1012
|
+
u128
|
|
1013
|
+
]>;
|
|
925
1014
|
/**
|
|
926
1015
|
* Removes the link between a ticker and an asset.
|
|
927
1016
|
*
|
|
@@ -2403,228 +2492,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2403
2492
|
PolymeshDartBpFeeBatchedFeeAccountTopupProof
|
|
2404
2493
|
]>;
|
|
2405
2494
|
};
|
|
2406
|
-
contracts: {
|
|
2407
|
-
/**
|
|
2408
|
-
* Makes a call to an account, optionally transferring some balance.
|
|
2409
|
-
*
|
|
2410
|
-
* # Parameters
|
|
2411
|
-
*
|
|
2412
|
-
* * `dest`: Address of the contract to call.
|
|
2413
|
-
* * `value`: The balance to transfer from the `origin` to `dest`.
|
|
2414
|
-
* * `gas_limit`: The gas limit enforced when executing the constructor.
|
|
2415
|
-
* * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
|
|
2416
|
-
* caller to pay for the storage consumed.
|
|
2417
|
-
* * `data`: The input data to pass to the contract.
|
|
2418
|
-
*
|
|
2419
|
-
* * If the account is a smart-contract account, the associated code will be
|
|
2420
|
-
* executed and any value will be transferred.
|
|
2421
|
-
* * If the account is a regular account, any value will be transferred.
|
|
2422
|
-
* * If no account exists and the call value is not less than `existential_deposit`,
|
|
2423
|
-
* a regular account will be created and any value will be transferred.
|
|
2424
|
-
**/
|
|
2425
|
-
call: AugmentedSubmittable<(dest: MultiAddress | {
|
|
2426
|
-
Id: any;
|
|
2427
|
-
} | {
|
|
2428
|
-
Index: any;
|
|
2429
|
-
} | {
|
|
2430
|
-
Raw: any;
|
|
2431
|
-
} | {
|
|
2432
|
-
Address32: any;
|
|
2433
|
-
} | {
|
|
2434
|
-
Address20: any;
|
|
2435
|
-
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
2436
|
-
refTime?: any;
|
|
2437
|
-
proofSize?: any;
|
|
2438
|
-
} | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2439
|
-
MultiAddress,
|
|
2440
|
-
Compact<u128>,
|
|
2441
|
-
SpWeightsWeightV2Weight,
|
|
2442
|
-
Option<Compact<u128>>,
|
|
2443
|
-
Bytes
|
|
2444
|
-
]>;
|
|
2445
|
-
/**
|
|
2446
|
-
* Deprecated version if [`Self::call`] for use in an in-storage `Call`.
|
|
2447
|
-
*
|
|
2448
|
-
* @deprecated 1D weight is used in this extrinsic, please migrate to `call`
|
|
2449
|
-
**/
|
|
2450
|
-
callOldWeight: AugmentedSubmittable<(dest: MultiAddress | {
|
|
2451
|
-
Id: any;
|
|
2452
|
-
} | {
|
|
2453
|
-
Index: any;
|
|
2454
|
-
} | {
|
|
2455
|
-
Raw: any;
|
|
2456
|
-
} | {
|
|
2457
|
-
Address32: any;
|
|
2458
|
-
} | {
|
|
2459
|
-
Address20: any;
|
|
2460
|
-
} | 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>, [
|
|
2461
|
-
MultiAddress,
|
|
2462
|
-
Compact<u128>,
|
|
2463
|
-
Compact<u64>,
|
|
2464
|
-
Option<Compact<u128>>,
|
|
2465
|
-
Bytes
|
|
2466
|
-
]>;
|
|
2467
|
-
/**
|
|
2468
|
-
* Instantiates a contract from a previously deployed wasm binary.
|
|
2469
|
-
*
|
|
2470
|
-
* This function is identical to [`Self::instantiate_with_code`] but without the
|
|
2471
|
-
* code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
|
|
2472
|
-
* must be supplied.
|
|
2473
|
-
**/
|
|
2474
|
-
instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
2475
|
-
refTime?: any;
|
|
2476
|
-
proofSize?: any;
|
|
2477
|
-
} | 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>, [
|
|
2478
|
-
Compact<u128>,
|
|
2479
|
-
SpWeightsWeightV2Weight,
|
|
2480
|
-
Option<Compact<u128>>,
|
|
2481
|
-
H256,
|
|
2482
|
-
Bytes,
|
|
2483
|
-
Bytes
|
|
2484
|
-
]>;
|
|
2485
|
-
/**
|
|
2486
|
-
* Deprecated version if [`Self::instantiate`] for use in an in-storage `Call`.
|
|
2487
|
-
*
|
|
2488
|
-
* @deprecated 1D weight is used in this extrinsic, please migrate to `instantiate`
|
|
2489
|
-
**/
|
|
2490
|
-
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>, [
|
|
2491
|
-
Compact<u128>,
|
|
2492
|
-
Compact<u64>,
|
|
2493
|
-
Option<Compact<u128>>,
|
|
2494
|
-
H256,
|
|
2495
|
-
Bytes,
|
|
2496
|
-
Bytes
|
|
2497
|
-
]>;
|
|
2498
|
-
/**
|
|
2499
|
-
* Instantiates a new contract from the supplied `code` optionally transferring
|
|
2500
|
-
* some balance.
|
|
2501
|
-
*
|
|
2502
|
-
* This dispatchable has the same effect as calling [`Self::upload_code`] +
|
|
2503
|
-
* [`Self::instantiate`]. Bundling them together provides efficiency gains. Please
|
|
2504
|
-
* also check the documentation of [`Self::upload_code`].
|
|
2505
|
-
*
|
|
2506
|
-
* # Parameters
|
|
2507
|
-
*
|
|
2508
|
-
* * `value`: The balance to transfer from the `origin` to the newly created contract.
|
|
2509
|
-
* * `gas_limit`: The gas limit enforced when executing the constructor.
|
|
2510
|
-
* * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
|
|
2511
|
-
* from the caller to pay for the storage consumed.
|
|
2512
|
-
* * `code`: The contract code to deploy in raw bytes.
|
|
2513
|
-
* * `data`: The input data to pass to the contract constructor.
|
|
2514
|
-
* * `salt`: Used for the address derivation. See [`Pallet::contract_address`].
|
|
2515
|
-
*
|
|
2516
|
-
* Instantiation is executed as follows:
|
|
2517
|
-
*
|
|
2518
|
-
* - The supplied `code` is deployed, and a `code_hash` is created for that code.
|
|
2519
|
-
* - If the `code_hash` already exists on the chain the underlying `code` will be shared.
|
|
2520
|
-
* - The destination address is computed based on the sender, code_hash and the salt.
|
|
2521
|
-
* - The smart-contract account is created at the computed address.
|
|
2522
|
-
* - The `value` is transferred to the new account.
|
|
2523
|
-
* - The `deploy` function is executed in the context of the newly-created account.
|
|
2524
|
-
**/
|
|
2525
|
-
instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
2526
|
-
refTime?: any;
|
|
2527
|
-
proofSize?: any;
|
|
2528
|
-
} | 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>, [
|
|
2529
|
-
Compact<u128>,
|
|
2530
|
-
SpWeightsWeightV2Weight,
|
|
2531
|
-
Option<Compact<u128>>,
|
|
2532
|
-
Bytes,
|
|
2533
|
-
Bytes,
|
|
2534
|
-
Bytes
|
|
2535
|
-
]>;
|
|
2536
|
-
/**
|
|
2537
|
-
* Deprecated version if [`Self::instantiate_with_code`] for use in an in-storage `Call`.
|
|
2538
|
-
*
|
|
2539
|
-
* @deprecated 1D weight is used in this extrinsic, please migrate to `instantiate_with_code`
|
|
2540
|
-
**/
|
|
2541
|
-
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>, [
|
|
2542
|
-
Compact<u128>,
|
|
2543
|
-
Compact<u64>,
|
|
2544
|
-
Option<Compact<u128>>,
|
|
2545
|
-
Bytes,
|
|
2546
|
-
Bytes,
|
|
2547
|
-
Bytes
|
|
2548
|
-
]>;
|
|
2549
|
-
/**
|
|
2550
|
-
* When a migration is in progress, this dispatchable can be used to run migration steps.
|
|
2551
|
-
* Calls that contribute to advancing the migration have their fees waived, as it's helpful
|
|
2552
|
-
* for the chain. Note that while the migration is in progress, the pallet will also
|
|
2553
|
-
* leverage the `on_idle` hooks to run migration steps.
|
|
2554
|
-
**/
|
|
2555
|
-
migrate: AugmentedSubmittable<(weightLimit: SpWeightsWeightV2Weight | {
|
|
2556
|
-
refTime?: any;
|
|
2557
|
-
proofSize?: any;
|
|
2558
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2559
|
-
SpWeightsWeightV2Weight
|
|
2560
|
-
]>;
|
|
2561
|
-
/**
|
|
2562
|
-
* Remove the code stored under `code_hash` and refund the deposit to its owner.
|
|
2563
|
-
*
|
|
2564
|
-
* A code can only be removed by its original uploader (its owner) and only if it is
|
|
2565
|
-
* not used by any contract.
|
|
2566
|
-
**/
|
|
2567
|
-
removeCode: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2568
|
-
H256
|
|
2569
|
-
]>;
|
|
2570
|
-
/**
|
|
2571
|
-
* Privileged function that changes the code of an existing contract.
|
|
2572
|
-
*
|
|
2573
|
-
* This takes care of updating refcounts and all other necessary operations. Returns
|
|
2574
|
-
* an error if either the `code_hash` or `dest` do not exist.
|
|
2575
|
-
*
|
|
2576
|
-
* # Note
|
|
2577
|
-
*
|
|
2578
|
-
* This does **not** change the address of the contract in question. This means
|
|
2579
|
-
* that the contract address is no longer derived from its code hash after calling
|
|
2580
|
-
* this dispatchable.
|
|
2581
|
-
**/
|
|
2582
|
-
setCode: AugmentedSubmittable<(dest: MultiAddress | {
|
|
2583
|
-
Id: any;
|
|
2584
|
-
} | {
|
|
2585
|
-
Index: any;
|
|
2586
|
-
} | {
|
|
2587
|
-
Raw: any;
|
|
2588
|
-
} | {
|
|
2589
|
-
Address32: any;
|
|
2590
|
-
} | {
|
|
2591
|
-
Address20: any;
|
|
2592
|
-
} | string | Uint8Array, codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2593
|
-
MultiAddress,
|
|
2594
|
-
H256
|
|
2595
|
-
]>;
|
|
2596
|
-
/**
|
|
2597
|
-
* Upload new `code` without instantiating a contract from it.
|
|
2598
|
-
*
|
|
2599
|
-
* If the code does not already exist a deposit is reserved from the caller
|
|
2600
|
-
* and unreserved only when [`Self::remove_code`] is called. The size of the reserve
|
|
2601
|
-
* depends on the size of the supplied `code`.
|
|
2602
|
-
*
|
|
2603
|
-
* If the code already exists in storage it will still return `Ok` and upgrades
|
|
2604
|
-
* the in storage version to the current
|
|
2605
|
-
* [`InstructionWeights::version`](InstructionWeights).
|
|
2606
|
-
*
|
|
2607
|
-
* - `determinism`: If this is set to any other value but [`Determinism::Enforced`] then
|
|
2608
|
-
* the only way to use this code is to delegate call into it from an offchain execution.
|
|
2609
|
-
* Set to [`Determinism::Enforced`] if in doubt.
|
|
2610
|
-
*
|
|
2611
|
-
* # Note
|
|
2612
|
-
*
|
|
2613
|
-
* Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
|
|
2614
|
-
* To avoid this situation a constructor could employ access control so that it can
|
|
2615
|
-
* only be instantiated by permissioned entities. The same is true when uploading
|
|
2616
|
-
* through [`Self::instantiate_with_code`].
|
|
2617
|
-
*
|
|
2618
|
-
* Use [`Determinism::Relaxed`] exclusively for non-deterministic code. If the uploaded
|
|
2619
|
-
* code is deterministic, specifying [`Determinism::Relaxed`] will be disregarded and
|
|
2620
|
-
* result in higher gas costs.
|
|
2621
|
-
**/
|
|
2622
|
-
uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | Uint8Array | Compact<u128> | AnyNumber, determinism: PalletContractsWasmDeterminism | 'Enforced' | 'Relaxed' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2623
|
-
Bytes,
|
|
2624
|
-
Option<Compact<u128>>,
|
|
2625
|
-
PalletContractsWasmDeterminism
|
|
2626
|
-
]>;
|
|
2627
|
-
};
|
|
2628
2495
|
corporateAction: {
|
|
2629
2496
|
/**
|
|
2630
2497
|
* Changes the record date of the CA identified by `ca_id`.
|
|
@@ -4174,6 +4041,34 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4174
4041
|
]>;
|
|
4175
4042
|
};
|
|
4176
4043
|
nft: {
|
|
4044
|
+
/**
|
|
4045
|
+
* Approves `spender` to transfer the `nft_id` NFT of the `asset_id` collection on the
|
|
4046
|
+
* caller's behalf.
|
|
4047
|
+
*
|
|
4048
|
+
* This is the ERC-721 per-token approval. The approval is consumed when used and is
|
|
4049
|
+
* cleared whenever the NFT changes hands, so it never survives a transfer.
|
|
4050
|
+
*
|
|
4051
|
+
* Passing `None` for `spender` revokes any existing approval.
|
|
4052
|
+
*
|
|
4053
|
+
* # Arguments
|
|
4054
|
+
* * `origin` - Signed origin. Must hold the NFT in its account key, or be an approved
|
|
4055
|
+
* operator for the collection.
|
|
4056
|
+
* * `asset_id` - the [`AssetId`] of the NFT collection.
|
|
4057
|
+
* * `nft_id` - the [`NFTId`] of the NFT being approved.
|
|
4058
|
+
* * `spender` - the account authorized to transfer the NFT, or `None` to revoke.
|
|
4059
|
+
*
|
|
4060
|
+
* # Errors
|
|
4061
|
+
* * `NFTApprovalNotAuthorized` - the caller neither holds the NFT nor is an approved
|
|
4062
|
+
* operator for the collection.
|
|
4063
|
+
*
|
|
4064
|
+
* # Permissions
|
|
4065
|
+
* * Asset
|
|
4066
|
+
**/
|
|
4067
|
+
approve: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, nftId: u64 | AnyNumber | Uint8Array, spender: Option<AccountId32> | null | Uint8Array | AccountId32 | string) => SubmittableExtrinsic<ApiType>, [
|
|
4068
|
+
PolymeshPrimitivesAssetAssetId,
|
|
4069
|
+
u64,
|
|
4070
|
+
Option<AccountId32>
|
|
4071
|
+
]>;
|
|
4177
4072
|
/**
|
|
4178
4073
|
* Forces the transfer of NFTs from a given portfolio to the caller's portfolio.
|
|
4179
4074
|
*
|
|
@@ -4205,6 +4100,37 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4205
4100
|
PolymeshPrimitivesAssetAssetHolder,
|
|
4206
4101
|
PolymeshPrimitivesAssetAssetHolderKind
|
|
4207
4102
|
]>;
|
|
4103
|
+
/**
|
|
4104
|
+
* Forces the transfer of NFTs from a given portfolio to `destination`.
|
|
4105
|
+
*
|
|
4106
|
+
* Unlike [`Self::controller_transfer`], which always sends the NFTs to the caller's,
|
|
4107
|
+
* this extrinsic lets the caller name an arbitrary [`AssetHolder`] as the destination.
|
|
4108
|
+
*
|
|
4109
|
+
* # Arguments
|
|
4110
|
+
* * `origin` - is a signer that has permissions to act as an agent of `asset_id`.
|
|
4111
|
+
* * `nfts` - the [`NFTs`] to be transferred.
|
|
4112
|
+
* * `source` - the [`AssetHolder`] that currently holds the NFTs.
|
|
4113
|
+
* * `destination` - the [`AssetHolder`] that will receive the NFTs.
|
|
4114
|
+
*
|
|
4115
|
+
* # Permissions
|
|
4116
|
+
* * Asset
|
|
4117
|
+
**/
|
|
4118
|
+
controllerTransferTo: AugmentedSubmittable<(nfts: PolymeshPrimitivesNftNfTs | {
|
|
4119
|
+
assetId?: any;
|
|
4120
|
+
ids?: any;
|
|
4121
|
+
} | string | Uint8Array, source: PolymeshPrimitivesAssetAssetHolder | {
|
|
4122
|
+
Portfolio: any;
|
|
4123
|
+
} | {
|
|
4124
|
+
Account: any;
|
|
4125
|
+
} | string | Uint8Array, destination: PolymeshPrimitivesAssetAssetHolder | {
|
|
4126
|
+
Portfolio: any;
|
|
4127
|
+
} | {
|
|
4128
|
+
Account: any;
|
|
4129
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4130
|
+
PolymeshPrimitivesNftNfTs,
|
|
4131
|
+
PolymeshPrimitivesAssetAssetHolder,
|
|
4132
|
+
PolymeshPrimitivesAssetAssetHolder
|
|
4133
|
+
]>;
|
|
4208
4134
|
/**
|
|
4209
4135
|
* Cretes a new `NFTCollection`.
|
|
4210
4136
|
*
|
|
@@ -4299,6 +4225,30 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4299
4225
|
PolymeshPrimitivesAssetAssetHolderKind,
|
|
4300
4226
|
Option<u8>
|
|
4301
4227
|
]>;
|
|
4228
|
+
/**
|
|
4229
|
+
* Grants or revokes `operator` the right to transfer any NFT of the `asset_id`
|
|
4230
|
+
* collection held by the caller's account key.
|
|
4231
|
+
*
|
|
4232
|
+
* This is the ERC-721 `setApprovalForAll`, scoped to a single collection rather than to
|
|
4233
|
+
* every collection the caller holds.
|
|
4234
|
+
*
|
|
4235
|
+
* Unlike a per-token approval, an operator approval is not consumed on use and is not
|
|
4236
|
+
* cleared when an NFT is transferred.
|
|
4237
|
+
*
|
|
4238
|
+
* # Arguments
|
|
4239
|
+
* * `origin` - Signed origin.
|
|
4240
|
+
* * `asset_id` - the [`AssetId`] of the NFT collection.
|
|
4241
|
+
* * `operator` - the account being granted or revoked.
|
|
4242
|
+
* * `approved` - `true` to grant, `false` to revoke.
|
|
4243
|
+
*
|
|
4244
|
+
* # Permissions
|
|
4245
|
+
* * Asset
|
|
4246
|
+
**/
|
|
4247
|
+
setApprovalForAll: AugmentedSubmittable<(assetId: PolymeshPrimitivesAssetAssetId | string | Uint8Array, operator: AccountId32 | string | Uint8Array, approved: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4248
|
+
PolymeshPrimitivesAssetAssetId,
|
|
4249
|
+
AccountId32,
|
|
4250
|
+
bool
|
|
4251
|
+
]>;
|
|
4302
4252
|
/**
|
|
4303
4253
|
* Transfer NFTs from the caller's account to another account.
|
|
4304
4254
|
*
|
|
@@ -4746,115 +4696,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4746
4696
|
Call
|
|
4747
4697
|
]>;
|
|
4748
4698
|
};
|
|
4749
|
-
polymeshContracts: {
|
|
4750
|
-
/**
|
|
4751
|
-
* Instantiates a smart contract defining it with the given `code` and `salt`.
|
|
4752
|
-
*
|
|
4753
|
-
* The contract will be attached as a secondary key,
|
|
4754
|
-
* with `perms` as its permissions, to `origin`'s identity.
|
|
4755
|
-
*
|
|
4756
|
-
* The contract is transferred `endowment` amount of POLYX.
|
|
4757
|
-
* This is distinct from the `gas_limit`,
|
|
4758
|
-
* which controls how much gas the deployment code may at most consume.
|
|
4759
|
-
*
|
|
4760
|
-
* # Arguments
|
|
4761
|
-
* - `endowment` amount of POLYX to transfer to the contract.
|
|
4762
|
-
* - `gas_limit` for how much gas the `deploy` code in the contract may at most consume.
|
|
4763
|
-
* - `storage_deposit_limit` The maximum amount of balance that can be charged/reserved
|
|
4764
|
-
* from the caller to pay for the storage consumed.
|
|
4765
|
-
* - `code` with the WASM binary defining the smart contract.
|
|
4766
|
-
* - `data` The input data to pass to the contract constructor.
|
|
4767
|
-
* - `salt` used for contract address derivation.
|
|
4768
|
-
* By varying this, the same `code` can be used under the same identity.
|
|
4769
|
-
* - `perms` that the new secondary key will have.
|
|
4770
|
-
*
|
|
4771
|
-
* # Errors
|
|
4772
|
-
* - All the errors in `pallet_contracts::Call::instantiate_with_code` can also happen here.
|
|
4773
|
-
* - CDD/Permissions are checked, unlike in `pallet_contracts`.
|
|
4774
|
-
* - Errors that arise when adding a new secondary key can also occur here.
|
|
4775
|
-
**/
|
|
4776
|
-
instantiateWithCodePerms: AugmentedSubmittable<(endowment: u128 | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
4777
|
-
refTime?: any;
|
|
4778
|
-
proofSize?: any;
|
|
4779
|
-
} | string | Uint8Array, storageDepositLimit: Option<u128> | null | Uint8Array | u128 | AnyNumber, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array, perms: PolymeshPrimitivesSecondaryKeyPermissions | {
|
|
4780
|
-
asset?: any;
|
|
4781
|
-
extrinsic?: any;
|
|
4782
|
-
portfolio?: any;
|
|
4783
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4784
|
-
u128,
|
|
4785
|
-
SpWeightsWeightV2Weight,
|
|
4786
|
-
Option<u128>,
|
|
4787
|
-
Bytes,
|
|
4788
|
-
Bytes,
|
|
4789
|
-
Bytes,
|
|
4790
|
-
PolymeshPrimitivesSecondaryKeyPermissions
|
|
4791
|
-
]>;
|
|
4792
|
-
/**
|
|
4793
|
-
* Instantiates a smart contract defining using the given `code_hash` and `salt`.
|
|
4794
|
-
*
|
|
4795
|
-
* Unlike `instantiate_with_code`,
|
|
4796
|
-
* this assumes that at least one contract with the same WASM code has already been uploaded.
|
|
4797
|
-
*
|
|
4798
|
-
* The contract will be attached as a secondary key,
|
|
4799
|
-
* with `perms` as its permissions, to `origin`'s identity.
|
|
4800
|
-
*
|
|
4801
|
-
* The contract is transferred `endowment` amount of POLYX.
|
|
4802
|
-
* This is distinct from the `gas_limit`,
|
|
4803
|
-
* which controls how much gas the deployment code may at most consume.
|
|
4804
|
-
*
|
|
4805
|
-
* # Arguments
|
|
4806
|
-
* - `endowment` amount of POLYX to transfer to the contract.
|
|
4807
|
-
* - `gas_limit` for how much gas the `deploy` code in the contract may at most consume.
|
|
4808
|
-
* - `storage_deposit_limit` The maximum amount of balance that can be charged/reserved
|
|
4809
|
-
* from the caller to pay for the storage consumed.
|
|
4810
|
-
* - `code_hash` of an already uploaded WASM binary.
|
|
4811
|
-
* - `data` The input data to pass to the contract constructor.
|
|
4812
|
-
* - `salt` used for contract address derivation.
|
|
4813
|
-
* By varying this, the same `code` can be used under the same identity.
|
|
4814
|
-
* - `perms` that the new secondary key will have.
|
|
4815
|
-
*
|
|
4816
|
-
* # Errors
|
|
4817
|
-
* - All the errors in `pallet_contracts::Call::instantiate` can also happen here.
|
|
4818
|
-
* - CDD/Permissions are checked, unlike in `pallet_contracts`.
|
|
4819
|
-
* - Errors that arise when adding a new secondary key can also occur here.
|
|
4820
|
-
**/
|
|
4821
|
-
instantiateWithHashPerms: AugmentedSubmittable<(endowment: u128 | AnyNumber | Uint8Array, gasLimit: SpWeightsWeightV2Weight | {
|
|
4822
|
-
refTime?: any;
|
|
4823
|
-
proofSize?: any;
|
|
4824
|
-
} | string | Uint8Array, storageDepositLimit: Option<u128> | null | Uint8Array | u128 | AnyNumber, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array, perms: PolymeshPrimitivesSecondaryKeyPermissions | {
|
|
4825
|
-
asset?: any;
|
|
4826
|
-
extrinsic?: any;
|
|
4827
|
-
portfolio?: any;
|
|
4828
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4829
|
-
u128,
|
|
4830
|
-
SpWeightsWeightV2Weight,
|
|
4831
|
-
Option<u128>,
|
|
4832
|
-
H256,
|
|
4833
|
-
Bytes,
|
|
4834
|
-
Bytes,
|
|
4835
|
-
PolymeshPrimitivesSecondaryKeyPermissions
|
|
4836
|
-
]>;
|
|
4837
|
-
/**
|
|
4838
|
-
* Update CallRuntime whitelist.
|
|
4839
|
-
*
|
|
4840
|
-
* # Arguments
|
|
4841
|
-
*
|
|
4842
|
-
* # Errors
|
|
4843
|
-
**/
|
|
4844
|
-
updateCallRuntimeWhitelist: AugmentedSubmittable<(updates: Vec<ITuple<[PolymeshContractsChainExtensionExtrinsicId, bool]>> | [PolymeshContractsChainExtensionExtrinsicId, bool | boolean | Uint8Array][]) => SubmittableExtrinsic<ApiType>, [
|
|
4845
|
-
Vec<ITuple<[PolymeshContractsChainExtensionExtrinsicId, bool]>>
|
|
4846
|
-
]>;
|
|
4847
|
-
upgradeApi: AugmentedSubmittable<(api: PolymeshContractsApi | {
|
|
4848
|
-
desc?: any;
|
|
4849
|
-
major?: any;
|
|
4850
|
-
} | string | Uint8Array, nextUpgrade: PolymeshContractsNextUpgrade | {
|
|
4851
|
-
chainVersion?: any;
|
|
4852
|
-
apiHash?: any;
|
|
4853
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4854
|
-
PolymeshContractsApi,
|
|
4855
|
-
PolymeshContractsNextUpgrade
|
|
4856
|
-
]>;
|
|
4857
|
-
};
|
|
4858
4699
|
polymeshTransactionPayment: {
|
|
4859
4700
|
setDisableFees: AugmentedSubmittable<(value: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4860
4701
|
bool
|
|
@@ -7781,10 +7622,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
7781
7622
|
PolymeshPrimitivesIdentityId,
|
|
7782
7623
|
Vec<AccountId32>
|
|
7783
7624
|
]>;
|
|
7784
|
-
payoutStakersBySystem: AugmentedSubmittable<(validatorStash: AccountId32 | string | Uint8Array, era: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
7785
|
-
AccountId32,
|
|
7786
|
-
u32
|
|
7787
|
-
]>;
|
|
7788
7625
|
/**
|
|
7789
7626
|
* Remove an identity from the pool of (wannabe) validator identities. Effects are known in the next session.
|
|
7790
7627
|
*
|