Skip to content

Commit

Permalink
Feature/dapp (#79)
Browse files Browse the repository at this point in the history
* add box mainnet logic contract

* update environment variables

* update dependencies

* factor out VRF interfaces

* Add Seed Storage contract and test stub

* add order oracle

* add pizza interfaces

* add initial deployment script

* add initial pizza contract (WIP)

* Update Deployment scripts

remove env vars that are not actually used.  Add a mint pizza sequence diagram.  update docs, etc

* Add fulfillment event

update fallback function

* npm upgrade

* dont run the bonding curve tests all the time

they take a while

* moar tool updates

* clean up seed storage deployment

add a deployment to mumbai

* update gitignore and packages

* rename mumbai to maticmum

when ethers added official support, they chose maticmum as the name.

see here: ethers-io/ethers.js#1546 (comment)

* add deployment for polygon random consumer

* pizza storage set random consumer

* update docs

* Remove purchase logic, use box token id

remove the logic to purchase a pizza.  it now just redirects to the box contract (for api consistency).  Also use the box id as the token id for the pizza for now.

* missed interface upgrade

* clean up the order api consumer deployment

add the job as a string and use assembly to load it into bytes32. note this is dangerous.

* check the chainlink callback is a contract

use openzep's _msgSender() in some places

* remove references to kovan

update packages

* fix test

* reanme

* update pizza deployment

* Fix the IPFS hash resolution

The IPFS hashes are too big when coming in from the chainlink oracle to fit in bytes32 so they get converted from base58 into a uint and the multihash bytes are stripped off, then recombined when reading out the hash when calling tokenURI.

* PR self review

* add a couple tests and scripts

* add missing interface members

add missing function parameters add a few missing checks. change the data type of the address to a uint

* add toggle for sale

* add partially implemented dapp

* Changes to align old and new dapp patterns, some renaming, and tried to align the semantics of the contracts.

* further stub out the dapp

* stub out pricing and token fetch

* add webpack and compile

* couple deployments remove unnecessary methods update dapp

* update docs

Co-authored-by: Julian Bleecker <bleeckerj@gmail.com>
  • Loading branch information
AddressXception and Julian Bleecker authored Oct 29, 2021
1 parent 1d9201e commit 1ac96a6
Show file tree
Hide file tree
Showing 19 changed files with 6,389 additions and 2,967 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ RAREPIZZAS_BOX_MAINNET_PROXY_ADDRESS=0x4ae57798AEF4aF99eD03818f83d2d8AcA89952c7
RAREPIZZAS_BOX_RINKEBY_PROXY_ADDRESS=0x8f5AE25105C3c03Bce89aE3b5ed1E30456755fAb

RAREPIZZAS_MAINNET_PROXY_ADDRESS=
RAREPIZZAS_RINKEBY_PROXY_ADDRESS=0x4bC497fF4ccaA5C3E052Fe47179bd68CA551B347
RAREPIZZAS_RINKEBY_PROXY_ADDRESS=0x7cD2730Ab11edE2b315D056bBbe3915aC0a39670

# SeedStorage Variables
RAREPIZZAS_SEEDSTORAGE_MATIC_PROXY_ADDRESS=
Expand Down Expand Up @@ -125,7 +125,7 @@ RAREPIZZAS_ORDER_API_CONSUMER_AUTHORIZED_REQUESTOR_MAINNET_ADDRESS=
RAREPIZZAS_ORDER_API_CONSUMER_AUTHORIZED_REQUESTOR_RINKEBY_ADDRESS=

RAREPIZZAS_ORDER_API_MAINNET_JOB_ID=
RAREPIZZAS_ORDER_API_RINKEBY_JOB_ID=
RAREPIZZAS_ORDER_API_RINKEBY_JOB_ID=c3c89048728b4272a71435625179129b

RAREPIZZAS_ORDER_API_MAINNET_JOB_FEE=100000000000000000
RAREPIZZAS_ORDER_API_RINKEBY_JOB_FEE=100000000000000000
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ npm-debug.log*

# Openzeppelin
.openzeppelin/unknown-31337.json

dist/dapp.js
Loading

0 comments on commit 1ac96a6

Please sign in to comment.