Documentation ¶
Index ¶
- Constants
- Variables
- func ChainConfig(net dex.Network) (c *params.ChainConfig, err error)
- func NetworkCompatibilityData(net dex.Network) (c eth.CompatibilityData, err error)
- type Driver
- func (d *Driver) Create(cfg *asset.CreateWalletParams) error
- func (d *Driver) DecodeCoinID(coinID []byte) (string, error)
- func (d *Driver) Exists(walletType, dataDir string, settings map[string]string, net dex.Network) (bool, error)
- func (d *Driver) Info() *asset.WalletInfo
- func (d *Driver) Open(cfg *asset.WalletConfig, logger dex.Logger, net dex.Network) (asset.Wallet, error)
Constants ¶
View Source
const (
// BipID is the BIP-0044 asset ID for Polygon.
BipID = 966
)
Variables ¶
View Source
var ( WalletInfo = asset.WalletInfo{ Name: "Polygon", SupportedVersions: []uint32{0}, UnitInfo: dexpolygon.UnitInfo, AvailableWallets: []*asset.WalletDefinition{ { Type: walletTypeRPC, Tab: "External", Description: "Infrastructure providers (e.g. Infura) or local nodes", ConfigOpts: append(eth.RPCOpts, walletOpts...), Seeded: true, NoAuth: true, }, }, IsAccountBased: true, } )
Functions ¶
func ChainConfig ¶
func ChainConfig(net dex.Network) (c *params.ChainConfig, err error)
ChainConfig returns the core configuration for the blockchain.
func NetworkCompatibilityData ¶
func NetworkCompatibilityData(net dex.Network) (c eth.CompatibilityData, err error)
NetworkCompatibilityData returns the CompatibilityData for the specified network. If using simnet, make sure the simnet harness is running.
Types ¶
Click to show internal directories.
Click to hide internal directories.