UNPKG

@polymeshassociation/polymesh-types

Version:
1,209 lines (1,208 loc) 124 kB
import '@polkadot/api-base/types/events'; import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types'; import type { BTreeSet, Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u32, u64, u8 } from '@polkadot/types-codec'; import type { ITuple } from '@polkadot/types-codec/types'; import type { AccountId32, H256, Perbill, Permill } from '@polkadot/types/interfaces/runtime'; import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletCorporateActionsBallotBallotMeta, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotVote, PalletCorporateActionsCaId, PalletCorporateActionsCorporateAction, PalletCorporateActionsDistribution, PalletCorporateActionsTargetIdentities, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletPipsProposalData, PalletPipsProposalState, PalletPipsProposer, PalletPipsSnapshottedPip, PalletStakingExposure, PalletStakingForcing, PalletStakingSlashingSwitch, PalletStakingValidatorPrefs, PalletStoFundingAsset, PalletStoFundraiser, PolymeshCommonUtilitiesCheckpointScheduleCheckpoints, PolymeshContractsApi, PolymeshContractsChainExtensionExtrinsicId, PolymeshContractsChainVersion, PolymeshPrimitivesAgentAgentGroup, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesAssetIdentifier, PolymeshPrimitivesAssetMetadataAssetMetadataKey, PolymeshPrimitivesAssetMetadataAssetMetadataSpec, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail, PolymeshPrimitivesAuthorizationAuthorizationData, PolymeshPrimitivesComplianceManagerComplianceRequirement, PolymeshPrimitivesConditionTrustedIssuer, PolymeshPrimitivesDocument, PolymeshPrimitivesEventOnly, PolymeshPrimitivesIdentityClaim, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityIdPortfolioId, PolymeshPrimitivesMaybeBlock, PolymeshPrimitivesMemo, PolymeshPrimitivesNftNfTs, PolymeshPrimitivesPortfolioFundDescription, PolymeshPrimitivesPortfolioPortfolioUpdateReason, PolymeshPrimitivesPosRatio, PolymeshPrimitivesSecondaryKey, PolymeshPrimitivesSecondaryKeyExtrinsicPermissions, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSettlementLeg, PolymeshPrimitivesSettlementReceiptMetadata, PolymeshPrimitivesSettlementSettlementType, PolymeshPrimitivesSettlementVenueType, PolymeshPrimitivesStatisticsStatType, PolymeshPrimitivesStatisticsStatUpdate, PolymeshPrimitivesTicker, PolymeshPrimitivesTransferComplianceTransferCondition, PolymeshPrimitivesTransferComplianceTransferConditionExemptKey, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError } from '@polkadot/types/lookup'; export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>; declare module '@polkadot/api-base/types/events' { interface AugmentedEvents<ApiType extends ApiTypes> { asset: { /** * An asset has been added to the list of pre aprroved receivement (valid for all identities). * Parameters: [`AssetId`] of the pre approved asset. **/ AssetAffirmationExemption: AugmentedEvent<ApiType, [PolymeshPrimitivesAssetAssetId]>; /** * Emitted when Tokens were issued, redeemed or transferred. * Contains the [`IdentityId`] of the receiver/issuer/redeemer, the [`AssetId`] for the token, the balance that was issued/transferred/redeemed, * the [`PortfolioId`] of the source, the [`PortfolioId`] of the destination and the [`PortfolioUpdateReason`]. **/ AssetBalanceUpdated: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, u128, Option<PolymeshPrimitivesIdentityIdPortfolioId>, Option<PolymeshPrimitivesIdentityIdPortfolioId>, PolymeshPrimitivesPortfolioPortfolioUpdateReason ]>; /** * Event for creation of the asset. * caller DID/ owner DID, AssetId, divisibility, asset type, beneficiary DID, asset name, identifiers, funding round **/ AssetCreated: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, bool, PolymeshPrimitivesAssetAssetType, PolymeshPrimitivesIdentityId, Bytes, Vec<PolymeshPrimitivesAssetIdentifier>, Option<Bytes> ]>; /** * An event emitted when an asset is frozen. * Parameter: caller DID, AssetId. **/ AssetFrozen: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId ]>; /** * An identity has added mandatory mediators to an asset. * Parameters: [`IdentityId`] of caller, [`AssetId`] of the asset, the identity of all mediators added. **/ AssetMediatorsAdded: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, BTreeSet<PolymeshPrimitivesIdentityId> ]>; /** * An identity has removed mediators from an asset. * Parameters: [`IdentityId`] of caller, [`AssetId`] of the asset, the identity of all mediators removed. **/ AssetMediatorsRemoved: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, BTreeSet<PolymeshPrimitivesIdentityId> ]>; /** * Emit when token ownership is transferred. * caller DID / token ownership transferred to DID, AssetId, from **/ AssetOwnershipTransferred: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesIdentityId ]>; /** * An event emitted when a token is renamed. * Parameters: caller DID, AssetId, new token name. **/ AssetRenamed: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, Bytes ]>; /** * An event emitted when the type of an asset changed. * Parameters: caller DID, AssetId, new token type. **/ AssetTypeChanged: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesAssetAssetType ]>; /** * An event emitted when an asset is unfrozen. * Parameter: caller DID, AssetId. **/ AssetUnfrozen: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId ]>; /** * Event for when a forced transfer takes place. * caller DID/ controller DID, ExtensionRemoved, Portfolio of token holder, value. **/ ControllerTransfer: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesIdentityIdPortfolioId, u128 ]>; /** * A custom asset type already exists on-chain. * caller DID, the ID of the custom asset type, the string contents registered. **/ CustomAssetTypeExists: AugmentedEvent<ApiType, [PolymeshPrimitivesIdentityId, u32, Bytes]>; /** * A custom asset type was registered on-chain. * caller DID, the ID of the custom asset type, the string contents registered. **/ CustomAssetTypeRegistered: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, u32, Bytes ]>; /** * Event for change in divisibility. * caller DID, AssetId, divisibility **/ DivisibilityChanged: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, bool ]>; /** * A new document attached to an asset **/ DocumentAdded: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, u32, PolymeshPrimitivesDocument ]>; /** * A document removed from an asset **/ DocumentRemoved: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, u32 ]>; /** * An event carrying the name of the current funding round of an asset. * Parameters: caller DID, AssetId, funding round name. **/ FundingRoundSet: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, Bytes ]>; /** * Asset Global Metadata Spec has been Updated. * Parameters: [`AssetMetadataName`] of the metadata, [`AssetMetadataSpec`] of the metadata. **/ GlobalMetadataSpecUpdated: AugmentedEvent<ApiType, [ Bytes, PolymeshPrimitivesAssetMetadataAssetMetadataSpec ]>; /** * Event emitted when any token identifiers are updated. * caller DID, AssetId, a vector of (identifier type, identifier value) **/ IdentifiersUpdated: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, Vec<PolymeshPrimitivesAssetIdentifier> ]>; /** * An event emitted when a local metadata key has been removed. * Parameters: caller AssetId, Local type name **/ LocalMetadataKeyDeleted: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, u64 ]>; /** * An event emitted when a local metadata value has been removed. * Parameters: caller AssetId, Local type name **/ MetadataValueDeleted: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesAssetMetadataAssetMetadataKey ]>; /** * An identity has added an asset to the list of pre aprroved receivement. * Parameters: [`IdentityId`] of caller, [`AssetId`] of the pre approved asset. **/ PreApprovedAsset: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId ]>; /** * Register asset metadata global type. * (Global type name, Global type key, type specs) **/ RegisterAssetMetadataGlobalType: AugmentedEvent<ApiType, [ Bytes, u64, PolymeshPrimitivesAssetMetadataAssetMetadataSpec ]>; /** * Register asset metadata local type. * (Caller DID, AssetId, Local type name, Local type key, type specs) **/ RegisterAssetMetadataLocalType: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, Bytes, u64, PolymeshPrimitivesAssetMetadataAssetMetadataSpec ]>; /** * An asset has been removed from the list of pre aprroved receivement (valid for all identities). * Parameters: [`AssetId`] of the asset. **/ RemoveAssetAffirmationExemption: AugmentedEvent<ApiType, [PolymeshPrimitivesAssetAssetId]>; /** * An identity has removed an asset to the list of pre aprroved receivement. * Parameters: [`IdentityId`] of caller, [`AssetId`] of the asset. **/ RemovePreApprovedAsset: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId ]>; /** * Set asset metadata value. * (Caller DID, AssetId, metadata value, optional value details) **/ SetAssetMetadataValue: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, Bytes, Option<PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail> ]>; /** * Set asset metadata value details (expire, lock status). * (Caller DID, AssetId, value details) **/ SetAssetMetadataValueDetails: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesAssetMetadataAssetMetadataValueDetail ]>; /** * An identity has linked a ticker to an asset. * Parameters: [`IdentityId`] of caller, [`Ticker`] of the asset, the asset identifier [`AssetId`]. **/ TickerLinkedToAsset: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesTicker, PolymeshPrimitivesAssetAssetId ]>; /** * Emit when ticker is registered. * caller DID / ticker owner did, ticker, ticker owner, expiry **/ TickerRegistered: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesTicker, Option<u64> ]>; /** * Emit when ticker is transferred. * caller DID / ticker transferred to DID, ticker, from **/ TickerTransferred: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesTicker, PolymeshPrimitivesIdentityId ]>; /** * An identity has unlinked a ticker from an asset. * Parameters: [`IdentityId`] of caller, unlinked [`Ticker`], the asset identifier [`AssetId`]. **/ TickerUnlinkedFromAsset: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesTicker, PolymeshPrimitivesAssetAssetId ]>; }; balances: { /** * The account and the amount of unlocked balance of that account that was burned. * (caller Id, caller account, amount) **/ AccountBalanceBurned: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, AccountId32, u128 ]>; /** * A balance was set by root (did, who, free, reserved). **/ BalanceSet: AugmentedEvent<ApiType, [PolymeshPrimitivesIdentityId, AccountId32, u128, u128]>; /** * An account was created with some free balance. \[did, account, free_balance] **/ Endowed: AugmentedEvent<ApiType, [Option<PolymeshPrimitivesIdentityId>, AccountId32, u128]>; /** * Some balance was reserved (moved from free to reserved). \[who, value] **/ Reserved: AugmentedEvent<ApiType, [AccountId32, u128]>; /** * Some balance was moved from the reserve of the first account to the second account. * Final argument indicates the destination balance type. * \[from, to, balance, destination_status] **/ ReserveRepatriated: AugmentedEvent<ApiType, [ AccountId32, AccountId32, u128, FrameSupportTokensMiscBalanceStatus ]>; /** * Transfer succeeded (from_did, from, to_did, to, value, memo). **/ Transfer: AugmentedEvent<ApiType, [ Option<PolymeshPrimitivesIdentityId>, AccountId32, Option<PolymeshPrimitivesIdentityId>, AccountId32, u128, Option<PolymeshPrimitivesMemo> ]>; /** * Some balance was unreserved (moved from reserved to free). \[who, value] **/ Unreserved: AugmentedEvent<ApiType, [AccountId32, u128]>; }; base: { /** * An unexpected error happened that should be investigated. * TODO: Unused, remove it. **/ UnexpectedError: AugmentedEvent<ApiType, [Option<SpRuntimeDispatchError>]>; }; capitalDistribution: { /** * A token holder's benefit of a capital distribution for the given `CAId` was claimed. * * (Caller DID, Holder/Claimant DID, CA's ID, updated distribution details, DID's benefit, DID's tax %) **/ BenefitClaimed: AugmentedEvent<ApiType, [ PolymeshPrimitivesEventOnly, PolymeshPrimitivesEventOnly, PalletCorporateActionsCaId, PalletCorporateActionsDistribution, u128, Permill ]>; /** * A capital distribution, with details included, * was created by the DID (permissioned agent) for the CA identified by `CAId`. * * (Agent DID, CA's ID, distribution details) **/ Created: AugmentedEvent<ApiType, [ PolymeshPrimitivesEventOnly, PalletCorporateActionsCaId, PalletCorporateActionsDistribution ]>; /** * Stats from `push_benefit` was emitted. * * (Agent DID, CA's ID, max requested DIDs, processed DIDs, failed DIDs) **/ Reclaimed: AugmentedEvent<ApiType, [ PolymeshPrimitivesEventOnly, PalletCorporateActionsCaId, u128 ]>; /** * A capital distribution was removed. * * (Agent DID, CA's ID) **/ Removed: AugmentedEvent<ApiType, [PolymeshPrimitivesEventOnly, PalletCorporateActionsCaId]>; }; cddServiceProviders: { /** * The limit of how many active members there can be concurrently was changed. **/ ActiveLimitChanged: AugmentedEvent<ApiType, [PolymeshPrimitivesIdentityId, u32, u32]>; /** * Phantom member, never used. This can be removed now. FRAME v2 doesn't require this. * TODO: remove. **/ Dummy: AugmentedEvent<ApiType, []>; /** * The given member was added; see the transaction for who. * caller DID, New member DID. **/ MemberAdded: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityId ]>; /** * The given member was removed; see the transaction for who. * caller DID, member DID that get removed. **/ MemberRemoved: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityId ]>; /** * The given member has been revoked at specific time-stamp. * caller DID, member DID that get revoked. **/ MemberRevoked: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityId ]>; /** * The membership was reset; see the transaction for who the new set is. * caller DID, List of new members. **/ MembersReset: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, Vec<PolymeshPrimitivesIdentityId> ]>; /** * Two members were swapped; see the transaction for who. * caller DID, Removed DID, New add DID. **/ MembersSwapped: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityId ]>; }; checkpoint: { /** * A checkpoint was created. * * (caller DID, AssetId, checkpoint ID, total supply, checkpoint timestamp) **/ CheckpointCreated: AugmentedEvent<ApiType, [ Option<PolymeshPrimitivesIdentityId>, PolymeshPrimitivesAssetAssetId, u64, u128, u64 ]>; /** * The maximum complexity for an arbitrary asset's schedule set was changed. * * (GC DID, the new maximum) **/ MaximumSchedulesComplexityChanged: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, u64 ]>; /** * A checkpoint schedule was created. * * (caller DID, AssetId, schedule id, schedule) **/ ScheduleCreated: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, u64, PolymeshCommonUtilitiesCheckpointScheduleCheckpoints ]>; /** * A checkpoint schedule was removed. * * (caller DID, AssetId, schedule id, schedule) **/ ScheduleRemoved: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, u64, PolymeshCommonUtilitiesCheckpointScheduleCheckpoints ]>; }; committeeMembership: { /** * The limit of how many active members there can be concurrently was changed. **/ ActiveLimitChanged: AugmentedEvent<ApiType, [PolymeshPrimitivesIdentityId, u32, u32]>; /** * Phantom member, never used. This can be removed now. FRAME v2 doesn't require this. * TODO: remove. **/ Dummy: AugmentedEvent<ApiType, []>; /** * The given member was added; see the transaction for who. * caller DID, New member DID. **/ MemberAdded: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityId ]>; /** * The given member was removed; see the transaction for who. * caller DID, member DID that get removed. **/ MemberRemoved: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityId ]>; /** * The given member has been revoked at specific time-stamp. * caller DID, member DID that get revoked. **/ MemberRevoked: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityId ]>; /** * The membership was reset; see the transaction for who the new set is. * caller DID, List of new members. **/ MembersReset: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, Vec<PolymeshPrimitivesIdentityId> ]>; /** * Two members were swapped; see the transaction for who. * caller DID, Removed DID, New add DID. **/ MembersSwapped: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityId ]>; }; complianceManager: { /** * Emitted when an asset compliance for a given asset_id gets paused. * (caller DID, AssetId). **/ AssetCompliancePaused: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId ]>; /** * Emitted when an asset compliance is replaced. * Parameters: caller DID, AssetId, new asset compliance. **/ AssetComplianceReplaced: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, Vec<PolymeshPrimitivesComplianceManagerComplianceRequirement> ]>; /** * Emitted when an asset compliance of a asset_id is reset. * (caller DID, AssetId). **/ AssetComplianceReset: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId ]>; /** * Emitted when an asset compliance for a given asset_id gets resume. * (caller DID, AssetId). **/ AssetComplianceResumed: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId ]>; /** * Emitted when compliance requirement get modified/change. * (caller DID, AssetId, ComplianceRequirement). **/ ComplianceRequirementChanged: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesComplianceManagerComplianceRequirement ]>; /** * Emitted when new compliance requirement is created. * (caller DID, AssetId, ComplianceRequirement). **/ ComplianceRequirementCreated: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesComplianceManagerComplianceRequirement ]>; /** * Emitted when a compliance requirement is removed. * (caller DID, AssetId, requirement_id). **/ ComplianceRequirementRemoved: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, u32 ]>; /** * Emitted when default claim issuer list for a given asset_id gets added. * (caller DID, AssetId, Added TrustedIssuer). **/ TrustedDefaultClaimIssuerAdded: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesConditionTrustedIssuer ]>; /** * Emitted when default claim issuer list for a given asset_id get removed. * (caller DID, AssetId, Removed TrustedIssuer). **/ TrustedDefaultClaimIssuerRemoved: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesIdentityId ]>; }; contracts: { /** * A contract was called either by a plain account or another contract. * * # Note * * Please keep in mind that like all events this is only emitted for successful * calls. This is because on failure all storage changes including events are * rolled back. **/ Called: AugmentedEvent<ApiType, [ caller: AccountId32, contract: AccountId32 ], { caller: AccountId32; contract: AccountId32; }>; /** * A code with the specified hash was removed. **/ CodeRemoved: AugmentedEvent<ApiType, [codeHash: H256], { codeHash: H256; }>; /** * Code with the specified hash has been stored. **/ CodeStored: AugmentedEvent<ApiType, [codeHash: H256], { codeHash: H256; }>; /** * A contract's code was updated. **/ ContractCodeUpdated: AugmentedEvent<ApiType, [ contract: AccountId32, newCodeHash: H256, oldCodeHash: H256 ], { contract: AccountId32; newCodeHash: H256; oldCodeHash: H256; }>; /** * A custom event emitted by the contract. **/ ContractEmitted: AugmentedEvent<ApiType, [ contract: AccountId32, data: Bytes ], { contract: AccountId32; data: Bytes; }>; /** * A contract delegate called a code hash. * * # Note * * Please keep in mind that like all events this is only emitted for successful * calls. This is because on failure all storage changes including events are * rolled back. **/ DelegateCalled: AugmentedEvent<ApiType, [ contract: AccountId32, codeHash: H256 ], { contract: AccountId32; codeHash: H256; }>; /** * Contract deployed by address at the specified address. **/ Instantiated: AugmentedEvent<ApiType, [ deployer: AccountId32, contract: AccountId32 ], { deployer: AccountId32; contract: AccountId32; }>; /** * Contract has been removed. * * # Note * * The only way for a contract to be removed and emitting this event is by calling * `seal_terminate`. **/ Terminated: AugmentedEvent<ApiType, [ contract: AccountId32, beneficiary: AccountId32 ], { contract: AccountId32; beneficiary: AccountId32; }>; }; corporateAction: { /** * A CA was initiated. * (Agent DID, CA id, the CA, the CA details) **/ CAInitiated: AugmentedEvent<ApiType, [ PolymeshPrimitivesEventOnly, PalletCorporateActionsCaId, PalletCorporateActionsCorporateAction, Bytes ]>; /** * A CA was linked to a set of docs. * (Agent DID, CA Id, List of doc identifiers) **/ CALinkedToDoc: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PalletCorporateActionsCaId, Vec<u32> ]>; /** * A CA was removed. * (Agent DID, CA Id) **/ CARemoved: AugmentedEvent<ApiType, [PolymeshPrimitivesEventOnly, PalletCorporateActionsCaId]>; /** * The set of default `TargetIdentities` for the asset changed. * (Agent DID, AssetId, New TargetIdentities) **/ DefaultTargetIdentitiesChanged: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, PalletCorporateActionsTargetIdentities ]>; /** * The default withholding tax for the asset changed. * (Agent DID, AssetId, New Tax). **/ DefaultWithholdingTaxChanged: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, Permill ]>; /** * The withholding tax specific to a DID for the asset changed. * (Agent DID, AssetId, Taxed DID, New Tax). **/ DidWithholdingTaxChanged: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesIdentityId, Option<Permill> ]>; /** * The maximum length of `details` in bytes was changed. * (GC DID, new length) **/ MaxDetailsLengthChanged: AugmentedEvent<ApiType, [PolymeshPrimitivesIdentityId, u32]>; /** * A CA's record date changed. **/ RecordDateChanged: AugmentedEvent<ApiType, [ PolymeshPrimitivesEventOnly, PalletCorporateActionsCaId, PalletCorporateActionsCorporateAction ]>; }; corporateBallot: { /** * A corporate ballot was created. * * (Agent DID, CA's ID, Voting start/end, Ballot metadata, RCV enabled?) **/ Created: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PalletCorporateActionsCaId, PalletCorporateActionsBallotBallotTimeRange, PalletCorporateActionsBallotBallotMeta, bool ]>; /** * A corporate ballot changed its metadata. * * (Agent DID, CA's ID, New metadata) **/ MetaChanged: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PalletCorporateActionsCaId, PalletCorporateActionsBallotBallotMeta ]>; /** * A corporate ballot changed its start/end date range. * * (Agent DID, CA's ID, Voting start/end) **/ RangeChanged: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PalletCorporateActionsCaId, PalletCorporateActionsBallotBallotTimeRange ]>; /** * A corporate ballot changed its RCV support. * * (Agent DID, CA's ID, New support) **/ RCVChanged: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PalletCorporateActionsCaId, bool ]>; /** * A corporate ballot was removed. * * (Agent DID, CA's ID) **/ Removed: AugmentedEvent<ApiType, [PolymeshPrimitivesEventOnly, PalletCorporateActionsCaId]>; /** * A vote was cast in a corporate ballot. * * (voter DID, CAId, Votes) **/ VoteCast: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PalletCorporateActionsCaId, Vec<PalletCorporateActionsBallotBallotVote> ]>; }; electionProviderMultiPhase: { /** * An election failed. * * Not much can be said about which computes failed in the process. **/ ElectionFailed: AugmentedEvent<ApiType, []>; /** * The election has been finalized, with the given computation and score. **/ ElectionFinalized: AugmentedEvent<ApiType, [ compute: PalletElectionProviderMultiPhaseElectionCompute, score: SpNposElectionsElectionScore ], { compute: PalletElectionProviderMultiPhaseElectionCompute; score: SpNposElectionsElectionScore; }>; /** * There was a phase transition in a given round. **/ PhaseTransitioned: AugmentedEvent<ApiType, [ from: PalletElectionProviderMultiPhasePhase, to: PalletElectionProviderMultiPhasePhase, round: u32 ], { from: PalletElectionProviderMultiPhasePhase; to: PalletElectionProviderMultiPhasePhase; round: u32; }>; /** * An account has been rewarded for their signed submission being finalized. **/ Rewarded: AugmentedEvent<ApiType, [ account: AccountId32, value: u128 ], { account: AccountId32; value: u128; }>; /** * An account has been slashed for submitting an invalid signed submission. **/ Slashed: AugmentedEvent<ApiType, [ account: AccountId32, value: u128 ], { account: AccountId32; value: u128; }>; /** * A solution was stored with the given compute. * * The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`, * the stored solution was submited in the signed phase by a miner with the `AccountId`. * Otherwise, the solution was stored either during the unsigned phase or by * `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make * room for this one. **/ SolutionStored: AugmentedEvent<ApiType, [ compute: PalletElectionProviderMultiPhaseElectionCompute, origin: Option<AccountId32>, prevEjected: bool ], { compute: PalletElectionProviderMultiPhaseElectionCompute; origin: Option<AccountId32>; prevEjected: bool; }>; }; externalAgents: { /** * An agent was added. * * (Caller/Agent DID, Agent's AssetId, Agent's group) **/ AgentAdded: AugmentedEvent<ApiType, [ PolymeshPrimitivesEventOnly, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesAgentAgentGroup ]>; /** * An agent was removed. * * (Caller DID, Agent's AssetId, Agent's DID) **/ AgentRemoved: AugmentedEvent<ApiType, [ PolymeshPrimitivesEventOnly, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesIdentityId ]>; /** * An agent's group was changed. * * (Caller DID, Agent's AssetId, Agent's DID, The new group of the agent) **/ GroupChanged: AugmentedEvent<ApiType, [ PolymeshPrimitivesEventOnly, PolymeshPrimitivesAssetAssetId, PolymeshPrimitivesIdentityId, PolymeshPrimitivesAgentAgentGroup ]>; /** * An Agent Group was created. * * (Caller DID, AG's AssetId, AG's ID, AG's permissions) **/ GroupCreated: AugmentedEvent<ApiType, [ PolymeshPrimitivesEventOnly, PolymeshPrimitivesAssetAssetId, u32, PolymeshPrimitivesSecondaryKeyExtrinsicPermissions ]>; /** * An Agent Group's permissions was updated. * * (Caller DID, AG's AssetId, AG's ID, AG's new permissions) **/ GroupPermissionsUpdated: AugmentedEvent<ApiType, [ PolymeshPrimitivesEventOnly, PolymeshPrimitivesAssetAssetId, u32, PolymeshPrimitivesSecondaryKeyExtrinsicPermissions ]>; }; grandpa: { /** * New authority set has been applied. **/ NewAuthorities: AugmentedEvent<ApiType, [ authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>> ], { authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>; }>; /** * Current authority set has been paused. **/ Paused: AugmentedEvent<ApiType, []>; /** * Current authority set has been resumed. **/ Resumed: AugmentedEvent<ApiType, []>; }; identity: { /** * Asset's identity registered. * * (Asset DID, ticker) **/ AssetDidRegistered: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesTicker ]>; /** * New authorization added. * * (authorised_by, target_did, target_key, auth_id, authorization_data, expiry) **/ AuthorizationAdded: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, Option<PolymeshPrimitivesIdentityId>, Option<AccountId32>, u64, PolymeshPrimitivesAuthorizationAuthorizationData, Option<u64> ]>; /** * Authorization consumed. * * (authorized_identity, authorized_key, auth_id) **/ AuthorizationConsumed: AugmentedEvent<ApiType, [ Option<PolymeshPrimitivesIdentityId>, Option<AccountId32>, u64 ]>; /** * Authorization rejected by the user who was authorized. * * (authorized_identity, authorized_key, auth_id) **/ AuthorizationRejected: AugmentedEvent<ApiType, [ Option<PolymeshPrimitivesIdentityId>, Option<AccountId32>, u64 ]>; /** * Accepting Authorization retry limit reached. * * (authorized_identity, authorized_key, auth_id) **/ AuthorizationRetryLimitReached: AugmentedEvent<ApiType, [ Option<PolymeshPrimitivesIdentityId>, Option<AccountId32>, u64 ]>; /** * Authorization revoked by the authorizer. * * (authorized_identity, authorized_key, auth_id) **/ AuthorizationRevoked: AugmentedEvent<ApiType, [ Option<PolymeshPrimitivesIdentityId>, Option<AccountId32>, u64 ]>; /** * CDD claims generated by `IdentityId` (a CDD Provider) have been invalidated from * `Moment`. * * (CDD provider DID, disable from date) **/ CddClaimsInvalidated: AugmentedEvent<ApiType, [PolymeshPrimitivesIdentityId, u64]>; /** * CDD requirement for updating primary key changed. * * (new_requirement) **/ CddRequirementForPrimaryKeyUpdated: AugmentedEvent<ApiType, [bool]>; /** * Child identity created. * * (Parent DID, Child DID, primary key) **/ ChildDidCreated: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityId, AccountId32 ]>; /** * Child identity unlinked from parent identity. * * (Caller DID, Parent DID, Child DID) **/ ChildDidUnlinked: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityId ]>; /** * Claim added to identity. * * (DID, claim) **/ ClaimAdded: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityClaim ]>; /** * Claim revoked from identity. * * (DID, claim) **/ ClaimRevoked: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, PolymeshPrimitivesIdentityClaim ]>; /** * A new CustomClaimType was added. * * (DID, id, Type) **/ CustomClaimTypeAdded: AugmentedEvent<ApiType, [PolymeshPrimitivesIdentityId, u32, Bytes]>; /** * Identity created. * * (DID, primary key, secondary keys) **/ DidCreated: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, AccountId32, Vec<PolymeshPrimitivesSecondaryKey> ]>; /** * Primary key of identity changed. * * (DID, old primary key account ID, new ID) **/ PrimaryKeyUpdated: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, AccountId32, AccountId32 ]>; /** * A secondary key left their identity. * * (DID, secondary key) **/ SecondaryKeyLeftIdentity: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, AccountId32 ]>; /** * Secondary key permissions updated. * * (DID, updated secondary key, previous permissions, new permissions) **/ SecondaryKeyPermissionsUpdated: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, AccountId32, PolymeshPrimitivesSecondaryKeyPermissions, PolymeshPrimitivesSecondaryKeyPermissions ]>; /** * Secondary keys added to identity. * * (DID, new keys) **/ SecondaryKeysAdded: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, Vec<PolymeshPrimitivesSecondaryKey> ]>; /** * All Secondary keys of the identity ID are frozen. * * (DID) **/ SecondaryKeysFrozen: AugmentedEvent<ApiType, [PolymeshPrimitivesIdentityId]>; /** * Secondary keys removed from identity. * * (DID, the keys that got removed) **/ SecondaryKeysRemoved: AugmentedEvent<ApiType, [ PolymeshPrimitivesIdentityId, Vec<AccountId32> ]>; /** * All Secondary keys of the identity ID are unfrozen. * * (DID) **/ SecondaryKeysUnfrozen: AugmentedEvent<ApiType, [PolymeshPrimitivesIdentityId]>; }; imOnline: { /** * At the end of the session, no offence was committed. **/ AllGood: AugmentedEvent<ApiType, []>; /** * A new heartbeat was received from `AuthorityId`. **/ HeartbeatReceived: AugmentedEvent<ApiType, [ authorityId: PalletImOnlineSr25519AppSr25519Public ], { authorityId: PalletImOnlineSr25519AppSr25519Public; }>; /** * At the end of the session, at least one validator was found to be offline. **/ SomeOffline: AugmentedEvent<ApiType, [ offline: Vec<ITuple<[AccountId32, PalletStakingExposure]>> ], { offline: Vec<ITuple<[AccountId32, PalletStakingExposure]>>; }>; }; indices: { /** * A account index was assigned. **/ IndexAssigned: AugmentedEvent<ApiType, [ who: AccountId32, index: u32 ], { who: AccountId32; index: u32; }>; /** * A account index has been freed up (unassigned).