Guides/EVM/Precompiles

Crowdloan

Reference for the deployed CrowdloanPrecompile.

View as Markdown
PropertyValue
Rust implementationCrowdloanPrecompile
Solidity interfaceICrowdloan
Address0x0000000000000000000000000000000000000809
StatusDeployed

Views

getCrowdloan(uint32)
getContribution(uint32,bytes32)

Operations

All operations are payable:

create(uint64,uint64,uint64,uint32,address)
contribute(uint32,uint64)
withdraw(uint32)
finalize(uint32)
refund(uint32)
dissolve(uint32)
updateMinContribution(uint32,uint64)
updateEnd(uint32,uint32)
updateCap(uint32,uint64)

Added operation

FunctionSource extrinsic
setMaxContributionCrowdloan.set_max_contribution

The typed interface preserves the source call's optional value so the creator can either set or clear the per-contributor maximum.

Source: crowdloan.sol