Skip to content

nooschain v0.1.0


nooschain / contracts/state-migration-contract-defined / findContractStateMigrationManifest

Function: findContractStateMigrationManifest()

findContractStateMigrationManifest(manifest, migrationId): object

Defined in: contracts/state-migration-contract-defined.ts:37

Parameters

manifest

calls

object[] = ...

exports

{ init?: string; methods: Record<string, { abi?: { description?: string; events: object[]; input?: ContractAbiValue; output?: ContractAbiValue; }; buckets: object[]; entrypoint: string; invoke: { allow: ({ principalType: "anyUser"; } | { principalType: "anyContract"; } | { principalType: "any"; } | { principalType: "system"; } | { principalId: string; principalType: "user"; } | { principalId: string; principalType: "organization"; } | { principalId: string; principalType: "contract"; })[]; }; maxFuel?: number; }>; } = ...

exports.init?

string = ...

exports.methods

Record<string, { abi?: { description?: string; events: object[]; input?: ContractAbiValue; output?: ContractAbiValue; }; buckets: object[]; entrypoint: string; invoke: { allow: ({ principalType: "anyUser"; } | { principalType: "anyContract"; } | { principalType: "any"; } | { principalType: "system"; } | { principalId: string; principalType: "user"; } | { principalId: string; principalType: "organization"; } | { principalId: string; principalType: "contract"; })[]; }; maxFuel?: number; }> = ...

migrations

object[] = ...

name

string = ...

runtime

"wasm-assemblyscript-v1" = ...

schemaVersion

1 = ...

version

string = ...

migrationId

string

Returns

object

description?

optional description?: string

entrypoint

entrypoint: string = contractMethodNameSchema

fromVersion?

optional fromVersion?: string

id

id: string

input?

optional input?: ContractAbiValue

maxBatchSize?

optional maxBatchSize?: number

maxFuel?

optional maxFuel?: number

output?

optional output?: ContractAbiValue

toVersion?

optional toVersion?: string

Audience-first NOOSChain documentation.