@xyo-network/filesystem-archivist
v5.3.30
Published
Primary SDK for using XYO Protocol 2.0
Keywords
Readme
@xyo-network/filesystem-archivist
Primary SDK for using XYO Protocol 2.0
Install
Using npm:
npm install {{name}}Using yarn:
yarn add {{name}}Using pnpm:
pnpm add {{name}}Using bun:
bun add {{name}}License
See the LICENSE file for license rights and limitations (LGPL-3.0-only).
Reference
packages
modules
### packages
### archivist
### packages
### filesystem
### .temp-typedoc
### classes
### <a id="FilesystemArchivist"></a>FilesystemArchivist@xyo-network/filesystem-archivist
Description
Currently only a read-only archivist that loads payloads from filesystem but allows for future expansion to read/write
Extends
AbstractArchivist<TParams>
Type Parameters
TParams
TParams extends FilesystemArchivistParams = FilesystemArchivistParams
Implements
ArchivistInstance
Constructors
Constructor
new FilesystemArchivist<TParams>(key, params): FilesystemArchivist<TParams>;Parameters
key
unknown
params
Partial<TParams & RequiredCreatableParams>
Returns
FilesystemArchivist<TParams>
Inherited from
AbstractArchivist<TParams>.constructorProperties
uniqueName
readonly static uniqueName: string;Inherited from
AbstractArchivist.uniqueNamedefaultNextLimitSetting
protected static defaultNextLimitSetting: number;Inherited from
AbstractArchivist.defaultNextLimitSettingconfigSchemas
readonly static configSchemas: Schema[];Overrides
AbstractArchivist.configSchemasdefaultConfigSchema
readonly static defaultConfigSchema: Schema = FilesystemArchivistConfigSchema;Overrides
AbstractArchivist.defaultConfigSchemalabels
readonly static labels: object;network.xyo.storage.class
network.xyo.storage.class: string = 'disk';Overrides
AbstractArchivist.labelsallowRandomAccount
readonly static allowRandomAccount: boolean;Inherited from
AbstractArchivist.allowRandomAccountdefaultLogger
static defaultLogger: Logger;Inherited from
AbstractArchivist.defaultLoggerenableLazyLoad
static enableLazyLoad: boolean;Inherited from
AbstractArchivist.enableLazyLoadprivateConstructorKey
protected static privateConstructorKey: string;Inherited from
AbstractArchivist.privateConstructorKey_account
protected _account: AccountInstance | undefined;Inherited from
AbstractArchivist._account_cachedManifests
protected _cachedManifests: LRUCache<number, ModuleManifestPayload, unknown>;Inherited from
AbstractArchivist._cachedManifests_globalReentrancyMutex
protected _globalReentrancyMutex: Mutex | undefined;Inherited from
AbstractArchivist._globalReentrancyMutex_lastError?
protected optional _lastError?: ModuleDetailsError;Inherited from
AbstractArchivist._lastError_moduleConfigQueryValidator
protected _moduleConfigQueryValidator: Queryable | undefined;Inherited from
AbstractArchivist._moduleConfigQueryValidator_supportedQueryValidator
protected _supportedQueryValidator: Queryable | undefined;Inherited from
AbstractArchivist._supportedQueryValidatoruseNewResolver
readonly static useNewResolver: false = false;Inherited from
AbstractArchivist.useNewResolverAccessors
defaultNextLimit
Get Signature
get static defaultNextLimit(): number;Returns
number
Inherited from
AbstractArchivist.defaultNextLimitrequireAllParents
Get Signature
get requireAllParents(): boolean;Returns
boolean
Inherited from
AbstractArchivist.requireAllParentspayloadCountGauge
Get Signature
get protected payloadCountGauge(): Gauge<Attributes> | null | undefined;Returns
Gauge<Attributes> | null | undefined
Inherited from
AbstractArchivist.payloadCountGaugepayloadCountMeter
Get Signature
get protected payloadCountMeter(): Meter | null;Returns
Meter | null
Inherited from
AbstractArchivist.payloadCountMeterstoreParentReads
Get Signature
get protected storeParentReads(): boolean;Returns
boolean
Inherited from
AbstractArchivist.storeParentReadsfilePath
Get Signature
get filePath(): string;Returns
string
queries
Get Signature
get queries(): Schema[];Returns
Schema[]
Implementation of
ArchivistInstance.queriesOverrides
AbstractArchivist.queriesaccount
Get Signature
get account(): AccountInstance;Returns
AccountInstance
Implementation of
ArchivistInstance.accountInherited from
AbstractArchivist.accountadditionalSigners
Get Signature
get additionalSigners(): AccountInstance[];Returns
AccountInstance[]
Inherited from
AbstractArchivist.additionalSignersaddress
Get Signature
get address(): Lowercase<string> & object & object;Returns
Lowercase<string> & object & object
Implementation of
ArchivistInstance.addressInherited from
AbstractArchivist.addressallowAnonymous
Get Signature
get allowAnonymous(): boolean;Returns
boolean
Inherited from
AbstractArchivist.allowAnonymousallowNameResolution
Get Signature
get allowNameResolution(): boolean;Returns
boolean
Inherited from
AbstractArchivist.allowNameResolutionarchiving
Get Signature
get archiving():
| {
archivists?: ModuleIdentifier[];
queries?: Schema[];
}
| undefined;Returns
| {
archivists?: ModuleIdentifier[];
queries?: Schema[];
}
| undefined
Inherited from
AbstractArchivist.archivingarchivist
Get Signature
get archivist(): ModuleIdentifier | undefined;Returns
ModuleIdentifier | undefined
Inherited from
AbstractArchivist.archivistconfig
Get Signature
get config(): TParams["config"] & object;Returns
TParams["config"] & object
Implementation of
ArchivistInstance.configInherited from
AbstractArchivist.configdead
Get Signature
get dead(): boolean;Returns
boolean
Inherited from
AbstractArchivist.deadephemeralQueryAccountEnabled
Get Signature
get ephemeralQueryAccountEnabled(): boolean;Returns
boolean
Inherited from
AbstractArchivist.ephemeralQueryAccountEnabledglobalReentrancyMutex
Get Signature
get globalReentrancyMutex(): Mutex | undefined;Returns
Mutex | undefined
Inherited from
AbstractArchivist.globalReentrancyMutexid
Get Signature
get id(): string;The name (if specified) or address of the module
Returns
string
Implementation of
ArchivistInstance.idInherited from
AbstractArchivist.idlogger
Get Signature
get logger(): Logger | undefined;Returns
Logger | undefined
Inherited from
AbstractArchivist.loggerpriority
Get Signature
get priority(): 2;Returns
2
Implementation of
ArchivistInstance.priorityInherited from
AbstractArchivist.priorityreentrancy
Get Signature
get reentrancy():
| {
action: "skip" | "wait";
scope: "global";
}
| undefined;Returns
| {
action: "skip" | "wait";
scope: "global";
}
| undefined
Inherited from
AbstractArchivist.reentrancystatusReporter
Get Signature
get statusReporter():
| ModuleStatusReporter & CreatableStatusReporter<void>
| undefined;The status reporter used to broadcast lifecycle changes.
Returns
| ModuleStatusReporter & CreatableStatusReporter<void>
| undefined
Inherited from
AbstractArchivist.statusReportertimestamp
Get Signature
get timestamp(): boolean;Returns
boolean
Inherited from
AbstractArchivist.timestampmoduleConfigQueryValidator
Get Signature
get protected moduleConfigQueryValidator(): Queryable;Returns
Queryable
Inherited from
AbstractArchivist.moduleConfigQueryValidatorsupportedQueryValidator
Get Signature
get protected supportedQueryValidator(): Queryable;Returns
Queryable
Inherited from
AbstractArchivist.supportedQueryValidatordownResolver
Get Signature
get downResolver(): CompositeModuleResolver<CompositeModuleResolverParams>;Returns
CompositeModuleResolver<CompositeModuleResolverParams>
Inherited from
AbstractArchivist.downResolvermodName
Get Signature
get modName(): string | undefined;Returns
string | undefined
Implementation of
ArchivistInstance.modNameInherited from
AbstractArchivist.modNamemoduleIdentifierTransformers
Get Signature
get moduleIdentifierTransformers(): ModuleIdentifierTransformer[];Returns
ModuleIdentifierTransformer[]
Inherited from
AbstractArchivist.moduleIdentifierTransformersprivateResolver
Get Signature
get privateResolver(): CompositeModuleResolver<CompositeModuleResolverParams>;Returns
CompositeModuleResolver<CompositeModuleResolverParams>
Inherited from
AbstractArchivist.privateResolverroot
Get Signature
get root(): this;Returns
this
Inherited from
AbstractArchivist.roottimeBudget
Get Signature
get timeBudget(): number | undefined;Returns
number | undefined
Inherited from
AbstractArchivist.timeBudgetupResolver
Get Signature
get upResolver(): CompositeModuleResolver<CompositeModuleResolverParams>;Returns
CompositeModuleResolver<CompositeModuleResolverParams>
Inherited from
AbstractArchivist.upResolverMethods
~~all()~~
all(): Promise<WithStorageMeta<Payload>[]>;Returns
Promise<WithStorageMeta<Payload>[]>
Deprecated
use next or snapshot instead
Implementation of
ArchivistInstance.allInherited from
AbstractArchivist.allallQuery()
allQuery(account): Promise<ModuleQueryResult>;deprecated use nextQuery or snapshotQuery instead
Parameters
account
AccountInstance
Returns
Promise<ModuleQueryResult>
Implementation of
ArchivistInstance.allQueryInherited from
AbstractArchivist.allQueryclear()
clear(): Promise<void>;Returns
Promise<void>
Implementation of
ArchivistInstance.clearInherited from
AbstractArchivist.clearclearQuery()
clearQuery(account): Promise<ModuleQueryResult>;Parameters
account
AccountInstance
Returns
Promise<ModuleQueryResult>
Implementation of
ArchivistInstance.clearQueryInherited from
AbstractArchivist.clearQuerycommit()
commit(): Promise<object[]>;Returns
Promise<object[]>
Implementation of
ArchivistInstance.commitInherited from
AbstractArchivist.commitcommitQuery()
commitQuery(account): Promise<ModuleQueryResult>;Parameters
account
AccountInstance
Returns
Promise<ModuleQueryResult>
Implementation of
ArchivistInstance.commitQueryInherited from
AbstractArchivist.commitQuerydelete()
delete(hashes): Promise<WithStorageMeta<Payload>[]>;Parameters
hashes
BrandedHash[]
Returns
Promise<WithStorageMeta<Payload>[]>
Implementation of
ArchivistInstance.deleteInherited from
AbstractArchivist.deletedeleteQuery()
deleteQuery(hashes, account?): Promise<ModuleQueryResult>;Parameters
hashes
BrandedHash[]
account?
AccountInstance
Returns
Promise<ModuleQueryResult>
Implementation of
ArchivistInstance.deleteQueryInherited from
AbstractArchivist.deleteQueryget()
get(hashes): Promise<WithStorageMeta<Payload>[]>;Parameters
hashes
BrandedHash[]
Returns
Promise<WithStorageMeta<Payload>[]>
Implementation of
ArchivistInstance.getInherited from
AbstractArchivist.getgetQuery()
getQuery(hashes, account?): Promise<ModuleQueryResult>;Parameters
hashes
BrandedHash[]
account?
AccountInstance
Returns
Promise<ModuleQueryResult>
Implementation of
ArchivistInstance.getQueryInherited from
AbstractArchivist.getQueryinsert()
insert(payloads): Promise<WithStorageMeta<Payload>[]>;Parameters
payloads
Payload[]
Returns
Promise<WithStorageMeta<Payload>[]>
Implementation of
ArchivistInstance.insertInherited from
AbstractArchivist.insertinsertQuery()
insertQuery(payloads, account?): Promise<ModuleQueryResult>;Parameters
payloads
Payload[]
account?
AccountInstance
Returns
Promise<ModuleQueryResult>
Implementation of
ArchivistInstance.insertQueryInherited from
AbstractArchivist.insertQuerynext()
next(options?): Promise<WithStorageMeta<Payload>[]>;Parameters
options?
ArchivistNextOptions
Returns
Promise<WithStorageMeta<Payload>[]>
Implementation of
ArchivistInstance.nextInherited from
AbstractArchivist.nextnextQuery()
nextQuery(options?, account?): Promise<ModuleQueryResult>;Parameters
options?
ArchivistNextOptions
account?
AccountInstance
Returns
Promise<ModuleQueryResult>
Implementation of
ArchivistInstance.nextQueryInherited from
AbstractArchivist.nextQuerysnapshot()
snapshot(): Promise<ArchivistSnapshotPayload<WithStorageMeta<Payload>, BrandedHash>[]>;Returns
Promise<ArchivistSnapshotPayload<WithStorageMeta<Payload>, BrandedHash>[]>
Implementation of
ArchivistInstance.snapshotInherited from
AbstractArchivist.snapshotsnapshotQuery()
snapshotQuery(account?): Promise<ModuleQueryResult>;Parameters
account?
AccountInstance
Returns
Promise<ModuleQueryResult>
Inherited from
AbstractArchivist.snapshotQuerydeleteWithConfig()
protected deleteWithConfig(hashes, config?): Promise<WithStorageMeta<Payload>[]>;Parameters
hashes
BrandedHash[]
config?
ActionConfig
Returns
Promise<WithStorageMeta<Payload>[]>
Inherited from
AbstractArchivist.deleteWithConfiggenerateStats()
protected generateStats(): Promisable<ArchivistStatsPayload>;Returns
Promisable<ArchivistStatsPayload>
Inherited from
AbstractArchivist.generateStatsgetFromParent()
protected getFromParent(hashes, archivist): Promise<[WithStorageMeta<Payload>[], BrandedHash[]]>;Parameters
hashes
BrandedHash[]
archivist
ReadArchivist
Returns
Promise<[WithStorageMeta<Payload>[], BrandedHash[]]>
Inherited from
AbstractArchivist.getFromParentgetFromParents()
protected getFromParents(hashes): Promise<[WithStorageMeta<Payload>[], BrandedHash[]]>;Parameters
hashes
BrandedHash[]
Returns
Promise<[WithStorageMeta<Payload>[], BrandedHash[]]>
Inherited from
AbstractArchivist.getFromParentsgetWithConfig()
protected getWithConfig(hashes, _config?): Promise<WithStorageMeta<Payload>[]>;Parameters
hashes
BrandedHash[]
_config?
InsertConfig
Returns
Promise<WithStorageMeta<Payload>[]>
Inherited from
AbstractArchivist.getWithConfiginsertQueryHandler()
protected insertQueryHandler<T>(query, payloads?): Promise<WithStorageMeta<Payload>[]>;Type Parameters
T
T extends QueryBoundWitnessWrapper<Query> = QueryBoundWitnessWrapper<Query>
Parameters
query
T
payloads?
Payload[]
Returns
Promise<WithStorageMeta<Payload>[]>
Inherited from
AbstractArchivist.insertQueryHandlerinsertWithConfig()
protected insertWithConfig(payloads, config?): Promise<WithStorageMeta<Payload>[]>;Parameters
payloads
Payload[]
config?
InsertConfig
Returns
Promise<WithStorageMeta<Payload>[]>
Inherited from
AbstractArchivist.insertWithConfignextHandler()
protected nextHandler(_options?): Promisable<WithStorageMeta<Payload>[]>;Parameters
_options?
ArchivistNextOptions
Returns
Promisable<WithStorageMeta<Payload>[]>
Inherited from
AbstractArchivist.nextHandlernextWithConfig()
protected nextWithConfig(options?, _config?): Promise<WithStorageMeta<Payload>[]>;Parameters
options?
ArchivistNextOptions
_config?
InsertConfig
Returns
Promise<WithStorageMeta<Payload>[]>
Inherited from
AbstractArchivist.nextWithConfigparentArchivists()
protected parentArchivists(): Promise<ArchivistParentInstanceMap>;Returns
Promise<ArchivistParentInstanceMap>
Inherited from
AbstractArchivist.parentArchivistspayloadCountHandler()
protected payloadCountHandler(): number;Returns
number
Inherited from
AbstractArchivist.payloadCountHandlerqueryHandler()
protected queryHandler<T, TConfig>(
query,
payloads,
queryConfig?): Promise<ModuleQueryHandlerResult>;Type Parameters
T
T extends UnsignedQueryBoundWitness = UnsignedQueryBoundWitness
TConfig
TConfig extends ModuleConfig = ModuleConfig
Parameters
query
T
payloads
Payload[]
queryConfig?
TConfig
Returns
Promise<ModuleQueryHandlerResult>
Inherited from
AbstractArchivist.queryHandlerreportPayloadCount()
protected reportPayloadCount(): void;Returns
void
Inherited from
AbstractArchivist.reportPayloadCountsnapshotHandler()
protected snapshotHandler(): PromisableArray<ArchivistSnapshotPayload<WithStorageMeta<Payload>, BrandedHash>>;Returns
PromisableArray<ArchivistSnapshotPayload<WithStorageMeta<Payload>, BrandedHash>>
Inherited from
AbstractArchivist.snapshotHandlerstateHandler()
protected stateHandler(): Promise<Payload[]>;Returns
Promise<Payload[]>
Inherited from
AbstractArchivist.stateHandlerwriteToParent()
protected writeToParent(parent, payloads): Promise<Payload[]>;Parameters
parent
ArchivistInstance
payloads
Payload[]
Returns
Promise<Payload[]>
Inherited from
AbstractArchivist.writeToParentwriteToParents()
protected writeToParents(payloads): Promise<Payload[]>;Parameters
payloads
Payload[]
Returns
Promise<Payload[]>
Inherited from
AbstractArchivist.writeToParentsallHandler()
protected allHandler(): PromisableArray<WithStorageMeta<Payload>>;Returns
PromisableArray<WithStorageMeta<Payload>>
Overrides
AbstractArchivist.allHandlerclearHandler()
protected clearHandler(): void | Promise<void>;Returns
void | Promise<void>
Overrides
AbstractArchivist.clearHandlercommitHandler()
protected commitHandler(): Promise<object[]>;Returns
Promise<object[]>
Overrides
AbstractArchivist.commitHandlerdeleteHandler()
protected deleteHandler(hashes): PromisableArray<WithStorageMeta<Payload>>;Parameters
hashes
BrandedHash[]
Returns
PromisableArray<WithStorageMeta<Payload>>
Overrides
AbstractArchivist.deleteHandlergetHandler()
protected getHandler(hashes): Promise<WithStorageMeta<Payload>[]>;Parameters
hashes
BrandedHash[]
Returns
Promise<WithStorageMeta<Payload>[]>
Overrides
AbstractArchivist.getHandlerinsertHandler()
protected insertHandler(payloads): Promise<WithStorageMeta<Payload>[]>;Parameters
payloads
Payload[]
Returns
Promise<WithStorageMeta<Payload>[]>
Overrides
AbstractArchivist.insertHandlerstartHandler()
protected startHandler(): Promise<void>;Returns
Promise<void>
Overrides
AbstractArchivist.startHandler_getRootFunction()
static _getRootFunction(funcName): any;Parameters
funcName
string
Returns
any
Inherited from
AbstractArchivist._getRootFunction_noOverride()
static _noOverride(functionName): void;Parameters
functionName
string
Returns
void
Inherited from
AbstractArchivist._noOverridecreateHandler()
static createHandler<T>(inInstance): Promise<T & AbstractModule<any, any>>;Static hook called during creation to perform additional initialization. Override in subclasses to customize post-construction setup.
Type Parameters
T
T extends CreatableInstance<CreatableParams, EventData>
Parameters
inInstance
T
Returns
Promise<T & AbstractModule<any, any>>
The instance, potentially modified
Inherited from
AbstractArchivist.createHandlerdetermineAccount()
static determineAccount(params): Promise<AccountInstance>;Parameters
params
account?
AccountInstance | "random"
accountPath?
string
wallet?
WalletInstance
Returns
Promise<AccountInstance>
Inherited from
AbstractArchivist.determineAccountfactory()
static factory<TModule>(this, params?): CreatableModuleFactory<TModule>;Type Parameters
TModule
TModule extends CreatableModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>
Parameters
this
CreatableModule<TModule>
params?
Partial<TModule["params"]>
Returns
CreatableModuleFactory<TModule>
Inherited from
AbstractArchivist.factoryisAllowedSchema()
static isAllowedSchema(schema): boolean;Parameters
schema
Schema
Returns
boolean
Inherited from
AbstractArchivist.isAllowedSchemaparamsHandler()
static paramsHandler<T>(inParams?): Promise<T["params"]>;Static hook called during creation to validate and transform params. Override in subclasses to add default values or validation.
Type Parameters
T
T extends AttachableModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>
Parameters
inParams?
Partial<T["params"]>
Returns
Promise<T["params"]>
The processed params ready for construction
Inherited from
AbstractArchivist.paramsHandler_getRootFunction()
_getRootFunction(funcName): any;Parameters
funcName
string
Returns
any
Inherited from
AbstractArchivist._getRootFunctionbusy()
busy<R>(closure): Promise<R>;Type Parameters
R
R
Parameters
closure
() => Promise<R>
Returns
Promise<R>
Inherited from
AbstractArchivist.busyemit()
emit<TEventName, TEventArgs>(eventName, eventArgs): Promise<void>;Emits an event, invoking all registered listeners concurrently.
Type Parameters
TEventName
TEventName extends keyof ArchivistModuleEventData = keyof ArchivistModuleEventData
TEventArgs
TEventArgs extends EventArgs = ArchivistModuleEventData[TEventName]
Parameters
eventName
TEventName
The event to emit.
eventArgs
TEventArgs
The data to pass to listeners.
Returns
Promise<void>
Implementation of
ArchivistInstance.emitInherited from
AbstractArchivist.emitisSupportedQuery()
isSupportedQuery(query, assert?): boolean;Parameters
query
Schema
assert?
string | boolean
Returns
boolean
Inherited from
AbstractArchivist.isSupportedQuerypreviousHash()
previousHash(): Promisable<string | undefined>;Returns
Promisable<string | undefined>
Implementation of
ArchivistInstance.previousHashInherited from
AbstractArchivist.previousHashquery()
query<T, TConfig>(
query,
payloads?,
queryConfig?): Promise<ModuleQueryResult>;Type Parameters
T
T extends UnsignedQueryBoundWitness = UnsignedQueryBoundWitness
TConfig
TConfig extends ModuleConfig = ModuleConfig
Parameters
query
T
payloads?
Payload[]
queryConfig?
TConfig
Returns
Promise<ModuleQueryResult>
Implementation of
ArchivistInstance.queryInherited from
AbstractArchivist.queryqueryable()
queryable<T, TConfig>(
query,
payloads?,
queryConfig?): Promise<boolean>;Type Parameters
T
T extends UnsignedQueryBoundWitness = UnsignedQueryBoundWitness
TConfig
TConfig extends ModuleConfig = ModuleConfig
Parameters
query
T
payloads?
Payload[]
queryConfig?
TConfig
Returns
Promise<boolean>
Implementation of
ArchivistInstance.queryableInherited from
AbstractArchivist.queryable_checkDead()
protected _checkDead(): void;Returns
void
Inherited from
AbstractArchivist._checkDeadarchivistInstance()
Call Signature
protected archivistInstance(): Promise<
| ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>
| undefined>;Returns
Promise<
| ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>
| undefined>
Inherited from
AbstractArchivist.archivistInstanceCall Signature
protected archivistInstance(required): Promise<ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>>;Parameters
required
true
Returns
Promise<ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>>
Inherited from
AbstractArchivist.archivistInstancebindHashes()
protected bindHashes(
hashes,
schema,
account?): PromiseEx<unknown, AccountInstance>;Parameters
hashes
BrandedHash[]
schema
Schema[]
account?
AccountInstance
Returns
PromiseEx<unknown, AccountInstance>
Inherited from
AbstractArchivist.bindHashesbindHashesInternal()
protected bindHashesInternal(
hashes,
schema,
account?): Promise<{
schema: "network.xyo.boundwitness" & object;
addresses: Lowercase<string> & object & object[];
payload_hashes: BrandedHash[];
payload_schemas: BrandedSchema<string>[];
previous_hashes: (BrandedHash | null)[];
$destination?: Lowercase<string> & object & object;
$sourceQuery?: BrandedHash;
$signatures: (BrandedHex | null)[];
}>;Parameters
hashes
BrandedHash[]
schema
Schema[]
account?
AccountInstance
Returns
Promise<{
schema: "network.xyo.boundwitness" & object;
addresses: Lowercase<string> & object & object[];
payload_hashes: BrandedHash[];
payload_schemas: BrandedSchema<string>[];
previous_hashes: (BrandedHash | null)[];
$destination?: Lowercase<string> & object & object;
$sourceQuery?: BrandedHash;
$signatures: (BrandedHex | null)[];
}>
Inherited from
AbstractArchivist.bindHashesInternalbindQuery()
protected bindQuery<T>(
query,
payloads?,
account?,
additionalSigners?): PromiseEx<[UnsignedQueryBoundWitness, Payload[], Payload[]], AccountInstance>;Type Parameters
T
T extends Query
Parameters
query
T
payloads?
Payload[]
account?
AccountInstance
additionalSigners?
AccountInstance[]
Returns
PromiseEx<[UnsignedQueryBoundWitness, Payload[], Payload[]], AccountInstance>
Inherited from
AbstractArchivist.bindQuerybindQueryInternal()
protected bindQueryInternal<T>(
query,
payloads?,
account?,
additionalSigners?): Promise<[UnsignedQueryBoundWitness, Payload[], Payload[]]>;Type Parameters
T
T extends Query
Parameters
query
T
payloads?
Payload[]
account?
AccountInstance
additionalSigners?
AccountInstance[]
Returns
Promise<[UnsignedQueryBoundWitness, Payload[], Payload[]]>
Inherited from
AbstractArchivist.bindQueryInternalbindQueryResult()
protected bindQueryResult<T>(
query,
payloads,
additionalWitnesses?,
errors?): Promise<ModuleQueryResult>;Type Parameters
T
T extends Query
Parameters
query
T
payloads
Payload[]
additionalWitnesses?
AccountInstance[]
errors?
ModuleError[]
Returns
Promise<ModuleQueryResult>
Inherited from
AbstractArchivist.bindQueryResultgenerateConfigAndAddress()
protected generateConfigAndAddress(_maxDepth?): Promisable<Payload[]>;Parameters
_maxDepth?
number
Returns
Promisable<Payload[]>
Inherited from
AbstractArchivist.generateConfigAndAddressgenerateDescribe()
protected generateDescribe(): Promise<ModuleDescriptionPayload>;Returns
Promise<ModuleDescriptionPayload>
Inherited from
AbstractArchivist.generateDescribe~~getArchivist()~~
protected getArchivist(): Promise<
| ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>
| undefined>;Returns
Promise<
| ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>
| undefined>
Deprecated
use archivistInstance() instead
Inherited from
AbstractArchivist.getArchivistisAllowedArchivingQuery()
protected isAllowedArchivingQuery(schema): boolean;Parameters
schema
Schema
Returns
boolean
Inherited from
AbstractArchivist.isAllowedArchivingQuerymoduleAddressHandler()
protected moduleAddressHandler(): Promisable<(AddressPayload | AddressPreviousHashPayload)[]>;Returns
Promisable<(AddressPayload | AddressPreviousHashPayload)[]>
Inherited from
AbstractArchivist.moduleAddressHandlerstopHandler()
protected stopHandler(): Promise<void>;Override in subclasses to define stop behavior. Throw an error on failure.
Returns
Promise<void>
Inherited from
AbstractArchivist.stopHandlersubscribeHandler()
protected subscribeHandler(): void;Returns
void
Inherited from
AbstractArchivist.subscribeHandlervalidateConfig()
protected validateConfig(config?, parents?): boolean;Parameters
config?
unknown
parents?
string[]
Returns
boolean
Inherited from
AbstractArchivist.validateConfigaddParent()
addParent(mod): void;Parameters
mod
ModuleInstance
Returns
void
Implementation of
ArchivistInstance.addParentInherited from
AbstractArchivist.addParentcertifyParents()
certifyParents(): Promise<Payload[]>;Returns
Promise<Payload[]>
Inherited from
AbstractArchivist.certifyParentscreateHandler()
createHandler(): Promise<void>;Returns
Promise<void>
Inherited from
AbstractArchivist.createHandlermanifest()
manifest(maxDepth?): Promise<ModuleManifestPayload>;Parameters
maxDepth?
number
Returns
Promise<ModuleManifestPayload>
Implementation of
ArchivistInstance.manifestInherited from
AbstractArchivist.manifestmanifestQuery()
manifestQuery(account, maxDepth?): Promise<ModuleQueryResult<ModuleManifestPayload>>;Parameters
account
AccountInstance
maxDepth?
number
Returns
Promise<ModuleQueryResult<ModuleManifestPayload>>
Implementation of
ArchivistInstance.manifestQueryInherited from
AbstractArchivist.manifestQuerymoduleAddress()
moduleAddress(): Promise<(AddressPayload | AddressPreviousHashPayload)[]>;Returns
Promise<(AddressPayload | AddressPreviousHashPayload)[]>
Implementation of
ArchivistInstance.moduleAddressInherited from
AbstractArchivist.moduleAddressparents()
parents(): Promisable<NodeInstance<NodeParams<AnyConfigSchema<NodeConfig>>, NodeModuleEventData>[]>;Returns
Promisable<NodeInstance<NodeParams<AnyConfigSchema<NodeConfig>>, NodeModuleEventData>[]>
Implementation of
ArchivistInstance.parentsInherited from
AbstractArchivist.parentsprivateChildren()
privateChildren(): Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;Returns
Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>
Implementation of
ArchivistInstance.privateChildrenInherited from
AbstractArchivist.privateChildrenpublicChildren()
publicChildren(): Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;Returns
Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>
Implementation of
ArchivistInstance.publicChildrenInherited from
AbstractArchivist.publicChildrenremoveParent()
removeParent(address): void;Parameters
address
BrandedAddress
Returns
void
Implementation of
ArchivistInstance.removeParentInherited from
AbstractArchivist.removeParentresolve()
Call Signature
resolve(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;Returns
Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>
Implementation of
ArchivistInstance.resolveInherited from
AbstractArchivist.resolveCall Signature
resolve<T>(all, options?): Promise<T[]>;Type Parameters
T
T extends ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>> = ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>
Parameters
all
"*"
options?
ModuleFilterOptions<T>
Returns
Promise<T[]>
Implementation of
ArchivistInstance.resolveInherited from
AbstractArchivist.resolveCall Signature
resolve<T>(id, options?): Promise<T | undefined>;Type Parameters
T
T extends ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>> = ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>
Parameters
id
ModuleIdentifier
options?
ModuleFilterOptions<T>
Returns
Promise<T | undefined>
Implementation of
ArchivistInstance.resolveInherited from
AbstractArchivist.resolveresolveIdentifier()
resolveIdentifier(id, options?): Promise<BrandedAddress | undefined>;Parameters
id
ModuleIdentifier
options?
ObjectFilterOptions<AnyObject>
Returns
Promise<BrandedAddress | undefined>
Inherited from
AbstractArchivist.resolveIdentifierresolvePrivate()
Call Signature
resolvePrivate<T>(all, options?): Promise<T[]>;Type Parameters
T
T extends ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>> = ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>
Parameters
all
"*"
options?
ModuleFilterOptions<T>
Returns
Promise<T[]>
Implementation of
ArchivistInstance.resolvePrivateInherited from
AbstractArchivist.resolvePrivateCall Signature
resolvePrivate<T>(id, options?): Promise<T | undefined>;Type Parameters
T
T extends ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>> = ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>
Parameters
id
ModuleIdentifier
options?
ModuleFilterOptions<T>
Returns
Promise<T | undefined>
Implementation of
ArchivistInstance.resolvePrivateInherited from
AbstractArchivist.resolvePrivatesiblings()
siblings(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;Returns
Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>
Implementation of
ArchivistInstance.siblingsInherited from
AbstractArchivist.siblingsstate()
state(): Promise<Payload[]>;Returns
Promise<Payload[]>
Implementation of
ArchivistInstance.stateInherited from
AbstractArchivist.statestateQuery()
stateQuery(account): Promise<ModuleQueryResult>;Parameters
account
AccountInstance
Returns
Promise<ModuleQueryResult>
Implementation of
ArchivistInstance.stateQueryInherited from
AbstractArchivist.stateQuerysubscribe()
subscribe(_queryAccount?): void;Parameters
_queryAccount?
AccountInstance
Returns
void
Inherited from
AbstractArchivist.subscribemanifestHandler()
protected manifestHandler(maxDepth?, _ignoreAddresses?): Promise<ModuleManifestPayload>;Parameters
maxDepth?
number
_ignoreAddresses?
BrandedAddress[]
Returns
Promise<ModuleManifestPayload>
Inherited from
AbstractArchivist.manifestHandlerresolveArchivingArchivists()
protected resolveArchivingArchivists(): Promise<ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>[]>;Returns
Promise<ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>[]>
Inherited from
AbstractArchivist.resolveArchivingArchivistssendQuery()
protected sendQuery<T, P, R>(
queryPayload,
payloads?,
account?): Promise<R[]>;Type Parameters
T
T extends Query
P
P extends Payload = Payload
R
R extends Payload = Payload
Parameters
queryPayload
T
payloads?
P[]
account?
AccountInstance
Returns
Promise<R[]>
Inherited from
AbstractArchivist.sendQuerysendQueryRaw()
protected sendQueryRaw<T, P, R>(
queryPayload,
payloads?,
account?): Promise<ModuleQueryResult<R>>;Type Parameters
T
T extends Query
P
P extends Payload = Payload
R
R extends Payload = Payload
Parameters
queryPayload
T
payloads?
P[]
account?
AccountInstance
Returns
Promise<ModuleQueryResult<R>>
Inherited from
AbstractArchivist.sendQueryRawstoreToArchivists()
protected storeToArchivists(payloads): Promise<Payload[]>;Parameters
payloads
Payload[]
Returns
Promise<Payload[]>
Inherited from
AbstractArchivist.storeToArchivists ### interfaces
### <a id="FileSystemArchivistData"></a>FileSystemArchivistData@xyo-network/filesystem-archivist
Properties
payloads
payloads: Payload[]; ### type-aliases
### <a id="FilesystemArchivistConfig"></a>FilesystemArchivistConfig@xyo-network/filesystem-archivist
type FilesystemArchivistConfig = ArchivistConfig<{
filePath?: string;
schema: FilesystemArchivistConfigSchema;
}>; ### <a id="FilesystemArchivistConfigSchema"></a>FilesystemArchivistConfigSchema@xyo-network/filesystem-archivist
type FilesystemArchivistConfigSchema = typeof FilesystemArchivistConfigSchema; ### <a id="FilesystemArchivistParams"></a>FilesystemArchivistParams@xyo-network/filesystem-archivist
type FilesystemArchivistParams = ArchivistParams<AnyConfigSchema<FilesystemArchivistConfig>>; ### variables
### <a id="FilesystemArchivistConfigSchema"></a>FilesystemArchivistConfigSchema@xyo-network/filesystem-archivist
const FilesystemArchivistConfigSchema: "network.xyo.archivist.filesystem.config" & object;Type Declaration
__schema
readonly __schema: true;
