Skip to content

Commit

Permalink
Merge pull request #1 from polymorpher/jw-contract
Browse files Browse the repository at this point in the history
AssetManager Contract
  • Loading branch information
polymorpher authored Aug 10, 2022
2 parents a4e6ca3 + e405015 commit f6054ac
Show file tree
Hide file tree
Showing 28 changed files with 13,034 additions and 0 deletions.
24 changes: 24 additions & 0 deletions miniwallet/.env.example
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
4 changes: 4 additions & 0 deletions miniwallet/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
artifacts
cache
coverage
27 changes: 27 additions & 0 deletions miniwallet/.eslintrc.js
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']
}]
}
}
15 changes: 15 additions & 0 deletions miniwallet/.gitignore
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
3 changes: 3 additions & 0 deletions miniwallet/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
hardhat.config.ts
scripts
test
7 changes: 7 additions & 0 deletions miniwallet/.solhint.json
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 }]
}
}
1 change: 1 addition & 0 deletions miniwallet/.solhintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
11 changes: 11 additions & 0 deletions miniwallet/README.md
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.




Loading

0 comments on commit f6054ac

Please sign in to comment.