-
Notifications
You must be signed in to change notification settings - Fork 56
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
11 changed files
with
23,045 additions
and
4 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 @@ | ||
ARCHIVE_NODE_URL='your infura or alchemy url here' |
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 |
---|---|---|
|
@@ -18,4 +18,5 @@ artifacts | |
|
||
.DS_Store | ||
|
||
build/ | ||
build/ | ||
.env |
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,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 |
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,10 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VALIDATORS = exports.WHALE = void 0; | ||
exports.WHALE = '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'; | ||
exports.VALIDATORS = [ | ||
'0xd312f0f1B39D54Db2829537595fC1167B14d4b34', | ||
'0x7bE2a04df4b9C3227928147461e19158eB2B11d1', | ||
'0xb8c6886FDDa38adaa0F416722dd5554886C43055', | ||
'0x14fdAC734De10065093C4Ed4a83C41638378005A' | ||
]; |
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,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); | ||
} | ||
} |
Oops, something went wrong.