api.entities.CorporateBallot - PolymeshAssociation/polymesh-sdk GitHub Wiki
@polymeshassociation/polymesh-sdk / api/entities/CorporateBallot
Defined in: api/entities/CorporateBallot/index.ts:69
Represents a Ballot
asset:
FungibleAsset
Defined in: api/entities/CorporateActionBase/index.ts:85
Asset affected by this Corporate Action
declarationDate:
Date
Defined in: api/entities/CorporateActionBase/index.ts:90
date at which the Corporate Action was created
CorporateActionBase.declarationDate
defaultTaxWithholding:
BigNumber
Defined in: api/entities/CorporateActionBase/index.ts:106
default percentage (0-100) of tax withholding for this Corporate Action
CorporateActionBase.defaultTaxWithholding
description:
string
Defined in: api/entities/CorporateActionBase/index.ts:95
brief text description of the Corporate Action
CorporateActionBase.description
id:
BigNumber
Defined in: api/entities/CorporateActionBase/index.ts:80
internal Corporate Action ID
targets:
CorporateActionTargets
Defined in: api/entities/CorporateActionBase/index.ts:101
Asset Holder Identities related to this Corporate action. If the treatment is Exclude, the Identities
in the array will not be targeted by the Action, Identities not in the array will be targeted, and vice versa
taxWithholdings:
TaxWithholding[]
Defined in: api/entities/CorporateActionBase/index.ts:112
percentage (0-100) of tax withholding per Identity. Any Identity not present in this array uses the default tax withholding percentage
CorporateActionBase.taxWithholdings
uuid:
string
Defined in: api/entities/Entity.ts:46
checkpoint():
Promise<Checkpoint|CheckpointSchedule|null>
Defined in: api/entities/CorporateActionBase/index.ts:229
Retrieve the Checkpoint associated with this Corporate Action. If the Checkpoint is scheduled and has not been created yet, the corresponding CheckpointSchedule is returned instead. A null value means the Corporate Action was created without an associated Checkpoint
Promise<Checkpoint | CheckpointSchedule | null>
CorporateActionBase.checkpoint
details():
Promise<CorporateBallotDetails>
Defined in: api/entities/CorporateBallot/index.ts:136
Retrieve details associated with this Ballot
Promise<CorporateBallotDetails>
if the Ballot does not exist
exists():
Promise<boolean>
Defined in: api/entities/CorporateBallot/index.ts:115
Determine whether this Ballot exists on chain
Promise<boolean>
getDocuments():
Promise<AssetDocumentWithId[]>
Defined in: api/entities/CorporateActionBase/index.ts:167
Retrieve the documents linked to this Corporate Action
Promise<AssetDocumentWithId[]>
CorporateActionBase.getDocuments
isEqual(
entity):boolean
Defined in: api/entities/Entity.ts:61
Determine whether this Entity is the same as another one
| Parameter | Type |
|---|---|
entity |
Entity<unknown, unknown> |
boolean
linkDocuments(
args,opts?):Promise<GenericPolymeshTransaction<void,void>>
Defined in: api/entities/CorporateActionBase/index.ts:162
Link a list of documents to this corporate action
| Parameter | Type |
|---|---|
args |
LinkCaDocsParams |
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<void, void>>
any previous links are removed in favor of the new list
this method is of type ProcedureMethod, which means you can call linkDocuments.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
CorporateActionBase.linkDocuments
modifyCheckpoint(
args,opts?):Promise<GenericPolymeshTransaction<void,void>>
Defined in: api/entities/CorporateBallot/index.ts:326
Modify the Corporate Ballot's Record Date
| Parameter | Type |
|---|---|
args |
{ checkpoint: InputCaCheckpoint; } |
args.checkpoint |
InputCaCheckpoint |
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<void, void>>
this method is of type ProcedureMethod, which means you can call modifyCheckpoint.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
CorporateActionBase.modifyCheckpoint
remove(
opts?):Promise<GenericPolymeshTransaction<void,void>>
Defined in: api/entities/CorporateBallot/index.ts:308
Remove the Ballot
| Parameter | Type |
|---|---|
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<void, void>>
deletes the corporate action with the associated ballot if ballot has not started
if ballot has already started
if ballot is not found
this method is of type NoArgsProcedureMethod, 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
results():
Promise<CorporateBallotMetaWithResults>
Defined in: api/entities/CorporateBallot/index.ts:173
Retrieve the results of the Ballot
Promise<CorporateBallotMetaWithResults>
if the Ballot does not exist
status():
Promise<CorporateBallotStatus>
Defined in: api/entities/CorporateBallot/index.ts:147
Return the status of the Ballot
Promise<CorporateBallotStatus>
if the Ballot does not exist
toHuman():
HumanReadable
Defined in: api/entities/CorporateActionBase/index.ts:315
Return the Corporate Action's static data
vote(
args,opts?):Promise<GenericPolymeshTransaction<void,void>>
Defined in: api/entities/CorporateBallot/index.ts:321
Cast a vote on the Ballot
| Parameter | Type |
|---|---|
args |
CastBallotVoteParams |
opts? |
ProcedureOpts |
Promise<GenericPolymeshTransaction<void, void>>
if the Ballot does not exist
if the Ballot voting is not active
if the number of votes does not match the sum of all choices of all motions
if fallback votes are provided for a non-RCV Ballot
if vote does not point to the correct choice in motion
if the fallback vote is the same as the choice
if the fallback vote is not pointing to a choice in the motion
this method is of type ProcedureMethod, which means you can call vote.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it
votesByIdentity(
did):Promise<CorporateBallotWithParticipation>
Defined in: api/entities/CorporateBallot/index.ts:234
Retrieve the participation of the Ballot
| Parameter | Type |
|---|---|
did |
string | Identity
|
Promise<CorporateBallotWithParticipation>
if the Ballot does not exist
staticgenerateUuid<Identifiers>(identifiers):string
Defined in: api/entities/Entity.ts:14
Generate the Entity's UUID from its identifying properties
| Type Parameter |
|---|
Identifiers |
| Parameter | Type | Description |
|---|---|---|
identifiers |
Identifiers |
- |
string
CorporateActionBase.generateUuid
staticunserialize<Identifiers>(serialized):Identifiers
Defined in: api/entities/Entity.ts:23
Unserialize a UUID into its Unique Identifiers
| Type Parameter |
|---|
Identifiers |
| Parameter | Type | Description |
|---|---|---|
serialized |
string |
UUID to unserialize |
Identifiers
CorporateActionBase.unserialize
Defined in: api/entities/CorporateBallot/index.ts:53
assetId:
string
Defined in: api/entities/CorporateBallot/index.ts:55
id:
string
Defined in: api/entities/CorporateBallot/index.ts:54
Defined in: api/entities/CorporateBallot/index.ts:57
declarationDate:
Date
Defined in: api/entities/CorporateBallot/index.ts:59
defaultTaxWithholding:
BigNumber
Defined in: api/entities/CorporateBallot/index.ts:62
description:
string
Defined in: api/entities/CorporateBallot/index.ts:60
kind:
CorporateActionKind
Defined in: api/entities/CorporateBallot/index.ts:58
targets:
CorporateActionTargets
Defined in: api/entities/CorporateBallot/index.ts:61
taxWithholdings:
TaxWithholding[]
Defined in: api/entities/CorporateBallot/index.ts:63
Defined in: api/entities/CorporateBallot/index.ts:48
assetId:
string
Defined in: api/entities/CorporateBallot/index.ts:50
id:
BigNumber
Defined in: api/entities/CorporateBallot/index.ts:49