ourzora / core Goto Github PK
View Code? Open in Web Editor NEWA protocol to create, share and exchange universally accessible and valuable media on the internet.
License: GNU General Public License v3.0
A protocol to create, share and exchange universally accessible and valuable media on the internet.
License: GNU General Public License v3.0
Please update: https://docs.zora.co/docs/smart-contracts/whitepaper
How can I differentiate the data inputted between the two?
A creator want to put several works on sale but does not want to pay for all the minting-gas-costs up front. Only if a buyer actually wants to buy a work, they should pay for the gas. The creator should be correctly set as the Cryptomedia's creator, but the newly minted token should be directly assigned to the first buyer. Furthermore, the price for that token should be paid during this transaction also.
Introduce a new function:
function mintAndBuyWithSig(
address creator,
address buyer,
uint256 amount,
address currency,
MediaData memory data,
IMarket.BidShares memory bidShares,
EIP712Signature memory sig
)
And the following MintAndBuyWithSig:
{
MintAndBuyWithSig: [
{ name: 'tokenURI', type: 'string' },
{ name: 'metadataURI', type: 'string' },
{ name: 'creatorShare', type: 'uint256' },
{ name: 'amount', type: 'uint256' },
{ name: 'currency', type: 'address' },
{ name: 'nonce', type: 'uint256' },
{ name: 'deadline', type: 'uint256' },
]
}
Like this it will be possible to mint and buy a Cryptomedia in one transaction. The creator has still the possibility to set the price.
Hi All,
Would you consider adding a licence to this repo, say the MIT licence? What would you consider it to be now?
Cheers!
Hi, thanks for sharing your work.
I am developing a marketplace with auction, and I am using the inheritance design pattern to develop the contracts. One main contract and two inheritance contracts for the auction and the marketplace. I don't know if the approach I am using is the right one.
And also, do you know how I have to link it in the migrations?
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.