forked from argentlabs/argent-x
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
61,077 additions
and
25 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# 🧪 Tools for local testing only | ||
|
||
## ⬆️ Contract upgrades | ||
|
||
To help test contract upgrades there is a simple script which will declare an upgradable contract to a locally running devnet and allow you to transfer funds to a local wallet. | ||
|
||
- Make sure you have devnet running locally (see above) | ||
|
||
```bash | ||
# For ARM computers (e.g. Mac computers with Apple silicon) | ||
yarn devnet:start:arm | ||
|
||
# otherwise | ||
yarn devnet:start | ||
``` | ||
|
||
- Start the tool and declare the contract (make note of the contract class hash for later) | ||
|
||
```bash | ||
# switch to Node 18 | ||
nvm use 18 | ||
|
||
# start the tool | ||
yarn devnet:upgrade-helper | ||
``` | ||
|
||
- Set the contract class hash in Settings → Manage Networks → Localhost → Advanced | ||
|
||
- You should then see that an account upgrade is available | ||
|
||
- Transfer some ETH to your local wallet so you have funds to upgrade | ||
|
||
- You can reset the contract class hash to make upgrade available again |
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
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,31 @@ | ||
module.exports = { | ||
env: { | ||
es2021: true, | ||
node: true, | ||
}, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
}, | ||
plugins: ["@typescript-eslint"], | ||
rules: { | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-extra-semi": "off", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
vars: "all", | ||
ignoreRestSiblings: true, | ||
argsIgnorePattern: "^_", | ||
}, | ||
], | ||
"@typescript-eslint/no-non-null-assertion": "error", | ||
curly: "error", | ||
}, | ||
} |
Oops, something went wrong.