Versions in this module Expand all Collapse all v1 v1.0.3 Apr 14, 2019 Changes in this version + func RunDeployFlow(t *testing.T, config *Config, orbs OrbsAdapter, ethereum EthereumAdapter) + func RunEthToOrbsFlow(t *testing.T, config *Config, orbs OrbsAdapter, ethereum EthereumAdapter) + func RunOrbsToEthFlow(t *testing.T, config *Config, orbs OrbsAdapter, ethereum EthereumAdapter) + type Config struct + DebugLogs bool + EthereumErc20Address string + OrbsAsbContractName string + OrbsErc20ContractName string + UserAccountOnEthereum string + UserAccountOnOrbs string + UserInitialBalanceOnEthereum int + UserTransferAmountBackToEthereum int + UserTransferAmountToOrbs int + func (config *Config) Validate() error + type EthereumAdapter interface + DeployASBContract func(ethereumErc20Address string, orbsAsbContractName string) (ethereumAsbAddress string) + DeployERC20Contract func() (ethereumErc20Address string) + FundUserAccount func(ethereumErc20Address string, userAccountOnEthereum string, ...) (userBalanceOnEthereumAfter int) + GetASBContractAddress func() (ethereumAsbAddress string) + GetBalance func(ethereumErc20Address string, userAccountOnEthereum string) (userBalanceOnEthereum int) + TransferIn func(ethereumErc20Address string, userAccountOnEthereum string, ...) (ethereumTxHash string, userBalanceOnEthereumAfter int) + TransferOut func(ethereumErc20Address string, userAccountOnEthereum string, ...) (ethereumTxHash string, userBalanceOnEthereumAfter int) + WaitForFinality func() + func AdapterForTruffleGanache(config *Config) EthereumAdapter + func AdapterForTruffleRopsten(config *Config) EthereumAdapter + type OrbsAdapter interface + BindASBContractToEthereum func(orbsAsbContractName string, ethereumAsbAddress string) + DeployASBContract func(orbsAsbContractName string, orbsErc20ContractName string) + DeployERC20Contract func(orbsErc20ContractName string, orbsAsbContractName string) + GenerateReceiptProof func(orbsTxId string) (packedOrbsReceiptProof string, packedOrbsReceipt string) + GetBalance func(orbsErc20ContractName string, userAccountOnOrbs string) (userBalanceOnOrbs int) + OrbsUserIdToHexAddress func(orbsUserId string) (userAccountOnOrbsHex string) + TransferIn func(orbsErc20ContractName string, orbsAsbContractName string, ...) (userBalanceOnOrbsAfter int) + TransferOut func(orbsErc20ContractName string, orbsAsbContractName string, ...) (orbsTxId string, userBalanceOnOrbsAfter int) + func AdapterForGammaCliLocal(config *Config) OrbsAdapter + func AdapterForGammaCliTestnet(config *Config) OrbsAdapter