爆发 BaofaBaofa 文档
EN 打开应用

代币与工厂参考

BaofaCoin(每次发行得到的 ERC-20)与 BaofaCoinFactory(部署它的工厂)的生成接口。

更新于 2026-11-04合约 baofa-rewrite-2026-11-04-a727bfe

由编译后的 ABI 生成: BaofaCoin.json, BaofaCoinFactory.json · 22 函数 · 5 事件 · 10 错误

每次发行都通过 BaofaCoinFactory 部署一个 BaofaCoin。代币是支持 permit 的完整 ERC-20,6 位小数,固定供应量 1,000,000,000,只有一道在毕业前拒绝转往自身 PancakeSwap 交易对的闸门。工厂只由核心合约调用。下方两个接口都由部署包的 ABI 生成;设计说明见 代币合约。

BaofaCoin#

写入函数#

函数 输入 返回 选择器
approve address spender, uint256 value bool 0x095ea7b3
burn uint256 value 无 0x42966c68
permit address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s 无 0xd505accf
releaseGate 无 无 0x34296cc3
transfer address to, uint256 value bool 0xa9059cbb
transferFrom address from, address to, uint256 value bool 0x23b872dd

读取函数#

函数 输入 返回 选择器
allowance address owner, address spender uint256 0xdd62ed3e
balanceOf address account uint256 0x70a08231
core 无 address 0xf2f4eb26
decimals 无 uint8 0x313ce567
DOMAIN_SEPARATOR 无 bytes32 0x3644e515
gate 无 address 0x7a0ebc88
metadataURI 无 string 0x03ee438c
name 无 string 0x06fdde03
nonces address owner uint256 0x7ecebe00
symbol 无 string 0x95d89b41
totalSupply 无 uint256 0x18160ddd

事件#

名称 参数 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

错误#

名称 参数 选择器
GateAlreadyReleased 无 0xb39a0dd6
InsufficientAllowance 无 0x13be252b
InsufficientBalance 无 0xf4d678b8
InvalidSigner 无 0x815e1d64
NotCore 无 0xe2aae06b
PermitExpired 无 0x1a15a3cc
TransferToPairBeforeGraduation 无 0x6c4110b5
ZeroAddress 无 0xd92e233d

BaofaCoinFactory#

写入函数#

函数 输入 返回 选择器
deploy bytes32 salt, (address,string,string,string,uint64,address,uint64,address) p address coin 0x6fcef336

读取函数#

函数 输入 返回 选择器
COIN_INIT_CODE_HASH 无 bytes32 0x5bcceb2c
core 无 address 0xf2f4eb26
parameters 无 (address,string,string,string,uint64,address,uint64,address) 0x89035730
predict bytes32 salt address 0x0e787cce

事件#

名称 参数 Topic 0
CoinDeployed address indexed coin, bytes32 indexed salt 0x51e7e517b0f5ef4cf1061fe1eca5a90a592c5536174b6fcd80b1da69a84853e2

错误#

名称 参数 选择器
NotCore 无 0xe2aae06b
ZeroAddress 无 0xd92e233d

爆发 Baofa 文档。基于启动合约包构建 baofa-rewrite-2026-11-04-a727bfe · 2026-11-04

baofa.fun · X @baofadotfun