Charged Settings Contract (V2)
Charged Particles Settings Contract. Used to view and update rules for how the Charged Particles contract functions.
Last updated
Charged Particles Settings Contract. Used to view and update rules for how the Charged Particles contract functions.
Last updated
Gets the creator of a Particle and the percentage of creator annuities for the specified Particle. Creator annuities can be reassigned from the original creator to a 3rd party using the setCreatorAnnuitiesRedirect
function.
Parameter | Description | Type |
---|---|---|
Return Value | Description | Type |
---|---|---|
Get the address that receives creator annuities for a given Particle/ Defaults to creator address if it has not been redirected via the setCreatorAnnuitiesRedirect
function.
Get the unlock block of the temporary timelock associated with a Particle. The temporary timelock exists to prevent front-running.
Gets the approvals for time locks.
Get requirements for an asset token that determine whether it can be deposited into a Particle. Aave, Compound, etc. have different requirements for tokens, and this function returns those requirements for each type of wallet manager / ERC20 asset.
Get requirements for NFTs that can be deposited into a Particle
Sets a custom percentage for the Creator Annuities of a Particle.
Sets a custom receiver address for the Creator Annuities.
For the owner or admin of an NFT contract only
Sets a required Wallet Manager for External NFT contracts (otherwise set to "none" to allow any Wallet Manager).
Sets a required Basket Manager for External NFT contracts (otherwise set to "none" to allow any Basket Manager).
Enables or disables asset token restrictions for External NFT contracts.
Enables or disables allowed asset tokens for External NFT contracts.
Sets the custom configuration for External contracts.
Sets the maximum number of NFTs that can be held by a Particle, for a given contract. For example, if you wanted a Particle to only be able to hold one Bored Ape, you would use this function to set that restriction.
Parameter | Description | Type |
---|---|---|
Return Value | Description | Type |
---|---|---|
Return Value | Description | Type |
---|---|---|
Parameter | Description | Type |
---|---|---|
Return Value | Description | Type |
---|---|---|
Parameter | Description | Type |
---|---|---|
Return Value | Description | Type |
---|---|---|
Parameter | Description | Type |
---|---|---|
Return Value | Description | Type |
---|---|---|
Parameter | Description | Type |
---|---|---|
Parameter | Description | Type |
---|---|---|
Parameter | Description | Type |
---|---|---|
Parameter | Description | Type |
---|---|---|
Parameter | Description | Type |
---|---|---|
Parameter | Description | Type |
---|---|---|
Parameter | Description | Type |
---|---|---|
Parameter | Description | Type |
---|---|---|
contractAddress
The address to the contract of the token (Particle)
address
tokenId
The ID of the token (Particle)
uint256
creator
The particle creator's address
address
annuityPct
The percentage of interest directed to the creator of the Particle
uint256
contractAddress
The address to the contract of the token (Particle)
address
tokenId
The ID of the token (Particle)
uint256
address
The address that receives creator annuities
address
unlockBlock
Block number when temporary lock expires
uint256
operator
Particle operator's address
address
timelockAny
whether or not operator can time lock any NFT on behalf of user
bool
timelockOwn
whether or not operator can time lock their own NFTS
bool
contractAddress
address of contract for Particle (whether Proton or another NFT Contract)
address
assetToken
address of asset token to get requirements for
address
requiredWalletManager
wallet manager required for asset token
string
energizeEnabled
wallet manager required for asset token
bool
restrictedAssets
wallet manager required for asset token
bool
validAsset
whether or not asset token is a valid asset
bool
depositCap
uint256
depositMin
uint256
depositMax
uint256
invalidAsset
whether or not asset token is a valid asset
bool
contractAddress
address of contract for Particle (whether Proton or another NFT Contract)
address
nftTokenAddress
address of NFT to get requirements for
address
requiredBasketManager
required NFT basket manager
string
basketEnabled
whether or not the basket is enabled for an NFT
bool
maxNfts
max number of NFTs in a basket
uint256
contractAddress
address of contract for Particle (whether Proton or another NFT Contract)
address
tokenId
The ID of the token (Particle)
uint256
annuityPercent
percentage of interest earned by an NFT directed to the creator (or 3rd party)
uint256
contractAddress
address of NFT Contract (Proton or other) to configure
address
tokenId
The ID of the token (Particle)
uint256
receiver
3rd party address to redirect creator annuities to
address
contractAddress
address of NFT Contract (Proton or other) to configure
address
walletManager
If set, will only allow deposits from this specific Wallet Manager
string
contractAddress
address of NFT Contract (Proton or other) to configure
address
basketManager
If set, will only allow deposits from this specific Basket Manager
string
contractAddress
address of NFT Contract (Proton or other) to configure
address
restrictionsEnabled
If set, only allowed asset tokens can be deposited
bool
contractAddress
address of NFT Contract (Proton or other) to configure
address
assetToken
The address of the asset token to allow or disallow
address
isAllowed
The address of the asset token to allow or disallow
bool
contractAddress
address of NFT Contract (Proton or other) to configure
address
assetToken
The address of the asset token to set min/max for
address
depositMin
If set, will define the minimum amount of Asset tokens the NFT may hold, otherwise any amount
uint256
depositMax
If set, will define the maximum amount of Asset tokens the NFT may hold, otherwise any amount
uint256
contractAddress
address of NFT Contract (Proton or other) to configure
address
nftTokenAddress
The address of the NFT contract to set min/max for
address
maxNfts
The maximum numbers of NFTs that can be held by a given NFT (0 = unlimited)
uint256