Skip to content

Commit

Permalink
Harmony Bridge (#51)
Browse files Browse the repository at this point in the history
* Interface for bridgeToken method

* bridge token function

* bridge function progress

* progress on bridge function

* add wallet fix

* Removing optional sign

* first test passing

* Validations for params

* deposit and approve

* burn token

* lint

* test moved to hrc721 tests

* progress with approval step

* progress with approval step

* approve progress

* skip estimateGas

* burn step not working

* burn step not working

* burn step not working

* burn step not working

* rollback deposit change

* stopped usign hmy sdk to create contract objects

* removed harcoded txOptions

* cleaning code

* adding some tests

* adding some tests

* refactor: remove bridge-sdk lib

* enable ChainType.Ethereum

* enable ChainType.Ethereum

* testing

* bridge refactor

* bridge contracts for e2e

* bridge contracts for e2e

* managers

* change testnet to devnet

* add helpers

* fix helpers

* add contract name enum

* fix helpers

* add ethers

* use tx options

* contracts fixes

* e2e helper fixes

* refactor

* progress on erc721 e2e

* progress on erc721 e2e

* progress on erc721 e2e

* progress with lock for hrc721

* hrc20 e2e

* compile contracts before run test

* e2e passing for hrc20 hrc721 and gameitems

* e2e 1155 first commit

* e2e 1155 passing

* bridge token

* bridge token fixes for 1155

* cleaning code for hrc1155

* move bridge-token test to e2e

* adding unit test for hrc721

* unit test for hrc721 hmyToEth not working

* increasing cov - unit tests

* adding some utils test

* hmyToEth hrc721 unit test passing

* unit test hrc20 bridge

* unit test hrc1155

* more unit test hrc1155

* more unit test hrc1155

* Add BridgeHRC20Token

* Fix bridgeHrc20Token

* bridge token

* bridge token

* bridge token

* bridge token

* bridge token

* Fix bridge

* Fix bridge test

* Fix build

Co-authored-by: Ana Riera <[email protected]>
Co-authored-by: Fernando Sirni <[email protected]>
  • Loading branch information
3 people authored Jul 7, 2022
1 parent 454d0e4 commit d745b0c
Show file tree
Hide file tree
Showing 107 changed files with 17,923 additions and 2,001 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
- run:
name: Run Tests
command: npm run test:cov
# - run:
# name: Run E2E Tests
# command: npm run test:e2e
- run:
name: Run Build
command: npm run build
Expand Down
5 changes: 4 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
API_KEY=
TEST_PK_1=
TEST_PK_2=
TEST_SEED=
MASTER_PRIVATE_KEY=
OWNER_PRIVATE_KEY=
TEST_SEED="pablo diego jose francisco de paula juan nepomuceno maria ruiz y picasso"
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,6 @@ dist
# Builds
lib.esm/
lib.esnext/
lib/
lib/
src/tests/artifacts/
src/tests/cache/
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.13
lts/gallium
4 changes: 3 additions & 1 deletion .nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"**/*.test.ts",
"**/*.spec.ts",
"src/tests/**/*",
"src/index.ts"
"src/bridge/**/*",
"src/index.ts",
"src/contracts/ethBaseContract.ts"
],
"sourceMap": true,
"reporter": [
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"solidity.compileUsingRemoteVersion": "v0.5.17+commit.d19bba13"
}
16 changes: 16 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
solidity: {
version: '0.5.17',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
paths: {
sources: './src/tests/contracts',
cache: './src/tests/cache',
artifacts: './src/tests/artifacts',
},
}
Loading

0 comments on commit d745b0c

Please sign in to comment.