@pickhooks/sdk 0.0.0-stage → 0.4.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 +418 -3
- package/dist/abis/agents.d.ts +2418 -0
- package/dist/abis/agents.js +4 -0
- 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 +14 -0
- package/dist/abis/index.js +14 -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/sticky2.d.ts +3750 -0
- package/dist/abis/sticky2.js +8 -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 +100 -0
- package/dist/addresses.js +71 -0
- package/dist/agents-catalog.d.ts +318 -0
- package/dist/agents-catalog.js +353 -0
- package/dist/agents.d.ts +543 -0
- package/dist/agents.js +667 -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/desks.d.ts +298 -0
- package/dist/desks.js +343 -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 +414 -0
- package/dist/index.d.ts +104 -0
- package/dist/index.js +91 -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-sim.d.ts +125 -0
- package/dist/sticky-sim.js +637 -0
- package/dist/sticky.d.ts +286 -0
- package/dist/sticky.js +420 -0
- package/dist/tlock.d.ts +67 -0
- package/dist/tlock.js +185 -0
- package/dist/tx.d.ts +72 -0
- package/dist/tx.js +78 -0
- package/dist/v2.d.ts +106 -0
- package/dist/v2.js +61 -0
- package/dist/v3.d.ts +42 -0
- package/dist/v3.js +98 -0
- package/dist/wallet.d.ts +80 -0
- package/dist/wallet.js +115 -0
- package/dist/watch.d.ts +82 -0
- package/dist/watch.js +194 -0
- package/package.json +67 -4
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// Generated from web/src/lib/anytax-abi.ts (the site's ABIs of the live contracts). Do not edit by hand: node scripts/gen-abis.mjs
|
|
2
|
+
export const anyTaxFactoryAbi = [{ "type": "function", "name": "FLAP_PORTAL", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "LOCK", "inputs": [], "outputs": [{ "name": "", "type": "uint40" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_BONUS_LOCK", "inputs": [], "outputs": [{ "name": "", "type": "uint32" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_FEE_BPS", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_OPENER_BPS", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_POSITIONS", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_SLOTS", "inputs": [], "outputs": [{ "name": "", "type": "uint8" }], "stateMutability": "view" }, { "type": "function", "name": "MIN_BONUS_LOCK", "inputs": [], "outputs": [{ "name": "", "type": "uint32" }], "stateMutability": "view" }, { "type": "function", "name": "MIN_FEE_BPS", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "MIN_SOURCE_BNB", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "NOT_FLAP_TAX", "inputs": [], "outputs": [{ "name": "", "type": "uint8" }], "stateMutability": "view" }, { "type": "function", "name": "NO_CODE", "inputs": [], "outputs": [{ "name": "", "type": "uint8" }], "stateMutability": "view" }, { "type": "function", "name": "NO_PRICE_SOURCE", "inputs": [], "outputs": [{ "name": "", "type": "uint8" }], "stateMutability": "view" }, { "type": "function", "name": "OK", "inputs": [], "outputs": [{ "name": "", "type": "uint8" }], "stateMutability": "view" }, { "type": "function", "name": "ON_CURVE", "inputs": [], "outputs": [{ "name": "", "type": "uint8" }], "stateMutability": "view" }, { "type": "function", "name": "POOL_MANAGER", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "QUOTE_TOKEN", "inputs": [], "outputs": [{ "name": "", "type": "uint8" }], "stateMutability": "view" }, { "type": "function", "name": "TICK_BASE", "inputs": [], "outputs": [{ "name": "", "type": "int24" }], "stateMutability": "view" }, { "type": "function", "name": "V2_FACTORY", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "V3_FACTORY", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "VAULT", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "WBNB", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "addLiquidity", "inputs": [{ "name": "token", "type": "address" }, { "name": "slot", "type": "uint8" }, { "name": "tickLower", "type": "int24" }, { "name": "tickUpper", "type": "int24" }, { "name": "tokenAmount", "type": "uint256" }], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "allPools", "inputs": [{ "name": "", "type": "uint256" }], "outputs": [{ "name": "", "type": "bytes32" }], "stateMutability": "view" }, { "type": "function", "name": "burnStuck", "inputs": [{ "name": "token", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "check", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "code", "type": "uint8" }], "stateMutability": "view" }, { "type": "function", "name": "collect", "inputs": [{ "name": "id", "type": "bytes32" }], "outputs": [{ "name": "bnb", "type": "uint256" }, { "name": "coins", "type": "uint256" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "depthOf", "inputs": [{ "name": "id", "type": "bytes32" }], "outputs": [{ "name": "d", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "hook", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "keyOf", "inputs": [{ "name": "id", "type": "bytes32" }], "outputs": [{ "name": "", "type": "tuple", "components": [{ "name": "currency0", "type": "address" }, { "name": "currency1", "type": "address" }, { "name": "hooks", "type": "address" }, { "name": "poolManager", "type": "address" }, { "name": "fee", "type": "uint24" }, { "name": "parameters", "type": "bytes32" }] }], "stateMutability": "view" }, { "type": "function", "name": "lockAcquired", "inputs": [{ "name": "data", "type": "bytes" }], "outputs": [{ "name": "", "type": "bytes" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "open", "inputs": [{ "name": "p", "type": "tuple", "components": [{ "name": "token", "type": "address" }, { "name": "slot", "type": "uint8" }, { "name": "feeBps", "type": "uint16" }, { "name": "holderFeeBps", "type": "uint16" }, { "name": "holderMin", "type": "uint128" }, { "name": "chestBps", "type": "uint16" }, { "name": "potShareBps", "type": "uint16" }, { "name": "jackpotShareBps", "type": "uint16" }, { "name": "jackpotSilence", "type": "uint32" }, { "name": "jackpotMinBuy", "type": "uint128" }, { "name": "bonusBps", "type": "uint16" }, { "name": "bonusLock", "type": "uint32" }, { "name": "bonusMinBuy", "type": "uint128" }, { "name": "bonusCap", "type": "uint128" }, { "name": "expectedSqrtPrice", "type": "uint160" }, { "name": "maxMoveBps", "type": "uint16" }, { "name": "tickLower", "type": "int24" }, { "name": "tickUpper", "type": "int24" }, { "name": "tokenAmount", "type": "uint256" }] }], "outputs": [{ "name": "id", "type": "bytes32" }], "stateMutability": "payable" }, { "type": "function", "name": "openerBps", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "openerOf", "inputs": [{ "name": "", "type": "bytes32" }], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "owner", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "platformWallet", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "poolCount", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "poolKey", "inputs": [{ "name": "token", "type": "address" }, { "name": "slot", "type": "uint8" }], "outputs": [{ "name": "", "type": "tuple", "components": [{ "name": "currency0", "type": "address" }, { "name": "currency1", "type": "address" }, { "name": "hooks", "type": "address" }, { "name": "poolManager", "type": "address" }, { "name": "fee", "type": "uint24" }, { "name": "parameters", "type": "bytes32" }] }], "stateMutability": "view" }, { "type": "function", "name": "positions", "inputs": [{ "name": "id", "type": "bytes32" }], "outputs": [{ "name": "", "type": "tuple[]", "components": [{ "name": "tickLower", "type": "int24" }, { "name": "tickUpper", "type": "int24" }, { "name": "liquidity", "type": "uint128" }, { "name": "unlockAt", "type": "uint40" }] }], "stateMutability": "view" }, { "type": "function", "name": "referencePrice", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "sqrtPrice", "type": "uint160" }, { "name": "source", "type": "address" }, { "name": "depth", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "removeLiquidity", "inputs": [{ "name": "id", "type": "bytes32" }, { "name": "index", "type": "uint256" }], "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": "openerBps_", "type": "uint16" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "slots", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "", "type": "uint8[]" }], "stateMutability": "view" }, { "type": "function", "name": "stuck", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "vaultTaxed", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "", "type": "bool" }], "stateMutability": "view" }, { "type": "event", "name": "Collected", "inputs": [{ "name": "id", "type": "bytes32", "indexed": true }, { "name": "bnb", "type": "uint256", "indexed": false }, { "name": "coins", "type": "uint256", "indexed": false }, { "name": "burned", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "LiquidityAdded", "inputs": [{ "name": "id", "type": "bytes32", "indexed": true }, { "name": "from", "type": "address", "indexed": true }, { "name": "index", "type": "uint256", "indexed": false }, { "name": "liquidity", "type": "uint128", "indexed": false }, { "name": "bnb", "type": "uint256", "indexed": false }, { "name": "tokens", "type": "uint256", "indexed": false }, { "name": "unlockAt", "type": "uint40", "indexed": false }], "anonymous": false }, { "type": "event", "name": "LiquidityRemoved", "inputs": [{ "name": "id", "type": "bytes32", "indexed": true }, { "name": "to", "type": "address", "indexed": true }, { "name": "index", "type": "uint256", "indexed": false }, { "name": "liquidity", "type": "uint128", "indexed": false }, { "name": "bnb", "type": "uint256", "indexed": false }, { "name": "tokens", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Opened", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "opener", "type": "address", "indexed": true }, { "name": "id", "type": "bytes32", "indexed": true }, { "name": "slot", "type": "uint8", "indexed": false }, { "name": "priceSource", "type": "address", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Stuck", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "error", "name": "Bad", "inputs": [{ "name": "what", "type": "string" }] }, { "type": "error", "name": "InvalidTick", "inputs": [{ "name": "tick", "type": "int24" }] }, { "type": "error", "name": "NoLiquidity", "inputs": [] }, { "type": "error", "name": "NoPosition", "inputs": [] }, { "type": "error", "name": "NotOpener", "inputs": [] }, { "type": "error", "name": "NotOwner", "inputs": [] }, { "type": "error", "name": "NotVault", "inputs": [] }, { "type": "error", "name": "PriceMoved", "inputs": [] }, { "type": "error", "name": "Refused", "inputs": [{ "name": "code", "type": "uint8" }] }, { "type": "error", "name": "StillLocked", "inputs": [] }, { "type": "error", "name": "TooMany", "inputs": [] }, { "type": "error", "name": "TooShallow", "inputs": [] }, { "type": "error", "name": "Transfer", "inputs": [] }];
|
|
3
|
+
export const anyTaxHookAbi = [{ "type": "function", "name": "BITMAP", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "HOOKS", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "QUOTE", "inputs": [], "outputs": [{ "name": "", "type": "bytes32" }], "stateMutability": "view" }, { "type": "function", "name": "afterInitialize", "inputs": [{ "name": "", "type": "address" }, { "name": "key", "type": "tuple", "components": [{ "name": "currency0", "type": "address" }, { "name": "currency1", "type": "address" }, { "name": "hooks", "type": "address" }, { "name": "poolManager", "type": "address" }, { "name": "fee", "type": "uint24" }, { "name": "parameters", "type": "bytes32" }] }, { "name": "", "type": "uint160" }, { "name": "", "type": "int24" }], "outputs": [{ "name": "", "type": "bytes4" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "afterSwap", "inputs": [{ "name": "", "type": "address" }, { "name": "key", "type": "tuple", "components": [{ "name": "currency0", "type": "address" }, { "name": "currency1", "type": "address" }, { "name": "hooks", "type": "address" }, { "name": "poolManager", "type": "address" }, { "name": "fee", "type": "uint24" }, { "name": "parameters", "type": "bytes32" }] }, { "name": "sp", "type": "tuple", "components": [{ "name": "zeroForOne", "type": "bool" }, { "name": "amountSpecified", "type": "int256" }, { "name": "sqrtPriceLimitX96", "type": "uint160" }] }, { "name": "delta", "type": "int256" }, { "name": "", "type": "bytes" }], "outputs": [{ "name": "", "type": "bytes4" }, { "name": "", "type": "int128" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "beforeAddLiquidity", "inputs": [{ "name": "sender", "type": "address" }, { "name": "", "type": "tuple", "components": [{ "name": "currency0", "type": "address" }, { "name": "currency1", "type": "address" }, { "name": "hooks", "type": "address" }, { "name": "poolManager", "type": "address" }, { "name": "fee", "type": "uint24" }, { "name": "parameters", "type": "bytes32" }] }, { "name": "", "type": "tuple", "components": [{ "name": "tickLower", "type": "int24" }, { "name": "tickUpper", "type": "int24" }, { "name": "liquidityDelta", "type": "int256" }, { "name": "salt", "type": "bytes32" }] }, { "name": "", "type": "bytes" }], "outputs": [{ "name": "", "type": "bytes4" }], "stateMutability": "view" }, { "type": "function", "name": "beforeInitialize", "inputs": [{ "name": "sender", "type": "address" }, { "name": "", "type": "tuple", "components": [{ "name": "currency0", "type": "address" }, { "name": "currency1", "type": "address" }, { "name": "hooks", "type": "address" }, { "name": "poolManager", "type": "address" }, { "name": "fee", "type": "uint24" }, { "name": "parameters", "type": "bytes32" }] }, { "name": "", "type": "uint160" }], "outputs": [{ "name": "", "type": "bytes4" }], "stateMutability": "view" }, { "type": "function", "name": "beforeSwap", "inputs": [{ "name": "sender", "type": "address" }, { "name": "key", "type": "tuple", "components": [{ "name": "currency0", "type": "address" }, { "name": "currency1", "type": "address" }, { "name": "hooks", "type": "address" }, { "name": "poolManager", "type": "address" }, { "name": "fee", "type": "uint24" }, { "name": "parameters", "type": "bytes32" }] }, { "name": "sp", "type": "tuple", "components": [{ "name": "zeroForOne", "type": "bool" }, { "name": "amountSpecified", "type": "int256" }, { "name": "sqrtPriceLimitX96", "type": "uint160" }] }, { "name": "hookData", "type": "bytes" }], "outputs": [{ "name": "", "type": "bytes4" }, { "name": "", "type": "int256" }, { "name": "", "type": "uint24" }], "stateMutability": "view" }, { "type": "function", "name": "bonusOf", "inputs": [{ "name": "id", "type": "bytes32" }, { "name": "who", "type": "address" }], "outputs": [{ "name": "", "type": "tuple", "components": [{ "name": "bought", "type": "uint128" }, { "name": "locked", "type": "uint128" }, { "name": "owed", "type": "uint128" }, { "name": "total", "type": "uint128" }, { "name": "unlockAt", "type": "uint40" }] }], "stateMutability": "view" }, { "type": "function", "name": "booked", "inputs": [{ "name": "id", "type": "bytes32" }, { "name": "bnb", "type": "uint256" }, { "name": "coinsBurned", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "chest", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "claim", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "collectPlatform", "inputs": [], "outputs": [{ "name": "a", "type": "uint256" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "factory", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "feedChest", "inputs": [{ "name": "token", "type": "address" }, { "name": "amount", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "fundBonus", "inputs": [{ "name": "id", "type": "bytes32" }, { "name": "amount", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "fundPot", "inputs": [{ "name": "id", "type": "bytes32" }], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "getHooksRegistrationBitmap", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "pure" }, { "type": "function", "name": "held", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "isCoin", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "lockAcquired", "inputs": [{ "name": "data", "type": "bytes" }], "outputs": [{ "name": "", "type": "bytes" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "lockBonus", "inputs": [{ "name": "id", "type": "bytes32" }, { "name": "amount", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "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": "platformOwed", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "poolManager", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "poolOf", "inputs": [{ "name": "id", "type": "bytes32" }], "outputs": [{ "name": "", "type": "tuple", "components": [{ "name": "token", "type": "address" }, { "name": "opener", "type": "address" }, { "name": "start", "type": "uint40" }, { "name": "cfg", "type": "tuple", "components": [{ "name": "feeBps", "type": "uint16" }, { "name": "holderFeeBps", "type": "uint16" }, { "name": "holderMin", "type": "uint128" }, { "name": "openerBps", "type": "uint16" }, { "name": "potBps", "type": "uint16" }, { "name": "chestBps", "type": "uint16" }, { "name": "jackpotShareBps", "type": "uint16" }, { "name": "jackpotSilence", "type": "uint32" }, { "name": "jackpotMinBuy", "type": "uint128" }, { "name": "bonusBps", "type": "uint16" }, { "name": "bonusLock", "type": "uint32" }, { "name": "bonusMinBuy", "type": "uint128" }, { "name": "bonusCap", "type": "uint128" }, { "name": "vaultTaxed", "type": "bool" }] }, { "name": "buys", "type": "uint32" }, { "name": "sells", "type": "uint32" }, { "name": "volumeBnb", "type": "uint128" }, { "name": "feesBnb", "type": "uint128" }, { "name": "burned", "type": "uint128" }, { "name": "burnedFromChest", "type": "uint128" }, { "name": "pot", "type": "uint256" }, { "name": "lastBuyer", "type": "address" }, { "name": "lastBuyTime", "type": "uint40" }, { "name": "bonusPot", "type": "uint256" }, { "name": "bonusGiven", "type": "uint128" }] }], "stateMutability": "view" }, { "type": "function", "name": "register", "inputs": [{ "name": "id", "type": "bytes32" }, { "name": "token", "type": "address" }, { "name": "opener", "type": "address" }, { "name": "cfg", "type": "tuple", "components": [{ "name": "feeBps", "type": "uint16" }, { "name": "holderFeeBps", "type": "uint16" }, { "name": "holderMin", "type": "uint128" }, { "name": "openerBps", "type": "uint16" }, { "name": "potBps", "type": "uint16" }, { "name": "chestBps", "type": "uint16" }, { "name": "jackpotShareBps", "type": "uint16" }, { "name": "jackpotSilence", "type": "uint32" }, { "name": "jackpotMinBuy", "type": "uint128" }, { "name": "bonusBps", "type": "uint16" }, { "name": "bonusLock", "type": "uint32" }, { "name": "bonusMinBuy", "type": "uint128" }, { "name": "bonusCap", "type": "uint128" }, { "name": "vaultTaxed", "type": "bool" }] }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "settleJackpot", "inputs": [{ "name": "id", "type": "bytes32" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "sweep", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "a", "type": "uint256" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "unlockBonus", "inputs": [{ "name": "id", "type": "bytes32" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "vault", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "event", "name": "BonusBought", "inputs": [{ "name": "id", "type": "bytes32", "indexed": true }, { "name": "buyer", "type": "address", "indexed": true }, { "name": "tokens", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "BonusFunded", "inputs": [{ "name": "id", "type": "bytes32", "indexed": true }, { "name": "from", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "BonusLocked", "inputs": [{ "name": "id", "type": "bytes32", "indexed": true }, { "name": "who", "type": "address", "indexed": true }, { "name": "coins", "type": "uint256", "indexed": false }, { "name": "bonus", "type": "uint256", "indexed": false }, { "name": "unlockAt", "type": "uint40", "indexed": false }], "anonymous": false }, { "type": "event", "name": "BonusUnlocked", "inputs": [{ "name": "id", "type": "bytes32", "indexed": true }, { "name": "who", "type": "address", "indexed": true }, { "name": "coins", "type": "uint256", "indexed": false }, { "name": "bonus", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "ChestBurned", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "id", "type": "bytes32", "indexed": true }, { "name": "buyer", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "ChestFed", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "from", "type": "address", "indexed": true }, { "name": "amount", "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": "FeesBooked", "inputs": [{ "name": "id", "type": "bytes32", "indexed": true }, { "name": "bnb", "type": "uint256", "indexed": false }, { "name": "coinsBurned", "type": "uint256", "indexed": false }, { "name": "toOpener", "type": "uint256", "indexed": false }, { "name": "toPot", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "JackpotWon", "inputs": [{ "name": "id", "type": "bytes32", "indexed": true }, { "name": "winner", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "PlatformPaid", "inputs": [{ "name": "to", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "PotFunded", "inputs": [{ "name": "id", "type": "bytes32", "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": "id", "type": "bytes32", "indexed": true }, { "name": "opener", "type": "address", "indexed": true }, { "name": "feeBps", "type": "uint16", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Swept", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "to", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Traded", "inputs": [{ "name": "id", "type": "bytes32", "indexed": true }, { "name": "trader", "type": "address", "indexed": true }, { "name": "buy", "type": "bool", "indexed": false }, { "name": "tokens", "type": "uint256", "indexed": false }, { "name": "bnb", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "error", "name": "AlreadyRegistered", "inputs": [] }, { "type": "error", "name": "Locked", "inputs": [] }, { "type": "error", "name": "NoBonus", "inputs": [] }, { "type": "error", "name": "NoBonusLeft", "inputs": [] }, { "type": "error", "name": "NoPlatform", "inputs": [] }, { "type": "error", "name": "NoPot", "inputs": [] }, { "type": "error", "name": "NotBought", "inputs": [] }, { "type": "error", "name": "NotFactory", "inputs": [] }, { "type": "error", "name": "NotPoolManager", "inputs": [] }, { "type": "error", "name": "NotVault", "inputs": [] }, { "type": "error", "name": "NothingOwed", "inputs": [] }, { "type": "error", "name": "PayFirst", "inputs": [] }, { "type": "error", "name": "Reentry", "inputs": [] }, { "type": "error", "name": "Transfer", "inputs": [] }, { "type": "error", "name": "UnknownPool", "inputs": [] }];
|