Documentation
¶
Overview ¶
Copyright (C) 2025, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2025, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2025, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2025, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2025, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.
Index ¶
- func BuildContracts(app *application.Lux) error
- func DeployERC20Home(srcDir string, rpcURL string, privateKey string, ...) (crypto.Address, error)
- func DeployERC20Remote(srcDir string, rpcURL string, privateKey string, ...) (crypto.Address, error)
- func DeployNativeHome(srcDir string, rpcURL string, privateKey string, ...) (crypto.Address, error)
- func DeployNativeRemote(srcDir string, rpcURL string, privateKey string, ...) (crypto.Address, error)
- func DeployWrappedNativeToken(srcDir string, rpcURL string, privateKey string, tokenSymbol string) (crypto.Address, error)
- func DownloadRepo(app *application.Lux, version string) error
- func ERC20TokenHomeAddCollateral(rpcURL string, homeAddress crypto.Address, privateKey string, ...) error
- func ERC20TokenHomeGetTokenAddress(rpcURL string, address crypto.Address) (crypto.Address, error)
- func ERC20TokenHomeSend(rpcURL string, homeAddress crypto.Address, privateKey string, ...) (*types.Receipt, *types.Receipt, error)
- func ERC20TokenRemoteGetTokenHomeAddress(rpcURL string, address crypto.Address) (crypto.Address, error)
- func ERC20TokenRemoteSend(rpcURL string, remoteAddress crypto.Address, privateKey string, ...) (*types.Receipt, *types.Receipt, error)
- func FoundryIsInstalled() bool
- func GetForgePath() (string, error)
- func GetTokenDecimals(endpoint string, tokenAddress crypto.Address) (uint8, error)
- func GetTokenParams(endpoint string, tokenAddress crypto.Address) (string, string, uint8, error)
- func InstallFoundry() error
- func NativeTokenHomeAddCollateral(rpcURL string, homeAddress crypto.Address, privateKey string, ...) error
- func NativeTokenHomeGetTokenAddress(rpcURL string, address crypto.Address) (crypto.Address, error)
- func NativeTokenHomeSend(rpcURL string, homeAddress crypto.Address, privateKey string, ...) (*types.Receipt, error)
- func NativeTokenRemoteGetTotalNativeAssetSupply(rpcURL string, address crypto.Address) (*big.Int, error)
- func NativeTokenRemoteSend(rpcURL string, remoteAddress crypto.Address, privateKey string, ...) (*types.Receipt, error)
- func RegisterRemote(rpcURL string, privateKey string, remoteAddress crypto.Address) error
- func RepoDir(app *application.Lux) (string, error)
- func Send(rpcURL string, address crypto.Address, privateKey string, ...) (*types.Receipt, *types.Receipt, error)
- func TokenHomeAddCollateral(rpcURL string, homeAddress crypto.Address, privateKey string, ...) error
- func TokenHomeGetDecimals(rpcURL string, address crypto.Address) (uint8, error)
- func TokenRemoteIsCollateralized(rpcURL string, address crypto.Address) (bool, error)
- type EndpointKind
- type RegisteredRemote
- type TokenRemoteSettings
- type WarpFeeInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildContracts ¶
func BuildContracts( app *application.Lux, ) error
func DeployERC20Home ¶
func DeployERC20Remote ¶
func DeployERC20Remote( srcDir string, rpcURL string, privateKey string, warpRegistryAddress crypto.Address, warpManagerAddress crypto.Address, tokenHomeBlockchainID [32]byte, tokenHomeAddress crypto.Address, tokenHomeDecimals uint8, tokenRemoteName string, tokenRemoteSymbol string, tokenRemoteDecimals uint8, ) (crypto.Address, error)
func DeployNativeHome ¶
func DeployNativeRemote ¶
func DeployNativeRemote( srcDir string, rpcURL string, privateKey string, warpRegistryAddress crypto.Address, warpManagerAddress crypto.Address, tokenHomeBlockchainID [32]byte, tokenHomeAddress crypto.Address, tokenHomeDecimals uint8, nativeAssetSymbol string, initialReserveImbalance *big.Int, burnedFeesReportingRewardPercentage *big.Int, ) (crypto.Address, error)
func DownloadRepo ¶
func DownloadRepo( app *application.Lux, version string, ) error
func ERC20TokenHomeSend ¶
func ERC20TokenRemoteSend ¶
func FoundryIsInstalled ¶
func FoundryIsInstalled() bool
func GetForgePath ¶
func GetTokenDecimals ¶
func GetTokenParams ¶
func InstallFoundry ¶
func InstallFoundry() error
func NativeTokenHomeSend ¶
func NativeTokenRemoteSend ¶
func RegisterRemote ¶
func TokenHomeAddCollateral ¶
func TokenHomeGetDecimals ¶
Types ¶
type EndpointKind ¶
type EndpointKind int64
const ( Undefined EndpointKind = iota ERC20TokenHome NativeTokenHome ERC20TokenRemote NativeTokenRemote )
func GetEndpointKind ¶
func GetEndpointKind( rpcURL string, address crypto.Address, ) (EndpointKind, error)
type RegisteredRemote ¶
type RegisteredRemote struct {
Registered bool
CollateralNeeded *big.Int
TokenMultiplier *big.Int
MultiplyOnRemote bool
}
type TokenRemoteSettings ¶
Click to show internal directories.
Click to hide internal directories.