Generated Docs
Solidity contracts provided as part of Paima Engine.
Core contracts
- PaimaL2Contract: The main L2 contract for a Paima L2.
State-annotated contracts
- AnnotatedMintNft: A standard ERC721 that accepts calldata in the mint function for any initialization data needed in a Paima dApp.
- InverseBaseProjectedNft: Project game state into a ERC721 NFT on an EVM layer initiated on said base layer.
- InverseAppProjectedNft: Project game state into a ERC721 NFT on an EVM layer initiated on the app layer.
- InverseBaseProjected1155: Project game state into a ERC1155 on an EVM layer initiated on said base layer.
- InverseAppProjected1155: Project game state into a ERC1155 on an EVM layer initiated on the app layer.
Facilitating monetization
- NativeNftSale: Facilitates selling NFTs that accepts extra data when buying for any initialization data needed in a Paima dApp.
- GenericPayment: Facilitates accepting payment that accepts extra data to know what the payment was for inside a Paima dApp.
- Erc20NftSale: Facilitates selling NFTs for specific ERC20s that accepts extra data when buying for any initialization data needed in a Paima dApp.
- OrderbookDexProxy: Proxy for the orderbook DEX contract.
- IOrderbookDex: Interface to facilitate trading inverse projected ERC1155 tokens.
- OrderbookDex: Facilitates trading inverse projected ERC1155 tokens.
Core contracts
import "@paima/evm-contracts/contracts/PaimaL2Contract.sol";
The main L2 contract for a Paima L2.
Functions
constructor(address _owner, uint256 _fee)public# |
Sets the contract owner to |
paimaSubmitGameInput(bytes data)public# |
Emits the |
withdrawFunds()public# |
Withdraws the contract balance to the |
setOwner(address newOwner)public# |
Sets the |
setFee(uint256 newFee)public# |
Sets the |
owner() → addresspublic# |
Contract owner. |
fee() → uint256public# |
Amount in wei that is required to be paid when calling |
PaimaGameInteraction(address indexed userAddress, bytes data, uint256 value)event# |
Emitted when |