keystore

package
v1.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: GPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mainnet = wallet.Config{
	Bitcoin: wallet.BlockchainConfig{
		Network: wallet.Network{
			Name: "mainnet",
		},
		Tokens: []string{"BTC"},
	},
	Ethereum: wallet.BlockchainConfig{
		Network: wallet.Network{
			Name: "mainnet",
			URL:  "https://mainnet.infura.io",
		},
		Tokens: []string{"ETH", "WBTC", "REN", "DGX", "TUSD", "OMG", "ZRX", "USDC", "GUSD", "DAI"},
	},
}

Mainnet is the Swapperd's mainnet config object

View Source
var Testnet = wallet.Config{
	Bitcoin: wallet.BlockchainConfig{
		Network: wallet.Network{
			Name: "testnet",
		},
		Tokens: []string{"BTC"},
	},
	Ethereum: wallet.BlockchainConfig{
		Network: wallet.Network{
			Name: "kovan",
			URL:  "https://kovan.infura.io",
		},
		Tokens: []string{"ETH", "WBTC", "REN", "DGX", "TUSD", "OMG", "ZRX", "USDC", "GUSD", "DAI"},
	},
}

Testnet is the Swapperd's testnet config object

Functions

func Generate

func Generate(homeDir, network, mnemonic string) error

func Wallet

func Wallet(homeDir, network string) (wallet.Wallet, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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