Documentation ¶
Overview ¶
Package contracts provide golang functions to read smart-contracts of snet-ecosystem
Index ¶
- Variables
- func GetABI(name SnetContract) (content []byte)
- func GetABIClean(name SnetContract) (content []byte)
- func GetBytecode(name SnetContract) (content []byte)
- func GetBytecodeClean(name SnetContract) (content []byte)
- func GetNetworks(name SnetContract) (content []byte)
- func GetNetworksClean(name SnetContract) (content []byte)
- type SnetContract
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetABI ¶
func GetABI(name SnetContract) (content []byte)
func GetABIClean ¶
func GetABIClean(name SnetContract) (content []byte)
GetABIClean returns content without spaces and line breaks
func GetBytecode ¶
func GetBytecode(name SnetContract) (content []byte)
func GetBytecodeClean ¶
func GetBytecodeClean(name SnetContract) (content []byte)
GetBytecodeClean returns content without double quotes, spaces and line breaks
func GetNetworks ¶
func GetNetworks(name SnetContract) (content []byte)
get addresses, events, and more for smart contracts for different networks
func GetNetworksClean ¶
func GetNetworksClean(name SnetContract) (content []byte)
GetNetworksClean returns networks without spaces and line breaks
Types ¶
type SnetContract ¶
type SnetContract string
const MultiPartyEscrow SnetContract = "MultiPartyEscrow"
const Registry SnetContract = "Registry"
const SingularityNetToken SnetContract = "SingularityNetToken"
const TokenConversionManager SnetContract = "TokenConversionManager"
const TokenStake SnetContract = "TokenStake"
Click to show internal directories.
Click to hide internal directories.