-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'test-contract-state-after-failing-submsg' into test-con…
…tract-state-after-failing-bank-submsg Conflicts: cosmwasm/contracts/v1/compute-tests/test-compute-contract/src/contract.rs
- Loading branch information
Showing
62 changed files
with
4,439 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,7 +105,7 @@ jobs: | |
submodules: recursive | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.19 # The Go version to download (if necessary) and use. | ||
go-version: 1.21 # The Go version to download (if necessary) and use. | ||
- name: Install Intel's SGX SDK | ||
run: | | ||
mkdir -p "$HOME/.sgxsdk" | ||
|
@@ -236,7 +236,7 @@ jobs: | |
submodules: recursive | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.19 # The Go version to download (if necessary) and use. | ||
go-version: 1.21 # The Go version to download (if necessary) and use. | ||
- name: Install xgo | ||
run: | | ||
go install github.com/crazy-max/[email protected] | ||
|
@@ -270,8 +270,8 @@ jobs: | |
FEATURES_U=debug-print,random,light-client-validation,go-tests | ||
SGX_MODE=SW | ||
target: build-localsecret | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
# cache-from: type=gha | ||
# cache-to: type=gha,mode=max | ||
outputs: type=docker,dest=/tmp/localsecret.tar | ||
- name: Upload Image | ||
uses: actions/upload-artifact@v3 | ||
|
@@ -327,12 +327,13 @@ jobs: | |
run: | | ||
cd integration-tests | ||
yarn | ||
perl -i -pe 's/localsecret:.+?"/localsecret:v0.0.0"/' ../deployment/dockerfiles/ibc/docker-compose.yml | ||
docker compose -f ../deployment/dockerfiles/ibc/docker-compose.yml up -d > docker-compose.log 2>&1 | ||
yarn test || { cat docker-compose.log; exit 1; } | ||
make kill-localsecret # next step needs the localsecret ports | ||
- name: Run secret.js tests | ||
run: | | ||
git clone --depth 1 --branch contract-upgrade-v2 https://github.com/scrtlabs/secret.js | ||
git clone --depth 1 --branch master https://github.com/scrtlabs/secret.js | ||
cd secret.js | ||
# Use the docker images that we built just a few steps above | ||
perl -i -pe 's/localsecret:.+?"/localsecret:v0.0.0"/' ./test/docker-compose.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,7 +151,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.19 # The Go version to download (if necessary) and use. | ||
go-version: 1.21 # The Go version to download (if necessary) and use. | ||
- name: Build CLI | ||
shell: bash | ||
run: | | ||
|
@@ -168,7 +168,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.19 # The Go version to download (if necessary) and use. | ||
go-version: 1.21 # The Go version to download (if necessary) and use. | ||
- name: Install xgo | ||
run: | | ||
go install github.com/crazy-max/[email protected] | ||
|
@@ -255,7 +255,7 @@ jobs: | |
build-args: | | ||
SECRET_NODE_TYPE=BOOTSTRAP | ||
CHAIN_ID=secretdev-1 | ||
FEATURES=debug-print | ||
FEATURES=debug-print,random,light-client-validation | ||
SGX_MODE=SW | ||
target: build-localsecret | ||
|
||
|
@@ -275,13 +275,12 @@ jobs: | |
version: "v1.9.0" | ||
|
||
Release: | ||
needs: | ||
[ | ||
needs: [ | ||
native-build-cli, | ||
build-deb-testnet, | ||
build-deb-mainnet, | ||
MacOS-ARM64-CLI, | ||
check-hw-tool | ||
check-hw-tool, | ||
# check-hw-tool-mainnet | ||
] | ||
runs-on: ubuntu-20.04 | ||
|
@@ -311,9 +310,9 @@ jobs: | |
- uses: actions/download-artifact@v3 | ||
with: | ||
name: check_hw_${{ steps.get_version.outputs.VERSION }}.tar.gz | ||
# - uses: actions/download-artifact@v3 | ||
# with: | ||
# name: check_hw_${{ steps.get_version.outputs.VERSION }}_mainnet.tar.gz | ||
# - uses: actions/download-artifact@v3 | ||
# with: | ||
# name: check_hw_${{ steps.get_version.outputs.VERSION }}_mainnet.tar.gz | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
|
@@ -326,4 +325,5 @@ jobs: | |
secretcli-Linux | ||
secretcli-MacOS-arm64 | ||
check_hw_${{ steps.get_version.outputs.VERSION }}.tar.gz | ||
# check_hw_${{ steps.get_version.outputs.VERSION }}_mainnet.tar.gz | ||
# check_hw_${{ steps.get_version.outputs.VERSION }}_mainnet.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package v1_12 | ||
|
||
import ( | ||
"fmt" | ||
|
||
store "github.com/cosmos/cosmos-sdk/store/types" | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
"github.com/cosmos/cosmos-sdk/types/module" | ||
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" | ||
"github.com/scrtlabs/SecretNetwork/app/keepers" | ||
"github.com/scrtlabs/SecretNetwork/app/upgrades" | ||
) | ||
|
||
const upgradeName = "v1.12" | ||
|
||
var Upgrade = upgrades.Upgrade{ | ||
UpgradeName: upgradeName, | ||
CreateUpgradeHandler: createUpgradeHandler, | ||
StoreUpgrades: store.StoreUpgrades{}, | ||
} | ||
|
||
func createUpgradeHandler(mm *module.Manager, _ *keepers.SecretAppKeepers, configurator module.Configurator, | ||
) upgradetypes.UpgradeHandler { | ||
return func(ctx sdk.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { | ||
ctx.Logger().Info(` _ _ _____ _____ _____ _____ ______ `) | ||
ctx.Logger().Info(`| | | | __ \ / ____| __ \ /\ | __ \| ____|`) | ||
ctx.Logger().Info(`| | | | |__) | | __| |__) | / \ | | | | |__ `) | ||
ctx.Logger().Info(`| | | | ___/| | |_ | _ / / /\ \ | | | | __| `) | ||
ctx.Logger().Info(`| |__| | | | |__| | | \ \ / ____ \| |__| | |____ `) | ||
ctx.Logger().Info(` \____/|_| \_____|_| \_\/_/ \_\_____/|______|`) | ||
|
||
ctx.Logger().Info(fmt.Sprintf("Running module migrations for %s...", upgradeName)) | ||
return mm.RunMigrations(ctx, configurator, vm) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.