Skip to main content

Reference / Modules / client / ClosedCollectionLoc

Class: ClosedCollectionLoc

client.ClosedCollectionLoc

Hierarchy

  • ClosedOrVoidCollectionLoc

    ClosedCollectionLoc

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new ClosedCollectionLoc(locSharedState, request, legalOfficerCase, locIssuers, invitedContributors): ClosedCollectionLoc

Parameters

NameType
locSharedStateLocSharedState
requestLocRequest
legalOfficerCaseundefined | LegalOfficerCase
locIssuersLocVerifiedIssuers
invitedContributorsValidAccountId[]

Returns

ClosedCollectionLoc

Inherited from

ClosedOrVoidCollectionLoc.constructor

Defined in

packages/client/src/Loc.ts:766

Properties

invitedContributors

Protected Readonly invitedContributors: ValidAccountId[]

Inherited from

ClosedOrVoidCollectionLoc.invitedContributors

Defined in

packages/client/src/Loc.ts:763


legalOfficerCase

Protected Optional Readonly legalOfficerCase: LegalOfficerCase

Inherited from

ClosedOrVoidCollectionLoc.legalOfficerCase

Defined in

packages/client/src/Loc.ts:761


locIssuers

Protected Readonly locIssuers: LocVerifiedIssuers

Inherited from

ClosedOrVoidCollectionLoc.locIssuers

Defined in

packages/client/src/Loc.ts:762


locSharedState

Protected Readonly locSharedState: LocSharedState

Inherited from

ClosedOrVoidCollectionLoc.locSharedState

Defined in

packages/client/src/Loc.ts:759


owner

Readonly owner: LegalOfficerClass

Inherited from

ClosedOrVoidCollectionLoc.owner

Defined in

packages/client/src/Loc.ts:764


request

Protected Readonly request: LocRequest

Inherited from

ClosedOrVoidCollectionLoc.request

Defined in

packages/client/src/Loc.ts:760

Accessors

discarded

get discarded(): boolean

Returns

boolean

Description

True if this state was discarded

Inherited from

ClosedOrVoidCollectionLoc.discarded

Defined in

packages/client/src/State.ts:24


legalOfficer

get legalOfficer(): LegalOfficerClosedCollectionLocCommands

Returns

LegalOfficerClosedCollectionLocCommands

Defined in

packages/client/src/Loc.ts:2415


locId

get locId(): UUID

Returns

UUID

Inherited from

ClosedOrVoidCollectionLoc.locId

Defined in

packages/client/src/Loc.ts:781

Methods

_withLocs

_withLocs<T>(locsState, constructor): T

Type parameters

NameType
Textends LocRequestState

Parameters

NameType
locsStateLocsState
constructor(locSharedState: LocSharedState, request: LocRequest, legalOfficerCase: undefined | LegalOfficerCase, locIssuers: LocVerifiedIssuers, invitedContributors: ValidAccountId[]) => T

Returns

T

Inherited from

ClosedOrVoidCollectionLoc._withLocs

Defined in

packages/client/src/Loc.ts:1096


addCollectionItem

addCollectionItem(parameters): Promise<ClosedCollectionLoc>

Parameters

NameType
parametersBlockchainSubmission<AddCollectionItemParams>

Returns

Promise<ClosedCollectionLoc>

Defined in

packages/client/src/Loc.ts:2281


addCollectionItems

addCollectionItems(parameters): Promise<ClosedCollectionLoc>

Parameters

NameType
parametersBlockchainBatchSubmission<AddCollectionItemParams>

Returns

Promise<ClosedCollectionLoc>

Defined in

packages/client/src/Loc.ts:2306


addTokensRecord

addTokensRecord(parameters): Promise<ClosedCollectionLoc>

Parameters

NameType
parametersBlockchainSubmission<AddTokensRecordParams>

Returns

Promise<ClosedCollectionLoc>

Defined in

packages/client/src/Loc.ts:2338


addTokensRecords

addTokensRecords(parameters): Promise<ClosedCollectionLoc>

Parameters

NameType
parametersBlockchainBatchSubmission<AddTokensRecordParams>

Returns

Promise<ClosedCollectionLoc>

Defined in

packages/client/src/Loc.ts:2374


checkHash

checkHash(hash): Promise<CheckHashResult>

Parameters

NameType
hashHash

Returns

Promise<CheckHashResult>

Inherited from

ClosedOrVoidCollectionLoc.checkHash

Defined in

packages/client/src/Loc.ts:2237


data

data(): LocData

Returns

LocData

Inherited from

ClosedOrVoidCollectionLoc.data

Defined in

packages/client/src/Loc.ts:839


discard

discard(next): void

Parameters

NameType
nextundefined | State

Returns

void

Description

Discards current state. One must discard the state only if the state transition was successfully executed. It may be safer to use discardOnSuccess.

Inherited from

ClosedOrVoidCollectionLoc.discard

Defined in

packages/client/src/State.ts:43


