Skip to main content
Version: 23.0.x

Class: MultiSigProposal

api/entities/MultiSigProposal.MultiSigProposal

A proposal for a MultiSig transaction. This is a wrapper around an extrinsic that will be executed when the amount of approvals reaches the signature threshold set on the MultiSig Account

Hierarchy

Properties

id

id: BigNumber

Defined in

api/entities/MultiSigProposal/index.ts:53


multiSig

multiSig: MultiSig

Defined in

api/entities/MultiSigProposal/index.ts:52


uuid

uuid: string

Inherited from

Entity.uuid

Defined in

api/entities/Entity.ts:46

Methods

approve

approve(opts?): Promise<GenericPolymeshTransaction<void, void>>

Approve this MultiSig proposal

Note

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

Parameters

NameType
opts?ProcedureOpts

Returns

Promise<GenericPolymeshTransaction<void, void>>


createdAt

createdAt(): Promise<null | EventIdentifier>

Retrieve the identifier data (block number, date and event index) of the event that was emitted when this MultiSig Proposal was created

Note

uses the middlewareV2

Note

there is a possibility that the data is not ready by the time it is requested. In that case, null is returned

Returns

Promise<null | EventIdentifier>


creator

creator(): Promise<null | Account>

Retrieve the account which created this MultiSig Proposal

Note

uses the middlewareV2

Note

there is a possibility that the data is not ready by the time it is requested. In that case, null is returned

Returns

Promise<null | Account>


details

details(): Promise<MultiSigProposalDetails>

Fetches the details of the Proposal. This includes the amount of approvals and rejections, the expiry, and details of the wrapped extrinsic

Returns

Promise<MultiSigProposalDetails>


exists

exists(): Promise<boolean>

Determines whether this Proposal exists on chain

Returns

Promise<boolean>

Overrides

Entity.exists


isEqual

isEqual(entity): boolean

Determine whether this Entity is the same as another one

Parameters

NameType
entityEntity<unknown, unknown>

Returns

boolean

Inherited from

Entity.isEqual


reject

reject(opts?): Promise<GenericPolymeshTransaction<void, void>>

Reject this MultiSig proposal

Note

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

Parameters

NameType
opts?ProcedureOpts

Returns

Promise<GenericPolymeshTransaction<void, void>>


toHuman

toHuman(): HumanReadable

Returns a human readable representation

Returns

HumanReadable

Overrides

Entity.toHuman


votes

votes(): Promise<MultiSigProposalVote[]>

Fetches the individual votes for this MultiSig proposal and their identifier data (block number, date and event index) of the event that was emitted when this MultiSig Proposal Vote was casted

Note

uses the middlewareV2

Returns

Promise<MultiSigProposalVote[]>


generateUuid

Static generateUuid<Identifiers>(identifiers): string

Generate the Entity's UUID from its identifying properties

Type parameters

Name
Identifiers

Parameters

NameType
identifiersIdentifiers

Returns

string

Inherited from

Entity.generateUuid


isUniqueIdentifiers

Static isUniqueIdentifiers(identifiers): boolean

Typeguard that checks whether the object passed corresponds to the unique identifiers of the class. Must be overridden

Parameters

NameTypeDescription
identifiersunknownobject to type check

Returns

boolean

Inherited from

Entity.isUniqueIdentifiers


unserialize

Static unserialize<Identifiers>(serialized): Identifiers

Unserialize a UUID into its Unique Identifiers

Type parameters

Name
Identifiers

Parameters

NameTypeDescription
serializedstringUUID to unserialize

Returns

Identifiers

Inherited from

Entity.unserialize