@polymeshassociation/polymesh-sdk 18.0.0-alpha.4 → 18.0.0-beta.2
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 +2 -2
- package/api/client/Assets.d.ts +1 -5
- package/api/client/Assets.d.ts.map +1 -1
- package/api/client/Assets.js +0 -21
- package/api/client/Assets.js.map +1 -1
- package/api/client/Claims.d.ts.map +1 -1
- package/api/client/Claims.js +6 -4
- package/api/client/Claims.js.map +1 -1
- package/api/entities/Account.d.ts +6 -0
- package/api/entities/Account.d.ts.map +1 -1
- package/api/entities/Account.js +11 -0
- package/api/entities/Account.js.map +1 -1
- package/api/entities/Asset/Compliance/Requirements.d.ts +16 -2
- package/api/entities/Asset/Compliance/Requirements.d.ts.map +1 -1
- package/api/entities/Asset/Compliance/Requirements.js +20 -0
- package/api/entities/Asset/Compliance/Requirements.js.map +1 -1
- package/api/entities/Asset/CorporateActions/index.d.ts +19 -1
- package/api/entities/Asset/CorporateActions/index.d.ts.map +1 -1
- package/api/entities/Asset/CorporateActions/index.js +2 -0
- package/api/entities/Asset/CorporateActions/index.js.map +1 -1
- package/api/entities/Asset/Settlements.d.ts +20 -1
- package/api/entities/Asset/Settlements.d.ts.map +1 -1
- package/api/entities/Asset/Settlements.js +45 -0
- package/api/entities/Asset/Settlements.js.map +1 -1
- package/api/entities/Asset/index.d.ts +19 -3
- package/api/entities/Asset/index.d.ts.map +1 -1
- package/api/entities/Asset/index.js +8 -3
- package/api/entities/Asset/index.js.map +1 -1
- package/api/entities/Asset/types.d.ts +4 -0
- package/api/entities/Asset/types.d.ts.map +1 -1
- package/api/entities/Asset/types.js.map +1 -1
- package/api/entities/Identity/AssetPermissions.d.ts +9 -0
- package/api/entities/Identity/AssetPermissions.d.ts.map +1 -1
- package/api/entities/Identity/AssetPermissions.js +11 -0
- package/api/entities/Identity/AssetPermissions.js.map +1 -1
- package/api/entities/Identity/index.d.ts +13 -1
- package/api/entities/Identity/index.d.ts.map +1 -1
- package/api/entities/Identity/index.js +39 -0
- package/api/entities/Identity/index.js.map +1 -1
- package/api/entities/Instruction/index.d.ts.map +1 -1
- package/api/entities/Instruction/index.js +7 -2
- package/api/entities/Instruction/index.js.map +1 -1
- package/api/entities/Instruction/types.d.ts +1 -0
- package/api/entities/Instruction/types.d.ts.map +1 -1
- package/api/entities/Instruction/types.js.map +1 -1
- package/api/entities/MultiSig/index.d.ts.map +1 -1
- package/api/entities/MultiSig/index.js +1 -1
- package/api/entities/MultiSig/index.js.map +1 -1
- package/api/entities/Venue/index.d.ts +6 -0
- package/api/entities/Venue/index.d.ts.map +1 -1
- package/api/entities/Venue/index.js +14 -0
- package/api/entities/Venue/index.js.map +1 -1
- package/api/entities/types.d.ts +1 -3
- package/api/entities/types.d.ts.map +1 -1
- package/api/entities/types.js +0 -1
- package/api/entities/types.js.map +1 -1
- package/api/procedures/addInstruction.d.ts.map +1 -1
- package/api/procedures/addInstruction.js +25 -6
- package/api/procedures/addInstruction.js.map +1 -1
- package/api/procedures/inviteExternalAgent.d.ts.map +1 -1
- package/api/procedures/inviteExternalAgent.js +4 -2
- package/api/procedures/inviteExternalAgent.js.map +1 -1
- package/api/procedures/modifyPrimaryIssuanceAgent.d.ts +24 -0
- package/api/procedures/modifyPrimaryIssuanceAgent.d.ts.map +1 -0
- package/api/procedures/modifyPrimaryIssuanceAgent.js +88 -0
- package/api/procedures/modifyPrimaryIssuanceAgent.js.map +1 -0
- package/api/procedures/redeemTokens.d.ts +11 -4
- package/api/procedures/redeemTokens.d.ts.map +1 -1
- package/api/procedures/redeemTokens.js +46 -15
- package/api/procedures/redeemTokens.js.map +1 -1
- package/api/procedures/removeCorporateActionsAgent.d.ts +23 -0
- package/api/procedures/removeCorporateActionsAgent.d.ts.map +1 -0
- package/api/procedures/removeCorporateActionsAgent.js +61 -0
- package/api/procedures/removeCorporateActionsAgent.js.map +1 -0
- package/api/procedures/removePrimaryIssuanceAgent.d.ts +21 -0
- package/api/procedures/removePrimaryIssuanceAgent.d.ts.map +1 -0
- package/api/procedures/removePrimaryIssuanceAgent.js +59 -0
- package/api/procedures/removePrimaryIssuanceAgent.js.map +1 -0
- package/api/procedures/types.d.ts +9 -16
- package/api/procedures/types.d.ts.map +1 -1
- package/api/procedures/types.js.map +1 -1
- package/base/Context.d.ts.map +1 -1
- package/base/Context.js +3 -15
- package/base/Context.js.map +1 -1
- package/base/PolymeshTransaction.d.ts +2 -2
- package/base/PolymeshTransaction.d.ts.map +1 -1
- package/base/PolymeshTransaction.js.map +1 -1
- package/base/PolymeshTransactionBase.d.ts +3 -25
- package/base/PolymeshTransactionBase.d.ts.map +1 -1
- package/base/PolymeshTransactionBase.js +8 -37
- package/base/PolymeshTransactionBase.js.map +1 -1
- package/base/PolymeshTransactionBatch.d.ts +2 -2
- package/base/PolymeshTransactionBatch.d.ts.map +1 -1
- package/base/PolymeshTransactionBatch.js +1 -2
- package/base/PolymeshTransactionBatch.js.map +1 -1
- package/base/Procedure.d.ts.map +1 -1
- package/base/Procedure.js +0 -4
- package/base/Procedure.js.map +1 -1
- package/generated/types.d.ts +8 -3
- package/generated/types.d.ts.map +1 -1
- package/generated/types.js +5 -0
- package/generated/types.js.map +1 -1
- package/internal.d.ts +3 -3
- package/internal.d.ts.map +1 -1
- package/internal.js +8 -8
- package/internal.js.map +1 -1
- package/npm-package/polymeshassociation-polymesh-sdk-18.0.0-beta.2.tgz +0 -0
- package/package.json +4 -4
- package/polkadot/augment-api-consts.d.ts +0 -1
- package/polkadot/augment-api-consts.d.ts.map +1 -1
- package/polkadot/augment-api-errors.d.ts +20 -20
- package/polkadot/augment-api-errors.d.ts.map +1 -1
- package/polkadot/augment-api-events.d.ts +34 -5
- package/polkadot/augment-api-events.d.ts.map +1 -1
- package/polkadot/augment-api-query.d.ts +44 -3
- package/polkadot/augment-api-query.d.ts.map +1 -1
- package/polkadot/augment-api-tx.d.ts +284 -147
- package/polkadot/augment-api-tx.d.ts.map +1 -1
- package/polkadot/augment-types.d.ts +3 -12
- package/polkadot/augment-types.d.ts.map +1 -1
- package/polkadot/lookup.d.ts +397 -375
- package/polkadot/lookup.d.ts.map +1 -1
- package/polkadot/lookup.js +423 -414
- package/polkadot/lookup.js.map +1 -1
- package/polkadot/polymesh/definitions.d.ts +15 -41
- package/polkadot/polymesh/definitions.d.ts.map +1 -1
- package/polkadot/polymesh/definitions.js +16 -42
- package/polkadot/polymesh/definitions.js.map +1 -1
- package/polkadot/polymesh/types.d.ts +24 -60
- package/polkadot/polymesh/types.d.ts.map +1 -1
- package/polkadot/registry.d.ts +6 -11
- package/polkadot/registry.d.ts.map +1 -1
- package/polkadot/schema.d.ts +15 -41
- package/polkadot/schema.d.ts.map +1 -1
- package/polkadot/schema.js +16 -42
- package/polkadot/schema.js.map +1 -1
- package/polkadot/types-lookup.d.ts +439 -401
- package/polkadot/types-lookup.d.ts.map +1 -1
- package/types/index.d.ts +4 -26
- package/types/index.d.ts.map +1 -1
- package/types/index.js +4 -0
- package/types/index.js.map +1 -1
- package/types/internal.d.ts +4 -13
- package/types/internal.d.ts.map +1 -1
- package/types/internal.js.map +1 -1
- package/types/utils/index.d.ts +1 -18
- package/types/utils/index.d.ts.map +1 -1
- package/types/utils/index.js.map +1 -1
- package/utils/constants.d.ts +2 -2
- package/utils/constants.js +2 -2
- package/utils/conversion.d.ts +10 -22
- package/utils/conversion.d.ts.map +1 -1
- package/utils/conversion.js +38 -131
- package/utils/conversion.js.map +1 -1
- package/utils/internal.d.ts +5 -11
- package/utils/internal.d.ts.map +1 -1
- package/utils/internal.js +10 -27
- package/utils/internal.js.map +1 -1
- package/api/entities/Asset/Metadata.d.ts +0 -33
- package/api/entities/Asset/Metadata.d.ts.map +0 -1
- package/api/entities/Asset/Metadata.js +0 -76
- package/api/entities/Asset/Metadata.js.map +0 -1
- package/api/entities/MetadataEntry/index.d.ts +0 -65
- package/api/entities/MetadataEntry/index.d.ts.map +0 -1
- package/api/entities/MetadataEntry/index.js +0 -109
- package/api/entities/MetadataEntry/index.js.map +0 -1
- package/api/entities/MetadataEntry/types.d.ts +0 -46
- package/api/entities/MetadataEntry/types.d.ts.map +0 -1
- package/api/entities/MetadataEntry/types.js +0 -15
- package/api/entities/MetadataEntry/types.js.map +0 -1
- package/api/procedures/registerMetadata.d.ts +0 -27
- package/api/procedures/registerMetadata.d.ts.map +0 -1
- package/api/procedures/registerMetadata.js +0 -107
- package/api/procedures/registerMetadata.js.map +0 -1
- package/api/procedures/setMetadata.d.ts +0 -22
- package/api/procedures/setMetadata.d.ts.map +0 -1
- package/api/procedures/setMetadata.js +0 -117
- package/api/procedures/setMetadata.js.map +0 -1
- package/npm-package/polymeshassociation-polymesh-sdk-18.0.0-alpha.4.tgz +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ApiTypes } from '@polkadot/api-base/types';
|
|
2
|
-
import type { BTreeSet, Bytes, Compact, Option, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
2
|
+
import type { BTreeSet, Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
3
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
4
4
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
|
|
5
|
-
import type {
|
|
5
|
+
import type { ConfidentialIdentityV2ClaimProofsScopeClaimProof, FrameSupportScheduleMaybeHashed, PalletAssetCheckpointScheduleSpec, PalletAssetClassicTickerImport, PalletAssetTickerRegistrationConfig, PalletBridgeBridgeTx, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCaKind, PalletCorporateActionsInitiateCorporateActionArgs, PalletCorporateActionsRecordDateSpec, PalletCorporateActionsTargetIdentities, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletPipsSnapshotResult, PalletPortfolioMovePortfolioItem, PalletRewardsItnRewardStatus, PalletSettlementInstructionMemo, PalletSettlementLeg, PalletSettlementReceiptDetails, PalletSettlementSettlementType, PalletSettlementVenueType, PalletStakingCompactAssignments, PalletStakingElectionSize, PalletStakingRewardDestination, PalletStakingSlashingSwitch, PalletStakingValidatorPrefs, PalletStoPriceTier, PalletUtilityUniqueCall, PolymeshCommonUtilitiesBalancesMemo, PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuth, PolymeshCommonUtilitiesIdentitySecondaryKeyWithAuthV1, PolymeshCommonUtilitiesMaybeBlock, PolymeshCommonUtilitiesProtocolFeeProtocolOp, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAuthorizationAuthorizationData, PolymeshPrimitivesBeneficiary, PolymeshPrimitivesCddIdInvestorUid, PolymeshPrimitivesComplianceManagerComplianceRequirement, PolymeshPrimitivesCondition, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesEthereumEcdsaSignature, PolymeshPrimitivesIdentityClaimClaim, PolymeshPrimitivesIdentityClaimClaimType, PolymeshPrimitivesIdentityClaimScope, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesIdentityIdPortfolioKind, PolymeshPrimitivesPosRatio, PolymeshPrimitivesSecondaryKey, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSecondaryKeySignatory, PolymeshPrimitivesStatisticsAssetScope, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesStatisticsStatUpdate, PolymeshPrimitivesSubsetSubsetRestrictionPalletPermissions, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, PolymeshRuntimeDevelopRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpRuntimeHeader, SpRuntimeMultiSignature, SpSessionMembershipProof } from "./types-lookup.ts";
|
|
6
6
|
declare module '@polkadot/api-base/types/submittable' {
|
|
7
7
|
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
|
8
8
|
asset: {
|
|
@@ -253,6 +253,34 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
253
253
|
PolymeshPrimitivesTicker,
|
|
254
254
|
u128
|
|
255
255
|
]>;
|
|
256
|
+
/**
|
|
257
|
+
* Redeems existing tokens by reducing the balance of the caller's portfolio and the total supply of the token
|
|
258
|
+
*
|
|
259
|
+
* # Arguments
|
|
260
|
+
* * `origin` is a signer that has permissions to act as an agent of `ticker`.
|
|
261
|
+
* * `ticker` Ticker of the token.
|
|
262
|
+
* * `value` Amount of tokens to redeem.
|
|
263
|
+
* * `portfolio` From whom portfolio tokens gets transferred.
|
|
264
|
+
*
|
|
265
|
+
* # Errors
|
|
266
|
+
* - `Unauthorized` If called by someone without the appropriate external agent permissions
|
|
267
|
+
* - `InvalidGranularity` If the amount is not divisible by 10^6 for non-divisible tokens
|
|
268
|
+
* - `InsufficientPortfolioBalance` If the caller's `portfolio` doesn't have enough free balance
|
|
269
|
+
* - `PortfolioDoesNotExist` If the portfolio doesn't exist.
|
|
270
|
+
*
|
|
271
|
+
* # Permissions
|
|
272
|
+
* * Asset
|
|
273
|
+
* * Portfolio
|
|
274
|
+
**/
|
|
275
|
+
redeemFromPortfolio: AugmentedSubmittable<(ticker: PolymeshPrimitivesTicker | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, portfolio: PolymeshPrimitivesIdentityIdPortfolioKind | {
|
|
276
|
+
Default: any;
|
|
277
|
+
} | {
|
|
278
|
+
User: any;
|
|
279
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
280
|
+
PolymeshPrimitivesTicker,
|
|
281
|
+
u128,
|
|
282
|
+
PolymeshPrimitivesIdentityIdPortfolioKind
|
|
283
|
+
]>;
|
|
256
284
|
/**
|
|
257
285
|
* Registers and set local asset metadata.
|
|
258
286
|
*
|
|
@@ -1556,6 +1584,125 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
1556
1584
|
PolymeshPrimitivesTicker
|
|
1557
1585
|
]>;
|
|
1558
1586
|
};
|
|
1587
|
+
contracts: {
|
|
1588
|
+
/**
|
|
1589
|
+
* Makes a call to an account, optionally transferring some balance.
|
|
1590
|
+
*
|
|
1591
|
+
* # Parameters
|
|
1592
|
+
*
|
|
1593
|
+
* * `dest`: Address of the contract to call.
|
|
1594
|
+
* * `value`: The balance to transfer from the `origin` to `dest`.
|
|
1595
|
+
* * `gas_limit`: The gas limit enforced when executing the constructor.
|
|
1596
|
+
* * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
|
|
1597
|
+
* caller to pay for the storage consumed.
|
|
1598
|
+
* * `data`: The input data to pass to the contract.
|
|
1599
|
+
*
|
|
1600
|
+
* * If the account is a smart-contract account, the associated code will be
|
|
1601
|
+
* executed and any value will be transferred.
|
|
1602
|
+
* * If the account is a regular account, any value will be transferred.
|
|
1603
|
+
* * If no account exists and the call value is not less than `existential_deposit`,
|
|
1604
|
+
* a regular account will be created and any value will be transferred.
|
|
1605
|
+
**/
|
|
1606
|
+
call: AugmentedSubmittable<(dest: MultiAddress | {
|
|
1607
|
+
Id: any;
|
|
1608
|
+
} | {
|
|
1609
|
+
Index: any;
|
|
1610
|
+
} | {
|
|
1611
|
+
Raw: any;
|
|
1612
|
+
} | {
|
|
1613
|
+
Address32: any;
|
|
1614
|
+
} | {
|
|
1615
|
+
Address20: any;
|
|
1616
|
+
} | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1617
|
+
MultiAddress,
|
|
1618
|
+
Compact<u128>,
|
|
1619
|
+
Compact<u64>,
|
|
1620
|
+
Option<Compact<u128>>,
|
|
1621
|
+
Bytes
|
|
1622
|
+
]>;
|
|
1623
|
+
/**
|
|
1624
|
+
* Instantiates a contract from a previously deployed wasm binary.
|
|
1625
|
+
*
|
|
1626
|
+
* This function is identical to [`Self::instantiate_with_code`] but without the
|
|
1627
|
+
* code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
|
|
1628
|
+
* must be supplied.
|
|
1629
|
+
**/
|
|
1630
|
+
instantiate: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1631
|
+
Compact<u128>,
|
|
1632
|
+
Compact<u64>,
|
|
1633
|
+
Option<Compact<u128>>,
|
|
1634
|
+
H256,
|
|
1635
|
+
Bytes,
|
|
1636
|
+
Bytes
|
|
1637
|
+
]>;
|
|
1638
|
+
/**
|
|
1639
|
+
* Instantiates a new contract from the supplied `code` optionally transferring
|
|
1640
|
+
* some balance.
|
|
1641
|
+
*
|
|
1642
|
+
* This dispatchable has the same effect as calling [`Self::upload_code`] +
|
|
1643
|
+
* [`Self::instantiate`]. Bundling them together provides efficiency gains. Please
|
|
1644
|
+
* also check the documentation of [`Self::upload_code`].
|
|
1645
|
+
*
|
|
1646
|
+
* # Parameters
|
|
1647
|
+
*
|
|
1648
|
+
* * `value`: The balance to transfer from the `origin` to the newly created contract.
|
|
1649
|
+
* * `gas_limit`: The gas limit enforced when executing the constructor.
|
|
1650
|
+
* * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
|
|
1651
|
+
* from the caller to pay for the storage consumed.
|
|
1652
|
+
* * `code`: The contract code to deploy in raw bytes.
|
|
1653
|
+
* * `data`: The input data to pass to the contract constructor.
|
|
1654
|
+
* * `salt`: Used for the address derivation. See [`Pallet::contract_address`].
|
|
1655
|
+
*
|
|
1656
|
+
* Instantiation is executed as follows:
|
|
1657
|
+
*
|
|
1658
|
+
* - The supplied `code` is instrumented, deployed, and a `code_hash` is created for that
|
|
1659
|
+
* code.
|
|
1660
|
+
* - If the `code_hash` already exists on the chain the underlying `code` will be shared.
|
|
1661
|
+
* - The destination address is computed based on the sender, code_hash and the salt.
|
|
1662
|
+
* - The smart-contract account is created at the computed address.
|
|
1663
|
+
* - The `value` is transferred to the new account.
|
|
1664
|
+
* - The `deploy` function is executed in the context of the newly-created account.
|
|
1665
|
+
**/
|
|
1666
|
+
instantiateWithCode: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array, gasLimit: Compact<u64> | AnyNumber | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1667
|
+
Compact<u128>,
|
|
1668
|
+
Compact<u64>,
|
|
1669
|
+
Option<Compact<u128>>,
|
|
1670
|
+
Bytes,
|
|
1671
|
+
Bytes,
|
|
1672
|
+
Bytes
|
|
1673
|
+
]>;
|
|
1674
|
+
/**
|
|
1675
|
+
* Remove the code stored under `code_hash` and refund the deposit to its owner.
|
|
1676
|
+
*
|
|
1677
|
+
* A code can only be removed by its original uploader (its owner) and only if it is
|
|
1678
|
+
* not used by any contract.
|
|
1679
|
+
**/
|
|
1680
|
+
removeCode: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1681
|
+
H256
|
|
1682
|
+
]>;
|
|
1683
|
+
/**
|
|
1684
|
+
* Upload new `code` without instantiating a contract from it.
|
|
1685
|
+
*
|
|
1686
|
+
* If the code does not already exist a deposit is reserved from the caller
|
|
1687
|
+
* and unreserved only when [`Self::remove_code`] is called. The size of the reserve
|
|
1688
|
+
* depends on the instrumented size of the the supplied `code`.
|
|
1689
|
+
*
|
|
1690
|
+
* If the code already exists in storage it will still return `Ok` and upgrades
|
|
1691
|
+
* the in storage version to the current
|
|
1692
|
+
* [`InstructionWeights::version`](InstructionWeights).
|
|
1693
|
+
*
|
|
1694
|
+
* # Note
|
|
1695
|
+
*
|
|
1696
|
+
* Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
|
|
1697
|
+
* To avoid this situation a constructor could employ access control so that it can
|
|
1698
|
+
* only be instantiated by permissioned entities. The same is true when uploading
|
|
1699
|
+
* through [`Self::instantiate_with_code`].
|
|
1700
|
+
**/
|
|
1701
|
+
uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<Compact<u128>> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
1702
|
+
Bytes,
|
|
1703
|
+
Option<Compact<u128>>
|
|
1704
|
+
]>;
|
|
1705
|
+
};
|
|
1559
1706
|
corporateAction: {
|
|
1560
1707
|
/**
|
|
1561
1708
|
* Changes the record date of the CA identified by `ca_id`.
|
|
@@ -2058,14 +2205,11 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2058
2205
|
These: any;
|
|
2059
2206
|
} | {
|
|
2060
2207
|
Except: any;
|
|
2061
|
-
} | string | Uint8Array, target:
|
|
2062
|
-
Identity: any;
|
|
2063
|
-
} | {
|
|
2064
|
-
Account: any;
|
|
2065
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2208
|
+
} | string | Uint8Array, target: PolymeshPrimitivesIdentityId | string | Uint8Array, expiry: Option<u64> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2066
2209
|
PolymeshPrimitivesTicker,
|
|
2067
2210
|
PolymeshPrimitivesSubsetSubsetRestrictionPalletPermissions,
|
|
2068
|
-
|
|
2211
|
+
PolymeshPrimitivesIdentityId,
|
|
2212
|
+
Option<u64>
|
|
2069
2213
|
]>;
|
|
2070
2214
|
/**
|
|
2071
2215
|
* Remove the given `agent` from `ticker`.
|
|
@@ -2251,6 +2395,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2251
2395
|
NoData: any;
|
|
2252
2396
|
} | {
|
|
2253
2397
|
InvestorUniquenessV2: any;
|
|
2398
|
+
} | {
|
|
2399
|
+
Custom: any;
|
|
2254
2400
|
} | string | Uint8Array, expiry: Option<u64> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2255
2401
|
PolymeshPrimitivesIdentityId,
|
|
2256
2402
|
PolymeshPrimitivesIdentityClaimClaim,
|
|
@@ -2302,13 +2448,12 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2302
2448
|
NoData: any;
|
|
2303
2449
|
} | {
|
|
2304
2450
|
InvestorUniquenessV2: any;
|
|
2305
|
-
} |
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
} | string | Uint8Array, expiry: Option<u64> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2451
|
+
} | {
|
|
2452
|
+
Custom: any;
|
|
2453
|
+
} | string | Uint8Array, proof: U8aFixed | string | Uint8Array, expiry: Option<u64> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2309
2454
|
PolymeshPrimitivesIdentityId,
|
|
2310
2455
|
PolymeshPrimitivesIdentityClaimClaim,
|
|
2311
|
-
|
|
2456
|
+
U8aFixed,
|
|
2312
2457
|
Option<u64>
|
|
2313
2458
|
]>;
|
|
2314
2459
|
addInvestorUniquenessClaimV2: AugmentedSubmittable<(target: PolymeshPrimitivesIdentityId | string | Uint8Array, scope: PolymeshPrimitivesIdentityClaimScope | {
|
|
@@ -2341,7 +2486,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2341
2486
|
NoData: any;
|
|
2342
2487
|
} | {
|
|
2343
2488
|
InvestorUniquenessV2: any;
|
|
2344
|
-
} |
|
|
2489
|
+
} | {
|
|
2490
|
+
Custom: any;
|
|
2491
|
+
} | string | Uint8Array, proof: ConfidentialIdentityV2ClaimProofsScopeClaimProof | {
|
|
2345
2492
|
proofScopeIdWellformed?: any;
|
|
2346
2493
|
proofScopeIdCddIdMatch?: any;
|
|
2347
2494
|
scopeId?: any;
|
|
@@ -2349,7 +2496,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2349
2496
|
PolymeshPrimitivesIdentityId,
|
|
2350
2497
|
PolymeshPrimitivesIdentityClaimScope,
|
|
2351
2498
|
PolymeshPrimitivesIdentityClaimClaim,
|
|
2352
|
-
|
|
2499
|
+
ConfidentialIdentityV2ClaimProofsScopeClaimProof,
|
|
2353
2500
|
Option<u64>
|
|
2354
2501
|
]>;
|
|
2355
2502
|
/**
|
|
@@ -2459,6 +2606,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2459
2606
|
**/
|
|
2460
2607
|
placeholderLegacySetPermissionToSigner: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, [
|
|
2461
2608
|
]>;
|
|
2609
|
+
/**
|
|
2610
|
+
* Register custom claim type.
|
|
2611
|
+
*
|
|
2612
|
+
* # Errors
|
|
2613
|
+
* * `CustomClaimTypeAlreadyExists` The type that is being registered already exists.
|
|
2614
|
+
* * `CounterOverflow` CustomClaimTypeId has overflowed.
|
|
2615
|
+
* * `TooLong` The type being registered is too lang.
|
|
2616
|
+
**/
|
|
2617
|
+
registerCustomClaimType: AugmentedSubmittable<(ty: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2618
|
+
Bytes
|
|
2619
|
+
]>;
|
|
2462
2620
|
/**
|
|
2463
2621
|
* Removes an authorization.
|
|
2464
2622
|
* _auth_issuer_pays determines whether the issuer of the authorisation pays the transaction fee
|
|
@@ -2519,6 +2677,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2519
2677
|
NoData: any;
|
|
2520
2678
|
} | {
|
|
2521
2679
|
InvestorUniquenessV2: any;
|
|
2680
|
+
} | {
|
|
2681
|
+
Custom: any;
|
|
2522
2682
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2523
2683
|
PolymeshPrimitivesIdentityId,
|
|
2524
2684
|
PolymeshPrimitivesIdentityClaimClaim
|
|
@@ -2533,7 +2693,33 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2533
2693
|
* - `TargetHasNonZeroBalanceAtScopeId` when you try to revoke a `InvestorUniqueness*`
|
|
2534
2694
|
* claim, and `target` identity still have any balance on the given `scope`.
|
|
2535
2695
|
**/
|
|
2536
|
-
revokeClaimByIndex: AugmentedSubmittable<(target: PolymeshPrimitivesIdentityId | string | Uint8Array, claimType: PolymeshPrimitivesIdentityClaimClaimType |
|
|
2696
|
+
revokeClaimByIndex: AugmentedSubmittable<(target: PolymeshPrimitivesIdentityId | string | Uint8Array, claimType: PolymeshPrimitivesIdentityClaimClaimType | {
|
|
2697
|
+
Accredited: any;
|
|
2698
|
+
} | {
|
|
2699
|
+
Affiliate: any;
|
|
2700
|
+
} | {
|
|
2701
|
+
BuyLockup: any;
|
|
2702
|
+
} | {
|
|
2703
|
+
SellLockup: any;
|
|
2704
|
+
} | {
|
|
2705
|
+
CustomerDueDiligence: any;
|
|
2706
|
+
} | {
|
|
2707
|
+
KnowYourCustomer: any;
|
|
2708
|
+
} | {
|
|
2709
|
+
Jurisdiction: any;
|
|
2710
|
+
} | {
|
|
2711
|
+
Exempted: any;
|
|
2712
|
+
} | {
|
|
2713
|
+
Blocked: any;
|
|
2714
|
+
} | {
|
|
2715
|
+
InvestorUniqueness: any;
|
|
2716
|
+
} | {
|
|
2717
|
+
NoType: any;
|
|
2718
|
+
} | {
|
|
2719
|
+
InvestorUniquenessV2: any;
|
|
2720
|
+
} | {
|
|
2721
|
+
Custom: any;
|
|
2722
|
+
} | string | Uint8Array, scope: Option<PolymeshPrimitivesIdentityClaimScope> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2537
2723
|
PolymeshPrimitivesIdentityId,
|
|
2538
2724
|
PolymeshPrimitivesIdentityClaimClaimType,
|
|
2539
2725
|
Option<PolymeshPrimitivesIdentityClaimScope>
|
|
@@ -3286,106 +3472,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3286
3472
|
]>;
|
|
3287
3473
|
};
|
|
3288
3474
|
polymeshContracts: {
|
|
3289
|
-
/**
|
|
3290
|
-
* Calls the `contract` through its address with the given `data`.
|
|
3291
|
-
*
|
|
3292
|
-
* The contract is endowed with `value` POLYX,
|
|
3293
|
-
* but note that this is distinct from gas fees which are limited with `gas_limit`.
|
|
3294
|
-
*
|
|
3295
|
-
* The contract may optionally call back into the runtime,
|
|
3296
|
-
* executing extrinsics such as e.g., `create_asset`.
|
|
3297
|
-
* During such runtime calls, the current identity will be the one that instantiate the `contract`.
|
|
3298
|
-
* This restriction exists for security purposes.
|
|
3299
|
-
*
|
|
3300
|
-
* # Arguments
|
|
3301
|
-
* - `contract` to call.
|
|
3302
|
-
* - `value` in POLYX to transfer to the contract.
|
|
3303
|
-
* - `gas_limit` that limits how much gas execution can consume, erroring above it.
|
|
3304
|
-
* - `storage_deposit_limit` The maximum amount of balance that can be charged from the
|
|
3305
|
-
* caller to pay for the storage consumed.
|
|
3306
|
-
* - `data` The input data to pass to the contract.
|
|
3307
|
-
*
|
|
3308
|
-
* # Errors
|
|
3309
|
-
* - All the errors in `pallet_contracts::Call::call` can also happen here.
|
|
3310
|
-
* - `ContractNotFound` if `contract` doesn't exist or isn't a contract.
|
|
3311
|
-
* - CDD/Permissions are checked, unlike in `pallet_contracts`.
|
|
3312
|
-
**/
|
|
3313
|
-
call: AugmentedSubmittable<(contract: AccountId32 | string | Uint8Array, value: u128 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<u128> | null | object | string | Uint8Array, data: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3314
|
-
AccountId32,
|
|
3315
|
-
u128,
|
|
3316
|
-
u64,
|
|
3317
|
-
Option<u128>,
|
|
3318
|
-
Bytes
|
|
3319
|
-
]>;
|
|
3320
|
-
/**
|
|
3321
|
-
* Instantiates a smart contract defining using the given `code_hash` and `salt`.
|
|
3322
|
-
*
|
|
3323
|
-
* Unlike `instantiate_with_code`,
|
|
3324
|
-
* this assumes that at least one contract with the same WASM code has already been uploaded.
|
|
3325
|
-
*
|
|
3326
|
-
* The contract will be attached as a secondary key,
|
|
3327
|
-
* with empty permissions, to `origin`'s identity.
|
|
3328
|
-
*
|
|
3329
|
-
* The contract is transferred `endowment` amount of POLYX.
|
|
3330
|
-
* This is distinct from the `gas_limit`,
|
|
3331
|
-
* which controls how much gas the deployment code may at most consume.
|
|
3332
|
-
*
|
|
3333
|
-
* # Arguments
|
|
3334
|
-
* - `endowment` amount of POLYX to transfer to the contract.
|
|
3335
|
-
* - `gas_limit` for how much gas the `deploy` code in the contract may at most consume.
|
|
3336
|
-
* - `storage_deposit_limit` The maximum amount of balance that can be charged/reserved
|
|
3337
|
-
* from the caller to pay for the storage consumed.
|
|
3338
|
-
* - `code_hash` of an already uploaded WASM binary.
|
|
3339
|
-
* - `data` The input data to pass to the contract constructor.
|
|
3340
|
-
* - `salt` used for contract address derivation.
|
|
3341
|
-
* By varying this, the same `code` can be used under the same identity.
|
|
3342
|
-
*
|
|
3343
|
-
* # Errors
|
|
3344
|
-
* - All the errors in `pallet_contracts::Call::instantiate` can also happen here.
|
|
3345
|
-
* - CDD/Permissions are checked, unlike in `pallet_contracts`.
|
|
3346
|
-
* - Errors that arise when adding a new secondary key can also occur here.
|
|
3347
|
-
**/
|
|
3348
|
-
instantiate: AugmentedSubmittable<(endowment: u128 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<u128> | null | object | string | Uint8Array, codeHash: H256 | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3349
|
-
u128,
|
|
3350
|
-
u64,
|
|
3351
|
-
Option<u128>,
|
|
3352
|
-
H256,
|
|
3353
|
-
Bytes,
|
|
3354
|
-
Bytes
|
|
3355
|
-
]>;
|
|
3356
|
-
/**
|
|
3357
|
-
* Instantiates a smart contract defining it with the given `code` and `salt`.
|
|
3358
|
-
*
|
|
3359
|
-
* The contract will be attached as a secondary key,
|
|
3360
|
-
* with empty permissions, to `origin`'s identity.
|
|
3361
|
-
*
|
|
3362
|
-
* The contract is transferred `endowment` amount of POLYX.
|
|
3363
|
-
* This is distinct from the `gas_limit`,
|
|
3364
|
-
* which controls how much gas the deployment code may at most consume.
|
|
3365
|
-
*
|
|
3366
|
-
* # Arguments
|
|
3367
|
-
* - `endowment` amount of POLYX to transfer to the contract.
|
|
3368
|
-
* - `gas_limit` for how much gas the `deploy` code in the contract may at most consume.
|
|
3369
|
-
* - `storage_deposit_limit` The maximum amount of balance that can be charged/reserved
|
|
3370
|
-
* from the caller to pay for the storage consumed.
|
|
3371
|
-
* - `code` with the WASM binary defining the smart contract.
|
|
3372
|
-
* - `data` The input data to pass to the contract constructor.
|
|
3373
|
-
* - `salt` used for contract address derivation.
|
|
3374
|
-
* By varying this, the same `code` can be used under the same identity.
|
|
3375
|
-
*
|
|
3376
|
-
* # Errors
|
|
3377
|
-
* - All the errors in `pallet_contracts::Call::instantiate_with_code` can also happen here.
|
|
3378
|
-
* - CDD/Permissions are checked, unlike in `pallet_contracts`.
|
|
3379
|
-
* - Errors that arise when adding a new secondary key can also occur here.
|
|
3380
|
-
**/
|
|
3381
|
-
instantiateWithCode: AugmentedSubmittable<(endowment: u128 | AnyNumber | Uint8Array, gasLimit: u64 | AnyNumber | Uint8Array, storageDepositLimit: Option<u128> | null | object | string | Uint8Array, code: Bytes | string | Uint8Array, data: Bytes | string | Uint8Array, salt: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3382
|
-
u128,
|
|
3383
|
-
u64,
|
|
3384
|
-
Option<u128>,
|
|
3385
|
-
Bytes,
|
|
3386
|
-
Bytes,
|
|
3387
|
-
Bytes
|
|
3388
|
-
]>;
|
|
3389
3475
|
/**
|
|
3390
3476
|
* Instantiates a smart contract defining it with the given `code` and `salt`.
|
|
3391
3477
|
*
|
|
@@ -3467,37 +3553,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3467
3553
|
Bytes,
|
|
3468
3554
|
PolymeshPrimitivesSecondaryKeyPermissions
|
|
3469
3555
|
]>;
|
|
3470
|
-
/**
|
|
3471
|
-
* Remove the code stored under `code_hash` and refund the deposit to its owner.
|
|
3472
|
-
*
|
|
3473
|
-
* A code can only be removed by its original uploader (its owner) and only if it is
|
|
3474
|
-
* not used by any contract.
|
|
3475
|
-
**/
|
|
3476
|
-
removeCode: AugmentedSubmittable<(codeHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3477
|
-
H256
|
|
3478
|
-
]>;
|
|
3479
|
-
/**
|
|
3480
|
-
* Upload new `code` without instantiating a contract from it.
|
|
3481
|
-
*
|
|
3482
|
-
* If the code does not already exist a deposit is reserved from the caller
|
|
3483
|
-
* and unreserved only when [`Self::remove_code`] is called. The size of the reserve
|
|
3484
|
-
* depends on the instrumented size of the the supplied `code`.
|
|
3485
|
-
*
|
|
3486
|
-
* If the code already exists in storage it will still return `Ok` and upgrades
|
|
3487
|
-
* the in storage version to the current
|
|
3488
|
-
* [`InstructionWeights::version`](InstructionWeights).
|
|
3489
|
-
*
|
|
3490
|
-
* # Note
|
|
3491
|
-
*
|
|
3492
|
-
* Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
|
|
3493
|
-
* To avoid this situation a constructor could employ access control so that it can
|
|
3494
|
-
* only be instantiated by permissioned entities. The same is true when uploading
|
|
3495
|
-
* through [`Self::instantiate_with_code`].
|
|
3496
|
-
**/
|
|
3497
|
-
uploadCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array, storageDepositLimit: Option<u128> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3498
|
-
Bytes,
|
|
3499
|
-
Option<u128>
|
|
3500
|
-
]>;
|
|
3501
3556
|
};
|
|
3502
3557
|
portfolio: {
|
|
3503
3558
|
acceptPortfolioCustody: AugmentedSubmittable<(authId: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
@@ -3902,6 +3957,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3902
3957
|
};
|
|
3903
3958
|
settlement: {
|
|
3904
3959
|
/**
|
|
3960
|
+
* Deprecated. Use `add_and_affirm_instruction_with_memo` instead.
|
|
3905
3961
|
* Adds and affirms a new instruction.
|
|
3906
3962
|
*
|
|
3907
3963
|
* # Arguments
|
|
@@ -3937,6 +3993,44 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3937
3993
|
Vec<PolymeshPrimitivesIdentityIdPortfolioId>
|
|
3938
3994
|
]>;
|
|
3939
3995
|
/**
|
|
3996
|
+
* Adds and affirms a new instruction.
|
|
3997
|
+
*
|
|
3998
|
+
* # Arguments
|
|
3999
|
+
* * `venue_id` - ID of the venue this instruction belongs to.
|
|
4000
|
+
* * `settlement_type` - Defines if the instruction should be settled
|
|
4001
|
+
* in the next block after receiving all affirmations or waiting till a specific block.
|
|
4002
|
+
* * `trade_date` - Optional date from which people can interact with this instruction.
|
|
4003
|
+
* * `value_date` - Optional date after which the instruction should be settled (not enforced)
|
|
4004
|
+
* * `legs` - Legs included in this instruction.
|
|
4005
|
+
* * `portfolios` - Portfolios that the sender controls and wants to use in this affirmations.
|
|
4006
|
+
* * `memo` - Memo field for this instruction.
|
|
4007
|
+
*
|
|
4008
|
+
* # Permissions
|
|
4009
|
+
* * Portfolio
|
|
4010
|
+
**/
|
|
4011
|
+
addAndAffirmInstructionWithMemo: AugmentedSubmittable<(venueId: u64 | AnyNumber | Uint8Array, settlementType: PalletSettlementSettlementType | {
|
|
4012
|
+
SettleOnAffirmation: any;
|
|
4013
|
+
} | {
|
|
4014
|
+
SettleOnBlock: any;
|
|
4015
|
+
} | string | Uint8Array, tradeDate: Option<u64> | null | object | string | Uint8Array, valueDate: Option<u64> | null | object | string | Uint8Array, legs: Vec<PalletSettlementLeg> | (PalletSettlementLeg | {
|
|
4016
|
+
from?: any;
|
|
4017
|
+
to?: any;
|
|
4018
|
+
asset?: any;
|
|
4019
|
+
amount?: any;
|
|
4020
|
+
} | string | Uint8Array)[], portfolios: Vec<PolymeshPrimitivesIdentityIdPortfolioId> | (PolymeshPrimitivesIdentityIdPortfolioId | {
|
|
4021
|
+
did?: any;
|
|
4022
|
+
kind?: any;
|
|
4023
|
+
} | string | Uint8Array)[], instructionMemo: Option<PalletSettlementInstructionMemo> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4024
|
+
u64,
|
|
4025
|
+
PalletSettlementSettlementType,
|
|
4026
|
+
Option<u64>,
|
|
4027
|
+
Option<u64>,
|
|
4028
|
+
Vec<PalletSettlementLeg>,
|
|
4029
|
+
Vec<PolymeshPrimitivesIdentityIdPortfolioId>,
|
|
4030
|
+
Option<PalletSettlementInstructionMemo>
|
|
4031
|
+
]>;
|
|
4032
|
+
/**
|
|
4033
|
+
* Deprecated. Use `add_instruction_with_memo` instead.
|
|
3940
4034
|
* Adds a new instruction.
|
|
3941
4035
|
*
|
|
3942
4036
|
* # Arguments
|
|
@@ -3966,6 +4060,38 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3966
4060
|
Option<u64>,
|
|
3967
4061
|
Vec<PalletSettlementLeg>
|
|
3968
4062
|
]>;
|
|
4063
|
+
/**
|
|
4064
|
+
* Adds a new instruction with memo.
|
|
4065
|
+
*
|
|
4066
|
+
* # Arguments
|
|
4067
|
+
* * `venue_id` - ID of the venue this instruction belongs to.
|
|
4068
|
+
* * `settlement_type` - Defines if the instruction should be settled
|
|
4069
|
+
* in the next block after receiving all affirmations or waiting till a specific block.
|
|
4070
|
+
* * `trade_date` - Optional date from which people can interact with this instruction.
|
|
4071
|
+
* * `value_date` - Optional date after which the instruction should be settled (not enforced)
|
|
4072
|
+
* * `legs` - Legs included in this instruction.
|
|
4073
|
+
* * `memo` - Memo field for this instruction.
|
|
4074
|
+
*
|
|
4075
|
+
* # Weight
|
|
4076
|
+
* `950_000_000 + 1_000_000 * legs.len()`
|
|
4077
|
+
**/
|
|
4078
|
+
addInstructionWithMemo: AugmentedSubmittable<(venueId: u64 | AnyNumber | Uint8Array, settlementType: PalletSettlementSettlementType | {
|
|
4079
|
+
SettleOnAffirmation: any;
|
|
4080
|
+
} | {
|
|
4081
|
+
SettleOnBlock: any;
|
|
4082
|
+
} | string | Uint8Array, tradeDate: Option<u64> | null | object | string | Uint8Array, valueDate: Option<u64> | null | object | string | Uint8Array, legs: Vec<PalletSettlementLeg> | (PalletSettlementLeg | {
|
|
4083
|
+
from?: any;
|
|
4084
|
+
to?: any;
|
|
4085
|
+
asset?: any;
|
|
4086
|
+
amount?: any;
|
|
4087
|
+
} | string | Uint8Array)[], instructionMemo: Option<PalletSettlementInstructionMemo> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4088
|
+
u64,
|
|
4089
|
+
PalletSettlementSettlementType,
|
|
4090
|
+
Option<u64>,
|
|
4091
|
+
Option<u64>,
|
|
4092
|
+
Vec<PalletSettlementLeg>,
|
|
4093
|
+
Option<PalletSettlementInstructionMemo>
|
|
4094
|
+
]>;
|
|
3969
4095
|
/**
|
|
3970
4096
|
* Provide affirmation to an existing instruction.
|
|
3971
4097
|
*
|
|
@@ -4165,6 +4291,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4165
4291
|
u64,
|
|
4166
4292
|
Bytes
|
|
4167
4293
|
]>;
|
|
4294
|
+
/**
|
|
4295
|
+
* Edit a venue's signers.
|
|
4296
|
+
* * `id` specifies the ID of the venue to edit.
|
|
4297
|
+
* * `signers` specifies the signers to add/remove.
|
|
4298
|
+
* * `add_signers` specifies the update type add/remove of venue where add is true and remove is false.
|
|
4299
|
+
**/
|
|
4300
|
+
updateVenueSigners: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, signers: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], addSigners: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
4301
|
+
u64,
|
|
4302
|
+
Vec<AccountId32>,
|
|
4303
|
+
bool
|
|
4304
|
+
]>;
|
|
4168
4305
|
/**
|
|
4169
4306
|
* Edit a venue's type.
|
|
4170
4307
|
*
|