discardOnSuccess

discardOnSuccess<T, U>(action): Promise<U>

Type parameters

NameType
Textends State
Uextends State = T

Parameters

NameTypeDescription
action(current: T) => Promise<U>The state transition logic producing next state

Returns

Promise<U>

Next state if state transition logic execution did not throw

Descripiton

Discards current state only if given state transition logic executed successfully (i.e. without throwing an error).

Inherited from

ClosedOrVoidCollectionLoc.discardOnSuccess

Defined in

packages/client/src/State.ts:55


ensureCurrent

ensureCurrent(): void

Returns

void

Description

Throws an error if this state was discarded. This should be called by all public methods of client class.

Inherited from

ClosedOrVoidCollectionLoc.ensureCurrent

Defined in

packages/client/src/State.ts:32


estimateFeesAddCollectionItem

estimateFeesAddCollectionItem(parameters): Promise<Fees>

Parameters

NameType
parametersAddCollectionItemParams

Returns

Promise<Fees>

Defined in

packages/client/src/Loc.ts:2293


estimateFeesAddTokensRecord

estimateFeesAddTokensRecord(parameters): Promise<Fees>

Parameters

NameType
parametersAddTokensRecordParams

Returns

Promise<Fees>

Defined in

packages/client/src/Loc.ts:2351


finalizeOnSuccess

finalizeOnSuccess<T>(action): Promise<void>

Type parameters

NameType
Textends State

Parameters

NameTypeDescription
action(current: T) => Promise<void>The state transition logic producing next state

Returns

Promise<void>

Next state if state transition logic execution did not throw

Descripiton

Finalizes (i.e. replaces with no new state) current state only if given state transition logic executed successfully (i.e. without throwing an error).

Inherited from

ClosedOrVoidCollectionLoc.finalizeOnSuccess

Defined in

packages/client/src/State.ts:117


getCollectionItem

getCollectionItem(parameters): Promise<undefined | CollectionItem>

Parameters

NameType
parametersObject
parameters.itemIdHash

Returns

Promise<undefined | CollectionItem>

Inherited from

ClosedOrVoidCollectionLoc.getCollectionItem

Defined in

packages/client/src/Loc.ts:2218


getCollectionItems

getCollectionItems(): Promise<CollectionItem[]>

Returns

Promise<CollectionItem[]>

Inherited from

ClosedOrVoidCollectionLoc.getCollectionItems

Defined in

packages/client/src/Loc.ts:2226


getCurrentState

getCurrentState(): undefined | State

Returns

undefined | State

This state if not discareded or the current state or undefined when there is no current state.

Description

If the state has been discarded, provides the replacing current state if any.

Inherited from

ClosedOrVoidCollectionLoc.getCurrentState

Defined in

packages/client/src/State.ts:90


getCurrentStateOrThrow

getCurrentStateOrThrow(): State

Returns

State

Inherited from

ClosedOrVoidCollectionLoc.getCurrentStateOrThrow

Defined in

packages/client/src/State.ts:102


getFile

getFile(hash): Promise<TypedFile>

Parameters

NameType
hashHash

Returns

Promise<TypedFile>

Inherited from

ClosedOrVoidCollectionLoc.getFile

Defined in

packages/client/src/Loc.ts:1103


getTokensRecord

getTokensRecord(parameters): Promise<undefined | TokensRecord>

Parameters

NameType
parametersObject
parameters.recordIdHash

Returns

Promise<undefined | TokensRecord>

Inherited from

ClosedOrVoidCollectionLoc.getTokensRecord

Defined in

packages/client/src/Loc.ts:2253


getTokensRecords

getTokensRecords(): Promise<TokensRecord[]>

Returns

Promise<TokensRecord[]>

Inherited from

ClosedOrVoidCollectionLoc.getTokensRecords

Defined in

packages/client/src/Loc.ts:2261


isLogionData

isLogionData(): boolean

Returns

boolean

Inherited from

ClosedOrVoidCollectionLoc.isLogionData

Defined in

packages/client/src/Loc.ts:864


isLogionIdentity

isLogionIdentity(): boolean

Returns

boolean

Inherited from

ClosedOrVoidCollectionLoc.isLogionIdentity

Defined in

packages/client/src/Loc.ts:859


isOwner

isOwner(account?): boolean

Parameters

NameType
account?ValidAccountId

Returns

boolean

Inherited from

ClosedOrVoidCollectionLoc.isOwner

Defined in

packages/client/src/Loc.ts:1112


isRequester

isRequester(account?): boolean

Parameters

NameType
account?ValidAccountId

Returns

boolean

Inherited from

ClosedOrVoidCollectionLoc.isRequester

Defined in

packages/client/src/Loc.ts:1107


isVerifiedIssuer

isVerifiedIssuer(account?): boolean

Parameters

NameType
account?ValidAccountId

Returns

boolean

Inherited from

ClosedOrVoidCollectionLoc.isVerifiedIssuer

