Proton Contract
Proton contract, the standard ERC721 token of the protocol. All Protons are Particles.
Last updated
Proton contract, the standard ERC721 token of the protocol. All Protons are Particles.
Last updated
Get a Proton's creator, sale price, etc.
Gets the creator of a Proton.
Gets current sale price of a Proton in Ether.
Gets most recent price that Proton sold for in Ether.
Gets creator royalties for a given creator address. Royalties are how much of the sale price will be directed to the Proton's creator whenever a Proton is sold.
Gets creator royalties for a given tokenId. Royalties are how much of the sale price will be directed to the Proton's creator whenever a Proton is sold.
Gets creator royalties receiver. Can be either the creator or a 3rd-party, such as a charity, relative, or any other account of choice.
Create various types of Protons, buy a Proton, claim royalties, etc.
Sends royalties to creator or delegated receiver.
Create a new Charged Particle (a Proton with interest-bearing assets deposited into its wallet).
Create a basic Proton without charge, and with annuityPercent, royaltiesPercent, and salePrice set to 0.
Create a Proton, set its annuity percentage to a custom amount, and set royalties percentage and salePrice to 0.
Buy a Proton.
Set a Protons Price, Royalties, or Royalties Receiver.
Set the sale price for a Proton.
Set royalties percentage for a Proton.
Set a receiver for Proton royalties.
UniverseSet
ChargedStateSet
ChargedSettingsSet
ChargedParticlesSet
PausedStateSet
SalePriceSet
CreatorRoyaltiesSet
FeesWithdrawn
ProtonSold
RoyaltiesClaimed
Parameter / Return Value | Description |
---|---|
Parameter / Return Value
Description
tokenId
id of Proton
return
address of token creator
Parameter / Return Value
Description
tokenId
id of Proton
return
sale price in Ether
Parameter / Return Value
Description
tokenId
id of Proton
return
sale price in Ether
Parameter / Return Value
Description
address
creator account
return
royalties earned by creator (in ETH)
Parameter / Return Value
Description
tokenId
id of Proton
return
royalty percentage on Proton sale
Parameter / Return Value
Description
tokenId
id of Proton
return
address of royalties receiver
Parameter / Return Value
Description
amount
amount claimed in ETH
Parameter / Return Value
Description
creator
id of Charged Particle
receiver
receiver of new Charged Particle
referrer
*used for an internal feature that has yet to be implemented -- ignore
tokenMetaUri
URI of tokenmetadata
walletManagerId
id of wallet manager for ERC20 being deposited upon mint
assetToken
asset to create token with
assetAmount
amount of asset token to deposit
annuityPercent
percentage of charge (interest) directed to creator, in basis points
e.g. '10000' = 100%
newTokenId
id of new Charged Particle
Parameter / Return Value
Description
creator
id of Proton
receiver
receiver of new Proton
tokenMetaUri
URI of token's metadata
newTokenId
id of new Proton
Parameter / Return Value
Description
creator
address of creator
receiver
receiver of new Proton
tokenMetaUri
URI of tokenmetadata
annuity percent
percentage of interest that goes to creator
newTokenId
id of new Proton
Parameter / Return Value
Description
creator
address of creator
receiver
receiver of new Proton
tokenMetaUri
URI of tokenmetadata
annuityPercent
percentage of charge (interest) that goes to creator
royaltiesPercent
percentage of Proton sale that goes to creator
salePrice
sale price of Proton
newTokenId
id of new Proton
Parameter / Return Value
Description
creator
address of creator
annuityPercent
percentage of charge (interest) that goes to creator
royaltiesPercent
percentage of Proton sale that goes to creator
tokenMetaUris
array of token metadata URIs for Protons
salePrices
array of sale prices for Protons
Parameter / Return Value
Description
tokenId
id of Proton to purchase
return
true if purchase successful, false if not
Parameter / Return Value
Description
tokenId
id of Proton to set price for
salePrice
sale price in Ether
Parameter / Return Value
Description
tokenId
id of Proton to set price for
royaltiesPct
percentage of sale directed to creator
Parameter / Return Value
Description
tokenId
id of Proton to set recever for
receiver
address of receiver