@pickhooks/sdk 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +309 -3
- package/dist/abis/any3.d.ts +2123 -0
- package/dist/abis/any3.js +3 -0
- package/dist/abis/anytax.d.ts +1786 -0
- package/dist/abis/anytax.js +3 -0
- package/dist/abis/calls.d.ts +2515 -0
- package/dist/abis/calls.js +4 -0
- package/dist/abis/common.d.ts +449 -0
- package/dist/abis/common.js +91 -0
- package/dist/abis/dips.d.ts +897 -0
- package/dist/abis/dips.js +2 -0
- package/dist/abis/index.d.ts +12 -0
- package/dist/abis/index.js +12 -0
- package/dist/abis/infra.d.ts +701 -0
- package/dist/abis/infra.js +4 -0
- package/dist/abis/lever.d.ts +1710 -0
- package/dist/abis/lever.js +5 -0
- package/dist/abis/lever2.d.ts +2710 -0
- package/dist/abis/lever2.js +5 -0
- package/dist/abis/pools.d.ts +1898 -0
- package/dist/abis/pools.js +4 -0
- package/dist/abis/sticky.d.ts +953 -0
- package/dist/abis/sticky.js +4 -0
- package/dist/abis/v1.d.ts +1627 -0
- package/dist/abis/v1.js +5 -0
- package/dist/abis/v2.d.ts +3264 -0
- package/dist/abis/v2.js +8 -0
- package/dist/addresses.d.ts +87 -0
- package/dist/addresses.js +62 -0
- package/dist/any.d.ts +447 -0
- package/dist/any.js +729 -0
- package/dist/api.d.ts +62 -0
- package/dist/api.js +30 -0
- package/dist/blocks.d.ts +107 -0
- package/dist/blocks.js +126 -0
- package/dist/coin-rules-config.d.ts +8 -0
- package/dist/coin-rules-config.js +13 -0
- package/dist/coin-rules.d.ts +383 -0
- package/dist/coin-rules.js +878 -0
- package/dist/coins.d.ts +217 -0
- package/dist/coins.js +520 -0
- package/dist/dips.d.ts +133 -0
- package/dist/dips.js +148 -0
- package/dist/errors.d.ts +35 -0
- package/dist/errors.js +347 -0
- package/dist/index.d.ts +73 -0
- package/dist/index.js +58 -0
- package/dist/infinity.d.ts +63 -0
- package/dist/infinity.js +96 -0
- package/dist/infra.d.ts +112 -0
- package/dist/infra.js +114 -0
- package/dist/lever.d.ts +391 -0
- package/dist/lever.js +419 -0
- package/dist/pools.d.ts +274 -0
- package/dist/pools.js +405 -0
- package/dist/sticky-rules.d.ts +179 -0
- package/dist/sticky-rules.js +580 -0
- package/dist/sticky.d.ts +216 -0
- package/dist/sticky.js +292 -0
- package/dist/tx.d.ts +70 -0
- package/dist/tx.js +69 -0
- package/dist/v3.d.ts +42 -0
- package/dist/v3.js +98 -0
- package/package.json +58 -4
package/dist/abis/v2.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Generated from web/src/lib/v2-abi.ts (the site's ABIs of the live contracts). Do not edit by hand: node scripts/gen-abis.mjs
|
|
2
|
+
export const v2FactoryAbi = [{ "type": "function", "name": "FEE", "inputs": [], "outputs": [{ "name": "", "type": "uint24" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_HOOKS_BURN", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "NPM", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "PAYROLL_POT_BPS", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "ROUTER", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "V2", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "V2_ROUTER", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "WBNB", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "arena", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "burnFor", "inputs": [{ "name": "mask", "type": "uint64" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "coinCount", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "coins", "inputs": [{ "name": "", "type": "uint256" }], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "creatorBps", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "deployer", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "depositsFor", "inputs": [{ "name": "m", "type": "uint64" }, { "name": "x", "type": "tuple", "components": [{ "name": "buyoutMask", "type": "uint64" }, { "name": "buyoutPrice", "type": "uint96[8]" }, { "name": "votable", "type": "uint64" }, { "name": "quorumBps", "type": "uint16" }, { "name": "voteSeconds", "type": "uint32" }, { "name": "duelOpponent", "type": "address" }, { "name": "duelStake", "type": "uint96" }, { "name": "feed", "type": "address" }, { "name": "target", "type": "int256" }, { "name": "sellsAtSeconds", "type": "uint32" }, { "name": "deadManSeconds", "type": "uint32" }, { "name": "floorDeposit", "type": "uint96" }, { "name": "floorBps", "type": "uint16" }, { "name": "shiftSeconds", "type": "uint32" }, { "name": "payrollMin", "type": "uint128" }, { "name": "payrollDeposit", "type": "uint96" }, { "name": "creatorKeepBps", "type": "uint16" }] }, { "name": "burnBnb", "type": "uint256" }], "outputs": [{ "name": "d", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "floorVault", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "hooks", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "hooksBurn", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "isCoin", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "launch", "inputs": [{ "name": "a", "type": "tuple", "components": [{ "name": "name", "type": "string" }, { "name": "symbol", "type": "string" }, { "name": "metadata", "type": "string" }, { "name": "rules", "type": "tuple", "components": [{ "name": "mask", "type": "uint64" }, { "name": "maxWalletBps", "type": "uint16" }, { "name": "riseStartBps", "type": "uint16" }, { "name": "riseStepBps", "type": "uint16" }, { "name": "riseSeconds", "type": "uint32" }, { "name": "chapterStartBps", "type": "uint16" }, { "name": "chapterVolume", "type": "uint128" }, { "name": "clubMax", "type": "uint32" }, { "name": "gateToken", "type": "address" }, { "name": "gateMin", "type": "uint128" }, { "name": "maxTradeBps", "type": "uint16" }, { "name": "buysPerBlock", "type": "uint16" }, { "name": "maxGasPrice", "type": "uint64" }, { "name": "raiseBps", "type": "uint16" }, { "name": "raiseReset", "type": "uint32" }, { "name": "minBuy", "type": "uint128" }, { "name": "slowSeconds", "type": "uint32" }, { "name": "buyLimit", "type": "uint16" }, { "name": "dumpBuyBps", "type": "uint16" }, { "name": "dumpSellBps", "type": "uint16" }, { "name": "curveSmallBps", "type": "uint16" }, { "name": "curveFloorBps", "type": "uint16" }, { "name": "curveBigBagBps", "type": "uint16" }, { "name": "taperStartBps", "type": "uint16" }, { "name": "taperEndBps", "type": "uint16" }, { "name": "taperSoldBps", "type": "uint16" }, { "name": "unlockBuys", "type": "uint16" }, { "name": "devLockSeconds", "type": "uint32" }, { "name": "devCapBps", "type": "uint16" }, { "name": "devGapSeconds", "type": "uint32" }, { "name": "diamondSeconds", "type": "uint32" }, { "name": "cooldownSeconds", "type": "uint32" }, { "name": "jailWindow", "type": "uint32" }, { "name": "jailSeconds", "type": "uint32" }, { "name": "openHour", "type": "uint8" }, { "name": "closeHour", "type": "uint8" }, { "name": "weekdays", "type": "uint8" }, { "name": "sellsOpen", "type": "bool" }, { "name": "sellWindow", "type": "uint32" }, { "name": "sellPeriod", "type": "uint32" }, { "name": "tickSeconds", "type": "uint32" }, { "name": "bellSeconds", "type": "uint32" }, { "name": "bellSoldBps", "type": "uint16" }, { "name": "rewardPerBuy", "type": "uint128" }, { "name": "rewardMinBuy", "type": "uint128" }, { "name": "rewardEveryN", "type": "uint16" }, { "name": "jackpotSilence", "type": "uint32" }, { "name": "jackpotShareBps", "type": "uint16" }, { "name": "jackpotMinBuy", "type": "uint128" }, { "name": "jackpotFeeBps", "type": "uint16" }, { "name": "dipBps", "type": "uint16" }, { "name": "beacon", "type": "address" }, { "name": "beaconTargetBps", "type": "uint16" }, { "name": "partner", "type": "address" }, { "name": "reactBaseBps", "type": "uint16" }, { "name": "reactSensitivity", "type": "uint16" }] }, { "name": "untilIds", "type": "uint8[]" }, { "name": "untilTimes", "type": "uint40[]" }, { "name": "salt", "type": "bytes32" }, { "name": "extras", "type": "tuple", "components": [{ "name": "buyoutMask", "type": "uint64" }, { "name": "buyoutPrice", "type": "uint96[8]" }, { "name": "votable", "type": "uint64" }, { "name": "quorumBps", "type": "uint16" }, { "name": "voteSeconds", "type": "uint32" }, { "name": "duelOpponent", "type": "address" }, { "name": "duelStake", "type": "uint96" }, { "name": "feed", "type": "address" }, { "name": "target", "type": "int256" }, { "name": "sellsAtSeconds", "type": "uint32" }, { "name": "deadManSeconds", "type": "uint32" }, { "name": "floorDeposit", "type": "uint96" }, { "name": "floorBps", "type": "uint16" }, { "name": "shiftSeconds", "type": "uint32" }, { "name": "payrollMin", "type": "uint128" }, { "name": "payrollDeposit", "type": "uint96" }, { "name": "creatorKeepBps", "type": "uint16" }] }, { "name": "burnBnb", "type": "uint256" }, { "name": "maxBurn", "type": "uint256" }, { "name": "minCreatorBps", "type": "uint16" }] }], "outputs": [{ "name": "token", "type": "address" }], "stateMutability": "payable" }, { "type": "function", "name": "locker", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "observations", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "owner", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "payrollBox", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "platformWallet", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "seedBnb", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "setHooksBurn", "inputs": [{ "name": "amount", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setObservations", "inputs": [{ "name": "n", "type": "uint16" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setOwner", "inputs": [{ "name": "o", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setPlatform", "inputs": [{ "name": "wallet", "type": "address" }, { "name": "creatorBps_", "type": "uint16" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setSeed", "inputs": [{ "name": "seedBnb_", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setStartPrice", "inputs": [{ "name": "sp0", "type": "uint160" }, { "name": "tl0", "type": "int24" }, { "name": "sp1", "type": "uint160" }, { "name": "tu1", "type": "int24" }, { "name": "startFdv_", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "sqrtPrice0", "inputs": [], "outputs": [{ "name": "", "type": "uint160" }], "stateMutability": "view" }, { "type": "function", "name": "sqrtPrice1", "inputs": [], "outputs": [{ "name": "", "type": "uint160" }], "stateMutability": "view" }, { "type": "function", "name": "startFdv", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "tickLower0", "inputs": [], "outputs": [{ "name": "", "type": "int24" }], "stateMutability": "view" }, { "type": "function", "name": "tickUpper1", "inputs": [], "outputs": [{ "name": "", "type": "int24" }], "stateMutability": "view" }, { "type": "function", "name": "validator", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "voteBox", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "event", "name": "HooksBurned", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "creator", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }, { "name": "paidBnb", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Launched", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "creator", "type": "address", "indexed": true }, { "name": "pool", "type": "address", "indexed": false }, { "name": "pair", "type": "address", "indexed": false }, { "name": "tokenId", "type": "uint256", "indexed": false }, { "name": "mask", "type": "uint64", "indexed": false }], "anonymous": false }, { "type": "error", "name": "Bad", "inputs": [{ "name": "what", "type": "string" }] }, { "type": "error", "name": "NotOwner", "inputs": [] }, { "type": "error", "name": "PoolPrice", "inputs": [] }];
|
|
3
|
+
export const v2TokenAbi = [{ "type": "function", "name": "activate", "inputs": [{ "name": "pool_", "type": "address" }, { "name": "pool2_", "type": "address" }, { "name": "locker_", "type": "address" }, { "name": "curveSupply_", "type": "uint256" }, { "name": "startFdv_", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "alive", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "allowance", "inputs": [{ "name": "", "type": "address" }, { "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "approve", "inputs": [{ "name": "spender", "type": "address" }, { "name": "amount", "type": "uint256" }], "outputs": [{ "name": "", "type": "bool" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "arena", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "balanceOf", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "buyout", "inputs": [{ "name": "id", "type": "uint8" }], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "buyoutMask", "inputs": [], "outputs": [{ "name": "", "type": "uint64" }], "stateMutability": "view" }, { "type": "function", "name": "buyoutPrice", "inputs": [{ "name": "", "type": "uint8" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "claim", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "contractURI", "inputs": [], "outputs": [{ "name": "", "type": "string" }], "stateMutability": "view" }, { "type": "function", "name": "creator", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "curveSupply", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "curveValue", "inputs": [], "outputs": [{ "name": "", "type": "uint128" }], "stateMutability": "view" }, { "type": "function", "name": "deadManSeconds", "inputs": [], "outputs": [{ "name": "", "type": "uint32" }], "stateMutability": "view" }, { "type": "function", "name": "decimals", "inputs": [], "outputs": [{ "name": "", "type": "uint8" }], "stateMutability": "view" }, { "type": "function", "name": "devAlive", "inputs": [], "outputs": [{ "name": "", "type": "uint40" }], "stateMutability": "view" }, { "type": "function", "name": "devOut", "inputs": [], "outputs": [{ "name": "", "type": "uint128" }], "stateMutability": "view" }, { "type": "function", "name": "devPeak", "inputs": [], "outputs": [{ "name": "", "type": "uint128" }], "stateMutability": "view" }, { "type": "function", "name": "entangledOpen", "inputs": [], "outputs": [{ "name": "", "type": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "factory", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "feed", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "floorVault", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "flow", "inputs": [], "outputs": [{ "name": "", "type": "int256" }], "stateMutability": "view" }, { "type": "function", "name": "fundPayroll", "inputs": [], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "fundPot", "inputs": [], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "fundRewards", "inputs": [], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "hasRule", "inputs": [{ "name": "id", "type": "uint8" }], "outputs": [{ "name": "", "type": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "inBox", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "isOn", "inputs": [{ "name": "id", "type": "uint8" }], "outputs": [{ "name": "", "type": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "jackpotLast", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "jackpotPot", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "jackpotTime", "inputs": [], "outputs": [{ "name": "", "type": "uint40" }], "stateMutability": "view" }, { "type": "function", "name": "lift", "inputs": [{ "name": "id", "type": "uint8" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "locker", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "marketOpen", "inputs": [], "outputs": [{ "name": "", "type": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "maxWallet", "inputs": [], "outputs": [{ "name": "cap", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "metadata", "inputs": [], "outputs": [{ "name": "", "type": "string" }], "stateMutability": "view" }, { "type": "function", "name": "milestonePct", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "name", "inputs": [], "outputs": [{ "name": "", "type": "string" }], "stateMutability": "view" }, { "type": "function", "name": "off", "inputs": [], "outputs": [{ "name": "", "type": "uint64" }], "stateMutability": "view" }, { "type": "function", "name": "owed", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "owedTotal", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "payroll", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "payrollMin", "inputs": [], "outputs": [{ "name": "", "type": "uint128" }], "stateMutability": "view" }, { "type": "function", "name": "poke", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "pool", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "pool2", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "quorumBps", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "release", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "rewardsPot", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "", "type": "tuple", "components": [{ "name": "mask", "type": "uint64" }, { "name": "maxWalletBps", "type": "uint16" }, { "name": "riseStartBps", "type": "uint16" }, { "name": "riseStepBps", "type": "uint16" }, { "name": "riseSeconds", "type": "uint32" }, { "name": "chapterStartBps", "type": "uint16" }, { "name": "chapterVolume", "type": "uint128" }, { "name": "clubMax", "type": "uint32" }, { "name": "gateToken", "type": "address" }, { "name": "gateMin", "type": "uint128" }, { "name": "maxTradeBps", "type": "uint16" }, { "name": "buysPerBlock", "type": "uint16" }, { "name": "maxGasPrice", "type": "uint64" }, { "name": "raiseBps", "type": "uint16" }, { "name": "raiseReset", "type": "uint32" }, { "name": "minBuy", "type": "uint128" }, { "name": "slowSeconds", "type": "uint32" }, { "name": "buyLimit", "type": "uint16" }, { "name": "dumpBuyBps", "type": "uint16" }, { "name": "dumpSellBps", "type": "uint16" }, { "name": "curveSmallBps", "type": "uint16" }, { "name": "curveFloorBps", "type": "uint16" }, { "name": "curveBigBagBps", "type": "uint16" }, { "name": "taperStartBps", "type": "uint16" }, { "name": "taperEndBps", "type": "uint16" }, { "name": "taperSoldBps", "type": "uint16" }, { "name": "unlockBuys", "type": "uint16" }, { "name": "devLockSeconds", "type": "uint32" }, { "name": "devCapBps", "type": "uint16" }, { "name": "devGapSeconds", "type": "uint32" }, { "name": "diamondSeconds", "type": "uint32" }, { "name": "cooldownSeconds", "type": "uint32" }, { "name": "jailWindow", "type": "uint32" }, { "name": "jailSeconds", "type": "uint32" }, { "name": "openHour", "type": "uint8" }, { "name": "closeHour", "type": "uint8" }, { "name": "weekdays", "type": "uint8" }, { "name": "sellsOpen", "type": "bool" }, { "name": "sellWindow", "type": "uint32" }, { "name": "sellPeriod", "type": "uint32" }, { "name": "tickSeconds", "type": "uint32" }, { "name": "bellSeconds", "type": "uint32" }, { "name": "bellSoldBps", "type": "uint16" }, { "name": "rewardPerBuy", "type": "uint128" }, { "name": "rewardMinBuy", "type": "uint128" }, { "name": "rewardEveryN", "type": "uint16" }, { "name": "jackpotSilence", "type": "uint32" }, { "name": "jackpotShareBps", "type": "uint16" }, { "name": "jackpotMinBuy", "type": "uint128" }, { "name": "jackpotFeeBps", "type": "uint16" }, { "name": "dipBps", "type": "uint16" }, { "name": "beacon", "type": "address" }, { "name": "beaconTargetBps", "type": "uint16" }, { "name": "partner", "type": "address" }, { "name": "reactBaseBps", "type": "uint16" }, { "name": "reactSensitivity", "type": "uint16" }] }], "stateMutability": "view" }, { "type": "function", "name": "sellsAtSeconds", "inputs": [], "outputs": [{ "name": "", "type": "uint32" }], "stateMutability": "view" }, { "type": "function", "name": "settleJackpot", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "soldBps", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "start", "inputs": [], "outputs": [{ "name": "", "type": "uint40" }], "stateMutability": "view" }, { "type": "function", "name": "stats", "inputs": [], "outputs": [{ "name": "holders", "type": "uint32" }, { "name": "buys", "type": "uint32" }, { "name": "sells", "type": "uint32" }, { "name": "buysSinceSell", "type": "uint32" }, { "name": "lastBuyTime", "type": "uint40" }, { "name": "lastBuyBlock", "type": "uint64" }, { "name": "buysInBlock", "type": "uint16" }, { "name": "lastBuyer", "type": "address" }, { "name": "devLastSend", "type": "uint40" }, { "name": "qualifyingBuys", "type": "uint32" }, { "name": "volume", "type": "uint128" }, { "name": "net", "type": "uint128" }, { "name": "peak", "type": "uint128" }, { "name": "lastBuyAmount", "type": "uint128" }], "stateMutability": "view" }, { "type": "function", "name": "symbol", "inputs": [], "outputs": [{ "name": "", "type": "string" }], "stateMutability": "view" }, { "type": "function", "name": "target", "inputs": [], "outputs": [{ "name": "", "type": "int256" }], "stateMutability": "view" }, { "type": "function", "name": "totalSupply", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "transfer", "inputs": [{ "name": "to", "type": "address" }, { "name": "amount", "type": "uint256" }], "outputs": [{ "name": "", "type": "bool" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "transferFrom", "inputs": [{ "name": "from", "type": "address" }, { "name": "to", "type": "address" }, { "name": "amount", "type": "uint256" }], "outputs": [{ "name": "", "type": "bool" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "until", "inputs": [{ "name": "", "type": "uint8" }], "outputs": [{ "name": "", "type": "uint40" }], "stateMutability": "view" }, { "type": "function", "name": "votable", "inputs": [], "outputs": [{ "name": "", "type": "uint64" }], "stateMutability": "view" }, { "type": "function", "name": "voteBox", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "voteSeconds", "inputs": [], "outputs": [{ "name": "", "type": "uint32" }], "stateMutability": "view" }, { "type": "function", "name": "wallets", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "buys", "type": "uint32" }, { "name": "lastBuy", "type": "uint40" }, { "name": "lastTrade", "type": "uint40" }, { "name": "jailUntil", "type": "uint40" }], "stateMutability": "view" }, { "type": "function", "name": "withdrawRewards", "inputs": [{ "name": "amount", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "Activated", "inputs": [{ "name": "pool", "type": "address", "indexed": false }, { "name": "pool2", "type": "address", "indexed": false }, { "name": "locker", "type": "address", "indexed": false }, { "name": "curveSupply", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Approval", "inputs": [{ "name": "owner", "type": "address", "indexed": true }, { "name": "spender", "type": "address", "indexed": true }, { "name": "value", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Claimed", "inputs": [{ "name": "who", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "DeadManReleased", "inputs": [{ "name": "burned", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "JackpotWon", "inputs": [{ "name": "winner", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "PotFunded", "inputs": [{ "name": "jackpot", "type": "bool", "indexed": false }, { "name": "from", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "RewardEarned", "inputs": [{ "name": "buyer", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "RuleBought", "inputs": [{ "name": "rule", "type": "uint8", "indexed": true }, { "name": "by", "type": "address", "indexed": true }, { "name": "paid", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "RuleLifted", "inputs": [{ "name": "rule", "type": "uint8", "indexed": true }, { "name": "by", "type": "address", "indexed": true }], "anonymous": false }, { "type": "event", "name": "Transfer", "inputs": [{ "name": "from", "type": "address", "indexed": true }, { "name": "to", "type": "address", "indexed": true }, { "name": "value", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "error", "name": "Blocked", "inputs": [{ "name": "rule", "type": "uint8" }] }, { "type": "error", "name": "Nope", "inputs": [] }, { "type": "error", "name": "NotCreator", "inputs": [] }, { "type": "error", "name": "NotFactory", "inputs": [] }, { "type": "error", "name": "NothingOwed", "inputs": [] }, { "type": "error", "name": "PayFailed", "inputs": [] }];
|
|
4
|
+
export const v2LockerAbi = [{ "type": "function", "name": "LP_OF_PLATFORM_BPS", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "PRICE_BAND_BPS", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "collect", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "bnb", "type": "uint256" }, { "name": "burned", "type": "uint256" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "factory", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "npm", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "onERC721Received", "inputs": [{ "name": "", "type": "address" }, { "name": "", "type": "address" }, { "name": "", "type": "uint256" }, { "name": "", "type": "bytes" }], "outputs": [{ "name": "", "type": "bytes4" }], "stateMutability": "pure" }, { "type": "function", "name": "pending", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "positions", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "tokenId", "type": "uint256" }, { "name": "pair", "type": "address" }, { "name": "creator", "type": "address" }, { "name": "creatorBps", "type": "uint16" }, { "name": "potBps", "type": "uint16" }, { "name": "keepBps", "type": "uint16" }, { "name": "tokenIs0", "type": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "register", "inputs": [{ "name": "token", "type": "address" }, { "name": "tokenId", "type": "uint256" }, { "name": "pair", "type": "address" }, { "name": "creator", "type": "address" }, { "name": "creatorBps", "type": "uint16" }, { "name": "potBps", "type": "uint16" }, { "name": "keepBps", "type": "uint16" }, { "name": "tokenIs0", "type": "bool" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "wbnb", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "withdrawPending", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "Collected", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "bnb", "type": "uint256", "indexed": false }, { "name": "burned", "type": "uint256", "indexed": false }, { "name": "toCreator", "type": "uint256", "indexed": false }, { "name": "toPot", "type": "uint256", "indexed": false }, { "name": "toPlatform", "type": "uint256", "indexed": false }, { "name": "lpBnb", "type": "uint256", "indexed": false }, { "name": "lpCoins", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Registered", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "tokenId", "type": "uint256", "indexed": false }, { "name": "pair", "type": "address", "indexed": false }, { "name": "creator", "type": "address", "indexed": false }, { "name": "creatorBps", "type": "uint16", "indexed": false }, { "name": "potBps", "type": "uint16", "indexed": false }, { "name": "keepBps", "type": "uint16", "indexed": false }], "anonymous": false }, { "type": "error", "name": "NotFactory", "inputs": [] }, { "type": "error", "name": "Unknown", "inputs": [] }];
|
|
5
|
+
export const voteBoxAbi = [{ "type": "function", "name": "MIN_BAG", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "MIN_BASE", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "MIN_VOTERS", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "RETRY", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "START_BAG", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "ballots", "inputs": [{ "name": "", "type": "address" }, { "name": "", "type": "uint8" }, { "name": "", "type": "uint256" }], "outputs": [{ "name": "end", "type": "uint40" }, { "name": "done", "type": "bool" }, { "name": "yesVoters", "type": "uint32" }, { "name": "startBase", "type": "uint256" }, { "name": "yes", "type": "uint256" }, { "name": "no", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "circulating", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "c", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "deposit", "inputs": [{ "name": "", "type": "address" }, { "name": "", "type": "uint8" }, { "name": "", "type": "uint256" }, { "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "factory", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "finish", "inputs": [{ "name": "token", "type": "address" }, { "name": "rule", "type": "uint8" }], "outputs": [{ "name": "passed", "type": "bool" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "init", "inputs": [{ "name": "factory_", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "owner", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "quorumOf", "inputs": [{ "name": "token", "type": "address" }, { "name": "rule", "type": "uint8" }, { "name": "r", "type": "uint256" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "retryAt", "inputs": [{ "name": "", "type": "address" }, { "name": "", "type": "uint8" }], "outputs": [{ "name": "", "type": "uint40" }], "stateMutability": "view" }, { "type": "function", "name": "round", "inputs": [{ "name": "", "type": "address" }, { "name": "", "type": "uint8" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "side", "inputs": [{ "name": "", "type": "address" }, { "name": "", "type": "uint8" }, { "name": "", "type": "uint256" }, { "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "uint8" }], "stateMutability": "view" }, { "type": "function", "name": "start", "inputs": [{ "name": "token", "type": "address" }, { "name": "rule", "type": "uint8" }, { "name": "amount", "type": "uint256" }], "outputs": [{ "name": "r", "type": "uint256" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "vote", "inputs": [{ "name": "token", "type": "address" }, { "name": "rule", "type": "uint8" }, { "name": "amount", "type": "uint256" }, { "name": "yes", "type": "bool" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "withdraw", "inputs": [{ "name": "token", "type": "address" }, { "name": "rule", "type": "uint8" }, { "name": "r", "type": "uint256" }, { "name": "amount", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "Finished", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "rule", "type": "uint8", "indexed": true }, { "name": "round", "type": "uint256", "indexed": false }, { "name": "passed", "type": "bool", "indexed": false }, { "name": "yes", "type": "uint256", "indexed": false }, { "name": "no", "type": "uint256", "indexed": false }, { "name": "quorum", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Started", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "rule", "type": "uint8", "indexed": true }, { "name": "round", "type": "uint256", "indexed": false }, { "name": "by", "type": "address", "indexed": false }, { "name": "end", "type": "uint40", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Voted", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "rule", "type": "uint8", "indexed": true }, { "name": "round", "type": "uint256", "indexed": false }, { "name": "voter", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }, { "name": "yes", "type": "bool", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Withdrawn", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "rule", "type": "uint8", "indexed": true }, { "name": "round", "type": "uint256", "indexed": false }, { "name": "voter", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "error", "name": "Nope", "inputs": [{ "name": "why", "type": "string" }] }];
|
|
6
|
+
export const arenaAbi = [{ "type": "function", "name": "ACCEPT_WINDOW", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "FAIR_MIN", "inputs": [], "outputs": [{ "name": "", "type": "uint32" }], "stateMutability": "view" }, { "type": "function", "name": "FAIR_WINDOW", "inputs": [], "outputs": [{ "name": "", "type": "uint32" }], "stateMutability": "view" }, { "type": "function", "name": "HOOKS_BPS", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "LENGTH", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "ROUTER", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "accept", "inputs": [{ "name": "token", "type": "address" }, { "name": "opponent", "type": "address" }], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "close", "inputs": [{ "name": "id", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "count", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "duelOf", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "factory", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "get", "inputs": [{ "name": "id", "type": "uint256" }], "outputs": [{ "name": "", "type": "tuple", "components": [{ "name": "a", "type": "address" }, { "name": "b", "type": "address" }, { "name": "stake", "type": "uint96" }, { "name": "openedAt", "type": "uint40" }, { "name": "startedAt", "type": "uint40" }, { "name": "settled", "type": "bool" }, { "name": "closed", "type": "bool" }, { "name": "winner", "type": "address" }, { "name": "flowA0", "type": "int256" }, { "name": "flowB0", "type": "int256" }, { "name": "fa", "type": "int256" }, { "name": "fb", "type": "int256" }] }], "stateMutability": "view" }, { "type": "function", "name": "init", "inputs": [{ "name": "factory_", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "open", "inputs": [{ "name": "token", "type": "address" }], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "owner", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "pending", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "refund", "inputs": [{ "name": "id", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "settle", "inputs": [{ "name": "id", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "withdrawPending", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "Accepted", "inputs": [{ "name": "id", "type": "uint256", "indexed": true }, { "name": "token", "type": "address", "indexed": true }, { "name": "opponent", "type": "address", "indexed": true }], "anonymous": false }, { "type": "event", "name": "Closed", "inputs": [{ "name": "id", "type": "uint256", "indexed": true }, { "name": "winner", "type": "address", "indexed": false }, { "name": "flowA", "type": "int256", "indexed": false }, { "name": "flowB", "type": "int256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Opened", "inputs": [{ "name": "id", "type": "uint256", "indexed": true }, { "name": "token", "type": "address", "indexed": true }, { "name": "stake", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Refunded", "inputs": [{ "name": "id", "type": "uint256", "indexed": true }], "anonymous": false }, { "type": "event", "name": "Settled", "inputs": [{ "name": "id", "type": "uint256", "indexed": true }, { "name": "winner", "type": "address", "indexed": false }, { "name": "flowA", "type": "int256", "indexed": false }, { "name": "flowB", "type": "int256", "indexed": false }, { "name": "bought", "type": "uint256", "indexed": false }, { "name": "toHooks", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "error", "name": "Nope", "inputs": [{ "name": "why", "type": "string" }] }];
|
|
7
|
+
export const floorVaultAbi = [{ "type": "function", "name": "FLOOR_WINDOW", "inputs": [], "outputs": [{ "name": "", "type": "uint32" }], "stateMutability": "view" }, { "type": "function", "name": "MIN_WINDOW", "inputs": [], "outputs": [{ "name": "", "type": "uint32" }], "stateMutability": "view" }, { "type": "function", "name": "PEAK_WINDOW", "inputs": [], "outputs": [{ "name": "", "type": "uint32" }], "stateMutability": "view" }, { "type": "function", "name": "REST", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "REWARD_BPS", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "ROUTER", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "coinTick", "inputs": [{ "name": "token", "type": "address" }, { "name": "window", "type": "uint32" }], "outputs": [{ "name": "ok", "type": "bool" }, { "name": "tick", "type": "int24" }], "stateMutability": "view" }, { "type": "function", "name": "defend", "inputs": [{ "name": "token", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "factory", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "floorDelta", "inputs": [{ "name": "floorBps", "type": "uint16" }], "outputs": [{ "name": "", "type": "int256" }], "stateMutability": "pure" }, { "type": "function", "name": "floors", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "deposit", "type": "uint128" }, { "name": "left", "type": "uint128" }, { "name": "floorBps", "type": "uint16" }, { "name": "tokenIs0", "type": "bool" }, { "name": "hasPeak", "type": "bool" }, { "name": "peak", "type": "int24" }, { "name": "lastDefend", "type": "uint40" }], "stateMutability": "view" }, { "type": "function", "name": "init", "inputs": [{ "name": "factory_", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "owner", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "poke", "inputs": [{ "name": "token", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "register", "inputs": [{ "name": "token", "type": "address" }, { "name": "floorBps", "type": "uint16" }, { "name": "tokenIs0", "type": "bool" }], "outputs": [], "stateMutability": "payable" }, { "type": "event", "name": "Defended", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "by", "type": "address", "indexed": true }, { "name": "spent", "type": "uint256", "indexed": false }, { "name": "burned", "type": "uint256", "indexed": false }, { "name": "reward", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Peak", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "tick", "type": "int24", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Registered", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "deposit", "type": "uint256", "indexed": false }, { "name": "floorBps", "type": "uint16", "indexed": false }], "anonymous": false }, { "type": "error", "name": "Nope", "inputs": [{ "name": "why", "type": "string" }] }];
|
|
8
|
+
export const payrollBoxAbi = [{ "type": "function", "name": "MIN_EARNING", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "SHIFT_PAY_BPS", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "claim", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "u", "type": "uint256" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "coins", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "pot", "type": "uint256" }, { "name": "acc", "type": "uint256" }, { "name": "total", "type": "uint256" }, { "name": "lastShift", "type": "uint40" }, { "name": "shiftNo", "type": "uint32" }, { "name": "shiftSeconds", "type": "uint32" }], "stateMutability": "view" }, { "type": "function", "name": "factory", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "fund", "inputs": [{ "name": "token", "type": "address" }], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "init", "inputs": [{ "name": "factory_", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "owner", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "payShift", "inputs": [{ "name": "token", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "payrollOf", "inputs": [{ "name": "token", "type": "address" }, { "name": "a", "type": "address" }], "outputs": [{ "name": "u", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "register", "inputs": [{ "name": "token", "type": "address" }, { "name": "shiftSeconds", "type": "uint32" }], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "sharesOf", "inputs": [{ "name": "token", "type": "address" }, { "name": "a", "type": "address" }], "outputs": [{ "name": "earning", "type": "uint256" }, { "name": "waiting", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "sync", "inputs": [{ "name": "a", "type": "address" }, { "name": "target", "type": "uint256" }, { "name": "forfeit", "type": "bool" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "wages", "inputs": [{ "name": "", "type": "address" }, { "name": "", "type": "address" }], "outputs": [{ "name": "shares", "type": "uint256" }, { "name": "debt", "type": "uint256" }, { "name": "unpaid", "type": "uint256" }, { "name": "waiting", "type": "uint128" }, { "name": "from", "type": "uint32" }], "stateMutability": "view" }, { "type": "event", "name": "Claimed", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "who", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Funded", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "from", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Registered", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "shiftSeconds", "type": "uint32", "indexed": false }, { "name": "deposit", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "ShiftPaid", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "shift", "type": "uint32", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }, { "name": "earning", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "error", "name": "Nope", "inputs": [{ "name": "why", "type": "string" }] }];
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { Address } from "viem";
|
|
2
|
+
/**
|
|
3
|
+
* The contracts on BNB Chain (chain id 56). pickhooks' own contracts are verified on BscScan; the PancakeSwap ones are
|
|
4
|
+
* PancakeSwap's. Pass `addresses` to createPickhooks to point the SDK at another deployment (a fork, a new factory).
|
|
5
|
+
*/
|
|
6
|
+
export type Addresses = {
|
|
7
|
+
/** hook any coin v3: the factory that opens pools (arb recapture, partners, routers) */
|
|
8
|
+
anyFactory: Address;
|
|
9
|
+
/** the v3 hook every pool of that factory uses */
|
|
10
|
+
anyHook: Address;
|
|
11
|
+
/** the block the v3 factory was deployed in, for event scans */
|
|
12
|
+
anyStartBlock: bigint;
|
|
13
|
+
/** sticky rules: the factory that launches sticky coins */
|
|
14
|
+
stickyFactory: Address;
|
|
15
|
+
stickyValidator: Address;
|
|
16
|
+
stickyStartBlock: bigint;
|
|
17
|
+
/** hook any coin, tax line (flap tax coins): not on mainnet yet; the zero address switches it off */
|
|
18
|
+
anyTaxFactory: Address;
|
|
19
|
+
anyTaxStartBlock: bigint;
|
|
20
|
+
/** coins with their rules in the coin: v1 (32 rules) and v2 (40 rules, every launch since 04.10.2026) */
|
|
21
|
+
coinsV1Factory: Address;
|
|
22
|
+
coinsV2Factory: Address;
|
|
23
|
+
coinsV2StartBlock: bigint;
|
|
24
|
+
/** pools: coins with their rules in a PancakeSwap Infinity pool hook (plain ERC20) */
|
|
25
|
+
poolsFactory: Address;
|
|
26
|
+
/** lever (v1): a curve in an Infinity hook that lends to longs; Lever (v2): real liquidity, longs and shorts */
|
|
27
|
+
leverFactory: Address;
|
|
28
|
+
lever2Factory: Address;
|
|
29
|
+
lever2Lens: Address;
|
|
30
|
+
/** curve calls: coins whose curve is rented out as 24 steps */
|
|
31
|
+
callsFactory: Address;
|
|
32
|
+
/** dip bids: one desk for every coin */
|
|
33
|
+
dipsDesk: Address;
|
|
34
|
+
/** HOOKS infra: the protected buy (swap + a floor from a dip bid in one transaction) and the BNB floors under coins; zero until on mainnet */
|
|
35
|
+
hooksExecutor: Address;
|
|
36
|
+
hooksFloorFactory: Address;
|
|
37
|
+
/** find the dev and CZ mode: v2 coins launched through these boxes (their coins trade like any v2 coin) */
|
|
38
|
+
hideBox: Address;
|
|
39
|
+
czBox: Address;
|
|
40
|
+
/** $hooks, the pickhooks token: holders of enough of it pay a pool's lower holder fee */
|
|
41
|
+
hooks: Address;
|
|
42
|
+
wbnb: Address;
|
|
43
|
+
/** PancakeSwap Infinity */
|
|
44
|
+
clPoolManager: Address;
|
|
45
|
+
vault: Address;
|
|
46
|
+
universalRouter: Address;
|
|
47
|
+
permit2: Address;
|
|
48
|
+
clQuoter: Address;
|
|
49
|
+
/** PancakeSwap V3 (sticky coins trade in a V3 pool of 1 %) */
|
|
50
|
+
v3Router: Address;
|
|
51
|
+
v3Quoter: Address;
|
|
52
|
+
/** PancakeSwap V2 */
|
|
53
|
+
v2Factory: Address;
|
|
54
|
+
v2Router: Address;
|
|
55
|
+
};
|
|
56
|
+
export declare const BSC_MAINNET: Addresses;
|
|
57
|
+
export declare const ZERO_ADDRESS: Address;
|
|
58
|
+
/** Infinity's native currency: BNB is currency0 of every pickhooks pool */
|
|
59
|
+
export declare const NATIVE: `0x${string}`;
|
|
60
|
+
/** Numbers of the contracts that a caller needs to get right. The chain is the truth; these mirror it. */
|
|
61
|
+
export declare const LIMITS: {
|
|
62
|
+
/** BNB Chain refuses a transaction above 16,777,216 gas; the SDK never asks for more than this */
|
|
63
|
+
readonly gasCap: 16600000n;
|
|
64
|
+
/**
|
|
65
|
+
* hook any coin v3: gas a trade adds on top of its estimate so the hook can close the gap to the coin's V2 pair in the
|
|
66
|
+
* same transaction (RECAPTURE_GAS 600k + RECAPTURE_RESERVE 250k, plus a margin). A plain estimate leaves the recapture
|
|
67
|
+
* out and the swap still goes through; only the gas used is paid.
|
|
68
|
+
*/
|
|
69
|
+
readonly recaptureExtraGas: 900000n;
|
|
70
|
+
/** hook any coin: a pool's tick spacing is TICK_BASE + its slot (0 to 49) */
|
|
71
|
+
readonly tickBase: 10;
|
|
72
|
+
readonly maxSlots: 50;
|
|
73
|
+
readonly maxPositions: 8;
|
|
74
|
+
/** each position stays locked this long after it went in */
|
|
75
|
+
readonly lockDays: 30;
|
|
76
|
+
/** a coin needs a PancakeSwap pool with at least this much BNB to price a new pool */
|
|
77
|
+
readonly minSourceBnb: 3;
|
|
78
|
+
/** a pool's LP fee, basis points */
|
|
79
|
+
readonly feeBps: {
|
|
80
|
+
readonly min: 20;
|
|
81
|
+
readonly max: 100;
|
|
82
|
+
};
|
|
83
|
+
/** the most a partner or a router can get of the platform's part */
|
|
84
|
+
readonly maxPartnerBps: 5000;
|
|
85
|
+
/** sticky coins: the V3 pool's fee tier (1 %) */
|
|
86
|
+
readonly stickyPoolFee: 10000;
|
|
87
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export const BSC_MAINNET = {
|
|
2
|
+
anyFactory: "0x1662668Ab8FaA612A7F615F1AccB90ceC20be117",
|
|
3
|
+
anyHook: "0x49892253A5E71f5DF0Fbc118bd7c15acAF55F767",
|
|
4
|
+
anyStartBlock: 126395936n,
|
|
5
|
+
stickyFactory: "0x385C273bDaBC5a0788dfBb648F05bE0C5EE018fd",
|
|
6
|
+
stickyValidator: "0x057007a21330EA770f2Fcb61c8925C28c270480f",
|
|
7
|
+
stickyStartBlock: 126383497n,
|
|
8
|
+
anyTaxFactory: "0x0000000000000000000000000000000000000000",
|
|
9
|
+
anyTaxStartBlock: 0n,
|
|
10
|
+
coinsV1Factory: "0xecED45Ae3e85D947038009710594a50d422A54D8",
|
|
11
|
+
coinsV2Factory: "0x23cC366e1DDBc41CFD70011C4AaC14B79998B24F",
|
|
12
|
+
coinsV2StartBlock: 125686525n,
|
|
13
|
+
poolsFactory: "0x3F97831C8296D934d84357B619CfC44D32d0241B",
|
|
14
|
+
leverFactory: "0xeaB93e923170bd5331Db4300aF6F2555eBBF9615",
|
|
15
|
+
lever2Factory: "0x03EbF1558E2f9337E4d2FfCAcE3A5114aC32A87A",
|
|
16
|
+
lever2Lens: "0x3f1a660FC365Af192acE4E761657cE61A6ED0F13",
|
|
17
|
+
callsFactory: "0x98D49C17458def2e5fdF00F20479658693498301",
|
|
18
|
+
dipsDesk: "0xc73bcB859C3fD5Bd38A10B0aD9A862EAAf6765bf",
|
|
19
|
+
hooksExecutor: "0x0000000000000000000000000000000000000000",
|
|
20
|
+
hooksFloorFactory: "0x0000000000000000000000000000000000000000",
|
|
21
|
+
hideBox: "0x5d540b727E28D00E1F627305739E8Fcdda4450C5",
|
|
22
|
+
czBox: "0x9EDA1d134CE325001FB65381d80B85822D1DAe13",
|
|
23
|
+
hooks: "0x07bcB8E8226f671300e135b4A61Dc157359b7777",
|
|
24
|
+
wbnb: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
|
|
25
|
+
clPoolManager: "0xa0FfB9c1CE1Fe56963B0321B32E7A0302114058b",
|
|
26
|
+
vault: "0x238a358808379702088667322f80aC48bAd5e6c4",
|
|
27
|
+
universalRouter: "0xd9C500DfF816a1Da21A48A732d3498Bf09dc9AEB",
|
|
28
|
+
permit2: "0x31c2F6fcFf4F8759b3Bd5Bf0e1084A055615c768",
|
|
29
|
+
clQuoter: "0xd0737C9762912dD34c3271197E362Aa736Df0926",
|
|
30
|
+
v3Router: "0x1b81D678ffb9C0263b24A97847620C99d213eB14",
|
|
31
|
+
v3Quoter: "0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997",
|
|
32
|
+
v2Factory: "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73",
|
|
33
|
+
v2Router: "0x10ED43C718714eb63d5aA57B78B54704E256024E",
|
|
34
|
+
};
|
|
35
|
+
export const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
36
|
+
/** Infinity's native currency: BNB is currency0 of every pickhooks pool */
|
|
37
|
+
export const NATIVE = ZERO_ADDRESS;
|
|
38
|
+
/** Numbers of the contracts that a caller needs to get right. The chain is the truth; these mirror it. */
|
|
39
|
+
export const LIMITS = {
|
|
40
|
+
/** BNB Chain refuses a transaction above 16,777,216 gas; the SDK never asks for more than this */
|
|
41
|
+
gasCap: 16600000n,
|
|
42
|
+
/**
|
|
43
|
+
* hook any coin v3: gas a trade adds on top of its estimate so the hook can close the gap to the coin's V2 pair in the
|
|
44
|
+
* same transaction (RECAPTURE_GAS 600k + RECAPTURE_RESERVE 250k, plus a margin). A plain estimate leaves the recapture
|
|
45
|
+
* out and the swap still goes through; only the gas used is paid.
|
|
46
|
+
*/
|
|
47
|
+
recaptureExtraGas: 900000n,
|
|
48
|
+
/** hook any coin: a pool's tick spacing is TICK_BASE + its slot (0 to 49) */
|
|
49
|
+
tickBase: 10,
|
|
50
|
+
maxSlots: 50,
|
|
51
|
+
maxPositions: 8,
|
|
52
|
+
/** each position stays locked this long after it went in */
|
|
53
|
+
lockDays: 30,
|
|
54
|
+
/** a coin needs a PancakeSwap pool with at least this much BNB to price a new pool */
|
|
55
|
+
minSourceBnb: 3,
|
|
56
|
+
/** a pool's LP fee, basis points */
|
|
57
|
+
feeBps: { min: 20, max: 100 },
|
|
58
|
+
/** the most a partner or a router can get of the platform's part */
|
|
59
|
+
maxPartnerBps: 5000,
|
|
60
|
+
/** sticky coins: the V3 pool's fee tier (1 %) */
|
|
61
|
+
stickyPoolFee: 10_000,
|
|
62
|
+
};
|