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, ...) (common.Address, error)
- func DeployERC20Remote(srcDir string, rpcURL string, privateKey string, ...) (common.Address, error)
- func DeployNativeHome(srcDir string, rpcURL string, privateKey string, ...) (common.Address, error)
- func DeployNativeRemote(srcDir string, rpcURL string, privateKey string, ...) (common.Address, error)
- func DeployWrappedNativeToken(srcDir string, rpcURL string, privateKey string, tokenSymbol string) (common.Address, error)
- func DownloadRepo(app *application.Lux, version string) error
- func ERC20TokenHomeAddCollateral(rpcURL string, homeAddress common.Address, privateKey string, ...) error
- func ERC20TokenHomeGetTokenAddress(rpcURL string, address common.Address) (common.Address, error)
- func ERC20TokenHomeSend(rpcURL string, homeAddress common.Address, privateKey string, ...) (*types.Receipt, *types.Receipt, error)
- func ERC20TokenRemoteGetTokenHomeAddress(rpcURL string, address common.Address) (common.Address, error)
- func ERC20TokenRemoteSend(rpcURL string, remoteAddress common.Address, privateKey string, ...) (*types.Receipt, *types.Receipt, error)
- func FoundryIsInstalled() bool
- func GetForgePath() (string, error)
- func GetTokenDecimals(endpoint string, tokenAddress common.Address) (uint8, error)
- func GetTokenParams(endpoint string, tokenAddress common.Address) (string, string, uint8, error)
- func InstallFoundry() error
- func NativeTokenHomeAddCollateral(rpcURL string, homeAddress common.Address, privateKey string, ...) error
- func NativeTokenHomeGetTokenAddress(rpcURL string, address common.Address) (common.Address, error)
- func NativeTokenHomeSend(rpcURL string, homeAddress common.Address, privateKey string, ...) (*types.Receipt, error)
- func NativeTokenRemoteGetTotalNativeAssetSupply(rpcURL string, address common.Address) (*big.Int, error)
- func NativeTokenRemoteSend(rpcURL string, remoteAddress common.Address, privateKey string, ...) (*types.Receipt, error)
- func RegisterRemote(rpcURL string, privateKey string, remoteAddress common.Address) error
- func RepoDir(app *application.Lux) (string, error)
- func Send(rpcURL string, address common.Address, privateKey string, ...) (*types.Receipt, *types.Receipt, error)
- func TokenHomeAddCollateral(rpcURL string, homeAddress common.Address, privateKey string, ...) error
- func TokenHomeGetDecimals(rpcURL string, address common.Address) (uint8, error)
- func TokenRemoteIsCollateralized(rpcURL string, address common.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 common.Address, warpManagerAddress common.Address, tokenHomeBlockchainID [32]byte, tokenHomeAddress common.Address, tokenHomeDecimals uint8, tokenRemoteName string, tokenRemoteSymbol string, tokenRemoteDecimals uint8, ) (common.Address, error)
func DeployNativeHome ¶
func DeployNativeRemote ¶
func DeployNativeRemote( srcDir string, rpcURL string, privateKey string, warpRegistryAddress common.Address, warpManagerAddress common.Address, tokenHomeBlockchainID [32]byte, tokenHomeAddress common.Address, tokenHomeDecimals uint8, nativeAssetSymbol string, initialReserveImbalance *big.Int, burnedFeesReportingRewardPercentage *big.Int, ) (common.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 common.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.