Documentation ¶
Overview ¶
Package interop contains smart contract API functions. Its subpackages can be imported into smart contracts written in Go to provide various functionality. Upon compilation, functions from these packages will be substituted with appropriate NeoVM system calls implemented by Neo. Usually these system calls have additional price in NeoVM, so they're explicitly written in the documentation of respective functions.
Note that unless written otherwise structures defined in this packages can't be correctly created by new() or composite literals, they should be received from some interop functions (and then used as parameters for some other interop functions).
Directories ¶
Path | Synopsis |
---|---|
Package account provides getter functions for Account interop structure.
|
Package account provides getter functions for Account interop structure. |
Package asset provides functions to work with regular UTXO assets (like NEO or GAS).
|
Package asset provides functions to work with regular UTXO assets (like NEO or GAS). |
Package attribute provides getters for transaction attributes.
|
Package attribute provides getters for transaction attributes. |
Package block provides getters for Neo Block structure.
|
Package block provides getters for Neo Block structure. |
Package blockchain provides functions to access various blockchain data.
|
Package blockchain provides functions to access various blockchain data. |
Package contract provides functions to work with contracts.
|
Package contract provides functions to work with contracts. |
Package crypto provides an interface to VM cryptographic instructions and syscalls.
|
Package crypto provides an interface to VM cryptographic instructions and syscalls. |
Package engine provides access to VM execution metadata and allows to make contract calls.
|
Package engine provides access to VM execution metadata and allows to make contract calls. |
Package enumerator provides functions to work with enumerators.
|
Package enumerator provides functions to work with enumerators. |
Package header contains functions working with block headers.
|
Package header contains functions working with block headers. |
Package input provides functions dealing with transaction inputs.
|
Package input provides functions dealing with transaction inputs. |
Package iterator provides functions to work with Neo iterators.
|
Package iterator provides functions to work with Neo iterators. |
Package output provides functions dealing with transaction outputs.
|
Package output provides functions dealing with transaction outputs. |
Package runtime provides various service functions related to execution environment.
|
Package runtime provides various service functions related to execution environment. |
Package storage provides functions to access and modify contract's storage.
|
Package storage provides functions to access and modify contract's storage. |
Package transaction provides functions to work with transactions.
|
Package transaction provides functions to work with transactions. |
Package util contains some special useful functions that are provided by compiler and VM.
|
Package util contains some special useful functions that are provided by compiler and VM. |
Package witness provides functions dealing with transaction's witnesses.
|
Package witness provides functions dealing with transaction's witnesses. |
Click to show internal directories.
Click to hide internal directories.