diff --git a/Forc.lock b/Forc.lock index 5ff2155..0ac92bb 100644 --- a/Forc.lock +++ b/Forc.lock @@ -10,7 +10,7 @@ dependencies = [ [[package]] name = "core" -source = "path+from-root-4BA3A18A2D620E67" +source = "path+from-root-0F7AE5E23B79F5C1" [[package]] name = "create_pool_and_add_liquidity_script" @@ -47,7 +47,7 @@ dependencies = [ [[package]] name = "std" -source = "git+https://github.com/fuellabs/sway?tag=v0.64.0#2156bfbbee01ffb85bfca2aae8f185f8e7c715a4" +source = "git+https://github.com/fuellabs/sway?tag=v0.65.1#3a9c171cd43611d7ccad94ab66a5093c6634717b" dependencies = ["core"] [[package]] diff --git a/tools/fetch_abis.sh b/tools/fetch_abis.sh new file mode 100755 index 0000000..ca70ffe --- /dev/null +++ b/tools/fetch_abis.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +set -ex + +mkdir -p tmp_abis +cd tmp_abis + +echo "Fetching latest Mira v1 core sources" +git clone git@github.com:mira-amm/mira-v1-core.git + +echo "Building Mira v1 core" + +cd mira-v1-core +forc build --release + +cd ../.. + +rm -rf fixtures + +mkdir -p fixtures/mira-amm +mkdir -p fixtures/mock-token + +mv -f tmp_abis/mira-v1-core/contracts/mira_amm_contract/out/release/* fixtures/mira-amm +mv -f tmp_abis/mira-v1-core/contracts/mocks/mock_token/out/release/* fixtures/mock-token + +rm -rf tmp_abis