Skip to content

Commit

Permalink
Merge pull request #131 from P4-Games/develop
Browse files Browse the repository at this point in the history
Deploy 20240409
  • Loading branch information
dappsar authored Apr 9, 2024
2 parents 4df5efe + f589681 commit 0852865
Show file tree
Hide file tree
Showing 122 changed files with 13,355 additions and 1,137 deletions.
32 changes: 32 additions & 0 deletions .emv_mainnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
INFURA_API_KEY=
ALCHEMY_API_KEY=ZoFsby6rdZoPyzROKeh67wvxTUxtbHxZ
PUBLIC_ADDRESS=0x35dad65F60c1A32c9895BE97f6bcE57D32792E83
PRIVATE_KEY=
MNEMONIC=
NOF_DAI_CONTRACT_NAME='NofTestDAIV3'
NOF_ALPHA_CONTRACT_NAME='NofAlphaV3'
NOF_GAMMA_PACKS_CONTRACT_NAME='NofGammaPacksV3'
NOF_GAMMA_CARDS_CONTRACT_NAME='NofGammaCardsV5'
NOF_GAMMA_CARDS_NFT_CONTRACT_NAME='NofGammaCardsNFTV1'
NOF_GAMMA_OFFERS_CONTRACT_NAME='NofGammaOffersV4'
NOF_GAMMA_TICKETS_CONTRACT_NAME='NofGammaTicketsV1'
NOF_GAMMA_LIB_PACK_VERIFIER_CONTRACT_NAME='LibPackVerifier'
NOF_GAMMA_LIB_STRING_UTILS_CONTRACT_NAME='LibStringUtils'
NOF_GAMMA_LIB_OWNERS_MGMT_CONTRACT_NAME='LibControlMgmt'
SIGNATURE_METHOD='1'
PRINT_LOGS_IN_TESTS='0'
MICRO_SERVICE_SIGNATURE_WALLETS_ADDRESSES='0xbc448896fa30dcafa085c0a45005a1334ebf1ab3,0x20517cf8C140F7F393F92cEa6158f57385a75733,0x4c46a8a7cf253e2fb7afe816a4bc273fbdd46c8c,0xfc355c1731a9f4e49a2fe7f9412aa22fa8fde198,0x1836acb4f313f21cbb86ffe2e8e9dfe2d853a657,0x422db8aef9748680d13e29d3495a66254f5e9061'
BALANCE_RECEIVER_WALLET_ADDRESS='0x6b510284C49705eA14e92aD35D86FD3075eC56e0'

NOF_DAI_MINT_EXTRA_WALLET_ADDRESSES=''

ADDITIONAL_OWNERS_WALLETS_ADDRESSES=''

NOF_DAI_CONTRACT_CURRENT_ADDRESS=''
NOF_ALPHA_CONTRACT_CURRENT_ADDRESS=''
NOF_GAMMA_CARDS_CONTRACT_CURRENT_ADDRESS=''
NOF_GAMMA_CARDS_NFT_CONTRACT_CURRENT_ADDRESS=''
NOF_GAMMA_PACKS_CONTRACT_CURRENT_ADDRESS=''
NOF_GAMMA_OFFERS_CONTRACT_CURRENT_ADDRESS=''
NOF_GAMMA_TICKETS_CONTRACT_CURRENT_ADDRESS=''

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ contracts-exposed

# Hardhat
/cache
/artifacts
/generated
typechain
typechain-types
Expand Down
115 changes: 90 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ npx hardhat test
# Deploy to local
npx hardhat run scripts/deploy.ts

# Deploy to Mumnbai
# Deploy to Mumbai
npx hardhat run scripts/deploy.ts --network mumbai

