-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from polymorpher/jw-contract
AssetManager Contract
- Loading branch information
Showing
28 changed files
with
13,034 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Network config | ||
|
||
ETHERSCAN_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1 | ||
PRIVATE_KEY=abc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1 | ||
HARDHAT_URL=http://localhost:8545 | ||
LOCALNET_URL=http://localhost:9500 | ||
DEVNET_URL=https://api.s0.ps.hmny.io/ | ||
TESTNET_URL=https://api.s0.b.hmny.io | ||
MAINNET_URL=https://api.harmony.one | ||
LOCALGETH_URL=http://localhost:8645 | ||
ROPSTEN_URL=https://ropsten.infura.io/v3/abc123abc123abc123abc123abc123ab | ||
SEPOLIA_URL=https://rpc.sepolia.dev | ||
ETHEREUM_URL=https://mainnet.infura.io/v3/abc123abc123abc123abc123abc123ab | ||
|
||
# Application config | ||
|
||
INITIAL_OPERATOR_THRESHOLD=10 | ||
INITIAL_OPERATORS=["0x70997970C51812dc3A010C7d01b50e0d17dc79C8","0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC","0x90F79bf6EB2c4f870365E785982E1f101E93b906"] | ||
INITIAL_USER_LIMIT=1000000 | ||
INITIAL_AUTH_LIMIT=100000 | ||
TEST_INITIAL_OPERATOR_THRESHOLD=10 | ||
TEST_INITIAL_OPERATORS=["0x70997970C51812dc3A010C7d01b50e0d17dc79C8","0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC","0x90F79bf6EB2c4f870365E785982E1f101E93b906"] | ||
TEST_INITIAL_USER_LIMIT=1000 | ||
TEST_INITIAL_AUTH_LIMIT=100 |
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,4 @@ | ||
node_modules | ||
artifacts | ||
cache | ||
coverage |
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,27 @@ | ||
module.exports = { | ||
env: { | ||
browser: false, | ||
es2021: true, | ||
mocha: true, | ||
node: true | ||
}, | ||
plugins: ['@typescript-eslint'], | ||
extends: [ | ||
'standard', | ||
'plugin:node/recommended' | ||
], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 12 | ||
}, | ||
rules: { | ||
'node/no-unsupported-features/es-syntax': [ | ||
'error', | ||
{ ignores: ['modules'] } | ||
], | ||
'node/no-unpublished-import': 0, | ||
'node/no-missing-import': ['error', { | ||
tryExtensions: ['.js', '.json', '.node', '.ts'] | ||
}] | ||
} | ||
} |
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,15 @@ | ||
node_modules | ||
.env | ||
coverage | ||
coverage.json | ||
typechain | ||
|
||
#Hardhat files | ||
cache | ||
artifacts | ||
build | ||
|
||
# Additional files | ||
docs | ||
data | ||
.openzeppelin |
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,3 @@ | ||
hardhat.config.ts | ||
scripts | ||
test |
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,7 @@ | ||
{ | ||
"extends": "solhint:recommended", | ||
"rules": { | ||
"compiler-version": ["error", "^0.8.0"], | ||
"func-visibility": ["warn", { "ignoreConstructors": true }] | ||
} | ||
} |
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 @@ | ||
node_modules |
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,11 @@ | ||
# SMS Controlled Mini-Wallet | ||
|
||
See design and specification at [mini-wallet in SMS Wallet Wiki](https://github.com/polymorpher/sms-wallet/wiki#sms-controlled-mini-wallet) | ||
|
||
This folder contains the code for the smart contracts, tests, and deployment scripts. | ||
|
||
The main smart contract is [AssetManager](./contracts/AssetManager.sol). See in-line documentations for technical references. | ||
|
||
|
||
|
||
|
Oops, something went wrong.