Generated from the compiled ABI: BaofaCoin.json, BaofaCoinFactory.json · 22 function · 5 events · 10 errors
Every launch deploys one BaofaCoin through BaofaCoinFactory. The coin is a complete ERC-20 with permit, 6 decimals, a fixed supply of 1,000,000,000 and one gate that refuses transfers to its own PancakeSwap pair until graduation. The factory is called by the core only. Both interfaces below are generated from the deployment package's ABI; the design is explained under The Coin Contract.
BaofaCoin#
Write Functions#
| Function | Inputs | Returns | Selector |
|---|---|---|---|
approve |
address spender, uint256 value |
bool |
0x095ea7b3 |
burn |
uint256 value |
none | 0x42966c68 |
permit |
address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s |
none | 0xd505accf |
releaseGate |
none | none | 0x34296cc3 |
transfer |
address to, uint256 value |
bool |
0xa9059cbb |
transferFrom |
address from, address to, uint256 value |
bool |
0x23b872dd |
Read Functions#
| Function | Inputs | Returns | Selector |
|---|---|---|---|
allowance |
address owner, address spender |
uint256 |
0xdd62ed3e |
balanceOf |
address account |
uint256 |
0x70a08231 |
core |
none | address |
0xf2f4eb26 |
decimals |
none | uint8 |
0x313ce567 |
DOMAIN_SEPARATOR |
none | bytes32 |
0x3644e515 |
gate |
none | address |
0x7a0ebc88 |
metadataURI |
none | string |
0x03ee438c |
name |
none | string |
0x06fdde03 |
nonces |
address owner |
uint256 |
0x7ecebe00 |
symbol |
none | string |
0x95d89b41 |
totalSupply |
none | uint256 |
0x18160ddd |
Events#
| Name | Parameters | Topic 0 |
|---|---|---|
Approval |
address indexed owner, address indexed spender, uint256 value |
0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925 |
GateReleased |
address indexed pair |
0x46d35f570b7f5689ca3acd010918000daea00f51cd1d07c26b9867313ccbe5e4 |
GateSet |
address indexed pair |
0xd25b3b630f9840594fc336d885e9c9ced8af3d96555ede358a8736d724efb376 |
Transfer |
address indexed from, address indexed to, uint256 value |
0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef |
Errors#
| Name | Parameters | Selector |
|---|---|---|
GateAlreadyReleased |
none | 0xb39a0dd6 |
InsufficientAllowance |
none | 0x13be252b |
InsufficientBalance |
none | 0xf4d678b8 |
InvalidSigner |
none | 0x815e1d64 |
NotCore |
none | 0xe2aae06b |
PermitExpired |
none | 0x1a15a3cc |
TransferToPairBeforeGraduation |
none | 0x6c4110b5 |
ZeroAddress |
none | 0xd92e233d |
BaofaCoinFactory#
Write Functions#
| Function | Inputs | Returns | Selector |
|---|---|---|---|
deploy |
bytes32 salt, (address,string,string,string,uint64,address,uint64,address) p |
address coin |
0x6fcef336 |
Read Functions#
| Function | Inputs | Returns | Selector |
|---|---|---|---|
COIN_INIT_CODE_HASH |
none | bytes32 |
0x5bcceb2c |
core |
none | address |
0xf2f4eb26 |
parameters |
none | (address,string,string,string,uint64,address,uint64,address) |
0x89035730 |
predict |
bytes32 salt |
address |
0x0e787cce |
Events#
| Name | Parameters | Topic 0 |
|---|---|---|
CoinDeployed |
address indexed coin, bytes32 indexed salt |
0x51e7e517b0f5ef4cf1061fe1eca5a90a592c5536174b6fcd80b1da69a84853e2 |
Errors#
| Name | Parameters | Selector |
|---|---|---|
NotCore |
none | 0xe2aae06b |
ZeroAddress |
none | 0xd92e233d |