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
Name | Type |
---|---|
sharedState | SharedState |
client | LogionClient |
id | UUID |
sponsorship | Sponsorship |
legalOfficer | LegalOfficerClass |
locRequestState? | LocRequestState |
Returns
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
Name | Type | Default value |
---|---|---|
refreshFromChain | boolean | true |
Returns
Promise
<SponsorshipState
>
Defined in
packages/client/src/Sponsorship.ts:101
getState
▸ getState(params
): Promise
<SponsorshipState
>
Parameters
Name | Type |
---|---|
params | Object |
params.client | LogionClient |
params.id | UUID |
params.sharedState | SharedState |
Returns
Promise
<SponsorshipState
>
Defined in
packages/client/src/Sponsorship.ts:78
getValidSponsorship
▸ getValidSponsorship(sharedState
, id
): Promise
<Sponsorship
>
Parameters
Name | Type |
---|---|
sharedState | SharedState |
id | UUID |
Returns
Promise
<Sponsorship
>