Documentation ¶
Index ¶
- Constants
- Variables
- func BuildEventModels(contract *EthereumContract, multipleContracts bool) (out []codegenEvent, err error)
- type EthereumChain
- type EthereumContract
- func (e *EthereumContract) GetAbi() *eth.ABI
- func (e *EthereumContract) GetAddress() eth.Address
- func (e *EthereumContract) GetEvents() []codegenEvent
- func (e *EthereumContract) GetName() string
- func (e *EthereumContract) SetAbi(abi *eth.ABI)
- func (e *EthereumContract) SetAbiContent(abiContent string)
- func (e *EthereumContract) SetEvents(events []codegenEvent)
- func (e *EthereumContract) SetName(name string)
- type EthereumProject
- type Project
- type ProjectFunc
Constants ¶
View Source
const SKIP_FIELD = "skip"
Variables ¶
View Source
var EthereumChainsByID = map[string]*EthereumChain{
"Mainnet": {
DisplayName: "Ethereum Mainnet",
ExplorerLink: "https://etherscan.io",
ApiEndpoint: "https://api.etherscan.io",
DefaultContractAddress: "bc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
DefaultContractName: "Bored Ape Yacht Club",
FirehoseEndpoint: "mainnet.eth.streamingfast.io:443",
Network: "mainnet",
},
"BNB": {
DisplayName: "BNB",
ExplorerLink: "https://bscscan.com",
ApiEndpoint: "https://api.bscscan.com",
DefaultContractAddress: "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
DefaultContractName: "CAKE Token",
FirehoseEndpoint: "bnb.streamingfast.io:443",
Network: "bsc",
},
"Polygon": {
DisplayName: "Polygon",
ExplorerLink: "https://polygonscan.com",
ApiEndpoint: "https://api.polygonscan.com",
DefaultContractAddress: "0x7ceb23fd6bc0add59e62ac25578270cff1b9f619",
DefaultContractName: "WETH Token",
FirehoseEndpoint: "polygon.streamingfast.io:443",
Network: "polygon",
},
"Goerli": {
DisplayName: "Goerli Testnet",
ExplorerLink: "https://goerli.etherscan.io",
ApiEndpoint: "https://api-goerli.etherscan.io",
DefaultContractAddress: "0x4f7a67464b5976d7547c860109e4432d50afb38e",
DefaultContractName: "GETH Token",
FirehoseEndpoint: "goerli.eth.streamingfast.io:443",
Network: "goerli",
},
"Mumbai": {
DisplayName: "Mumbai Testnet",
ExplorerLink: "https://mumbai.polygonscan.com",
ApiEndpoint: "https://api-mumbai.polygonscan.com",
DefaultContractAddress: "0xFCe7187B24FCDc9feFfE428Ec9977240C6F7006D",
DefaultContractName: "USDT Token",
FirehoseEndpoint: "mumbai.streamingfast.io:443",
Network: "mumbai",
},
}
Functions ¶
func BuildEventModels ¶ added in v1.1.18
func BuildEventModels(contract *EthereumContract, multipleContracts bool) (out []codegenEvent, err error)
Types ¶
type EthereumChain ¶
type EthereumContract ¶ added in v1.1.18
type EthereumContract struct {
// contains filtered or unexported fields
}
func NewEthereumContract ¶ added in v1.1.18
func NewEthereumContract(name string, address eth.Address, events []codegenEvent, abi *eth.ABI, abiContent string) *EthereumContract
func (*EthereumContract) GetAbi ¶ added in v1.1.18
func (e *EthereumContract) GetAbi() *eth.ABI
func (*EthereumContract) GetAddress ¶ added in v1.1.18
func (e *EthereumContract) GetAddress() eth.Address
func (*EthereumContract) GetEvents ¶ added in v1.1.18
func (e *EthereumContract) GetEvents() []codegenEvent
func (*EthereumContract) GetName ¶ added in v1.1.18
func (e *EthereumContract) GetName() string
func (*EthereumContract) SetAbi ¶ added in v1.1.18
func (e *EthereumContract) SetAbi(abi *eth.ABI)
func (*EthereumContract) SetAbiContent ¶ added in v1.1.18
func (e *EthereumContract) SetAbiContent(abiContent string)
func (*EthereumContract) SetEvents ¶ added in v1.1.18
func (e *EthereumContract) SetEvents(events []codegenEvent)
func (*EthereumContract) SetName ¶ added in v1.1.18
func (e *EthereumContract) SetName(name string)
type EthereumProject ¶
type EthereumProject struct {
// contains filtered or unexported fields
}
func NewEthereumProject ¶
func NewEthereumProject(name string, moduleName string, chain *EthereumChain, contracts []*EthereumContract, lowestStartBlock uint64) (*EthereumProject, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.