Documentation
¶
Index ¶
- type Contract
- type Source
- type State
- func (s *State) ListContracts() ([]*Contract, error)
- func (s *State) ListSources() ([]*Source, error)
- func (s *State) ListTaintedSources() ([]*Source, error)
- func (s *State) SetTaintedSource(dir, filename string) error
- func (s *State) UpsertContract(contract *Contract) error
- func (s *State) UpsertSource(src *Source) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract struct { Dir string // bundle this Filename string // Name is the name of the contract Name string // Abi is the abi encoding of the contract Abi string `json:"abi"` // Bin is the bin bytecode to deploy the contract Bin string `json:"bin"` // BinRuntime is the deployed bytecode of the contract BinRuntime string `json:"bin-runtime"` // SrcMap is the source map object for the deployment transaction SrcMap string `json:"srcmap"` // SrcMapRuntime is the source map object for the deployed contract SrcMapRuntime string `json:"srcmap-runtime"` }
type Source ¶
type Source struct { // Dir is the directory of the file Dir string // Filename is the name of the file Filename string // ModTime is the modified time of the source ModTime time.Time // Tainted signals whether the code has been modified Tainted bool // Versions are the required version for this source Version []string // Imports is the list of imports defined in this source Imports []string // AST is **compiled** ast tree of the solidity code AST *solidity.ASTNode }
func (*Source) GetLocalImports ¶
func (*Source) GetRemappings ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
func (*State) ListContracts ¶
func (*State) ListSources ¶
func (*State) ListTaintedSources ¶
func (*State) SetTaintedSource ¶
func (*State) UpsertContract ¶
func (*State) UpsertSource ¶
Click to show internal directories.
Click to hide internal directories.