Documentation ¶
Index ¶
- Variables
- func BindLocalSetupFlags(cmd *cobra.Command)
- func SetupERC20Handler(bridgeContract *bridge.BridgeContract, erc20Contract *erc20.ERC20Contract, ...) error
- func SetupERC721Handler(bridgeContract *bridge.BridgeContract, erc721Contract *erc721.ERC721Contract, ...) error
- func SetupGenericHandler(bridgeContract *bridge.BridgeContract, conf BridgeConfig, ...) error
- type BridgeConfig
- type EVMClient
Constants ¶
This section is empty.
Variables ¶
View Source
var AliceKp = keystore.TestKeyRing.EthereumKeys[keystore.AliceKey]
View Source
var BobKp = keystore.TestKeyRing.EthereumKeys[keystore.BobKey]
View Source
var ( DefaultRelayerAddresses = []common.Address{ common.HexToAddress(keystore.TestKeyRing.EthereumKeys[keystore.AliceKey].Address()), common.HexToAddress(keystore.TestKeyRing.EthereumKeys[keystore.BobKey].Address()), common.HexToAddress(keystore.TestKeyRing.EthereumKeys[keystore.CharlieKey].Address()), common.HexToAddress(keystore.TestKeyRing.EthereumKeys[keystore.DaveKey].Address()), common.HexToAddress(keystore.TestKeyRing.EthereumKeys[keystore.EveKey].Address()), } )
View Source
var EveKp = keystore.TestKeyRing.EthereumKeys[keystore.EveKey]
View Source
var LocalSetupCmd = &cobra.Command{
Use: "local-setup",
Short: "Deploy and prefund a local bridge for testing",
Long: "The local-setup command deploys a bridge, ERC20, ERC721 and generic handler contracts with preconfigured accounts and appropriate handlers",
RunE: localSetup,
}
Functions ¶
func BindLocalSetupFlags ¶
func SetupERC20Handler ¶
func SetupERC20Handler( bridgeContract *bridge.BridgeContract, erc20Contract *erc20.ERC20Contract, mintTo common.Address, conf BridgeConfig, resourceID types.ResourceID, ) error
func SetupERC721Handler ¶
func SetupERC721Handler(bridgeContract *bridge.BridgeContract, erc721Contract *erc721.ERC721Contract, conf BridgeConfig, resourceID types.ResourceID) error
func SetupGenericHandler ¶
func SetupGenericHandler(bridgeContract *bridge.BridgeContract, conf BridgeConfig, resourceID types.ResourceID) error
Types ¶
type BridgeConfig ¶
type BridgeConfig struct { BridgeAddr common.Address Erc20Addr common.Address Erc20HandlerAddr common.Address Erc20ResourceID types.ResourceID AssetStoreAddr common.Address GenericHandlerAddr common.Address GenericResourceID types.ResourceID Erc721Addr common.Address Erc721HandlerAddr common.Address Erc721ResourceID types.ResourceID ResourceIDERC721 string ResourceIDGeneric string }
type EVMClient ¶
type EVMClient interface { calls.ContractCallerDispatcher evmgaspricer.GasPriceClient }
Click to show internal directories.
Click to hide internal directories.