Defined in

packages/client/src/Loc.ts:1117


locsState

locsState(): LocsState

Returns

LocsState

Inherited from

ClosedOrVoidCollectionLoc.locsState

Defined in

packages/client/src/Loc.ts:835


refresh

refresh(): Promise<ClosedCollectionLoc | VoidedLoc>

Returns

Promise<ClosedCollectionLoc | VoidedLoc>

Overrides

ClosedOrVoidCollectionLoc.refresh

Defined in

packages/client/src/Loc.ts:2401


requestSof

requestSof(params): Promise<PendingRequest>

Parameters

NameType
paramsCreateSofRequestParams

Returns

Promise<PendingRequest>

Defined in

packages/client/src/Loc.ts:2397


setInvitedContributor

setInvitedContributor(parameters): Promise<ClosedCollectionLoc>

Parameters

NameType
parametersBlockchainSubmission<SetInvitedContributorSelectionParams>

Returns

Promise<ClosedCollectionLoc>

Defined in

packages/client/src/Loc.ts:2409


size

size(): Promise<undefined | number>

Returns

Promise<undefined | number>

Inherited from

ClosedOrVoidCollectionLoc.size

Defined in

packages/client/src/Loc.ts:2246


supersededLoc

supersededLoc(): Promise<undefined | VoidedLoc>

Returns

Promise<undefined | VoidedLoc>

Inherited from

ClosedOrVoidCollectionLoc.supersededLoc

Defined in

packages/client/src/Loc.ts:851


syncDiscardOnSuccess

syncDiscardOnSuccess<T, U>(action): U

Type parameters

NameType
Textends State
Uextends State = T

Parameters

NameTypeDescription
action(current: T) => UThe state transition logic producing next state

Returns

U

Next state if state transition logic execution did not throw

Descripiton

Same as discardOnSuccess but with a synchronous action.

Inherited from

ClosedOrVoidCollectionLoc.syncDiscardOnSuccess

Defined in

packages/client/src/State.ts:73


uploadCollectionItemFile

uploadCollectionItemFile(parameters): Promise<ClosedCollectionLoc>

Parameters

NameType
parametersUploadCollectionItemFileParams

Returns

Promise<ClosedCollectionLoc>

Defined in

packages/client/src/Loc.ts:2328


uploadTokensRecordFile

uploadTokensRecordFile(parameters): Promise<ClosedCollectionLoc>

Parameters

NameType
parametersUploadTokensRecordFileParams

Returns

Promise<ClosedCollectionLoc>

Defined in

packages/client/src/Loc.ts:2364


withLocs

withLocs(locsState): ClosedCollectionLoc

Parameters

NameType
locsStateLocsState

Returns

ClosedCollectionLoc

Overrides

ClosedOrVoidCollectionLoc.withLocs

Defined in

packages/client/src/Loc.ts:2405


buildLocData

buildLocData(api, legalOfficerCase, request, locIssuers, invitedContributors): LocData

Parameters

NameType
apiLogionNodeApiClass
legalOfficerCaseundefined | LegalOfficerCase
requestLocRequest
locIssuersLocVerifiedIssuers
invitedContributorsValidAccountId[]

Returns

LocData

Inherited from

ClosedOrVoidCollectionLoc.buildLocData

Defined in

packages/client/src/Loc.ts:843


checkHash

checkHash(loc, hash): CheckHashResult

Parameters

NameType
locLocData
hashHash

Returns

CheckHashResult

Inherited from

ClosedOrVoidCollectionLoc.checkHash

Defined in

packages/client/src/Loc.ts:873


createFromLoc

createFromLoc(locSharedState, request, legalOfficerCase, locIssuers, invitedContributors): Promise<OnchainLocState>

Parameters

NameType
locSharedStateLocSharedState
requestLocRequest
legalOfficerCaseLegalOfficerCase
locIssuersLocVerifiedIssuers
invitedContributorsValidAccountId[]

Returns

Promise<OnchainLocState>

Inherited from

ClosedOrVoidCollectionLoc.createFromLoc

Defined in

packages/client/src/Loc.ts:800


createFromRequest

createFromRequest(locSharedState, request, locIssuers, invitedContributors, legalOfficerCase?): Promise<AnyLocState>

Parameters

NameType
locSharedStateLocSharedState
requestLocRequest
locIssuersLocVerifiedIssuers
invitedContributorsValidAccountId[]
legalOfficerCase?LegalOfficerCase

Returns

Promise<AnyLocState>

Inherited from

ClosedOrVoidCollectionLoc.createFromRequest

Defined in

packages/client/src/Loc.ts:785


toCollectionParams

toCollectionParams(collectionParams): undefined | CollectionParams

Parameters

NameType
collectionParamsundefined | BackendCollectionParams

Returns

undefined | CollectionParams

Inherited from

ClosedOrVoidCollectionLoc.toCollectionParams

Defined in

packages/client/src/Loc.ts:921