api_entities_Asset_CorporateActions.CorporateActions

@polymeshassociation/polymesh-sdk / Modules / api/entities/Asset/CorporateActions / CorporateActions

Class: CorporateActions

api/entities/Asset/CorporateActions.CorporateActions

Handles all Asset Corporate Actions related functionality

Hierarchy

  • Namespace<Asset>

    CorporateActions

Table of contents

Properties

Methods

Properties

distributions

distributions: Distributions

Defined in

api/entities/Asset/CorporateActions/index.ts:35

Methods

getAgents

getAgents(): Promise<Identity[]>

Retrieve a list of agent Identities

Returns

Promise<Identity[]>

Defined in

api/entities/Asset/CorporateActions/index.ts:125


getDefaultConfig

getDefaultConfig(): Promise<CorporateActionDefaultConfig>

Retrieve default config comprising of targets, global tax withholding percentage and per-Identity tax withholding percentages.

note This config is applied to every Corporate Action that is created until they are modified. Modifying the default config does not impact existing Corporate Actions. When creating a Corporate Action, values passed explicitly will override this default config

Returns

Promise<CorporateActionDefaultConfig>

Defined in

api/entities/Asset/CorporateActions/index.ts:160


remove

remove(args, opts?): Promise<TransactionQueue<void, void, unknown[][]>>

Remove a Corporate Action

note this method is of type ProcedureMethod, which means you can call remove.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters

Returns

Promise<TransactionQueue<void, void, unknown[][]>>

Defined in

api/entities/Asset/CorporateActions/index.ts:118


removeAgent

removeAgent(opts?): Promise<TransactionQueue<void, void, unknown[][]>>

Remove the Corporate Actions Agent of the Asset

note this action will leave the Asset owner as the Corporate Actions Agent

deprecated

note this method is of type NoArgsProcedureMethod, which means you can call removeAgent.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters

NameType

opts?

Returns

Promise<TransactionQueue<void, void, unknown[][]>>

Defined in

api/entities/Asset/CorporateActions/index.ts:108


setAgent

setAgent(args, opts?): Promise<TransactionQueue<void, void, unknown[][]>>

Assign a new Corporate Actions Agent for the Asset

note this may create Authorization Requests which have to be accepted by the target Identity. An Account or Identity can fetch its pending Authorization Requests by calling authorizations.getReceived. Also, an Account or Identity can directly fetch the details of an Authorization Request by calling authorizations.getOne

deprecated in favor of inviteAgent

note this method is of type ProcedureMethod, which means you can call setAgent.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters

Returns

Promise<TransactionQueue<void, void, unknown[][]>>

Defined in

api/entities/Asset/CorporateActions/index.ts:94


setDefaultConfig

setDefaultConfig(args, opts?): Promise<TransactionQueue<void, void, unknown[][]>>

Assign default config values(targets, global tax withholding percentage and per-Identity tax withholding percentages)

note These config values are applied to every Corporate Action that is created until they are modified. Modifying these values does not impact existing Corporate Actions. When creating a Corporate Action, values passed explicitly will override these default config values

note this method is of type ProcedureMethod, which means you can call setDefaultConfig.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it

Parameters

Returns

Promise<TransactionQueue<void, void, unknown[][]>>

Defined in

api/entities/Asset/CorporateActions/index.ts:78

Last updated