Artifact
bitcoinjs-lib / Artifact
Interface: Artifact
Defined in: packages/scrypt-ts-btc/src/smart-contract/types/artifact.ts:21
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 @scrypt-inc/cli-btc
.
Properties
abi
abi:
ABIEntity
[]
Defined in: packages/scrypt-ts-btc/src/smart-contract/types/artifact.ts:43
ABI of the contract: interfaces of its public functions and constructor
alias
alias:
AliasEntity
[]
Defined in: packages/scrypt-ts-btc/src/smart-contract/types/artifact.ts:41
all typealias defined in the contracts, including dependent contracts
buildType
buildType:
string
Defined in: packages/scrypt-ts-btc/src/smart-contract/types/artifact.ts:27
build type, can be debug or release
compilerVersion
compilerVersion:
string
Defined in: packages/scrypt-ts-btc/src/smart-contract/types/artifact.ts:25
version of compiler used to produce this file
contract
contract:
string
Defined in: packages/scrypt-ts-btc/src/smart-contract/types/artifact.ts:29
name of the contract
file
file:
string
Defined in: packages/scrypt-ts-btc/src/smart-contract/types/artifact.ts:47
relative file uri of the main contract source code file
hex
hex:
string
Defined in: packages/scrypt-ts-btc/src/smart-contract/types/artifact.ts:45
locking script of the contract in hex format, including placeholders for constructor parameters
library
library:
LibraryEntity
[]
Defined in: packages/scrypt-ts-btc/src/smart-contract/types/artifact.ts:39
all library defined in the contracts, including dependent contracts
md5
md5:
string
Defined in: packages/scrypt-ts-btc/src/smart-contract/types/artifact.ts:31
md5 of the contract source code
stateProps
stateProps:
ParamEntity
[]
Defined in: packages/scrypt-ts-btc/src/smart-contract/types/artifact.ts:33
all stateful properties defined in the contracts
stateType?
optional
stateType:string
Defined in: packages/scrypt-ts-btc/src/smart-contract/types/artifact.ts:35
the type of the state
property used in the contracts
structs
structs:
StructEntity
[]
Defined in: packages/scrypt-ts-btc/src/smart-contract/types/artifact.ts:37
all structures defined in the contracts, including dependent contracts
version
version:
number
Defined in: packages/scrypt-ts-btc/src/smart-contract/types/artifact.ts:23
version of artifact file