MCPcopy Create free account
hub / github.com/chain/txvm / Build

Method Build

protocol/txvm/txvmutil/builder.go:25–27  ·  view source on GitHub ↗

TODO(jackson): Can we make this builder more ergonomic? https://github.com/interstellar/i10r/pull/2790#issuecomment-373210076 Build returns the assembled txvm program.

()

Source from the content-addressed store, hash-verified

23
24// Build returns the assembled txvm program.
25func (b *Builder) Build() []byte {
26 return b.buf.Bytes()
27}
28
29// PushdataBytes writes instructions to b,
30// pushing data onto the stack.

Callers 6

materializeTxMethod · 0.95
TxMethod · 0.95
VerifyTxIDFunction · 0.95
TestProgCreationFunction · 0.95
issueFunction · 0.95
TestBuilderFunction · 0.45

Calls 1

BytesMethod · 0.45

Tested by 2

TestProgCreationFunction · 0.76
TestBuilderFunction · 0.36