# Deploy Mock Data (local)
Expand All @@ -142,38 +142,75 @@ See detaills about gamma Smart Contracts in this [file](./.doc/contracts-info.md

## Deployed Contracts last Addresses

NOTA: The ERC20 token being used is DAI, the official addresses of the Mainnet and Testnet smart contracts of the different networks can be found in the references (at the end of this file). Also the faucets for testnet.

Alternatively for testnet, the source code of the DAI contract is in this repository (contracts folder) to deploy your own and avoid collecting cents from faucets.


### Mumbai
* DAI: 0xEa4c35c858E15Cef77821278A88435dE57bc8707
* Alpha: 0x7C201e88e43b5FBEEfB77F966c2a5D2E09178B49
* Gamma Cards: 0x34658c07F05638E12793d0961595cBc72fA69452
* Gamma Cards NFT: 0x1b3aeb1652bf9a9ab269fa987feec34a65ef7b69
* Gamma Packs: 0xDc06FbD70b2159863d079aE282d69AEe8a88A18E
* Gamma Offers: 0x3Da346C40A0D90cf5642944613586439A3456d45
* Gamma Tickets: 0x7593aad3e13fBd27F113aad8688E8817Ac4f9A33
* Alpha: 0x816EA704F9bEf91284bA72bEBdAC1d1c5788246b
* Gamma Cards: 0x394Fc1975972de88806b2E81Ed53f3E020f29D09
* Gamma Cards NFT: 0xe90FFf9825159e9Ce88f2Df3d766666CaD9DdF3a
* Gamma Packs: 0xfb4C387227d3692Be50376ff930472294ADEcED8
* Gamma Offers: 0x1eDB114Bb7A0CBaDA9c9550BD2F3F1bFC08Bd7a7
* Gamma Tickets: 0x091C994c5766D79bF592e08C71D49C49Eaf1DCee

### Bsc Tesnet
* DAI: 0x83330b5803838604d85B7Cba393C930084F45A7d
* Alpha: 0x4eE8C9cc2cF081f11F56A264EF52e3FeaDe1b35e
* Gamma Cards: 0x25f85D878972f9506b4De49cEff480f627935521
* Gamma Cards NFT: 0x05863097c97d93F264A7713295DE11517164ACCc
* Gamma Packs: 0x71aA05fD8532a1395DffaB6FdA8be191fC8168FE
* Gamma Offers: 0x71aA05fD8532a1395DffaB6FdA8be191fC8168FE
* Gamma Tickets: 0xA5c3Cd20AB6FF1e299D93ee268370BCC19a32E71
* DAI: 0x1ba960c6f624eC8d3fA3ACC4aFaF867538afd787
* Alpha: 0x56e14bf3adBE4C7566b4F9dCC9acc264429f5DC9
* Gamma Cards: 0x369443c3a885b6687d0f2a2Dc97b4EC69b9d90b3
* Gamma Cards NFT: 0x8842E2A0bF1ed60b360c4Ea46C0F1beBC8f5e64d
* Gamma Packs: 0xA62A947c0BD0A14317A6EAd7e32b227f4F9C36ef
* Gamma Offers: 0x4C1d15c7EcEDF52eE7073CeD26b0A6c482b27c69
* Gamma Tickets: 0xC67963E0742074bfa74610D28663FB3a524201D8

### OpBNB Testnet
* DAI: 0x46480E0d10966Ea274831D9693a56f9c09D7339d
* Alpha: 0x36f19A5397DbE26b548b15C158f7a8e00979B408
* Gamma Cards: 0x2842c8FD88F801018E53dDDeBbC944aE377D0F72
* Gamma Cards NFT: 0x8df52bd59823F0080958AEB1DfdaBf230ef7EdEd
* Gamma Packs: 0x1116218412559628B67aa15F3c527D68F0A71b91
* Gamma Offers: 0xe810524F7C7C62A2201FdF1bCA20649Bd7D70844
* Gamma Tickets: 0xd9988C491805AE2573FA156b27CDE1a6f7B3E073
* DAI: 0xE3Afd0e2b6b955a56A1823039DE577d3ce7B15BC
* Alpha: 0xaAf52b86Cb71c14bd01eC6AC88481BC94470fFD7
* Gamma Cards: 0x4a65B5138fCaBFE8a7c676688E9884F1eBdc1906
* Gamma Cards NFT: 0x28C768b53b051989c0952FcAC7167Ad9ff1C18A5
* Gamma Packs: 0xd792e3040FaCa21E0a7414422DeC6000Cc66BB79
* Gamma Offers: 0xB90B462d5c609CC548a8135C264b212688A9Fe1f
* Gamma Tickets: 0xa7ec2fd75cAfd694866AF76e865D8b34b24CB5D8

### Polygon Mainet

(not yet)

* DAI: 0x8f3cf7ad23cd3cadbd9735aff958023239c6a063 (official makerDAO contract address)
* Alpha:
* Gamma Cards:
* Gamma Cards NFT:
* Gamma Packs:
* Gamma Offers:
* Gamma Tickets:

### BSC Mainet

(not yet)

* DAI: 0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3 (official makerDAO contract address)
* Alpha:
* Gamma Cards:
* Gamma Cards NFT:
* Gamma Packs:
* Gamma Offers:
* Gamma Tickets:

### Mainet

### OpBNB Testnet

(not yet)

* DAI: TBC (official makerDAO contract address)
* Alpha:
* Gamma Cards:
* Gamma Cards NFT:
* Gamma Packs:
* Gamma Offers:
* Gamma Tickets:


## Contribution

Expand Down Expand Up @@ -221,9 +258,37 @@ For more information, refer to: [commitlint](https://commitlint.js.org/#/).

## Links

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

* Matic Faucet on Mumbai:
- https://mumbaifaucet.com/

* BNB & DAI faucet on BSC:
- https://www.bnbchain.org/en/testnet-faucet

* DAI faucet on Mumbai:
- https://faucet.paradigm.xyz/
- https://staging.aave.com/faucet/ (get DAI on Sepolian and then transfer to Mumbai with bridge)

* Get BNB & DAI on opBNB with Bridge (BNB-opBNB):
- https://opbnb-testnet-bridge.bnbchain.org/deposit

### Maker DAO (DAI) Contracts Addresses

* MakerDAO (DAI) Testnet:
- Mumbai: https://mumbai.polygonscan.com/address/0x001b3b4d0f3714ca98ba10f6042daebf0b1b7b6f
- BSC-testnet: https://testnet.bscscan.com/address/0xec5dcb5dbf4b114c9d0f65bccab49ec54f6a0867
- opBNB-testinet:

* MakerDAO (DAI) Mainnet:
- source info: https://www.coingecko.com/en/coins/dai
- Polygon: https://polygonscan.com/token/0x8f3cf7ad23cd3cadbd9735aff958023239c6a063
- BSC: https://bscscan.com/token/0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3
- opBNB:

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

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

* Bridger Finder
- https://app.findmybridge.com/finder/2863311531
- https://testnet.meson.fi/
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/d0763492bde0a53d48379c8cb06e25eb.json"
}
63 changes: 63 additions & 0 deletions artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "Ownable",
"sourceName": "@openzeppelin/contracts/access/Ownable.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/d0763492bde0a53d48379c8cb06e25eb.json"
}
Loading

0 comments on commit 0852865

Please sign in to comment.