Documentation ¶
Index ¶
- Variables
- func DeployGame(auth *bind.TransactOpts, ethcli rpc.EthCli, deployer GameContractDeployer, ...) (gameAddr common.Address, coreAddr common.Address, err error)
- func NewLocalIO(registry concrete.PrecompileRegistry, schemas arch.ArchSchemas, ...) (*rpc.IO, error)
- func NewSimulatedBackend(registry concrete.PrecompileRegistry, gasLimit uint64, ...) *simulated.TickingSimulatedBackend
- type GameContractDeployer
- type InitializableProxyAdmin
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LocalChainId = big.NewInt(1337) LocalPrivateKeyHex = "504d29ac79864050983ca646570b0bbe158fa5878c1bda7f1fdb0a48bd8b37b6" )
Functions ¶
func DeployGame ¶
func NewLocalIO ¶
func NewLocalIO(registry concrete.PrecompileRegistry, schemas arch.ArchSchemas, deployer GameContractDeployer, logic common.Address, data []byte, blockTime time.Duration) (*rpc.IO, error)
func NewSimulatedBackend ¶
func NewSimulatedBackend(registry concrete.PrecompileRegistry, gasLimit uint64, devAddresses ...common.Address) *simulated.TickingSimulatedBackend
Types ¶
type GameContractDeployer ¶
type GameContractDeployer = func(auth *bind.TransactOpts, ethcli bind.ContractBackend) (common.Address, *types.Transaction, InitializableProxyAdmin, error)
type InitializableProxyAdmin ¶
Click to show internal directories.
Click to hide internal directories.