Documentation ¶
Index ¶
- func ABILinkLibrary(bin string, libraryName string, libraryAddress common.Address) string
- func DeployContractWithLinks(auth *bind.TransactOpts, backend bind.ContractBackend, abiString string, ...) (common.Address, *types.Transaction, *bind.BoundContract, error)
- func DeployRouterRegistry(ctx context.Context, auth *bind.TransactOpts, conn *ethclient.Client, ...) common.Address
- func WaitMined(ctx context.Context, ec *ethclient.Client, tx *types.Transaction, ...) (*types.Receipt, error)
- func WaitMinedWithTxHash(ctx context.Context, ec *ethclient.Client, txHash string, blockDelay uint64) (*types.Receipt, error)
- type CelerChannelAddrBundle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ABILinkLibrary ¶
The following two functions(ABILinkLibrary and DeployContractWithLinks) are modified based on: https://github.com/joincivil/go-common/blob/master/pkg/eth/utils.go ABILinkLibrary replaces references to a library with the actual addresses to those library contracts
func DeployContractWithLinks ¶
func DeployContractWithLinks( auth *bind.TransactOpts, backend bind.ContractBackend, abiString string, bin string, libraries map[string]common.Address, params ...interface{}, ) (common.Address, *types.Transaction, *bind.BoundContract, error)
DeployContractWithLinks patches a contract bin with provided library addresses
func DeployRouterRegistry ¶
func DeployRouterRegistry( ctx context.Context, auth *bind.TransactOpts, conn *ethclient.Client, blockDelay uint64) common.Address
DeployRouterRegistry deploys router registry contract
Types ¶
type CelerChannelAddrBundle ¶
type CelerChannelAddrBundle struct { BalanceLimitAddr common.Address LedgerChannelAddr common.Address EthPoolAddr common.Address CelerLedgerAddr common.Address OperationAddr common.Address MigrateAddr common.Address PayRegistryAddr common.Address PayResolverAddr common.Address VirtResolverAddr common.Address LedgerStructAddr common.Address CelerWalletAddr common.Address }
func DeployAll ¶
func DeployAll( auth *bind.TransactOpts, conn *ethclient.Client, ctx context.Context, blockDelay uint64) CelerChannelAddrBundle
DeployAll cChannel related contracts.
Click to show internal directories.
Click to hide internal directories.