Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BOLT Token #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/src/common/Blockchain/Contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ export const Contracts: Record<
token: "0xb253fAA010eC8DfC976232BF20c4fd340740A3Bf",
paymentRequests: "0xC5C81a0879d5453F5b3c783f9C77FFAdF2F25420",
},
bolt: {
token: "0x98A4cf3e95F80e38922A6D702Ce9Cb8C09fE6439",
paymentRequests: "0x120D1c2d71DEcf1B1ACd49B8a855e9bb7ff24589",
},
};

export const EnsContract: Address =
Expand Down
6 changes: 6 additions & 0 deletions app/src/common/hooks/useContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@ export const useContract = () => {
if (window.location.href.includes("pyusd")) {
return Contracts["pyusd"]["token"];
}
if (window.location.href.includes("bolt")) {
return Contracts["bolt"]["token"];
}
return Contracts["pyusd"]["token"];
}, []);

const paymentRequestsAddress = useMemo(() => {
if (window.location.href.includes("pyusd")) {
return Contracts["pyusd"]["paymentRequests"];
}
if (window.location.href.includes("bolt")) {
return Contracts["bolt"]["paymentRequests"];
}
return Contracts["pyusd"]["paymentRequests"];
}, []);

Expand Down
48 changes: 48 additions & 0 deletions contracts/\
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
80.211.161.23 cifuentes
35.238.142.181 poppy-http
35.202.149.183 poppy-subscriber-mainnet
35.239.19.77 poppy-subscriber-testnet
104.197.202.74 poppy-restapi
82.223.98.197 wannalisn
35.222.10.15 troncard-payments troncard-accounts
46.101.249.124 common-services dev.accounts.troncard.io
207.154.199.217 poppy-services
159.89.31.102 troncard-services
142.93.133.196 mydroplet
#165.22.198.241 sesameseed-common
142.93.135.12 sesameseed-common
134.209.205.121 sprout-wallet
134.209.83.163 sesameseed-listener
64.227.78.193 sesameseed-isolated
134.209.83.163 renardo-server
# Added by Docker Desktop
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section

#START-Utrade
127.0.0.1 binance.utrade.local
127.0.0.1 ethereum.utrade.local
127.0.0.1 ropsten.utrade.local
127.0.0.1 tron.utrade.local
127.0.0.1 iotex.utrade.local
127.0.0.1 harmony.utrade.local
127.0.0.1 ontology.utrade.local
127.0.0.1 icon.utrade.local
127.0.0.1 polygon.utrade.local
127.0.0.1 antonio.utrade.local
#END-Utrade

cloudflare-eth.com eth-gateway.sesameseed.network
206.189.101.167 unifiprotocol-bots
127.0.0.1 bolt.local
12 changes: 12 additions & 0 deletions contracts/contracts/Bolt.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract Bolt is ERC20 {
constructor() ERC20("Bolt", "BOLT") {}

function mint(address to, uint256 amount) external {
_mint(to, amount);
}
}