diff --git a/examples/oft-move-adapter/package.json b/examples/oft-move-adapter/package.json index e21327b7b..4875ccd52 100644 --- a/examples/oft-move-adapter/package.json +++ b/examples/oft-move-adapter/package.json @@ -1,5 +1,5 @@ { - "name": "@layerzerolabs/oft-adapter-aptos-move-example", + "name": "@layerzerolabs/oft-adapter-move-example", "version": "0.0.1", "private": true, "license": "MIT", diff --git a/examples/oft-move/shell-scripts/build_deploy_wire_test.sh b/examples/oft-move/shell-scripts/build_deploy_wire_test.sh deleted file mode 100755 index 14cd1e14f..000000000 --- a/examples/oft-move/shell-scripts/build_deploy_wire_test.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -# Exit on error -set -e - -echo "šŸš€ Starting OFT setup process..." - -source .env - -# Check if ACCOUNT_ADDRESS is set -if [ -z "$ACCOUNT_ADDRESS" ]; then - echo "āŒ Error: ACCOUNT_ADDRESS environment variable is not set" - echo "Please set it in your .env file and source it with 'source .env'" - exit 1 -fi - -# Build with force -echo "šŸ“¦ Building contracts..." -echo -e "y\ny\ny" | pnpm run lz:sdk:move:build --oapp-config move.layerzero.config.ts --named-addresses oft=$ACCOUNT_ADDRESS,oft_admin=$ACCOUNT_ADDRESS --force-build true -echo "\nāœ… Build complete!\n" - -# Deploy with force -echo "šŸš€ Deploying contracts..." -echo -e "y\ny\ny" | pnpm run lz:sdk:move:deploy --oapp-config move.layerzero.config.ts --address-name oft --named-addresses oft=$ACCOUNT_ADDRESS,oft_admin=$ACCOUNT_ADDRESS --move-deploy-script deploy-move/OFTInitParams.ts --force-deploy true -echo "\nāœ… Deploy complete!\n" - -# Run init twice -echo "šŸ”§ Running first initialization..." -echo -e "y\ny" | pnpm run lz:sdk:move:init-fa --oapp-config move.layerzero.config.ts --move-deploy-script deploy-move/OFTInitParams.ts - -echo "šŸ”§ Running second initialization..." -echo -e "y\ny" | pnpm run lz:sdk:move:init-fa --oapp-config move.layerzero.config.ts --move-deploy-script deploy-move/OFTInitParams.ts - -echo "šŸ”§ Setting delegate..." -echo -e "y\ny" | pnpm run lz:sdk:move:set-delegate --oapp-config move.layerzero.config.ts - -echo "šŸ”Œ Running first Move-VM wire..." -echo -e "y\ny" | pnpm run lz:sdk:move:wire --oapp-config move.layerzero.config.ts - -echo "šŸ”Œ Running second Move-VM wire..." -echo -e "y\ny" | pnpm run lz:sdk:move:wire --oapp-config move.layerzero.config.ts - -echo "āœ… Setup complete!" \ No newline at end of file diff --git a/examples/oft-move/shell-scripts/deploy_new.sh b/examples/oft-move/shell-scripts/deploy_new.sh deleted file mode 100755 index 3e3a0cf54..000000000 --- a/examples/oft-move/shell-scripts/deploy_new.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash - -# Exit on error -set -e - -echo "šŸš€ Starting OFT setup process..." - -source .env - -# Check if ACCOUNT_ADDRESS is set -if [ -z "$ACCOUNT_ADDRESS" ]; then - echo "āŒ Error: ACCOUNT_ADDRESS environment variable is not set" - echo "Please set it in your .env file and source it with 'source .env'" - exit 1 -fi - -# Build with force -echo "šŸ“¦ Building contracts..." -echo -e "y\ny\ny" | pnpm run lz:sdk:move:build --oapp-config move.layerzero.config.ts --named-addresses oft=$ACCOUNT_ADDRESS,oft_admin=$ACCOUNT_ADDRESS --force-build true -echo "\nāœ… Build complete!\n" - -# Deploy with force -echo "šŸš€ Deploying contracts..." -echo -e "y\ny\ny" | pnpm run lz:sdk:move:deploy --oapp-config move.layerzero.config.ts --address-name oft --named-addresses oft=$ACCOUNT_ADDRESS,oft_admin=$ACCOUNT_ADDRESS --move-deploy-script deploy-move/OFTInitParams.ts --force-deploy true -echo "\nāœ… Deploy complete!\n" - -# Run init twice -echo "šŸ”§ Running first initialization..." -echo -e "y\ny" | pnpm run lz:sdk:move:init-fa --oapp-config move.layerzero.config.ts --move-deploy-script deploy-move/OFTInitParams.ts - -echo "šŸ”§ Running second initialization..." -echo -e "y\ny" | pnpm run lz:sdk:move:init-fa --oapp-config move.layerzero.config.ts --move-deploy-script deploy-move/OFTInitParams.ts - -echo "šŸ”§ Setting delegate..." -echo -e "y\ny" | pnpm run lz:sdk:move:set-delegate --oapp-config move.layerzero.config.ts -echo "āœ… Setup complete!" \ No newline at end of file diff --git a/examples/oft-move/shell-scripts/smoke_test_all-cmds.sh b/examples/oft-move/shell-scripts/smoke_test_all-cmds.sh deleted file mode 100755 index f770c091d..000000000 --- a/examples/oft-move/shell-scripts/smoke_test_all-cmds.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash -set -e # Exit on error - -# Load environment variables -source .env - -echo "Starting OFT Move smoke tests..." - -# Build contracts -echo "Building contracts..." -echo -e "y\ny" | pnpm run lz:sdk:move:build --oapp-config move.layerzero.config.ts --named-addresses oft=$ACCOUNT_ADDRESS,oft_admin=$ACCOUNT_ADDRESS - -# Deploy contracts -echo "Deploying contracts..." -echo -e "y\ny" | pnpm run lz:sdk:move:deploy --oapp-config move.layerzero.config.ts --address-name oft --named-addresses oft=$ACCOUNT_ADDRESS,oft_admin=$ACCOUNT_ADDRESS --move-deploy-script deploy-move/OFTInitParams.ts - -# Initialize and set delegate -echo "Initializing and setting delegate..." -echo -e "y\ny" | pnpm run lz:sdk:move:init-fa --oapp-config move.layerzero.config.ts --move-deploy-script deploy-move/OFTInitParams.ts -echo -e "y\ny" | pnpm run lz:sdk:move:set-delegate --oapp-config move.layerzero.config.ts - -# Wire EVM and Move-VM -echo "Wiring EVM and Move-VM..." -echo -e "y\ny" | pnpm run lz:sdk:evm:wire --oapp-config move.layerzero.config.ts -echo -e "y\ny" | pnpm run lz:sdk:move:wire --oapp-config move.layerzero.config.ts - -# Set fee (example with EID 2) -echo "Setting fee..." -echo -e "y\ny" | pnpm run lz:sdk:move:set-fee --oapp-config move.layerzero.config.ts --fee-bps 1000 --to-eid 40102 - -# Set rate limit (example with EID 2) -echo "Setting rate limit..." -echo -e "y\ny" | pnpm run lz:sdk:move:set-rate-limit --oapp-config move.layerzero.config.ts --rate-limit 10000 --window-seconds 60 --to-eid 40102 - -# Unset rate limit (example with EID 2) -echo "Unsetting rate limit..." -echo -e "y\ny" | pnpm run lz:sdk:move:unset-rate-limit --oapp-config move.layerzero.config.ts --to-eid 40102 - -# Permanently disable blocklist -echo "Disabling blocklist..." -echo -e "y\ny" | pnpm run lz:sdk:move:permanently-disable-blocklist - -# Permanently disable freezing -echo "Disabling freezing..." -echo -e "y\ny" | pnpm run lz:sdk:move:permanently-disable-freezing - -# Deploy EVM contracts -echo "Deploying EVM contracts..." -echo -e "y\ny" | npx hardhat lz:deploy - -echo "Smoke tests completed!" \ No newline at end of file diff --git a/examples/oft-move/shell-scripts/wire_test.sh b/examples/oft-move/shell-scripts/wire_test.sh deleted file mode 100755 index d8a425786..000000000 --- a/examples/oft-move/shell-scripts/wire_test.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -# Exit on error -set -e - -echo "šŸš€ Starting OFT setup process..." - -source .env - -# Run init twice -echo "šŸ”§ Running first initialization..." -echo -e "y\ny" | pnpm run lz:sdk:move:init-fa --oapp-config move.layerzero.config.ts --move-deploy-script deploy-move/OFTInitParams.ts - -echo "šŸ”§ Running second initialization..." -echo -e "y\ny" | pnpm run lz:sdk:move:init-fa --oapp-config move.layerzero.config.ts --move-deploy-script deploy-move/OFTInitParams.ts - -echo "šŸ”§ Setting delegate..." -echo -e "y\ny" | pnpm run lz:sdk:move:set-delegate --oapp-config move.layerzero.config.ts - -echo "šŸ”Œ Running first Move-VM wire..." -echo -e "y\ny" | pnpm run lz:sdk:move:wire --oapp-config move.layerzero.config.ts - -echo "šŸ”Œ Running second Move-VM wire..." -echo -e "y\ny" | pnpm run lz:sdk:move:wire --oapp-config move.layerzero.config.ts - -echo "āœ… Setup complete!" \ No newline at end of file