Skip to content

Commit

Permalink
ethereum config
Browse files Browse the repository at this point in the history
  • Loading branch information
mvid committed Dec 14, 2021
1 parent 48a17b9 commit 166cb8b
Show file tree
Hide file tree
Showing 11 changed files with 23,045 additions and 4 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ARCHIVE_NODE_URL='your infura or alchemy url here'
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ artifacts

.DS_Store

build/
build/
.env
19 changes: 19 additions & 0 deletions integration_tests/ethereum/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM node:14-alpine3.13

RUN apk update
RUN apk add --no-cache git python3 make build-base

COPY package.json package.json
COPY yarn.lock yarn.lock

RUN yarn install --production=false
RUN npm config set user 0

COPY . .

ENV ARCHIVE_NODE_URL=""
EXPOSE 8545

RUN yarn run compile

CMD yarn start
10 changes: 10 additions & 0 deletions integration_tests/ethereum/addresses.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VALIDATORS = exports.WHALE = void 0;
exports.WHALE = '0xd8da6bf26964af9d7eed9e03e53415d37aa96045';
exports.VALIDATORS = [
'0xd312f0f1B39D54Db2829537595fC1167B14d4b34',
'0x7bE2a04df4b9C3227928147461e19158eB2B11d1',
'0xb8c6886FDDa38adaa0F416722dd5554886C43055',
'0x14fdAC734De10065093C4Ed4a83C41638378005A'
];
16 changes: 16 additions & 0 deletions integration_tests/ethereum/contracts/CosmosToken.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
pragma solidity ^0.6.6;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract CosmosERC20 is ERC20 {
uint256 MAX_UINT = 2**256 - 1;

constructor(
address _gravityAddress,
string memory _name,
string memory _symbol,
uint8 _decimals
) public ERC20(_name, _symbol) {
_setupDecimals(_decimals);
_mint(_gravityAddress, MAX_UINT);
}
}
Loading

0 comments on commit 166cb8b

Please sign in to comment.