mirror of
https://github.com/luxfi/cli.git
synced 2026-10-30 17:01:20 +00:00
Update CLI for genesis Fix import paths from ethereum/go-ethereum to luxfi/geth - Replace all ethereum/go-ethereum imports with luxfi/geth - Add local rawdb package for unexported constants - Fix build errors in genesis tools - Add comprehensive migration documentation - Create build-all.sh script for building all tools - Clean up duplicate functions and unused imports Fix remaining imports Update CLI Remove symlink Remove local replace directives Update Update old templates
32 lines
528 B
Go
32 lines
528 B
Go
// Copyright (C) 2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
package contract
|
|
|
|
import (
|
|
_ "embed"
|
|
"math/big"
|
|
|
|
"github.com/ethereum/go-ethereum/common"
|
|
)
|
|
|
|
//go:embed contracts/bin/Token.bin
|
|
var tokenBin []byte
|
|
|
|
func DeployERC20(
|
|
rpcURL string,
|
|
privateKey string,
|
|
symbol string,
|
|
funded common.Address,
|
|
supply *big.Int,
|
|
) (common.Address, error) {
|
|
return DeployContract(
|
|
rpcURL,
|
|
privateKey,
|
|
tokenBin,
|
|
"(string, address, uint256)",
|
|
symbol,
|
|
funded,
|
|
supply,
|
|
)
|
|
}
|