Skip to content

Commit

Permalink
Merging set of fixes for upgrading smart contracts on Nightshade v2 (n…
Browse files Browse the repository at this point in the history
…ear-daos#206)

* Added scripts for handling v2 gas fixes and scripts for mainnet

* Added remaining mainnet scripts

* finished gasfix testing in testnet

* Finalized all scripts for mainnet use

* Fixed script typo

* Add docker build files. Update script for factory upgrade

* Bumping the gas required to delete the temp contract

* handle argument gas cost increasing (near-daos#1)

Co-authored-by: Marco <[email protected]>

* remove sputnikdao2_gasfix and fix binaryen version in github workflows (near-daos#2)

Co-authored-by: Marco <[email protected]>

* ci: fix test failure (near-daos#3)

* ci: run test on macos-13

* ci: use llvm@14 on macos

* test: refactor tests with near-workspaces-js and ava

* test: refactor tests and fix failure

* ci: test on ubuntu-24.04 with node 20.17.0

* ci: test on ubuntu-22.04 with node 20.17.0

---------

Co-authored-by: Trevor Clarke <[email protected]>
Co-authored-by: Marco <[email protected]>
Co-authored-by: Marco <[email protected]>
Co-authored-by: Robert Yan <[email protected]>
  • Loading branch information
5 people authored Sep 25, 2024
1 parent 2b19edb commit 3d568f9
Show file tree
Hide file tree
Showing 42 changed files with 2,106 additions and 906 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ jobs:
- name: Install binaryen
run: |
set -e
curl -L https://github.com/WebAssembly/binaryen/releases/download/version_105/binaryen-version_105-x86_64-linux.tar.gz | tar xzf -
echo "`pwd`/binaryen-version_105/bin" >> $GITHUB_PATH
curl -L https://github.com/WebAssembly/binaryen/releases/download/version_119/binaryen-version_119-x86_64-linux.tar.gz | tar xzf -
echo "`pwd`/binaryen-version_119/bin" >> $GITHUB_PATH
# triggers all build.rs steps
- name: Trigger build.rs steps
run: |
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,23 @@ jobs:
tests:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
platform: [ubuntu-22.04, macos-13]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20.17.0
- name: Setup dependencies
if: startsWith(matrix.platform, 'macos')
run: |
brew install llvm@14
echo /usr/local/opt/llvm@14/bin >> $GITHUB_PATH
- name: Build
env:
IS_GITHUB_ACTION: true
Expand Down
115 changes: 75 additions & 40 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3d568f9

Please sign in to comment.