Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFilePath ¶
Types ¶
type EthereumBridge ¶ added in v0.76.8
type EthereumBridge struct { // description: Ethereum smart contract addresses created by Vega. These can represent bridges or ERC20 tokens. Addresses map[string]SmartContract // description: Ethereum network ID. NetworkID string // description: Ethereum chain ID. ChainID string }
description: |
Template context also includes functions: - `.GetEthContractAddr "contract_name"` - returns contract address based on name. - `.GetVegaContractID "contract_name"` - returns contract vega ID based on name.
func (EthereumBridge) GetEthContractAddr ¶ added in v0.76.8
func (gc EthereumBridge) GetEthContractAddr(contract string) string
func (EthereumBridge) GetVegaContractID ¶ added in v0.76.8
func (gc EthereumBridge) GetVegaContractID(contract string) string
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
type SmartContract ¶
type TemplateContext ¶
type TemplateContext struct { PrimaryBridge EthereumBridge SecondaryBridge EthereumBridge }
func NewTemplateContext ¶
func NewTemplateContext(cfg config.NetworkConfig) (*TemplateContext, error)
Click to show internal directories.
Click to hide internal directories.