nooschain / contracts/readiness / refreshContractReadiness
Function: refreshContractReadiness()
refreshContractReadiness(
database,args):Promise<ContractReadinessReport|null>
Defined in: contracts/readiness.ts:231
Parameters
database
args
contract
contractId
string
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; }>; }; migrations: object[]; name: string; runtime: "wasm-assemblyscript-v1"; schemaVersion: 1; version: string; }
manifest.calls
object[] = ...
manifest.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; }>; } = ...
manifest.exports.init?
string = ...
manifest.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; }> = ...
manifest.migrations
object[] = ...
manifest.name
string = ...
manifest.runtime
"wasm-assemblyscript-v1" = ...
manifest.schemaVersion
1 = ...
manifest.version
string = ...
nodeId?
string
protocolContext?
runtimeRequirements?
Returns
Promise<ContractReadinessReport | null>