Skip to main content

Type alias: ContractRefV0

type ContractRefV0: object;

Type for a contract reference version 0. This represents how to construct the virtual file system (VFS) for the contract.

There are two ways to do this, either by referencing stored claims that include the VFS information, or explicitly by providing raw data in the form of a [ContractTree].

The explicit approach is typically used when first invoking a contract (see the self registration system), potentially combined with also using stored claims for parts of the VFS that can be reused from other parts of the system.

Note: The contract id is a function of the resolved version of the contract reference, the [ResolvedContractRefV0].

Type declaration

MemberType
explicitContractTree
storedStoredFile[]

Coinweb © 2024