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

Feature/dapp #79

Merged
merged 42 commits into from
Oct 29, 2021
Merged

Feature/dapp #79

merged 42 commits into from
Oct 29, 2021

Conversation

AddressXception
Copy link
Contributor

@AddressXception AddressXception commented Oct 25, 2021

add a dapp and hook it up to webflow

currently only supporting metamask
'connects to both the box and the pizza contract and handles event state changes. removes some unnecessary function passthroughs in the pizza contract (they were just causing problems). available right now on the beta site hooked up to rinkeby (ask me for a link)

remove env vars that are not actually used.  Add a mint pizza sequence diagram.  update docs, etc
update fallback function
add a deployment to mumbai
when ethers added official support, they chose maticmum as the name.

see here: ethers-io/ethers.js#1546 (comment)
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.
add the job as a string and use assembly to load it into bytes32. note this is dangerous.
use openzep's _msgSender() in some places
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.
@AddressXception AddressXception marked this pull request as draft October 25, 2021 21:31
app/dapp.ts Outdated Show resolved Hide resolved
Copy link

@bleeckerj bleeckerj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looked through dapp.ts. I have no context to test functionality but looks testable.

Copy link

@bleeckerj bleeckerj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@AddressXception AddressXception merged commit 1ac96a6 into main Oct 29, 2021
@AddressXception AddressXception deleted the feature/dapp branch October 29, 2021 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants