Skip to main content

Reference / Modules / client / SponsorshipState

Class: SponsorshipState

client.SponsorshipState

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new SponsorshipState(sharedState, client, id, sponsorship, legalOfficer, locRequestState?): SponsorshipState

Parameters

NameType
sharedStateSharedState
clientLogionClient
idUUID
sponsorshipSponsorship
legalOfficerLegalOfficerClass
locRequestState?LocRequestState

Returns

SponsorshipState

Defined in

packages/client/src/Sponsorship.ts:69

Properties

client

Private Readonly client: LogionClient

Defined in

packages/client/src/Sponsorship.ts:61


id

Private Readonly id: UUID

Defined in

packages/client/src/Sponsorship.ts:62


legalOfficer

Readonly legalOfficer: LegalOfficerClass

Defined in

packages/client/src/Sponsorship.ts:65


locRequestState

Optional Readonly locRequestState: LocRequestState

Defined in

packages/client/src/Sponsorship.ts:66


sharedState

Private Readonly sharedState: SharedState

Defined in

packages/client/src/Sponsorship.ts:60


sponsorship

Readonly sponsorship: Sponsorship

Defined in

packages/client/src/Sponsorship.ts:64

Methods

refresh

refresh(refreshFromChain?): Promise<SponsorshipState>

Parameters

NameTypeDefault value
refreshFromChainbooleantrue

Returns

Promise<SponsorshipState>

Defined in

packages/client/src/Sponsorship.ts:101


getState

getState(params): Promise<SponsorshipState>

Parameters

NameType
paramsObject
params.clientLogionClient
params.idUUID
params.sharedStateSharedState

Returns

Promise<SponsorshipState>

Defined in

packages/client/src/Sponsorship.ts:78


getValidSponsorship

getValidSponsorship(sharedState, id): Promise<Sponsorship>

Parameters

NameType
sharedStateSharedState
idUUID

Returns

Promise<Sponsorship>

Defined in

packages/client/src/Sponsorship.ts:89