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

Deploy 20240215 #128

Merged
merged 4 commits into from
Feb 15, 2024
Merged
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
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ INFURA_ID={your infura project id}
ALCHEMY_ID={your infura api key}
PUBLIC_ADDRESS={your wallet address}
PRIVATE_KEY={your private key to deploy SCs}
MNEMONIC={your mnemoic words}
NOF_DAI_CONTRACT_NAME='NofTestDAIV2'
NOF_ALPHA_CONTRACT_NAME='NofAlphaV2'
NOF_GAMMA_PACKS_CONTRACT_NAME='NofGammaPacksV2'
Expand Down Expand Up @@ -150,6 +151,25 @@ See detaills about gamma Smart Contracts in this [file](./.doc/contracts-info.md
* Gamma Offers: 0x3Da346C40A0D90cf5642944613586439A3456d45
* Gamma Tickets: 0x7593aad3e13fBd27F113aad8688E8817Ac4f9A33

### Bsc Tesnet
* DAI: 0x83330b5803838604d85B7Cba393C930084F45A7d
* Alpha: 0x4eE8C9cc2cF081f11F56A264EF52e3FeaDe1b35e
* Gamma Cards: 0x25f85D878972f9506b4De49cEff480f627935521
* Gamma Cards NFT: 0x05863097c97d93F264A7713295DE11517164ACCc
* Gamma Packs: 0x71aA05fD8532a1395DffaB6FdA8be191fC8168FE
* Gamma Offers: 0x71aA05fD8532a1395DffaB6FdA8be191fC8168FE
* Gamma Tickets: 0xA5c3Cd20AB6FF1e299D93ee268370BCC19a32E71

### OpBNB Testnet
* DAI: 0x46480E0d10966Ea274831D9693a56f9c09D7339d
* Alpha: 0x36f19A5397DbE26b548b15C158f7a8e00979B408
* Gamma Cards: 0x2842c8FD88F801018E53dDDeBbC944aE377D0F72
* Gamma Cards NFT: 0x8df52bd59823F0080958AEB1DfdaBf230ef7EdEd
* Gamma Packs: 0x1116218412559628B67aa15F3c527D68F0A71b91
* Gamma Offers: 0xe810524F7C7C62A2201FdF1bCA20649Bd7D70844
* Gamma Tickets: 0xd9988C491805AE2573FA156b27CDE1a6f7B3E073


### Mainet

(not yet)
Expand Down Expand Up @@ -199,3 +219,11 @@ git reset --soft HEAD~1
For more information, refer to: [commitlint](https://commitlint.js.org/#/).


## Links

* Mumbai Faucet: https://mumbaifaucet.com/

* BNB faucet: https://www.bnbchain.org/en/testnet-faucet

* Bridge (BNB-opBNB) Testnet: https://opbnb-testnet-bridge.bnbchain.org/deposit

1 change: 1 addition & 0 deletions example_env
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ INFURA_ID={your infura porject id}
ALCHEMY_ID={your infura api key}
PUBLIC_ADDRESS={your wallet address}
PRIVATE_KEY={your private key to deploy SCs}
MNEMONIC={your mnemoic words}
NOF_DAI_CONTRACT_NAME='NofTestDAIV3'
NOF_ALPHA_CONTRACT_NAME='NofAlphaV3'
NOF_GAMMA_PACKS_CONTRACT_NAME='NofGammaPacksV3'
Expand Down
13 changes: 13 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dotenv.config()
const INFURA_API_KEY = process.env.INFURA_API_KEY || 'INFURA_API_KEY'
const ALCHEMY_API_KEY = process.env.ALCHEMY_API_KEY || 'ALCHEMY_API_KEY'
const PRIVATE_KEY = process.env.PRIVATE_KEY
const MNEMONIC = process.env.MNEMONIC
const solidityVersions = ["0.6.0", "0.6.2", "0.6.6", "0.8.18", "0.8.20"]
const compilers = solidityVersions.map((version) => ({
version,
Expand Down Expand Up @@ -37,6 +38,18 @@ const config: HardhatUserConfig = {
sepolia: {
url: `https://sepolia.infura.io/v3/${INFURA_API_KEY}`,
...(PRIVATE_KEY ? { accounts: [`${PRIVATE_KEY}`] } : {})
},
bsc_testnet: {
url: "https://data-seed-prebsc-1-s1.bnbchain.org:8545",
chainId: 97,
gasPrice: 20000000000,
accounts: {mnemonic: `${MNEMONIC}`}
},
opbnb_testnet: {
url: "https://opbnb-testnet-rpc.bnbchain.org/",
chainId: 5611,
gasPrice: 20000000000,
...(PRIVATE_KEY ? { accounts: [`${PRIVATE_KEY}`] } : {})
}
},
solidity: {
Expand Down
4 changes: 2 additions & 2 deletions scripts/support-testAddCards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ async function main() {
const acc = await deployer.getAddress()
console.log(`Working with the account ${acc}, current acc balance: ${ethers.utils.formatEther(balance)}\n`)

const wallet = '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
const cardsContract = await ethers.getContractAt('NofGammaCardsV5', '0x5FC8d32690cc91D4c39d9d3abcBD16989F875707')
const wallet = '0x117b706DEF40310eF5926aB57868dAcf46605b8d'
const cardsContract = await ethers.getContractAt('NofGammaCardsV5', '0x34658c07F05638E12793d0961595cBc72fA69452')
await cardsContract.testAddCards(wallet)

process.exit(0)
Expand Down