Skip to main content

Artifact

scrypt-ts-opcat v1.0.1


scrypt-ts-opcat / Artifact

Interface: Artifact

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:23

An Bitcoin Contract Artifact is a collection of files generated during the compilation of a smart contract. It contains all the necessary metadata, code, and interfaces required to deploy, interact with, and verify the contract on the Bitcoin blockchain. Artifacts are generated by @opcat-labs/cli-opcat.

Properties

abi

abi: ABIEntity[]

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:45

ABI of the contract: interfaces of its public functions and constructor


alias

alias: AliasEntity[]

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:43

all typealias defined in the contracts, including dependent contracts


buildType

buildType: string

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:29

build type, can be debug or release


compilerVersion

compilerVersion: string

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:27

version of compiler used to produce this file


contract

contract: string

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:31

name of the contract


file

file: string

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:49

relative file uri of the main contract source code file


hex

hex: string

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:47

locking script of the contract in hex format, including placeholders for constructor parameters


library

library: LibraryEntity[]

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:41

all library defined in the contracts, including dependent contracts


md5

md5: string

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:33

md5 of the contract source code


stateProps

stateProps: ParamEntity[]

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:35

all stateful properties defined in the contracts


stateType?

optional stateType: string

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:37

the type of the state property used in the contracts


structs

structs: StructEntity[]

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:39

all structures defined in the contracts, including dependent contracts


version

version: number

Defined in: packages/scrypt-ts-opcat/src/smart-contract/types/artifact.ts:25

version of artifact file