Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions base/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,9 @@ deploy:
upgrade:
BRIDGE_ENVIRONMENT=$(ENV_NAME) forge script UpgradeScript --account testnet-upgrade --rpc-url $(BASE_RPC) --broadcast -vvvv

.PHONY: create-wrapped-sol
create-wrapped-sol:
BRIDGE_ENVIRONMENT=$(ENV_NAME) TOKEN_NAME=WrappedSOL TOKEN_SYMBOL=wSOL REMOTE_TOKEN=$(REMOTE_SOL) forge script CreateTokenScript --account testnet-admin --rpc-url $(BASE_RPC) --broadcast -vvvv

.PHONY: create-wrapped-spl
create-wrapped-spl:
BRIDGE_ENVIRONMENT=$(ENV_NAME) TOKEN_NAME=WrappedSPL TOKEN_SYMBOL=wSPL REMOTE_TOKEN=$(REMOTE_SPL) forge script CreateTokenScript --ledger --hd-paths "m/44'/60'/$(LEDGER_ACCOUNT)'/0/0" --rpc-url $(BASE_RPC) --broadcast -vvvv
BRIDGE_ENVIRONMENT=$(ENV_NAME) TOKEN_NAME=WrappedSPL TOKEN_SYMBOL=wSPL REMOTE_TOKEN=$(REMOTE_SPL) TOKEN_DECIMALS=9 forge script CreateTokenScript --ledger --hd-paths "m/44'/60'/$(LEDGER_ACCOUNT)'/0/0" --rpc-url $(BASE_RPC) --broadcast -vvvv

.PHONY: create-mock-token
create-mock-token:
Expand Down
3 changes: 2 additions & 1 deletion base/script/actions/CreateToken.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ contract CreateTokenScript is DevOps {
using LibString for string;

bytes32 public immutable REMOTE_TOKEN = vm.envBytes32("REMOTE_TOKEN");
uint8 public immutable TOKEN_DECIMALS = uint8(vm.envUint("TOKEN_DECIMALS"));
string public tokenName = vm.envString("TOKEN_NAME");
string public tokenSymbol = vm.envString("TOKEN_SYMBOL");

Expand All @@ -25,7 +26,7 @@ contract CreateTokenScript is DevOps {
function run() public {
vm.startBroadcast();
address token = crossChainErc20Factory.deploy({
remoteToken: REMOTE_TOKEN, name: tokenName, symbol: tokenSymbol, decimals: 9
remoteToken: REMOTE_TOKEN, name: tokenName, symbol: tokenSymbol, decimals: TOKEN_DECIMALS
});
console.log("Deployed Token at: %s", token);
vm.stopBroadcast();
Expand Down
Loading