deploy

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2022 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ABILinkLibrary

func ABILinkLibrary(bin string, libraryName string, libraryAddress common.Address) string

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(
	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

func WaitMined

func WaitMined(ctx context.Context, ec *ethclient.Client,
	tx *types.Transaction, blockDelay uint64) (*types.Receipt, error)

func WaitMinedWithTxHash

func WaitMinedWithTxHash(ctx context.Context, ec *ethclient.Client,
	txHash string, blockDelay uint64) (*types.Receipt, error)

WaitMined waits for tx to be mined on the blockchain It returns tx receipt when the tx has been mined and enough block confirmations have passed

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL