UNPKG

@polymeshassociation/polymesh-types

Version:
659 lines (658 loc) 15.9 kB
{ "PolymeshAssetId": "[u8; 16]", "IdentityId": "[u8; 32]", "Ticker": "[u8; 12]", "CddId": "[u8; 32]", "PalletName": "Text", "ExtrinsicName": "Text", "AuthorizationNonce": "u64", "TargetIdAuthorization": { "targetId": "IdentityId", "nonce": "AuthorizationNonce", "expiresAt": "PolymeshMoment" }, "Receipt": { "uid": "u64", "instructionId": "InstructionId", "legId": "LegId", "senderIdentity": "IdentityId", "receiverIdentity": "IdentityId", "ticker": "Ticker", "amount": "Balance" }, "FundraiserId": "u64", "FundraiserReceipt": { "uid": "u64", "fundraiserId": "FundraiserId", "legId": "LegId", "senderIdentity": "IdentityId", "receiverIdentity": "IdentityId", "ticker": "Ticker", "amount": "Balance" }, "AssetPermissions": { "_enum": { "Whole": "", "These": "BTreeSet<PolymeshAssetId>", "Except": "BTreeSet<PolymeshAssetId>" } }, "PortfolioPermissions": { "_enum": { "Whole": "", "These": "BTreeSet<PortfolioId>", "Except": "BTreeSet<PortfolioId>" } }, "ExtrinsicNames": { "_enum": { "Whole": "", "These": "BTreeSet<ExtrinsicName>", "Except": "BTreeSet<ExtrinsicName>" } }, "PalletPermissions": { "extrinsics": "ExtrinsicNames" }, "ExtrinsicPermissions": { "_enum": { "Whole": "", "These": "BTreeMap<PalletName, PalletPermissions>", "Except": "BTreeMap<PalletName, PalletPermissions>" } }, "Permissions": { "asset": "AssetPermissions", "extrinsic": "ExtrinsicPermissions", "portfolio": "PortfolioPermissions" }, "Signatory": { "_enum": { "Identity": "IdentityId", "Account": "AccountId" } }, "SecondaryKey": { "key": "AccountId", "permissions": "Permissions" }, "KeyIdentityData": { "identity": "IdentityId", "permissions": "Option<Permissions>" }, "CountryCode": { "_enum": [ "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "VG", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "HK", "MO", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VI", "WF", "EH", "YE", "ZM", "ZW", "BQ", "CW", "SX" ] }, "Scope": { "_enum": { "Identity": "IdentityId", "Asset": "PolymeshAssetId", "Custom": "Vec<u8>" } }, "CustomClaimTypeId": "u32", "Claim": { "_enum": { "Accredited": "Scope", "Affiliate": "Scope", "BuyLockup": "Scope", "SellLockup": "Scope", "CustomerDueDiligence": "CddId", "KnowYourCustomer": "Scope", "Jurisdiction": "(CountryCode, Scope)", "Exempted": "Scope", "Blocked": "Scope", "Custom": "(CustomClaimTypeId, Option<Scope>)" } }, "ClaimType": { "_enum": { "Accredited": "", "Affiliate": "", "BuyLockup": "", "SellLockup": "", "CustomerDueDiligence": "", "KnowYourCustomer": "", "Jurisdiction": "", "Exempted": "", "Blocked": "", "Custom": "CustomClaimTypeId" } }, "IdentityClaim": { "claimIssuer": "IdentityId", "issuanceDate": "PolymeshMoment", "lastUpdateDate": "PolymeshMoment", "expiry": "Option<PolymeshMoment>", "claim": "Claim" }, "ComplianceRequirementResult": { "senderConditions": "Vec<ConditionResult>", "receiverConditions": "Vec<ConditionResult>", "id": "u32", "result": "bool" }, "ConditionType": { "_enum": { "IsPresent": "Claim", "IsAbsent": "Claim", "IsAnyOf": "Vec<Claim>", "IsNoneOf": "Vec<Claim>", "IsIdentity": "TargetIdentity" } }, "TrustedFor": { "_enum": { "Any": "", "Specific": "Vec<ClaimType>" } }, "TrustedIssuer": { "issuer": "IdentityId", "trustedFor": "TrustedFor" }, "Condition": { "conditionType": "ConditionType", "issuers": "Vec<TrustedIssuer>" }, "ConditionResult": { "condition": "Condition", "result": "bool" }, "PipId": "u32", "Authorization": { "authorizationData": "AuthorizationData", "authorizedBy": "IdentityId", "expiry": "Option<PolymeshMoment>", "authId": "u64", "count": "u32" }, "AuthorizationData": { "_enum": { "AttestPrimaryKeyRotation": "IdentityId", "RotatePrimaryKey": "", "TransferTicker": "Ticker", "AddMultiSigSigner": "AccountId", "TransferAssetOwnership": "PolymeshAssetId", "JoinIdentity": "Permissions", "PortfolioCustody": "PortfolioId", "BecomeAgent": "(PolymeshAssetId, AgentGroup)", "AddRelayerPayingKey": "(AccountId32, AccountId32, u128)", "RotatePrimaryKeyToSecondary": "Permissions" } }, "Percentage": "Permill", "StatClaim": { "_enum": { "Accredited": "bool", "Affiliate": "bool", "Jurisdiction": "Option<CountryCode>" } }, "TransferCondition": { "_enum": { "MaxInvestorCount": "u64", "MaxInvestorOwnership": "Percentage", "ClaimCount": "(StatClaim, IdentityId, u64, Option<u64>)", "ClaimOwnership": "(StatClaim, IdentityId, Percentage, Percentage)" } }, "AssetComplianceResult": { "paused": "bool", "requirements": "Vec<ComplianceRequirementResult>", "result": "bool" }, "ProtocolOp": { "_enum": [ "AssetRegisterTicker", "AssetIssue", "AssetAddDocuments", "AssetCreateAsset", "CheckpointCreateSchedule", "ComplianceManagerAddComplianceRequirement", "IdentityCddRegisterDid", "IdentityAddClaim", "IdentityAddSecondaryKeysWithAuthorization", "PipsPropose", "ContractsPutCode", "CorporateBallotAttachBallot", "CapitalDistributionDistribute", "NFTCreateCollection", "NFTMint", "IdentityCreateChildIdentity" ] }, "CddStatus": { "_enum": { "Ok": "IdentityId", "Err": "Vec<u8>" } }, "AssetDidResult": { "_enum": { "Ok": "IdentityId", "Err": "Vec<u8>" } }, "RpcDidRecordsSuccess": { "primaryKey": "AccountId", "secondaryKeys": "Vec<SecondaryKey>" }, "RpcDidRecords": { "_enum": { "Success": "RpcDidRecordsSuccess", "IdNotFound": "Vec<u8>" } }, "VoteCountProposalFound": { "ayes": "u64", "nays": "u64" }, "VoteCount": { "_enum": { "ProposalFound": "VoteCountProposalFound", "ProposalNotFound": "" } }, "CappedFee": "u64", "AuthorizationType": { "_enum": { "AttestPrimaryKeyRotation": "", "RotatePrimaryKey": "", "TransferTicker": "", "AddMultiSigSigner": "", "TransferAssetOwnership": "", "JoinIdentity": "", "PortfolioCustody": "", "BecomeAgent": "", "AddRelayerPayingKey": "", "RotatePrimaryKeyToSecondary": "" } }, "DidStatus": { "_enum": { "Unknown": "", "Exists": "", "CddVerified": "" } }, "PortfolioNumber": "u64", "PortfolioKind": { "_enum": { "Default": "", "User": "PortfolioNumber" } }, "PortfolioId": { "did": "IdentityId", "kind": "PortfolioKind" }, "PolymeshMoment": "u64", "InstructionId": "u64", "LegId": "u64", "TargetIdentity": { "_enum": { "ExternalAgent": "", "Specific": "IdentityId" } }, "CanTransferGranularReturn": { "_enum": { "Ok": "GranularCanTransferResult", "Err": "DispatchError" } }, "GranularCanTransferResult": { "invalidGranularity": "bool", "selfTransfer": "bool", "invalidReceiverCdd": "bool", "invalidSenderCdd": "bool", "receiverCustodianError": "bool", "senderCustodianError": "bool", "senderInsufficientBalance": "bool", "portfolioValidityResult": "PortfolioValidityResult", "assetFrozen": "bool", "transferConditionResult": "Vec<TransferConditionResult>", "complianceResult": "AssetComplianceResult", "result": "bool", "consumedWeight": "Option<Weight>" }, "PortfolioValidityResult": { "receiverIsSamePortfolio": "bool", "senderPortfolioDoesNotExist": "bool", "receiverPortfolioDoesNotExist": "bool", "senderInsufficientBalance": "bool", "result": "bool" }, "TransferConditionResult": { "condition": "TransferCondition", "result": "bool" }, "AGId": "u32", "AgentGroup": { "_enum": { "Full": "", "Custom": "AGId", "ExceptMeta": "", "PolymeshV1CAA": "", "PolymeshV1PIA": "" } }, "Member": { "id": "IdentityId", "expiryAt": "Option<PolymeshMoment>", "inactiveFrom": "Option<PolymeshMoment>" }, "NFTId": "u64", "NFTs": { "assetId": "PolymeshAssetId", "ids": "Vec<NFTId>" }, "FungibleLeg": { "sender": "PortfolioId", "receiver": "PortfolioId", "assetId": "PolymeshAssetId", "amount": "Balance" }, "NonFungibleLeg": { "sender": "PortfolioId", "receiver": "PortfolioId", "nfts": "NFTs" }, "OffChainLeg": { "senderIdentity": "IdentityId", "receiverIdentity": "IdentityId", "ticker": "Ticker", "amount": "Balance" }, "Leg": { "_enum": { "Fungible": "FungibleLeg", "NonFungible": "NonFungibleLeg", "OffChain": "OffChainLeg" } }, "ExecuteInstructionInfo": { "fungibleTokens": "u32", "nonFungibleTokens": "u32", "offChainAssets": "u32", "consumedWeight": "Weight", "error": "Option<String>" }, "AssetCount": { "fungibleTokens": "u32", "nonFungibleTokens": "u32", "offChainAssets": "u32" }, "AffirmationCount": { "senderAssetCount": "AssetCount", "receiverAssetCount": "AssetCount", "offchainCount": "u32" }, "ComplianceReport": { "anyRequirementSatisfied": "bool", "pausedCompliance": "bool", "requirements": "Vec<RequirementReport>" }, "RequirementReport": { "requirementSatisfied": "bool", "id": "u32", "senderConditions": "Vec<ConditionReport>", "receiverConditions": "Vec<ConditionReport>" }, "ConditionReport": { "satisfied": "bool", "condition": "Condition" } }