-
Notifications
You must be signed in to change notification settings - Fork 11
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
1 parent
a37ba10
commit af80608
Showing
32 changed files
with
885 additions
and
93 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 |
---|---|---|
|
@@ -39,6 +39,7 @@ jobs: | |
run: | | ||
yarn | ||
yarn build | ||
yarn test:unit | ||
working-directory: ${{env.working-directory}} | ||
- name: Deploy to bsc.banano.cc | ||
uses: jsmrcaga/[email protected] | ||
|
@@ -70,6 +71,7 @@ jobs: | |
run: | | ||
yarn | ||
NODE_ENV=production yarn build --mode polygon | ||
yarn test:unit | ||
working-directory: ${{env.working-directory}} | ||
- name: Deploy to polygon.banano.cc | ||
uses: jsmrcaga/[email protected] | ||
|
@@ -79,3 +81,35 @@ jobs: | |
NETLIFY_DEPLOY_MESSAGE: "Prod deploy v${{ github.ref }}" | ||
NETLIFY_DEPLOY_TO_PROD: true | ||
build_directory: frontend/dist | ||
build-and-deploy-frontend-for-fantom: | ||
name: Fantom | ||
runs-on: ubuntu-latest | ||
env: | ||
working-directory: frontend | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "14" | ||
- run: npm install -g yarn | ||
working-directory: ${{env.working-directory}} | ||
- name: Build Smart Contract artifacts | ||
run: | | ||
yarn | ||
yarn compile | ||
working-directory: "." | ||
- name: Compile & Test | ||
run: | | ||
yarn | ||
NODE_ENV=production yarn build --mode fantom | ||
yarn test:unit | ||
working-directory: ${{env.working-directory}} | ||
- name: Deploy to fantom.banano.cc | ||
uses: jsmrcaga/[email protected] | ||
with: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_FANTOM_MAINNET_SITE_ID }} | ||
NETLIFY_DEPLOY_MESSAGE: "Prod deploy v${{ github.ref }}" | ||
NETLIFY_DEPLOY_TO_PROD: true | ||
build_directory: frontend/dist |
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 |
---|---|---|
|
@@ -39,6 +39,7 @@ jobs: | |
run: | | ||
yarn | ||
yarn build --mode staging | ||
yarn test:unit | ||
working-directory: ${{env.working-directory}} | ||
- name: Deploy to bsc-testnet.banano.cc | ||
uses: jsmrcaga/[email protected] | ||
|
@@ -70,6 +71,7 @@ jobs: | |
run: | | ||
yarn | ||
yarn build --mode polygonstaging | ||
yarn test:unit | ||
working-directory: ${{env.working-directory}} | ||
- name: Deploy to polygon-testnet.banano.cc | ||
uses: jsmrcaga/[email protected] | ||
|
@@ -79,3 +81,35 @@ jobs: | |
NETLIFY_DEPLOY_MESSAGE: "Staging deploy v${{ github.ref }}" | ||
NETLIFY_DEPLOY_TO_PROD: true | ||
build_directory: frontend/dist | ||
build-and-deploy-frontend-for-fantom: | ||
name: dAPP for Fantom | ||
runs-on: ubuntu-latest | ||
env: | ||
working-directory: frontend | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: "14" | ||
- run: npm install -g yarn | ||
working-directory: ${{env.working-directory}} | ||
- name: Build Smart Contract artifacts | ||
run: | | ||
yarn | ||
yarn compile | ||
working-directory: "." | ||
- name: Compile & Test | ||
run: | | ||
yarn | ||
yarn build --mode fantomstaging | ||
yarn test:unit | ||
working-directory: ${{env.working-directory}} | ||
- name: Deploy to fantom-testnet.banano.cc | ||
uses: jsmrcaga/[email protected] | ||
with: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_FANTOM_TESTNET_SITE_ID }} | ||
NETLIFY_DEPLOY_MESSAGE: "Staging deploy v${{ github.ref }}" | ||
NETLIFY_DEPLOY_TO_PROD: true | ||
build_directory: frontend/dist |
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,216 @@ | ||
{ | ||
"manifestVersion": "3.2", | ||
"admin": { | ||
"address": "0x5B558024dfA4a79dB4aDe9784D194ed9c63BEC31", | ||
"txHash": "0xc5279a2cf2e0fdfa3df649d193cc4ca85551dcc8bd40193cffc1ed55a34e97a6", | ||
"deployTransaction": { | ||
"hash": "0xc5279a2cf2e0fdfa3df649d193cc4ca85551dcc8bd40193cffc1ed55a34e97a6", | ||
"type": 0, | ||
"accessList": null, | ||
"blockHash": null, | ||
"blockNumber": null, | ||
"transactionIndex": null, | ||
"confirmations": 0, | ||
"from": "0xFD1Dc8Bf39Bc0e373068746787c1296a5aEF31Ee", | ||
"gasPrice": { | ||
"type": "BigNumber", | ||
"hex": "0x0174a32efe00" | ||
}, | ||
"gasLimit": { | ||
"type": "BigNumber", | ||
"hex": "0x075da0" | ||
}, | ||
"to": null, | ||
"value": { | ||
"type": "BigNumber", | ||
"hex": "0x00" | ||
}, | ||
"nonce": 1, | ||
"data": "0x608060405234801561001057600080fd5b50600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350610759806100616000396000f3fe60806040526004361061007b5760003560e01c80639623609d1161004e5780639623609d1461011157806399a88ec414610124578063f2fde38b14610144578063f3b7dead146101645761007b565b8063204e1c7a14610080578063715018a6146100bc5780637eff275e146100d35780638da5cb5b146100f3575b600080fd5b34801561008c57600080fd5b506100a061009b366004610515565b610184565b6040516001600160a01b03909116815260200160405180910390f35b3480156100c857600080fd5b506100d1610215565b005b3480156100df57600080fd5b506100d16100ee366004610554565b610292565b3480156100ff57600080fd5b506000546001600160a01b03166100a0565b6100d161011f36600461058c565b61031c565b34801561013057600080fd5b506100d161013f366004610554565b6103ad565b34801561015057600080fd5b506100d161015f366004610515565b610405565b34801561017057600080fd5b506100a061017f366004610515565b6104ef565b6000806000836001600160a01b03166040516101aa90635c60da1b60e01b815260040190565b600060405180830381855afa9150503d80600081146101e5576040519150601f19603f3d011682016040523d82523d6000602084013e6101ea565b606091505b5091509150816101f957600080fd5b8080602001905181019061020d9190610538565b949350505050565b6000546001600160a01b031633146102485760405162461bcd60e51b815260040161023f906106c0565b60405180910390fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031633146102bc5760405162461bcd60e51b815260040161023f906106c0565b6040516308f2839760e41b81526001600160a01b038281166004830152831690638f283970906024015b600060405180830381600087803b15801561030057600080fd5b505af1158015610314573d6000803e3d6000fd5b505050505050565b6000546001600160a01b031633146103465760405162461bcd60e51b815260040161023f906106c0565b60405163278f794360e11b81526001600160a01b03841690634f1ef286903490610376908690869060040161065d565b6000604051808303818588803b15801561038f57600080fd5b505af11580156103a3573d6000803e3d6000fd5b5050505050505050565b6000546001600160a01b031633146103d75760405162461bcd60e51b815260040161023f906106c0565b604051631b2ce7f360e11b81526001600160a01b038281166004830152831690633659cfe6906024016102e6565b6000546001600160a01b0316331461042f5760405162461bcd60e51b815260040161023f906106c0565b6001600160a01b0381166104945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161023f565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000806000836001600160a01b03166040516101aa906303e1469160e61b815260040190565b600060208284031215610526578081fd5b81356105318161070b565b9392505050565b600060208284031215610549578081fd5b81516105318161070b565b60008060408385031215610566578081fd5b82356105718161070b565b915060208301356105818161070b565b809150509250929050565b6000806000606084860312156105a0578081fd5b83356105ab8161070b565b925060208401356105bb8161070b565b9150604084013567ffffffffffffffff808211156105d7578283fd5b818601915086601f8301126105ea578283fd5b8135818111156105fc576105fc6106f5565b604051601f8201601f19908116603f01168101908382118183101715610624576106246106f5565b8160405282815289602084870101111561063c578586fd5b82602086016020830137856020848301015280955050505050509250925092565b600060018060a01b038416825260206040818401528351806040850152825b818110156106985785810183015185820160600152820161067c565b818111156106a95783606083870101525b50601f01601f191692909201606001949350505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461072057600080fd5b5056fea2646970667358221220d849f96f3086b9f82cdcf665adb8c697ace05638da1c7c16ab2d26293717af6764736f6c63430008020033", | ||
"r": "0xa620fc53951620b8691bf5042052af71b9308f97cf56a0a4bc12506735914ccf", | ||
"s": "0x6ba0c5caf2ca66ffc8edc69543bb01b96a0cb67bdedaf1f07e2c77490cd7b7ea", | ||
"v": 535, | ||
"creates": "0x5B558024dfA4a79dB4aDe9784D194ed9c63BEC31", | ||
"chainId": 250 | ||
} | ||
}, | ||
"proxies": [ | ||
{ | ||
"address": "0xe20B9e246db5a0d21BF9209E4858Bc9A3ff7A034", | ||
"txHash": "0xee68433542f031230c3829fca474eea0e25872e9d0bf70784a4d46919278af29", | ||
"kind": "transparent" | ||
} | ||
], | ||
"impls": { | ||
"f1be6678690eb8766e58118af5a21279979ac02812c19d8f2fd3ee89e223e9a2": { | ||
"address": "0x7A654d7Baa1445B55f626d07e5816CE5bd2D853C", | ||
"txHash": "0x634815099eeb7b106e236e85ea8af237c4066d5c10d88db4dec87e78f5268e67", | ||
"layout": { | ||
"storage": [ | ||
{ | ||
"contract": "Initializable", | ||
"label": "_initialized", | ||
"type": "t_bool", | ||
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:39" | ||
}, | ||
{ | ||
"contract": "Initializable", | ||
"label": "_initializing", | ||
"type": "t_bool", | ||
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:44" | ||
}, | ||
{ | ||
"contract": "ContextUpgradeable", | ||
"label": "__gap", | ||
"type": "t_array(t_uint256)50_storage", | ||
"src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:31" | ||
}, | ||
{ | ||
"contract": "ERC20Upgradeable", | ||
"label": "_balances", | ||
"type": "t_mapping(t_address,t_uint256)", | ||
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:37" | ||
}, | ||
{ | ||
"contract": "ERC20Upgradeable", | ||
"label": "_allowances", | ||
"type": "t_mapping(t_address,t_mapping(t_address,t_uint256))", | ||
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:39" | ||
}, | ||
{ | ||
"contract": "ERC20Upgradeable", | ||
"label": "_totalSupply", | ||
"type": "t_uint256", | ||
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:41" | ||
}, | ||
{ | ||
"contract": "ERC20Upgradeable", | ||
"label": "_name", | ||
"type": "t_string_storage", | ||
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:43" | ||
}, | ||
{ | ||
"contract": "ERC20Upgradeable", | ||
"label": "_symbol", | ||
"type": "t_string_storage", | ||
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:44" | ||
}, | ||
{ | ||
"contract": "ERC20Upgradeable", | ||
"label": "__gap", | ||
"type": "t_array(t_uint256)45_storage", | ||
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:362" | ||
}, | ||
{ | ||
"contract": "PausableUpgradeable", | ||
"label": "_paused", | ||
"type": "t_bool", | ||
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:29" | ||
}, | ||
{ | ||
"contract": "PausableUpgradeable", | ||
"label": "__gap", | ||
"type": "t_array(t_uint256)49_storage", | ||
"src": "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol:97" | ||
}, | ||
{ | ||
"contract": "ERC20PausableUpgradeable", | ||
"label": "__gap", | ||
"type": "t_array(t_uint256)50_storage", | ||
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20PausableUpgradeable.sol:42" | ||
}, | ||
{ | ||
"contract": "ERC165Upgradeable", | ||
"label": "__gap", | ||
"type": "t_array(t_uint256)50_storage", | ||
"src": "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol:36" | ||
}, | ||
{ | ||
"contract": "AccessControlUpgradeable", | ||
"label": "_roles", | ||
"type": "t_mapping(t_bytes32,t_struct(RoleData)43_storage)", | ||
"src": "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol:64" | ||
}, | ||
{ | ||
"contract": "AccessControlUpgradeable", | ||
"label": "__gap", | ||
"type": "t_array(t_uint256)49_storage", | ||
"src": "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol:232" | ||
}, | ||
{ | ||
"contract": "OwnableUpgradeable", | ||
"label": "_owner", | ||
"type": "t_address", | ||
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:22" | ||
}, | ||
{ | ||
"contract": "OwnableUpgradeable", | ||
"label": "__gap", | ||
"type": "t_array(t_uint256)49_storage", | ||
"src": "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol:82" | ||
}, | ||
{ | ||
"contract": "WBANToken", | ||
"label": "_receipts", | ||
"type": "t_mapping(t_bytes32,t_bool)", | ||
"src": "contracts/WBANToken.sol:18" | ||
} | ||
], | ||
"types": { | ||
"t_mapping(t_bytes32,t_bool)": { | ||
"label": "mapping(bytes32 => bool)" | ||
}, | ||
"t_bytes32": { | ||
"label": "bytes32" | ||
}, | ||
"t_bool": { | ||
"label": "bool" | ||
}, | ||
"t_address": { | ||
"label": "address" | ||
}, | ||
"t_array(t_uint256)49_storage": { | ||
"label": "uint256[49]" | ||
}, | ||
"t_uint256": { | ||
"label": "uint256" | ||
}, | ||
"t_mapping(t_bytes32,t_struct(RoleData)43_storage)": { | ||
"label": "mapping(bytes32 => struct AccessControlUpgradeable.RoleData)" | ||
}, | ||
"t_struct(RoleData)43_storage": { | ||
"label": "struct AccessControlUpgradeable.RoleData", | ||
"members": [ | ||
{ | ||
"label": "members", | ||
"type": "t_mapping(t_address,t_bool)" | ||
}, | ||
{ | ||
"label": "adminRole", | ||
"type": "t_bytes32" | ||
} | ||
] | ||
}, | ||
"t_mapping(t_address,t_bool)": { | ||
"label": "mapping(address => bool)" | ||
}, | ||
"t_array(t_uint256)50_storage": { | ||
"label": "uint256[50]" | ||
}, | ||
"t_mapping(t_address,t_uint256)": { | ||
"label": "mapping(address => uint256)" | ||
}, | ||
"t_mapping(t_address,t_mapping(t_address,t_uint256))": { | ||
"label": "mapping(address => mapping(address => uint256))" | ||
}, | ||
"t_string_storage": { | ||
"label": "string" | ||
}, | ||
"t_array(t_uint256)45_storage": { | ||
"label": "uint256[45]" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.