@polymeshassociation/polymesh-sdk 30.2.0 → 31.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 +28 -12
- package/README.md +4 -4
- package/api/client/AccountManagement.d.ts +1 -15
- package/api/client/AccountManagement.d.ts.map +1 -1
- package/api/client/AccountManagement.js +1 -2
- package/api/client/AccountManagement.js.map +1 -1
- package/api/client/Assets.d.ts +1 -1
- package/api/client/Claims.d.ts +4 -17
- package/api/client/Claims.d.ts.map +1 -1
- package/api/client/Claims.js +3 -47
- package/api/client/Claims.js.map +1 -1
- package/api/client/Identities.d.ts +10 -45
- package/api/client/Identities.d.ts.map +1 -1
- package/api/client/Identities.js +3 -18
- package/api/client/Identities.js.map +1 -1
- package/api/client/Staking.d.ts +3 -4
- package/api/client/Staking.d.ts.map +1 -1
- package/api/client/Staking.js +2 -1
- package/api/client/Staking.js.map +1 -1
- package/api/entities/Account/Staking/index.d.ts.map +1 -1
- package/api/entities/Account/Staking/index.js +2 -9
- package/api/entities/Account/Staking/index.js.map +1 -1
- package/api/entities/Account/helpers.d.ts.map +1 -1
- package/api/entities/Account/helpers.js +2 -5
- package/api/entities/Account/helpers.js.map +1 -1
- package/api/entities/Account/index.d.ts.map +1 -1
- package/api/entities/Account/index.js +0 -6
- package/api/entities/Account/index.js.map +1 -1
- package/api/entities/Account/types.d.ts +0 -2
- package/api/entities/Account/types.d.ts.map +1 -1
- package/api/entities/Account/types.js.map +1 -1
- package/api/entities/Asset/Base/BaseAsset.d.ts +5 -0
- package/api/entities/Asset/Base/BaseAsset.d.ts.map +1 -1
- package/api/entities/Asset/Base/BaseAsset.js.map +1 -1
- package/api/entities/Asset/Base/Permissions/index.d.ts +6 -0
- package/api/entities/Asset/Base/Permissions/index.d.ts.map +1 -1
- package/api/entities/Asset/Base/Permissions/index.js.map +1 -1
- package/api/entities/Asset/Base/Settlements/index.js +2 -2
- package/api/entities/Asset/Base/Settlements/index.js.map +1 -1
- package/api/entities/Asset/NonFungible/Nft.d.ts.map +1 -1
- package/api/entities/Asset/NonFungible/Nft.js +1 -11
- package/api/entities/Asset/NonFungible/Nft.js.map +1 -1
- package/api/entities/Asset/types.d.ts +3 -66
- package/api/entities/Asset/types.d.ts.map +1 -1
- package/api/entities/Asset/types.js +4 -68
- package/api/entities/Asset/types.js.map +1 -1
- package/api/entities/AuthorizationRequest.d.ts.map +1 -1
- package/api/entities/AuthorizationRequest.js +5 -8
- package/api/entities/AuthorizationRequest.js.map +1 -1
- package/api/entities/Identity/index.d.ts +4 -30
- package/api/entities/Identity/index.d.ts.map +1 -1
- package/api/entities/Identity/index.js +8 -70
- package/api/entities/Identity/index.js.map +1 -1
- package/api/entities/Instruction/index.d.ts +2 -14
- package/api/entities/Instruction/index.d.ts.map +1 -1
- package/api/entities/Instruction/index.js +19 -49
- package/api/entities/Instruction/index.js.map +1 -1
- package/api/entities/Instruction/types.d.ts +2 -2
- package/api/entities/Portfolio/index.d.ts.map +1 -1
- package/api/entities/Portfolio/index.js +4 -9
- package/api/entities/Portfolio/index.js.map +1 -1
- package/api/entities/Subsidies.d.ts +0 -2
- package/api/entities/Subsidies.d.ts.map +1 -1
- package/api/entities/Subsidies.js +0 -9
- package/api/entities/Subsidies.js.map +1 -1
- package/api/entities/common/namespaces/Authorizations.d.ts.map +1 -1
- package/api/entities/common/namespaces/Authorizations.js +0 -8
- package/api/entities/common/namespaces/Authorizations.js.map +1 -1
- package/api/entities/types.d.ts +5 -17
- package/api/entities/types.d.ts.map +1 -1
- package/api/entities/types.js +0 -4
- package/api/entities/types.js.map +1 -1
- package/api/procedures/acceptPrimaryKeyRotation.d.ts +1 -2
- package/api/procedures/acceptPrimaryKeyRotation.d.ts.map +1 -1
- package/api/procedures/acceptPrimaryKeyRotation.js +4 -33
- package/api/procedures/acceptPrimaryKeyRotation.js.map +1 -1
- package/api/procedures/acceptSubsidy.d.ts.map +1 -1
- package/api/procedures/acceptSubsidy.js +3 -7
- package/api/procedures/acceptSubsidy.js.map +1 -1
- package/api/procedures/addInstruction.d.ts.map +1 -1
- package/api/procedures/addInstruction.js +7 -31
- package/api/procedures/addInstruction.js.map +1 -1
- package/api/procedures/addSecondaryAccountsWithAuth.d.ts.map +1 -1
- package/api/procedures/addSecondaryAccountsWithAuth.js +5 -1
- package/api/procedures/addSecondaryAccountsWithAuth.js.map +1 -1
- package/api/procedures/attestPrimaryKeyRotation.js +1 -1
- package/api/procedures/attestPrimaryKeyRotation.js.map +1 -1
- package/api/procedures/bondPolyx.d.ts.map +1 -1
- package/api/procedures/bondPolyx.js +7 -28
- package/api/procedures/bondPolyx.js.map +1 -1
- package/api/procedures/closeOffering.d.ts.map +1 -1
- package/api/procedures/closeOffering.js +3 -0
- package/api/procedures/closeOffering.js.map +1 -1
- package/api/procedures/configureDividendDistribution.js +1 -1
- package/api/procedures/configureDividendDistribution.js.map +1 -1
- package/api/procedures/consumeAddMultiSigSignerAuthorization.js +1 -1
- package/api/procedures/consumeAddMultiSigSignerAuthorization.js.map +1 -1
- package/api/procedures/consumeJoinOrRotateAuthorization.d.ts.map +1 -1
- package/api/procedures/consumeJoinOrRotateAuthorization.js +0 -9
- package/api/procedures/consumeJoinOrRotateAuthorization.js.map +1 -1
- package/api/procedures/controllerTransfer.js +1 -1
- package/api/procedures/controllerTransfer.js.map +1 -1
- package/api/procedures/createAsset.d.ts +1 -1
- package/api/procedures/createAsset.d.ts.map +1 -1
- package/api/procedures/createAsset.js +44 -38
- package/api/procedures/createAsset.js.map +1 -1
- package/api/procedures/createMultiSig.js +1 -1
- package/api/procedures/createMultiSig.js.map +1 -1
- package/api/procedures/createNftCollection.js +1 -1
- package/api/procedures/createNftCollection.js.map +1 -1
- package/api/procedures/createTransactionBatch.d.ts.map +1 -1
- package/api/procedures/createTransactionBatch.js +5 -2
- package/api/procedures/createTransactionBatch.js.map +1 -1
- package/api/procedures/createVenue.d.ts.map +1 -1
- package/api/procedures/createVenue.js +1 -5
- package/api/procedures/createVenue.js.map +1 -1
- package/api/procedures/enableOffChainFundingForOfferings.d.ts.map +1 -1
- package/api/procedures/enableOffChainFundingForOfferings.js +3 -0
- package/api/procedures/enableOffChainFundingForOfferings.js.map +1 -1
- package/api/procedures/executeManualInstruction.d.ts.map +1 -1
- package/api/procedures/executeManualInstruction.js +1 -1
- package/api/procedures/executeManualInstruction.js.map +1 -1
- package/api/procedures/inviteExternalAgent.d.ts +27 -5
- package/api/procedures/inviteExternalAgent.d.ts.map +1 -1
- package/api/procedures/inviteExternalAgent.js +61 -38
- package/api/procedures/inviteExternalAgent.js.map +1 -1
- package/api/procedures/issueNft.d.ts.map +1 -1
- package/api/procedures/issueNft.js +1 -8
- package/api/procedures/issueNft.js.map +1 -1
- package/api/procedures/modifyAllowance.d.ts.map +1 -1
- package/api/procedures/modifyAllowance.js +6 -7
- package/api/procedures/modifyAllowance.js.map +1 -1
- package/api/procedures/modifyClaims.d.ts.map +1 -1
- package/api/procedures/modifyClaims.js +8 -3
- package/api/procedures/modifyClaims.js.map +1 -1
- package/api/procedures/modifyInstructionAffirmation.d.ts +1 -1
- package/api/procedures/modifyInstructionAffirmation.d.ts.map +1 -1
- package/api/procedures/modifyInstructionAffirmation.js +13 -77
- package/api/procedures/modifyInstructionAffirmation.js.map +1 -1
- package/api/procedures/modifyMultiSig.d.ts +1 -5
- package/api/procedures/modifyMultiSig.d.ts.map +1 -1
- package/api/procedures/modifyMultiSig.js +13 -40
- package/api/procedures/modifyMultiSig.js.map +1 -1
- package/api/procedures/modifySignerPermissions.d.ts.map +1 -1
- package/api/procedures/modifySignerPermissions.js +5 -2
- package/api/procedures/modifySignerPermissions.js.map +1 -1
- package/api/procedures/nftControllerTransfer.d.ts +1 -2
- package/api/procedures/nftControllerTransfer.d.ts.map +1 -1
- package/api/procedures/nftControllerTransfer.js +4 -9
- package/api/procedures/nftControllerTransfer.js.map +1 -1
- package/api/procedures/quitSubsidy.d.ts.map +1 -1
- package/api/procedures/quitSubsidy.js +3 -9
- package/api/procedures/quitSubsidy.js.map +1 -1
- package/api/procedures/registerDid.d.ts.map +1 -1
- package/api/procedures/registerDid.js +0 -6
- package/api/procedures/registerDid.js.map +1 -1
- package/api/procedures/registerIdentity.d.ts +5 -1
- package/api/procedures/registerIdentity.d.ts.map +1 -1
- package/api/procedures/registerIdentity.js +17 -8
- package/api/procedures/registerIdentity.js.map +1 -1
- package/api/procedures/removeMultiSigPayer.d.ts +1 -5
- package/api/procedures/removeMultiSigPayer.d.ts.map +1 -1
- package/api/procedures/removeMultiSigPayer.js +9 -17
- package/api/procedures/removeMultiSigPayer.js.map +1 -1
- package/api/procedures/removeSecondaryAccounts.d.ts.map +1 -1
- package/api/procedures/removeSecondaryAccounts.js +4 -1
- package/api/procedures/removeSecondaryAccounts.js.map +1 -1
- package/api/procedures/revokeIdentityToCreatePortfolios.d.ts +1 -1
- package/api/procedures/revokeIdentityToCreatePortfolios.d.ts.map +1 -1
- package/api/procedures/revokeIdentityToCreatePortfolios.js +1 -1
- package/api/procedures/revokeIdentityToCreatePortfolios.js.map +1 -1
- package/api/procedures/revokeSubsidy.d.ts.map +1 -1
- package/api/procedures/revokeSubsidy.js +3 -7
- package/api/procedures/revokeSubsidy.js.map +1 -1
- package/api/procedures/selfRegisterDid.d.ts.map +1 -1
- package/api/procedures/selfRegisterDid.js +0 -6
- package/api/procedures/selfRegisterDid.js.map +1 -1
- package/api/procedures/setMandatoryReceiverAffirmation.d.ts.map +1 -1
- package/api/procedures/setMandatoryReceiverAffirmation.js +0 -6
- package/api/procedures/setMandatoryReceiverAffirmation.js.map +1 -1
- package/api/procedures/setMultiSigAdmin.d.ts +1 -5
- package/api/procedures/setMultiSigAdmin.d.ts.map +1 -1
- package/api/procedures/setMultiSigAdmin.js +9 -19
- package/api/procedures/setMultiSigAdmin.js.map +1 -1
- package/api/procedures/setPermissionGroup.d.ts +11 -2
- package/api/procedures/setPermissionGroup.d.ts.map +1 -1
- package/api/procedures/setPermissionGroup.js +34 -30
- package/api/procedures/setPermissionGroup.js.map +1 -1
- package/api/procedures/setStakingController.d.ts +5 -10
- package/api/procedures/setStakingController.d.ts.map +1 -1
- package/api/procedures/setStakingController.js +10 -41
- package/api/procedures/setStakingController.js.map +1 -1
- package/api/procedures/setStakingPayee.d.ts.map +1 -1
- package/api/procedures/setStakingPayee.js +2 -2
- package/api/procedures/setStakingPayee.js.map +1 -1
- package/api/procedures/subsidizeAccount.d.ts +5 -7
- package/api/procedures/subsidizeAccount.d.ts.map +1 -1
- package/api/procedures/subsidizeAccount.js +2 -51
- package/api/procedures/subsidizeAccount.js.map +1 -1
- package/api/procedures/toggleAssetPreApproval.js +1 -1
- package/api/procedures/toggleAssetPreApproval.js.map +1 -1
- package/api/procedures/toggleFreezeSecondaryAccounts.d.ts +1 -1
- package/api/procedures/toggleFreezeSecondaryAccounts.d.ts.map +1 -1
- package/api/procedures/toggleFreezeSecondaryAccounts.js +5 -4
- package/api/procedures/toggleFreezeSecondaryAccounts.js.map +1 -1
- package/api/procedures/transferAssetOwnership.d.ts +4 -0
- package/api/procedures/transferAssetOwnership.d.ts.map +1 -1
- package/api/procedures/transferAssetOwnership.js +10 -2
- package/api/procedures/transferAssetOwnership.js.map +1 -1
- package/api/procedures/transferFunds.d.ts.map +1 -1
- package/api/procedures/transferFunds.js +2 -2
- package/api/procedures/transferFunds.js.map +1 -1
- package/api/procedures/transferPolyx.d.ts.map +1 -1
- package/api/procedures/transferPolyx.js +6 -30
- package/api/procedures/transferPolyx.js.map +1 -1
- package/api/procedures/types.d.ts +25 -146
- package/api/procedures/types.d.ts.map +1 -1
- package/api/procedures/types.js +13 -17
- package/api/procedures/types.js.map +1 -1
- package/api/procedures/updateVenueSigners.d.ts.map +1 -1
- package/api/procedures/updateVenueSigners.js +1 -5
- package/api/procedures/updateVenueSigners.js.map +1 -1
- package/api/procedures/utils.d.ts +1 -11
- package/api/procedures/utils.d.ts.map +1 -1
- package/api/procedures/utils.js +8 -70
- package/api/procedures/utils.js.map +1 -1
- package/base/Context.d.ts +1 -10
- package/base/Context.d.ts.map +1 -1
- package/base/Context.js +4 -55
- package/base/Context.js.map +1 -1
- package/base/PolymeshTransaction.js +1 -1
- package/base/PolymeshTransaction.js.map +1 -1
- package/generated/utils.d.ts.map +1 -1
- package/generated/utils.js +2 -0
- package/generated/utils.js.map +1 -1
- package/internal.d.ts +0 -5
- package/internal.d.ts.map +1 -1
- package/internal.js +4 -14
- package/internal.js.map +1 -1
- package/npm-package/{polymeshassociation-polymesh-sdk-30.2.0.tgz → polymeshassociation-polymesh-sdk-31.0.0-beta.2.tgz} +0 -0
- package/package.json +1 -1
- package/types/txGroupConstants.d.ts +72 -23
- package/types/txGroupConstants.d.ts.map +1 -1
- package/types/txGroupConstants.js +104 -28
- package/types/txGroupConstants.js.map +1 -1
- package/utils/constants.d.ts +1 -1
- package/utils/constants.d.ts.map +1 -1
- package/utils/constants.js +1 -1
- package/utils/constants.js.map +1 -1
- package/utils/conversion.d.ts +8 -45
- package/utils/conversion.d.ts.map +1 -1
- package/utils/conversion.js +98 -336
- package/utils/conversion.js.map +1 -1
- package/utils/internal.d.ts +2 -11
- package/utils/internal.d.ts.map +1 -1
- package/utils/internal.js +3 -24
- package/utils/internal.js.map +1 -1
- package/utils/typeguards.d.ts +1 -5
- package/utils/typeguards.d.ts.map +1 -1
- package/utils/typeguards.js +0 -7
- package/utils/typeguards.js.map +1 -1
- package/api/entities/Identity/ChildIdentity.d.ts +0 -44
- package/api/entities/Identity/ChildIdentity.d.ts.map +0 -1
- package/api/entities/Identity/ChildIdentity.js +0 -80
- package/api/entities/Identity/ChildIdentity.js.map +0 -1
- package/api/procedures/consumeAddRelayerPayingKeyAuthorization.d.ts +0 -35
- package/api/procedures/consumeAddRelayerPayingKeyAuthorization.d.ts.map +0 -1
- package/api/procedures/consumeAddRelayerPayingKeyAuthorization.js +0 -116
- package/api/procedures/consumeAddRelayerPayingKeyAuthorization.js.map +0 -1
- package/api/procedures/createChildIdentities.d.ts +0 -35
- package/api/procedures/createChildIdentities.d.ts.map +0 -1
- package/api/procedures/createChildIdentities.js +0 -123
- package/api/procedures/createChildIdentities.js.map +0 -1
- package/api/procedures/createChildIdentity.d.ts +0 -37
- package/api/procedures/createChildIdentity.d.ts.map +0 -1
- package/api/procedures/createChildIdentity.js +0 -128
- package/api/procedures/createChildIdentity.js.map +0 -1
- package/api/procedures/modifyCorporateActionsAgent.d.ts +0 -22
- package/api/procedures/modifyCorporateActionsAgent.d.ts.map +0 -1
- package/api/procedures/modifyCorporateActionsAgent.js +0 -83
- package/api/procedures/modifyCorporateActionsAgent.js.map +0 -1
- package/api/procedures/unlinkChildIdentity.d.ts +0 -27
- package/api/procedures/unlinkChildIdentity.d.ts.map +0 -1
- package/api/procedures/unlinkChildIdentity.js +0 -101
- package/api/procedures/unlinkChildIdentity.js.map +0 -1
|
@@ -44,12 +44,13 @@ function prepareToggleFreezeSecondaryAccounts(args) {
|
|
|
44
44
|
/**
|
|
45
45
|
* @hidden
|
|
46
46
|
*/
|
|
47
|
-
function getAuthorization(
|
|
47
|
+
function getAuthorization() {
|
|
48
48
|
return {
|
|
49
49
|
permissions: {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
// `identity.{freeze,unfreeze}_secondary_keys` both resolve to `ensure_primary_key`, which
|
|
51
|
+
// never consults `ExtrinsicPermissions` — no permission grant can satisfy them, so declaring
|
|
52
|
+
// the tags would only make pre-flight stricter than the chain.
|
|
53
|
+
transactions: [],
|
|
53
54
|
assets: [],
|
|
54
55
|
portfolios: [],
|
|
55
56
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggleFreezeSecondaryAccounts.js","sourceRoot":"","sources":["../../../src/api/procedures/toggleFreezeSecondaryAccounts.ts"],"names":[],"mappings":";;;;;;;;;;;;AAWA,oFAwCC;AAKD,4CAaC;AArED,yCAAsD;AACtD,
|
|
1
|
+
{"version":3,"file":"toggleFreezeSecondaryAccounts.js","sourceRoot":"","sources":["../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ACf;KACF,CAAC;AACJ,CAAC;AAED;;GAEG;AACI,MAAM,6BAA6B,GAAG,GAG3C,EAAE,CAAC,IAAI,oBAAS,CAAC,oCAAoC,EAAE,gBAAgB,CAAC,CAAC;AAH9D,QAAA,6BAA6B,iCAGiC"}
|
|
@@ -13,6 +13,10 @@ export type Params = {
|
|
|
13
13
|
export declare function prepareTransferAssetOwnership(this: Procedure<Params, AuthorizationRequest>, args: Params): Promise<TransactionSpec<AuthorizationRequest, ExtrinsicParams<'identity', 'addAuthorization'>>>;
|
|
14
14
|
/**
|
|
15
15
|
* @hidden
|
|
16
|
+
*
|
|
17
|
+
* The chain defers the real Agent check to acceptance: `acceptAssetOwnershipTransfer` runs
|
|
18
|
+
* `ensure_agent_permissioned` against the authorization's creator, resolved against the accept
|
|
19
|
+
* call. So the caller must already hold that permission, or the offer can never be accepted.
|
|
16
20
|
*/
|
|
17
21
|
export declare function getAuthorization(this: Procedure<Params, AuthorizationRequest>, { asset }: Params): ProcedureAuthorization;
|
|
18
22
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferAssetOwnership.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/transferAssetOwnership.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,EAIL,4BAA4B,EAE7B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAS5F;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG;IAAE,KAAK,EAAE,SAAS,CAAA;CAAE,GAAG,4BAA4B,CAAC;AAEzE;;GAEG;AACH,wBAAsB,6BAA6B,CACjD,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,oBAAoB,CAAC,EAC7C,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,eAAe,CAAC,oBAAoB,EAAE,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAyCjG;AAED
|
|
1
|
+
{"version":3,"file":"transferAssetOwnership.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/transferAssetOwnership.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACxE,OAAO,EAIL,4BAA4B,EAE7B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAS5F;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG;IAAE,KAAK,EAAE,SAAS,CAAA;CAAE,GAAG,4BAA4B,CAAC;AAEzE;;GAEG;AACH,wBAAsB,6BAA6B,CACjD,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,oBAAoB,CAAC,EAC7C,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,eAAe,CAAC,oBAAoB,EAAE,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAyCjG;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE,oBAAoB,CAAC,EAC7C,EAAE,KAAK,EAAE,EAAE,MAAM,GAChB,sBAAsB,CAYxB;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,QAAO,SAAS,CAAC,MAAM,EAAE,oBAAoB,CAChB,CAAC"}
|
|
@@ -52,14 +52,22 @@ function prepareTransferAssetOwnership(args) {
|
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* @hidden
|
|
55
|
+
*
|
|
56
|
+
* The chain defers the real Agent check to acceptance: `acceptAssetOwnershipTransfer` runs
|
|
57
|
+
* `ensure_agent_permissioned` against the authorization's creator, resolved against the accept
|
|
58
|
+
* call. So the caller must already hold that permission, or the offer can never be accepted.
|
|
55
59
|
*/
|
|
56
60
|
function getAuthorization({ asset }) {
|
|
57
61
|
return {
|
|
58
|
-
|
|
59
|
-
assets: [asset],
|
|
62
|
+
signerPermissions: {
|
|
60
63
|
transactions: [types_1.TxTags.identity.AddAuthorization],
|
|
64
|
+
assets: [],
|
|
61
65
|
portfolios: [],
|
|
62
66
|
},
|
|
67
|
+
agentPermissions: {
|
|
68
|
+
transactions: [types_1.TxTags.asset.AcceptAssetOwnershipTransfer],
|
|
69
|
+
assets: [asset],
|
|
70
|
+
},
|
|
63
71
|
};
|
|
64
72
|
}
|
|
65
73
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferAssetOwnership.js","sourceRoot":"","sources":["../../../src/api/procedures/transferAssetOwnership.ts"],"names":[],"mappings":";;;;;;;;;;;;AA0BA,sEA4CC;
|
|
1
|
+
{"version":3,"file":"transferAssetOwnership.js","sourceRoot":"","sources":["../../../src/api/procedures/transferAssetOwnership.ts"],"names":[],"mappings":";;;;;;;;;;;;AA0BA,sEA4CC;AASD,4CAeC;AA9FD,kDAAqE;AACrE,yCAAwE;AACxE,mCAMiB;AAEjB,mDAK4B;AAC5B,+CAA6F;AAO7F;;GAEG;AACH,SAAsB,6BAA6B,CAEjD,IAAY;;QAEZ,MAAM,EACJ,OAAO,EAAE,EACP,WAAW,EAAE,EAAE,EAAE,EAAE,GACpB,EACD,OAAO,GACR,GAAG,IAAI,CAAC;QACT,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;QAC9C,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,kBAAkB,EAAE,CAAC;QAClD,MAAM,cAAc,GAAG,IAAA,qBAAU,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAEnD,MAAM,qBAAqB,GAAG,MAAM,cAAc,CAAC,cAAc,CAAC,WAAW,CAAC;YAC5E,IAAI,EAAE,yBAAiB,CAAC,sBAAsB;YAC9C,cAAc,EAAE,KAAK;SACtB,CAAC,CAAC;QAEH,MA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AAC,6BAA6B,EAAE,gBAAgB,CAAC,CAAC;AADpD,QAAA,sBAAsB,0BAC8B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferFunds.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/transferFunds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAGzE,OAAO,EAEL,OAAO,EAIP,SAAS,EACV,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,WAAW,EAKX,mBAAmB,EAEpB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAU5F,MAAM,WAAW,OAAO;IACtB,UAAU,EAAE,WAAW,CAAC;IACxB,QAAQ,EAAE,WAAW,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAsB,OAAO,CAC3B,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,mBAAmB,EACzB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,+BAA+B,CAAC,CAuD1C;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,SAAS,CAAC,mBAAmB,EAAE,IAAI,EAAE,OAAO,CAAC,EACnD,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,eAAe,CAAC,IAAI,EAAE,eAAe,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"transferFunds.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/transferFunds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAGzE,OAAO,EAEL,OAAO,EAIP,SAAS,EACV,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,WAAW,EAKX,mBAAmB,EAEpB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAU5F,MAAM,WAAW,OAAO;IACtB,UAAU,EAAE,WAAW,CAAC;IACxB,QAAQ,EAAE,WAAW,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAsB,OAAO,CAC3B,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,mBAAmB,EACzB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,+BAA+B,CAAC,CAuD1C;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,SAAS,CAAC,mBAAmB,EAAE,IAAI,EAAE,OAAO,CAAC,EACnD,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,eAAe,CAAC,IAAI,EAAE,eAAe,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC,CAAC,CAuDhF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,CAAC,mBAAmB,EAAE,IAAI,EAAE,OAAO,CAAC,GAClD,sBAAsB,CAgBxB;AAED;;GAEG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,SAAS,CAAC,mBAAmB,EAAE,IAAI,EAAE,OAAO,CAAC,EACnD,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,mBAAmB,GAChC,OAAO,CAAC,OAAO,CAAC,CAiBlB;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,QAAO,SAAS,CAAC,mBAAmB,EAAE,IAAI,EAAE,OAAO,CACN,CAAC"}
|
|
@@ -113,8 +113,8 @@ function prepareTransferFunds(args) {
|
|
|
113
113
|
message: 'For transferring funds between different DIDs, use `Settlements.addInstruction` method instead.',
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
-
const rawFrom =
|
|
117
|
-
const rawTo =
|
|
116
|
+
const rawFrom = (0, conversion_1.assetHolderIdToMeshAssetHolder)((0, conversion_1.assetHolderLikeToAssetHolderId)(fromHolder), context);
|
|
117
|
+
const rawTo = (0, conversion_1.assetHolderIdToMeshAssetHolder)((0, conversion_1.assetHolderLikeToAssetHolderId)(toHolder), context);
|
|
118
118
|
const rawFund = yield getFund(context, args, fromDid, storage);
|
|
119
119
|
return {
|
|
120
120
|
transaction: settlement.transferFunds,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferFunds.js","sourceRoot":"","sources":["../../../src/api/procedures/transferFunds.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAwCA,0BA4DC;AAKD,
|
|
1
|
+
{"version":3,"file":"transferFunds.js","sourceRoot":"","sources":["../../../src/api/procedures/transferFunds.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAwCA,0BA4DC;AAKD,oDA0DC;AAKD,4CAkBC;AAKD,wCAoBC;AAjND,kDAA2D;AAC3D,yCAOoB;AACpB,mCAQiB;AAEjB,mDAM4B;AAC5B,mDAA0D;AAS1D;;GAEG;AACH,SAAsB,OAAO,CAC3B,OAAgB,EAChB,IAAyB,EACzB,OAAe,EACf,OAAgB;;QAEhB,MAAM,EAAE,IAAI,KAAa,IAAI,EAAZ,GAAG,UAAK,IAAI,EAAvB,QAAgB,CAAO,CAAC;QAC9B,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC;QAC3D,MAAM,UAAU,GAAG,MAAM,IAAA,iCAAoB,EAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAE5D,IAAI,OAAwC,CAAC;QAC7C,IAAI,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YACpB,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC;YAE9B,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;gBAClB,MAAM,IAAI,wBAAa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U;YACV,QAAQ;YACR,UAAU,EAAE,QAAQ,CAAC,GAAG;YACxB,cAAc,EAAE,OAAO;SACxB,CAAC;IACJ,CAAC;CAAA;AAED;;GAEG;AACI,MAAM,aAAa,GAAG,GAAkD,EAAE,CAC/E,IAAI,oBAAS,CAAC,oBAAoB,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAC;AAD3D,QAAA,aAAa,iBAC8C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferPolyx.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/transferPolyx.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,SAAS,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAa,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAS5F;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,SAAS,CAAC,mBAAmB,CAAC,EACpC,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,eAAe,CAAC,IAAI,EAAE,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"transferPolyx.d.ts","sourceRoot":"","sources":["../../../src/api/procedures/transferPolyx.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,SAAS,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAa,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAS5F;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,SAAS,CAAC,mBAAmB,CAAC,EACpC,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,eAAe,CAAC,IAAI,EAAE,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC,CAAC,CA6CjF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,sBAAsB,CAIzD;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,QAAO,SAAS,CAAC,mBAAmB,CACP,CAAC"}
|
|
@@ -47,36 +47,12 @@ function prepareTransferPolyx(args) {
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
resolver: undefined,
|
|
57
|
-
preRunValidation,
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
return Promise.resolve({
|
|
62
|
-
// a type cast is needed for v7 since v8 transfers always have a memo argument
|
|
63
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
64
|
-
transaction: tx.balances.transfer,
|
|
65
|
-
args: [rawAccountId, rawAmount],
|
|
66
|
-
resolver: undefined,
|
|
67
|
-
preRunValidation,
|
|
68
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
return Promise.resolve({
|
|
74
|
-
transaction: tx.balances.transferWithMemo,
|
|
75
|
-
args: [rawAccountId, rawAmount, (0, internal_2.optionize)(conversion_1.stringToMemo)(memo, context)],
|
|
76
|
-
resolver: undefined,
|
|
77
|
-
preRunValidation,
|
|
78
|
-
});
|
|
79
|
-
}
|
|
50
|
+
return Promise.resolve({
|
|
51
|
+
transaction: tx.balances.transferWithMemo,
|
|
52
|
+
args: [rawAccountId, rawAmount, (0, internal_2.optionize)(conversion_1.stringToMemo)(memo, context)],
|
|
53
|
+
resolver: undefined,
|
|
54
|
+
preRunValidation,
|
|
55
|
+
});
|
|
80
56
|
}
|
|
81
57
|
/**
|
|
82
58
|
* @hidden
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferPolyx.js","sourceRoot":"","sources":["../../../src/api/procedures/transferPolyx.ts"],"names":[],"mappings":";;;;;;;;;;;;AAcA,
|
|
1
|
+
{"version":3,"file":"transferPolyx.js","sourceRoot":"","sources":["../../../src/api/procedures/transferPolyx.ts"],"names":[],"mappings":";;;;;;;;;;;;AAcA,oDAgDC;AAKD,4CAIC;AAvED,yCAA+D;AAC/D,mCAAyD;AAEzD,mDAK4B;AAC5B,+CAA6C;AAE7C;;GAEG;AACH,SAAgB,oBAAoB,CAElC,IAAyB;IAEzB,MAAM,EACJ,OAAO,EAAE,EACP,WAAW,EAAE,EAAE,EAAE,EAAE,GACpB,EACD,OAAO,GACR,GAAG,IAAI,CAAC;IAET,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IAElC,MAAM,YAAY,GAAG,IAAA,8BAAiB,EAAC,IAAA,2BAAc,EAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;IACpE,MAAM,SAAS,GAAG,IAAA,+BAAkB,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEtD,MAAM,gBAAgB,GAAG,KAA+D,EAAE,0CAA1D,EAAE,UAAU,EAA2B;QACrE,MAAM,cAAc,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;QACnD,IAAI,WAAoB,CAAC;QAEzB,IAAI,UAAU,EAAE,CAAC;YACf,qDAAqD;YACrD,WAAW,GAAG,MAAM,OAAO,CAAC,gBAAgB,EAAE,CAAC;QACjD,CAAC;aAAM,CAAC;YACN,iDAAiD;YACjD,WAAW,GAAG,cAAc,CAAC;QAC/B,CAAC;QAED,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,MAAM,WAAW,CAAC,UAAU,EAAE,CAAC;QAE7D,IAAI,MAAM,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,CAAC;YACtC,MAAM,IAAI,wBAAa,CAAC;gBACtB,IAAI,EAAE,iBAAS,CAAC,mBAAmB;gBACnC,OAAO,EAAE,2BAA2B;gBACpC,IAAI,EAAE;oBACJ,WAAW;oBACX,WAAW,EAAE,WAAW,CAAC,OAAO;iBACjC;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAA,CAAC;IAEF,OAAO,OAAO,CAAC,OAAO,CAAC;QACrB,WAAW,EAAE,EAAE,CAAC,QAAQ,CAAC,gBAAgB;QACzC,IAAI,EAAE,CAAC,YAAY,EAAE,SAAS,EAAE,IAAA,oBAAS,EAAC,yBAAY,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACvE,QAAQ,EAAE,SAAS;QACnB,gBAAgB;KACjB,CAAC,CAAC;AACL,CAAC;AAED;;GAEG;AACH,SAAgB,gBAAgB;IAC9B,OAAO;QACL,iBAAiB,EAAE,IAAI;KACxB,CAAC;AACJ,CAAC;AAED;;GAEG;AACI,MAAM,aAAa,GAAG,GAAmC,EAAE,CAChE,IAAI,oBAAS,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAC;AAD3C,QAAA,aAAa,iBAC8B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import BigNumber from 'bignumber.js';
|
|
2
2
|
import { BallotMeta, BallotVote } from '../../api/entities/CorporateBallot/types';
|
|
3
|
-
import { Account, AuthorizationRequest, CheckpointSchedule,
|
|
4
|
-
import { AccountLike, AddCountStatInput, AGENT_TX_GROUP_VALUES, AssetDocument, AssetHolderLike, CheckPermissionsResult, CheckRolesResult, ClaimCountStatInput, ClaimTarget, ClaimType, CorporateActionKind, CorporateActionTargets, CountryCode, InputCaCheckpoint, InputCondition, InputStatClaim, InputStatType, InputTargets, InputTaxWithholding, InputTrustedClaimIssuer, KnownAssetType, KnownNftType, MetadataSpec, MetadataType, MetadataValueDetails, NftCollection, OffChainFundingReceipt, OfferingTier, PermissionedAccount, PermissionsLike, PortfolioLike, PortfolioMovement, Requirement,
|
|
3
|
+
import { Account, AuthorizationRequest, CheckpointSchedule, CorporateActionBase, CorporateBallot, CustomPermissionGroup, DefaultPortfolio, FungibleAsset, Identity, KnownPermissionGroup, MultiSig, Nft, NumberedPortfolio, PolymeshTransaction, PolymeshTransactionBatch, Venue } from '../../internal';
|
|
4
|
+
import { AccountLike, AddCountStatInput, AGENT_TX_GROUP_VALUES, AssetDocument, AssetHolderLike, CheckPermissionsResult, CheckRolesResult, ClaimCountStatInput, ClaimTarget, ClaimType, CorporateActionKind, CorporateActionTargets, CountryCode, InputCaCheckpoint, InputCondition, InputStatClaim, InputStatType, InputTargets, InputTaxWithholding, InputTrustedClaimIssuer, KnownAssetType, KnownNftType, MetadataSpec, MetadataType, MetadataValueDetails, NftCollection, OffChainFundingReceipt, OfferingTier, PermissionedAccount, PermissionsLike, PortfolioLike, PortfolioMovement, Requirement, SecurityIdentifier, Signer, SignerType, StatType, TaxWithholding, TransactionPermissions, TxTag, VenueType } from '../../types';
|
|
5
5
|
import { Modify } from '../../types/utils';
|
|
6
6
|
export interface ProcedureAuthorizationStatus {
|
|
7
7
|
/**
|
|
@@ -153,10 +153,6 @@ export interface TxData<Args extends unknown[] = unknown[]> {
|
|
|
153
153
|
}
|
|
154
154
|
export declare enum RoleType {
|
|
155
155
|
TickerOwner = "TickerOwner",
|
|
156
|
-
/**
|
|
157
|
-
* @deprecated `CddProvider` role has been deprecated in favor of `DidRegistrar` role for chain v8
|
|
158
|
-
*/
|
|
159
|
-
CddProvider = "CddProvider",
|
|
160
156
|
VenueOwner = "VenueOwner",
|
|
161
157
|
PortfolioCustodian = "PortfolioCustodian",
|
|
162
158
|
CorporateActionsAgent = "CorporateActionsAgent",
|
|
@@ -167,9 +163,6 @@ export interface TickerOwnerRole {
|
|
|
167
163
|
type: RoleType.TickerOwner;
|
|
168
164
|
ticker: string;
|
|
169
165
|
}
|
|
170
|
-
export interface CddProviderRole {
|
|
171
|
-
type: RoleType.CddProvider;
|
|
172
|
-
}
|
|
173
166
|
export interface DidRegistrarRole {
|
|
174
167
|
type: RoleType.DidRegistrar;
|
|
175
168
|
}
|
|
@@ -190,7 +183,7 @@ export interface IdentityRole {
|
|
|
190
183
|
type: RoleType.Identity;
|
|
191
184
|
did: string;
|
|
192
185
|
}
|
|
193
|
-
export type Role = TickerOwnerRole |
|
|
186
|
+
export type Role = TickerOwnerRole | VenueOwnerRole | PortfolioCustodianRole | IdentityRole | DidRegistrarRole;
|
|
194
187
|
/**
|
|
195
188
|
* Transaction Groups (for secondary key permissions purposes)
|
|
196
189
|
* Includes all transactions that agents can perform plus secondary key specific transactions
|
|
@@ -234,8 +227,21 @@ export declare enum TxGroup {
|
|
|
234
227
|
/**
|
|
235
228
|
* CDD Registration operations
|
|
236
229
|
* @see {@link types/txGroupConstants!CDD_REGISTRATION_TX_TAGS} for the complete list of transactions
|
|
230
|
+
*
|
|
231
|
+
* @deprecated as of chain v8 the underlying extrinsics are deprecated and no longer attach a
|
|
232
|
+
* `CustomerDueDiligence` claim. Use {@link TxGroup.DidRegistration} instead.
|
|
237
233
|
*/
|
|
238
234
|
CddRegistration = "CddRegistration",
|
|
235
|
+
/**
|
|
236
|
+
* DID Registration operations
|
|
237
|
+
* @see {@link types/txGroupConstants!DID_REGISTRATION_TX_TAGS} for the complete list of transactions
|
|
238
|
+
*/
|
|
239
|
+
DidRegistration = "DidRegistration",
|
|
240
|
+
/**
|
|
241
|
+
* Instruction Mediation operations
|
|
242
|
+
* @see {@link types/txGroupConstants!INSTRUCTION_MEDIATION_TX_TAGS} for the complete list of transactions
|
|
243
|
+
*/
|
|
244
|
+
InstructionMediation = "InstructionMediation",
|
|
239
245
|
/**
|
|
240
246
|
* Checkpoint management
|
|
241
247
|
* @see {@link types/txGroupConstants!CHECKPOINT_MANAGEMENT_TX_TAGS} for the complete list of transactions
|
|
@@ -291,11 +297,6 @@ export declare enum TxGroup {
|
|
|
291
297
|
* @see {@link types/txGroupConstants!PORTFOLIO_MANAGEMENT_TX_TAGS} for the complete list of transactions
|
|
292
298
|
*/
|
|
293
299
|
PortfolioManagement = "PortfolioManagement",
|
|
294
|
-
/**
|
|
295
|
-
* Relayer Management operations
|
|
296
|
-
* @see {@link types/txGroupConstants!RELAYER_MANAGEMENT_TX_TAGS} for the complete list of transactions
|
|
297
|
-
*/
|
|
298
|
-
RelayerManagement = "RelayerManagement",
|
|
299
300
|
/**
|
|
300
301
|
* Redemption operations
|
|
301
302
|
* @see {@link types/txGroupConstants!REDEMPTION_TX_TAGS} for the complete list of transactions
|
|
@@ -510,11 +511,6 @@ export interface AcceptPrimaryKeyRotationParams {
|
|
|
510
511
|
* Authorization from the owner who initiated the change
|
|
511
512
|
*/
|
|
512
513
|
ownerAuth: BigNumber | AuthorizationRequest;
|
|
513
|
-
/**
|
|
514
|
-
* (optional) Authorization from a CDD service provider attesting the rotation of primary key
|
|
515
|
-
* @deprecated this value will be ignored from chain v8
|
|
516
|
-
*/
|
|
517
|
-
cddAuth?: BigNumber | AuthorizationRequest;
|
|
518
514
|
}
|
|
519
515
|
export interface ModifySignerPermissionsParams {
|
|
520
516
|
/**
|
|
@@ -644,8 +640,6 @@ export interface IssueTokensParams {
|
|
|
644
640
|
export interface CreateAssetWithTickerParams extends CreateAssetParams {
|
|
645
641
|
/**
|
|
646
642
|
* (optional) ticker to be linked with the Asset
|
|
647
|
-
*
|
|
648
|
-
* @note from 7.x chain, ticker has been made optional. For 6.x chain, it is still mandatory.
|
|
649
643
|
*/
|
|
650
644
|
ticker?: string;
|
|
651
645
|
}
|
|
@@ -666,17 +660,13 @@ export interface CreateNftCollectionParams {
|
|
|
666
660
|
/**
|
|
667
661
|
* The ID of the asset to be used to create the collection.
|
|
668
662
|
* If no assetId is provided, a new asset with `NonFungible` asset type will be created
|
|
669
|
-
*
|
|
670
|
-
* @note for spec version before 7.x, this value is overwritten by `ticker` value
|
|
671
663
|
*/
|
|
672
664
|
assetId?: string;
|
|
673
665
|
/**
|
|
674
666
|
* The primary identifier for the collection.
|
|
675
667
|
* The ticker must either be free, or the signer has appropriate permissions if reserved.
|
|
676
668
|
*
|
|
677
|
-
*
|
|
678
|
-
*
|
|
679
|
-
* @note This value is mandatory for spec version before 7.x
|
|
669
|
+
* This value (if provided) is then linked to the `assetId` asset.
|
|
680
670
|
*/
|
|
681
671
|
ticker?: string;
|
|
682
672
|
/**
|
|
@@ -742,21 +732,6 @@ export interface RevokeClaimsParams {
|
|
|
742
732
|
operation: ClaimOperation.Revoke;
|
|
743
733
|
}
|
|
744
734
|
export type ModifyClaimsParams = AddClaimsParams | EditClaimsParams | RevokeClaimsParams;
|
|
745
|
-
export interface ScopeClaimProof {
|
|
746
|
-
proofScopeIdWellFormed: string;
|
|
747
|
-
proofScopeIdCddIdMatch: {
|
|
748
|
-
challengeResponses: [string, string];
|
|
749
|
-
subtractExpressionsRes: string;
|
|
750
|
-
blindedScopeDidHash: string;
|
|
751
|
-
};
|
|
752
|
-
}
|
|
753
|
-
export interface AddInvestorUniquenessClaimParams {
|
|
754
|
-
scope: Scope;
|
|
755
|
-
cddId: string;
|
|
756
|
-
proof: string | ScopeClaimProof;
|
|
757
|
-
scopeId: string;
|
|
758
|
-
expiry?: Date;
|
|
759
|
-
}
|
|
760
735
|
export interface RegisterIdentityParams {
|
|
761
736
|
/**
|
|
762
737
|
* The Account that should function as the primary key of the newly created Identity. Can be ss58 encoded address or an instance of Account
|
|
@@ -771,10 +746,15 @@ export interface RegisterIdentityParams {
|
|
|
771
746
|
}>[];
|
|
772
747
|
/**
|
|
773
748
|
* (optional) also issue a CDD claim for the created DID, completing the onboarding process for the Account
|
|
749
|
+
*
|
|
750
|
+
* @note as of chain v8, `cdd_register_did`/`cdd_register_did_with_cdd` are deprecated and no
|
|
751
|
+
* longer attach a `CustomerDueDiligence` claim, so this flag no longer has any on-chain effect
|
|
774
752
|
*/
|
|
775
753
|
createCdd?: boolean;
|
|
776
754
|
/**
|
|
777
755
|
* (optional) when the generated CDD claim should expire, `createCdd` must be true if specified
|
|
756
|
+
*
|
|
757
|
+
* @note as of chain v8, this no longer has any on-chain effect (see `createCdd`)
|
|
778
758
|
*/
|
|
779
759
|
expiry?: Date;
|
|
780
760
|
}
|
|
@@ -908,16 +888,8 @@ export interface InstructionIdParams {
|
|
|
908
888
|
}
|
|
909
889
|
export declare enum InstructionAffirmationOperation {
|
|
910
890
|
Affirm = "Affirm",
|
|
911
|
-
/**
|
|
912
|
-
* @deprecated withdrawing an affirmation is no longer supported in chain v8
|
|
913
|
-
*/
|
|
914
|
-
Withdraw = "Withdraw",
|
|
915
891
|
Reject = "Reject",
|
|
916
892
|
AffirmAsMediator = "AffirmAsMediator",
|
|
917
|
-
/**
|
|
918
|
-
* @deprecated withdrawing an affirmation as a mediator is no longer supported in chain v8
|
|
919
|
-
*/
|
|
920
|
-
WithdrawAsMediator = "WithdrawAsMediator",
|
|
921
893
|
RejectAsMediator = "RejectAsMediator"
|
|
922
894
|
}
|
|
923
895
|
export type RejectInstructionParams = {
|
|
@@ -926,17 +898,6 @@ export type RejectInstructionParams = {
|
|
|
926
898
|
*/
|
|
927
899
|
assetHolder?: AssetHolderLike;
|
|
928
900
|
};
|
|
929
|
-
/**
|
|
930
|
-
* @deprecated withdrawing affirmation is no longer supported in chain v8
|
|
931
|
-
*/
|
|
932
|
-
export type WithdrawInstructionParams = {
|
|
933
|
-
/**
|
|
934
|
-
* (optional) Asset holders that the signer controls and wants to affirm the instruction or withdraw affirmation
|
|
935
|
-
*
|
|
936
|
-
* @note if empty, all the legs containing any custodied Asset Holders of the signer will be affirmed/affirmation will be withdrawn, based on the operation.
|
|
937
|
-
*/
|
|
938
|
-
holders?: AssetHolderLike[];
|
|
939
|
-
};
|
|
940
901
|
export declare enum SignerKeyRingType {
|
|
941
902
|
Ed25519 = "Ed25519",
|
|
942
903
|
Sr25519 = "Sr25519",
|
|
@@ -972,7 +933,7 @@ export interface OffChainAffirmationReceipt {
|
|
|
972
933
|
*/
|
|
973
934
|
metadata: string | undefined;
|
|
974
935
|
/**
|
|
975
|
-
* Timestamp at which the receipt expires
|
|
936
|
+
* Timestamp at which the receipt expires
|
|
976
937
|
*/
|
|
977
938
|
expiresAt?: Date | undefined;
|
|
978
939
|
}
|
|
@@ -996,13 +957,11 @@ export type AffirmAsMediatorParams = {
|
|
|
996
957
|
export type ModifyInstructionAffirmationParams = InstructionIdParams & (({
|
|
997
958
|
operation: InstructionAffirmationOperation.Affirm;
|
|
998
959
|
} & AffirmInstructionParams) | ({
|
|
999
|
-
operation: InstructionAffirmationOperation.Withdraw;
|
|
1000
|
-
} & WithdrawInstructionParams) | ({
|
|
1001
960
|
operation: InstructionAffirmationOperation.Reject;
|
|
1002
961
|
} & RejectInstructionParams) | ({
|
|
1003
962
|
operation: InstructionAffirmationOperation.AffirmAsMediator;
|
|
1004
963
|
} & AffirmAsMediatorParams) | {
|
|
1005
|
-
operation: InstructionAffirmationOperation.
|
|
964
|
+
operation: InstructionAffirmationOperation.RejectAsMediator;
|
|
1006
965
|
});
|
|
1007
966
|
export interface ExecuteManualInstructionParams {
|
|
1008
967
|
/**
|
|
@@ -1044,16 +1003,8 @@ export interface NftControllerTransferParams {
|
|
|
1044
1003
|
* The NFTs to transfer
|
|
1045
1004
|
*/
|
|
1046
1005
|
nfts: (Nft | BigNumber)[];
|
|
1047
|
-
/**
|
|
1048
|
-
* Optional portfolio (or portfolio ID) to which NFTs will be transferred to. Defaults to default portfolio. If specified it must be one of the callers own portfolios
|
|
1049
|
-
*
|
|
1050
|
-
* @deprecated in favour of `destination`. If both are passed `destination` will take precedence
|
|
1051
|
-
*/
|
|
1052
|
-
destinationPortfolio?: PortfolioLike;
|
|
1053
1006
|
/**
|
|
1054
1007
|
* (optional) portfolio (or portfolio ID) or account to which Assets will be transferred to. Defaults to default portfolio. If specified it must be one of the callers own portfolios or accounts
|
|
1055
|
-
*
|
|
1056
|
-
* @note this takes precedence over `destinationPortfolio`
|
|
1057
1008
|
*/
|
|
1058
1009
|
destination?: AssetHolderLike;
|
|
1059
1010
|
}
|
|
@@ -1113,16 +1064,6 @@ export type BatchIssueNftParams = {
|
|
|
1113
1064
|
*/
|
|
1114
1065
|
portfolioId?: BigNumber;
|
|
1115
1066
|
};
|
|
1116
|
-
export interface ModifyPrimaryIssuanceAgentParams {
|
|
1117
|
-
/**
|
|
1118
|
-
* Identity to be set as primary issuance agent
|
|
1119
|
-
*/
|
|
1120
|
-
target: string | Identity;
|
|
1121
|
-
/**
|
|
1122
|
-
* date at which the authorization request to modify the primary issuance agent expires (optional, never expires if a date is not provided)
|
|
1123
|
-
*/
|
|
1124
|
-
requestExpiry?: Date;
|
|
1125
|
-
}
|
|
1126
1067
|
export interface RedeemTokensParams {
|
|
1127
1068
|
/**
|
|
1128
1069
|
* amount of Asset tokens to be redeemed
|
|
@@ -1216,16 +1157,6 @@ export interface ModifyAssetTrustedClaimIssuersRemoveParams {
|
|
|
1216
1157
|
export interface RemoveCorporateActionParams {
|
|
1217
1158
|
corporateAction: CorporateActionBase | BigNumber;
|
|
1218
1159
|
}
|
|
1219
|
-
export interface ModifyCorporateActionsAgentParams {
|
|
1220
|
-
/**
|
|
1221
|
-
* Identity to be set as Corporate Actions Agent
|
|
1222
|
-
*/
|
|
1223
|
-
target: string | Identity;
|
|
1224
|
-
/**
|
|
1225
|
-
* date at which the authorization request to modify the Corporate Actions Agent expires (optional, never expires if a date is not provided)
|
|
1226
|
-
*/
|
|
1227
|
-
requestExpiry?: Date;
|
|
1228
|
-
}
|
|
1229
1160
|
export type ModifyCaDefaultConfigParams = {
|
|
1230
1161
|
targets?: InputTargets;
|
|
1231
1162
|
defaultTaxWithholding: BigNumber;
|
|
@@ -1538,7 +1469,7 @@ export interface CreateTransactionBatchParams<ReturnValues extends readonly [...
|
|
|
1538
1469
|
}
|
|
1539
1470
|
export interface CreateMultiSigParams {
|
|
1540
1471
|
/**
|
|
1541
|
-
* @note Signer must be an Account
|
|
1472
|
+
* @note Signer must be an Account
|
|
1542
1473
|
*/
|
|
1543
1474
|
signers: Signer[];
|
|
1544
1475
|
requiredSignatures: BigNumber;
|
|
@@ -1587,44 +1518,6 @@ export type SetVenueFilteringParams = {
|
|
|
1587
1518
|
allowedVenues?: BigNumber[];
|
|
1588
1519
|
disallowedVenues?: BigNumber[];
|
|
1589
1520
|
};
|
|
1590
|
-
export interface CreateChildIdentityParams {
|
|
1591
|
-
/**
|
|
1592
|
-
* The secondary key that will become the primary key of the new child Identity
|
|
1593
|
-
*/
|
|
1594
|
-
secondaryKey: string | Account;
|
|
1595
|
-
}
|
|
1596
|
-
export interface ChildKeyWithAuth {
|
|
1597
|
-
/**
|
|
1598
|
-
* The key that will become the primary key of the new child Identity
|
|
1599
|
-
*
|
|
1600
|
-
* @note This key should not be linked to any other Identity
|
|
1601
|
-
*/
|
|
1602
|
-
key: string | Account;
|
|
1603
|
-
/**
|
|
1604
|
-
* Off-chain authorization signature generated by `key` signing of the target Id authorization
|
|
1605
|
-
*
|
|
1606
|
-
* Target Id authorization consists of the target Identity (which will become the parent of the child Identity),
|
|
1607
|
-
* off chain authorization nonce of the target Identity and expiry date (same as `expiresAt` value) until which the off chain authorization will be valid.
|
|
1608
|
-
* Signature has to be generated encoding the target Id authorization value in the specified order.
|
|
1609
|
-
*
|
|
1610
|
-
* @note Nonce value can be fetched using {@link api/entities/Identity!Identity.getOffChainAuthorizationNonce | Identity.getOffChainAuthorizationNonce }
|
|
1611
|
-
* Signature can also be generated using the method {@link api/client/AccountManagement!AccountManagement.generateOffChainAuthSignature | accountManagement.generateOffChainAuthSignature }
|
|
1612
|
-
*/
|
|
1613
|
-
authSignature: `0x${string}`;
|
|
1614
|
-
}
|
|
1615
|
-
export interface CreateChildIdentitiesParams {
|
|
1616
|
-
/**
|
|
1617
|
-
* Expiry date until which all the off chain authorizations received from each key will be valid
|
|
1618
|
-
*/
|
|
1619
|
-
expiresAt: Date;
|
|
1620
|
-
/**
|
|
1621
|
-
* List of child keys along with their off chain authorization signatures
|
|
1622
|
-
*/
|
|
1623
|
-
childKeyAuths: ChildKeyWithAuth[];
|
|
1624
|
-
}
|
|
1625
|
-
export interface UnlinkChildParams {
|
|
1626
|
-
child: string | ChildIdentity;
|
|
1627
|
-
}
|
|
1628
1521
|
export interface RegisterCustomClaimTypeParams {
|
|
1629
1522
|
name: string;
|
|
1630
1523
|
}
|
|
@@ -1641,12 +1534,6 @@ export interface RegisterCustomAssetTypeParams {
|
|
|
1641
1534
|
name: string;
|
|
1642
1535
|
}
|
|
1643
1536
|
export interface BondPolyxParams {
|
|
1644
|
-
/**
|
|
1645
|
-
* The controller is the account responsible for managing staked POLYX. This can be the stash,
|
|
1646
|
-
* but designating a different key can make it easier to update nomination preferences and maintain
|
|
1647
|
-
* the POLYX in a more secure, but inconvenient, stash key.
|
|
1648
|
-
*/
|
|
1649
|
-
controller: Account | string;
|
|
1650
1537
|
/**
|
|
1651
1538
|
* The account that should receive the stashing rewards
|
|
1652
1539
|
*/
|
|
@@ -1663,14 +1550,6 @@ export interface BondPolyxParams {
|
|
|
1663
1550
|
*/
|
|
1664
1551
|
amount: BigNumber;
|
|
1665
1552
|
}
|
|
1666
|
-
export interface SetStakingControllerParams {
|
|
1667
|
-
/**
|
|
1668
|
-
* The account responsible for managing the signing stash's staking preferences
|
|
1669
|
-
*
|
|
1670
|
-
* @deprecated Chain v8 will ignore this argument. Instead the stash will become its own controller
|
|
1671
|
-
*/
|
|
1672
|
-
controller: Account | string;
|
|
1673
|
-
}
|
|
1674
1553
|
export interface SetStakingPayeeParams {
|
|
1675
1554
|
/**
|
|
1676
1555
|
* The account who will receive the staking rewards
|