@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
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// Generated from web/src/lib/clean-abi.ts (the site's ABIs of the live contracts). Do not edit by hand: node scripts/gen-abis.mjs
|
|
2
|
+
export const poolsFactoryAbi = [{ "type": "function", "name": "KNOWN", "inputs": [], "outputs": [{ "name": "", "type": "uint64" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_CREATOR_BPS", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_POT_BPS", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_RULES", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "POOL_MANAGER", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "TICK_SPACING", "inputs": [], "outputs": [{ "name": "", "type": "int24" }], "stateMutability": "view" }, { "type": "function", "name": "VAULT", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "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": "hook", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "isCoin", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "launch", "inputs": [{ "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" }], "outputs": [{ "name": "token", "type": "address" }], "stateMutability": "payable" }, { "type": "function", "name": "lockAcquired", "inputs": [{ "name": "data", "type": "bytes" }], "outputs": [{ "name": "", "type": "bytes" }], "stateMutability": "nonpayable" }, { "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": "poolKeyOf", "inputs": [{ "name": "token", "type": "address" }], "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": "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": "setStartPrice", "inputs": [{ "name": "sqrtPrice", "type": "uint160" }, { "name": "tick", "type": "int24" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "sqrtPriceStart", "inputs": [], "outputs": [{ "name": "", "type": "uint160" }], "stateMutability": "view" }, { "type": "function", "name": "tickStart", "inputs": [], "outputs": [{ "name": "", "type": "int24" }], "stateMutability": "view" }, { "type": "function", "name": "validate", "inputs": [{ "name": "r", "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[]" }], "outputs": [], "stateMutability": "view" }, { "type": "event", "name": "Launched", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "creator", "type": "address", "indexed": true }, { "name": "poolId", "type": "bytes32", "indexed": true }, { "name": "hook", "type": "address", "indexed": false }, { "name": "mask", "type": "uint64", "indexed": false }, { "name": "curveSupply", "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": "Liquidity", "inputs": [] }, { "type": "error", "name": "NotOwner", "inputs": [] }, { "type": "error", "name": "NotVault", "inputs": [] }];
|
|
3
|
+
export const poolsHookAbi = [{ "type": "function", "name": "BITMAP", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "FEE_BPS", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "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": "p", "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": "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": "", "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": "p", "type": "tuple", "components": [{ "name": "zeroForOne", "type": "bool" }, { "name": "amountSpecified", "type": "int256" }, { "name": "sqrtPriceLimitX96", "type": "uint160" }] }, { "name": "", "type": "bytes" }], "outputs": [{ "name": "", "type": "bytes4" }, { "name": "", "type": "int256" }, { "name": "", "type": "uint24" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "claim", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "coinOf", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "creator", "type": "address" }, { "name": "start", "type": "uint40" }, { "name": "curveSupply", "type": "uint128" }, { "name": "creatorBps", "type": "uint16" }, { "name": "potBps", "type": "uint16" }, { "name": "jackpotPot", "type": "uint256" }, { "name": "jackpotLast", "type": "address" }, { "name": "jackpotTime", "type": "uint40" }, { "name": "rewardsPot", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "collectPlatform", "inputs": [], "outputs": [{ "name": "a", "type": "uint256" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "creatorFunded", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "factory", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "fundJackpot", "inputs": [{ "name": "token", "type": "address" }], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "fundRewards", "inputs": [{ "name": "token", "type": "address" }], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "getHooksRegistrationBitmap", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "pure" }, { "type": "function", "name": "isOn", "inputs": [{ "name": "token", "type": "address" }, { "name": "rule", "type": "uint8" }], "outputs": [{ "name": "", "type": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "lockAcquired", "inputs": [{ "name": "data", "type": "bytes" }], "outputs": [{ "name": "", "type": "bytes" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "marketOpen", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "", "type": "bool" }], "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": "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": "", "type": "address" }], "outputs": [{ "name": "", "type": "bytes32" }], "stateMutability": "view" }, { "type": "function", "name": "register", "inputs": [{ "name": "id", "type": "bytes32" }, { "name": "token", "type": "address" }, { "name": "creator", "type": "address" }, { "name": "r", "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": "creatorBps", "type": "uint16" }, { "name": "potBps", "type": "uint16" }, { "name": "curveSupply", "type": "uint128" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "rulesOf", "inputs": [{ "name": "token", "type": "address" }], "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": "settleJackpot", "inputs": [{ "name": "token", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "soldBps", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "statsOf", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "", "type": "tuple", "components": [{ "name": "buyers", "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": "qualifyingBuys", "type": "uint32" }, { "name": "volume", "type": "uint128" }, { "name": "net", "type": "uint128" }, { "name": "peak", "type": "uint128" }, { "name": "lastBuyAmount", "type": "uint128" }] }], "stateMutability": "view" }, { "type": "function", "name": "until", "inputs": [{ "name": "", "type": "bytes32" }, { "name": "", "type": "uint8" }], "outputs": [{ "name": "", "type": "uint40" }], "stateMutability": "view" }, { "type": "function", "name": "vault", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "walletOf", "inputs": [{ "name": "token", "type": "address" }, { "name": "who", "type": "address" }], "outputs": [{ "name": "", "type": "tuple", "components": [{ "name": "buys", "type": "uint32" }, { "name": "lastBuy", "type": "uint40" }, { "name": "lastTrade", "type": "uint40" }] }], "stateMutability": "view" }, { "type": "function", "name": "wallets", "inputs": [{ "name": "", "type": "bytes32" }, { "name": "", "type": "address" }], "outputs": [{ "name": "buys", "type": "uint32" }, { "name": "lastBuy", "type": "uint40" }, { "name": "lastTrade", "type": "uint40" }], "stateMutability": "view" }, { "type": "function", "name": "withdrawRewards", "inputs": [{ "name": "token", "type": "address" }, { "name": "amount", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "Claimed", "inputs": [{ "name": "who", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "JackpotWon", "inputs": [{ "name": "token", "type": "address", "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": "token", "type": "address", "indexed": true }, { "name": "jackpot", "type": "bool", "indexed": false }, { "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": "creator", "type": "address", "indexed": true }, { "name": "mask", "type": "uint64", "indexed": false }], "anonymous": false }, { "type": "event", "name": "RewardEarned", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "buyer", "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": "fee", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "error", "name": "AlreadyRegistered", "inputs": [] }, { "type": "error", "name": "Blocked", "inputs": [{ "name": "rule", "type": "uint8" }] }, { "type": "error", "name": "NoPlatform", "inputs": [] }, { "type": "error", "name": "NoPot", "inputs": [] }, { "type": "error", "name": "NotCreator", "inputs": [] }, { "type": "error", "name": "NotFactory", "inputs": [] }, { "type": "error", "name": "NotPoolManager", "inputs": [] }, { "type": "error", "name": "NotVault", "inputs": [] }, { "type": "error", "name": "NothingOwed", "inputs": [] }, { "type": "error", "name": "PartialFill", "inputs": [] }, { "type": "error", "name": "UnknownPool", "inputs": [] }];
|
|
4
|
+
export const plainTokenAbi = [{ "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": "balanceOf", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "contractURI", "inputs": [], "outputs": [{ "name": "", "type": "string" }], "stateMutability": "view" }, { "type": "function", "name": "decimals", "inputs": [], "outputs": [{ "name": "", "type": "uint8" }], "stateMutability": "view" }, { "type": "function", "name": "metadata", "inputs": [], "outputs": [{ "name": "", "type": "string" }], "stateMutability": "view" }, { "type": "function", "name": "name", "inputs": [], "outputs": [{ "name": "", "type": "string" }], "stateMutability": "view" }, { "type": "function", "name": "symbol", "inputs": [], "outputs": [{ "name": "", "type": "string" }], "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": "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": "Transfer", "inputs": [{ "name": "from", "type": "address", "indexed": true }, { "name": "to", "type": "address", "indexed": true }, { "name": "value", "type": "uint256", "indexed": false }], "anonymous": false }];
|