@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.
Files changed (65) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +309 -3
  3. package/dist/abis/any3.d.ts +2123 -0
  4. package/dist/abis/any3.js +3 -0
  5. package/dist/abis/anytax.d.ts +1786 -0
  6. package/dist/abis/anytax.js +3 -0
  7. package/dist/abis/calls.d.ts +2515 -0
  8. package/dist/abis/calls.js +4 -0
  9. package/dist/abis/common.d.ts +449 -0
  10. package/dist/abis/common.js +91 -0
  11. package/dist/abis/dips.d.ts +897 -0
  12. package/dist/abis/dips.js +2 -0
  13. package/dist/abis/index.d.ts +12 -0
  14. package/dist/abis/index.js +12 -0
  15. package/dist/abis/infra.d.ts +701 -0
  16. package/dist/abis/infra.js +4 -0
  17. package/dist/abis/lever.d.ts +1710 -0
  18. package/dist/abis/lever.js +5 -0
  19. package/dist/abis/lever2.d.ts +2710 -0
  20. package/dist/abis/lever2.js +5 -0
  21. package/dist/abis/pools.d.ts +1898 -0
  22. package/dist/abis/pools.js +4 -0
  23. package/dist/abis/sticky.d.ts +953 -0
  24. package/dist/abis/sticky.js +4 -0
  25. package/dist/abis/v1.d.ts +1627 -0
  26. package/dist/abis/v1.js +5 -0
  27. package/dist/abis/v2.d.ts +3264 -0
  28. package/dist/abis/v2.js +8 -0
  29. package/dist/addresses.d.ts +87 -0
  30. package/dist/addresses.js +62 -0
  31. package/dist/any.d.ts +447 -0
  32. package/dist/any.js +729 -0
  33. package/dist/api.d.ts +62 -0
  34. package/dist/api.js +30 -0
  35. package/dist/blocks.d.ts +107 -0
  36. package/dist/blocks.js +126 -0
  37. package/dist/coin-rules-config.d.ts +8 -0
  38. package/dist/coin-rules-config.js +13 -0
  39. package/dist/coin-rules.d.ts +383 -0
  40. package/dist/coin-rules.js +878 -0
  41. package/dist/coins.d.ts +217 -0
  42. package/dist/coins.js +520 -0
  43. package/dist/dips.d.ts +133 -0
  44. package/dist/dips.js +148 -0
  45. package/dist/errors.d.ts +35 -0
  46. package/dist/errors.js +347 -0
  47. package/dist/index.d.ts +73 -0
  48. package/dist/index.js +58 -0
  49. package/dist/infinity.d.ts +63 -0
  50. package/dist/infinity.js +96 -0
  51. package/dist/infra.d.ts +112 -0
  52. package/dist/infra.js +114 -0
  53. package/dist/lever.d.ts +391 -0
  54. package/dist/lever.js +419 -0
  55. package/dist/pools.d.ts +274 -0
  56. package/dist/pools.js +405 -0
  57. package/dist/sticky-rules.d.ts +179 -0
  58. package/dist/sticky-rules.js +580 -0
  59. package/dist/sticky.d.ts +216 -0
  60. package/dist/sticky.js +292 -0
  61. package/dist/tx.d.ts +70 -0
  62. package/dist/tx.js +69 -0
  63. package/dist/v3.d.ts +42 -0
  64. package/dist/v3.js +98 -0
  65. package/package.json +58 -4
@@ -0,0 +1,4 @@
1
+ // Generated from web/src/lib/calls-abi.ts (the site's ABIs of the live contracts). Do not edit by hand: node scripts/gen-abis.mjs
2
+ export const callsFactoryAbi = [{ "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": "desk", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "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": "function", "name": "wire", "inputs": [{ "name": "hook_", "type": "address" }, { "name": "desk_", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "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": "event", "name": "Wired", "inputs": [{ "name": "hook", "type": "address", "indexed": false }, { "name": "desk", "type": "address", "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": "NotOwner", "inputs": [] }, { "type": "error", "name": "NotVault", "inputs": [] }];
3
+ export const callsHookAbi = [{ "type": "function", "name": "BITMAP", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "EMA_SECONDS", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "FEE_BPS", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_MOVE", "inputs": [], "outputs": [{ "name": "", "type": "int256" }], "stateMutability": "view" }, { "type": "function", "name": "VAR_SCALE", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "VAR_SECONDS", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "afterSwap", "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": "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": "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": "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": "desk", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "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": "oracleOf", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "spot", "type": "int24" }, { "name": "ema", "type": "int24" }, { "name": "variance", "type": "uint256" }, { "name": "start", "type": "uint40" }], "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": "payPremium", "inputs": [{ "name": "token", "type": "address" }], "outputs": [], "stateMutability": "payable" }, { "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" }, { "name": "top", "type": "int24" }], "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": "statsOf", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "", "type": "tuple", "components": [{ "name": "buyers", "type": "uint32" }, { "name": "buys", "type": "uint32" }, { "name": "sells", "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": "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": "PremiumPaid", "inputs": [{ "name": "token", "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 }, { "name": "top", "type": "int24", "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": "NotDesk", "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 callsDeskAbi = [{ "type": "function", "name": "BAND", "inputs": [], "outputs": [{ "name": "", "type": "int24" }], "stateMutability": "view" }, { "type": "function", "name": "BOND", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "EARLY", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "EXERCISE_BPS", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "GRACE", "inputs": [], "outputs": [{ "name": "", "type": "uint32" }], "stateMutability": "view" }, { "type": "function", "name": "MARKUP_BPS", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_AHEAD", "inputs": [], "outputs": [{ "name": "", "type": "uint8" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_DURATION", "inputs": [], "outputs": [{ "name": "", "type": "uint32" }], "stateMutability": "view" }, { "type": "function", "name": "MIN_DURATION", "inputs": [], "outputs": [{ "name": "", "type": "uint32" }], "stateMutability": "view" }, { "type": "function", "name": "MIN_PREMIUM", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "OPEN_AFTER", "inputs": [], "outputs": [{ "name": "", "type": "uint32" }], "stateMutability": "view" }, { "type": "function", "name": "POOL_MANAGER", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "STEPS", "inputs": [], "outputs": [{ "name": "", "type": "uint8" }], "stateMutability": "view" }, { "type": "function", "name": "STEP_CAP_BPS", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "STEP_TICKS", "inputs": [], "outputs": [{ "name": "", "type": "int24" }], "stateMutability": "view" }, { "type": "function", "name": "VAR_FLOOR", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "VAULT", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "bondsHeld", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "callCount", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "callOf", "inputs": [{ "name": "id", "type": "uint256" }], "outputs": [{ "name": "", "type": "tuple", "components": [{ "name": "owner", "type": "address" }, { "name": "token", "type": "address" }, { "name": "step", "type": "uint8" }, { "name": "opened", "type": "uint40" }, { "name": "expiry", "type": "uint40" }, { "name": "liquidity", "type": "uint128" }, { "name": "coins", "type": "uint128" }, { "name": "premium", "type": "uint128" }] }], "stateMutability": "view" }, { "type": "function", "name": "close", "inputs": [{ "name": "id", "type": "uint256" }, { "name": "minPayout", "type": "uint256" }], "outputs": [{ "name": "payout", "type": "uint256" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "curveOf", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "top", "type": "int24" }, { "name": "liquidity", "type": "uint128" }, { "name": "dust", "type": "uint128" }, { "name": "lastOpenBlock", "type": "uint64" }], "stateMutability": "view" }, { "type": "function", "name": "factory", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "hook", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "lent", "inputs": [{ "name": "", "type": "address" }, { "name": "", "type": "uint8" }], "outputs": [{ "name": "", "type": "uint128" }], "stateMutability": "view" }, { "type": "function", "name": "lockAcquired", "inputs": [{ "name": "data", "type": "bytes" }], "outputs": [{ "name": "", "type": "bytes" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "open", "inputs": [{ "name": "token", "type": "address" }, { "name": "step", "type": "uint8" }, { "name": "coins", "type": "uint128" }, { "name": "duration", "type": "uint32" }, { "name": "maxPremium", "type": "uint256" }], "outputs": [{ "name": "id", "type": "uint256" }], "stateMutability": "payable" }, { "type": "function", "name": "pending", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "pendingTotal", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "quote", "inputs": [{ "name": "token", "type": "address" }, { "name": "step", "type": "uint8" }, { "name": "coins", "type": "uint128" }, { "name": "duration", "type": "uint32" }], "outputs": [{ "name": "premium", "type": "uint256" }, { "name": "liquidity", "type": "uint128" }], "stateMutability": "view" }, { "type": "function", "name": "seed", "inputs": [{ "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": "top", "type": "int24" }], "outputs": [{ "name": "used", "type": "uint256" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "stepOf", "inputs": [{ "name": "token", "type": "address" }, { "name": "k", "type": "uint8" }], "outputs": [{ "name": "lo", "type": "int24" }, { "name": "hi", "type": "int24" }, { "name": "lentLiquidity", "type": "uint128" }, { "name": "capLiquidity", "type": "uint128" }, { "name": "lentCoins", "type": "uint256" }, { "name": "capCoins", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "stepTicks", "inputs": [{ "name": "top", "type": "int24" }, { "name": "k", "type": "uint8" }], "outputs": [{ "name": "lo", "type": "int24" }, { "name": "hi", "type": "int24" }], "stateMutability": "pure" }, { "type": "function", "name": "wire", "inputs": [{ "name": "hook_", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "withdraw", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "CallClosed", "inputs": [{ "name": "id", "type": "uint256", "indexed": true }, { "name": "token", "type": "address", "indexed": true }, { "name": "owner", "type": "address", "indexed": true }, { "name": "closer", "type": "address", "indexed": false }, { "name": "proceeds", "type": "uint256", "indexed": false }, { "name": "bnbBack", "type": "uint256", "indexed": false }, { "name": "coinsSold", "type": "uint256", "indexed": false }, { "name": "fee", "type": "uint256", "indexed": false }, { "name": "payout", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "CallOpened", "inputs": [{ "name": "id", "type": "uint256", "indexed": true }, { "name": "token", "type": "address", "indexed": true }, { "name": "owner", "type": "address", "indexed": true }, { "name": "step", "type": "uint8", "indexed": false }, { "name": "liquidity", "type": "uint128", "indexed": false }, { "name": "coins", "type": "uint256", "indexed": false }, { "name": "premium", "type": "uint256", "indexed": false }, { "name": "expiry", "type": "uint40", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Seeded", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "top", "type": "int24", "indexed": false }, { "name": "liquidity", "type": "uint128", "indexed": false }, { "name": "used", "type": "uint256", "indexed": false }, { "name": "dust", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "error", "name": "AlreadySeeded", "inputs": [] }, { "type": "error", "name": "AlreadyWired", "inputs": [] }, { "type": "error", "name": "Duration", "inputs": [] }, { "type": "error", "name": "Dust", "inputs": [] }, { "type": "error", "name": "InvalidTick", "inputs": [{ "name": "tick", "type": "int24" }] }, { "type": "error", "name": "NoCall", "inputs": [] }, { "type": "error", "name": "NotAbove", "inputs": [] }, { "type": "error", "name": "NotExpired", "inputs": [] }, { "type": "error", "name": "NotFactory", "inputs": [] }, { "type": "error", "name": "NotHook", "inputs": [] }, { "type": "error", "name": "NotVault", "inputs": [] }, { "type": "error", "name": "NotYours", "inputs": [] }, { "type": "error", "name": "NothingPending", "inputs": [] }, { "type": "error", "name": "OffAverage", "inputs": [] }, { "type": "error", "name": "OverCap", "inputs": [] }, { "type": "error", "name": "PartialFill", "inputs": [] }, { "type": "error", "name": "Paused", "inputs": [] }, { "type": "error", "name": "PayoutTooLow", "inputs": [] }, { "type": "error", "name": "PremiumTooHigh", "inputs": [] }, { "type": "error", "name": "Reentrant", "inputs": [] }, { "type": "error", "name": "SameBlock", "inputs": [] }, { "type": "error", "name": "SendFailed", "inputs": [] }, { "type": "error", "name": "TooEarly", "inputs": [] }, { "type": "error", "name": "TooFar", "inputs": [] }, { "type": "error", "name": "TooSmall", "inputs": [] }, { "type": "error", "name": "UnknownCoin", "inputs": [] }, { "type": "error", "name": "Value", "inputs": [] }];
@@ -0,0 +1,449 @@
1
+ /** The ERC20 functions the SDK calls on coins. */
2
+ export declare const erc20Abi: readonly [{
3
+ readonly name: "name";
4
+ readonly type: "function";
5
+ readonly stateMutability: "view";
6
+ readonly inputs: readonly [];
7
+ readonly outputs: readonly [{
8
+ readonly type: "string";
9
+ }];
10
+ }, {
11
+ readonly name: "symbol";
12
+ readonly type: "function";
13
+ readonly stateMutability: "view";
14
+ readonly inputs: readonly [];
15
+ readonly outputs: readonly [{
16
+ readonly type: "string";
17
+ }];
18
+ }, {
19
+ readonly name: "decimals";
20
+ readonly type: "function";
21
+ readonly stateMutability: "view";
22
+ readonly inputs: readonly [];
23
+ readonly outputs: readonly [{
24
+ readonly type: "uint8";
25
+ }];
26
+ }, {
27
+ readonly name: "totalSupply";
28
+ readonly type: "function";
29
+ readonly stateMutability: "view";
30
+ readonly inputs: readonly [];
31
+ readonly outputs: readonly [{
32
+ readonly type: "uint256";
33
+ }];
34
+ }, {
35
+ readonly name: "balanceOf";
36
+ readonly type: "function";
37
+ readonly stateMutability: "view";
38
+ readonly inputs: readonly [{
39
+ readonly type: "address";
40
+ }];
41
+ readonly outputs: readonly [{
42
+ readonly type: "uint256";
43
+ }];
44
+ }, {
45
+ readonly name: "allowance";
46
+ readonly type: "function";
47
+ readonly stateMutability: "view";
48
+ readonly inputs: readonly [{
49
+ readonly type: "address";
50
+ readonly name: "owner";
51
+ }, {
52
+ readonly type: "address";
53
+ readonly name: "spender";
54
+ }];
55
+ readonly outputs: readonly [{
56
+ readonly type: "uint256";
57
+ }];
58
+ }, {
59
+ readonly name: "approve";
60
+ readonly type: "function";
61
+ readonly stateMutability: "nonpayable";
62
+ readonly inputs: readonly [{
63
+ readonly type: "address";
64
+ readonly name: "spender";
65
+ }, {
66
+ readonly type: "uint256";
67
+ readonly name: "amount";
68
+ }];
69
+ readonly outputs: readonly [{
70
+ readonly type: "bool";
71
+ }];
72
+ }, {
73
+ readonly name: "owner";
74
+ readonly type: "function";
75
+ readonly stateMutability: "view";
76
+ readonly inputs: readonly [];
77
+ readonly outputs: readonly [{
78
+ readonly type: "address";
79
+ }];
80
+ }];
81
+ /** Permit2: PancakeSwap's UniversalRouter pulls a seller's coins through it. */
82
+ export declare const permit2Abi: readonly [{
83
+ readonly name: "approve";
84
+ readonly type: "function";
85
+ readonly stateMutability: "nonpayable";
86
+ readonly inputs: readonly [{
87
+ readonly type: "address";
88
+ readonly name: "token";
89
+ }, {
90
+ readonly type: "address";
91
+ readonly name: "spender";
92
+ }, {
93
+ readonly type: "uint160";
94
+ readonly name: "amount";
95
+ }, {
96
+ readonly type: "uint48";
97
+ readonly name: "expiration";
98
+ }];
99
+ readonly outputs: readonly [];
100
+ }, {
101
+ readonly name: "allowance";
102
+ readonly type: "function";
103
+ readonly stateMutability: "view";
104
+ readonly inputs: readonly [{
105
+ readonly type: "address";
106
+ readonly name: "owner";
107
+ }, {
108
+ readonly type: "address";
109
+ readonly name: "token";
110
+ }, {
111
+ readonly type: "address";
112
+ readonly name: "spender";
113
+ }];
114
+ readonly outputs: readonly [{
115
+ readonly type: "uint160";
116
+ readonly name: "amount";
117
+ }, {
118
+ readonly type: "uint48";
119
+ readonly name: "expiration";
120
+ }, {
121
+ readonly type: "uint48";
122
+ readonly name: "nonce";
123
+ }];
124
+ }];
125
+ /** PancakeSwap's UniversalRouter: wallets and terminals trade Infinity pools through it. */
126
+ export declare const universalRouterAbi: readonly [{
127
+ readonly name: "execute";
128
+ readonly type: "function";
129
+ readonly stateMutability: "payable";
130
+ readonly inputs: readonly [{
131
+ readonly type: "bytes";
132
+ readonly name: "commands";
133
+ }, {
134
+ readonly type: "bytes[]";
135
+ readonly name: "inputs";
136
+ }, {
137
+ readonly type: "uint256";
138
+ readonly name: "deadline";
139
+ }];
140
+ readonly outputs: readonly [];
141
+ }];
142
+ /** An Infinity CL pool key, as the pool manager, the router and the quoter take it. */
143
+ export declare const POOL_KEY: {
144
+ readonly type: "tuple";
145
+ readonly components: readonly [{
146
+ readonly name: "currency0";
147
+ readonly type: "address";
148
+ }, {
149
+ readonly name: "currency1";
150
+ readonly type: "address";
151
+ }, {
152
+ readonly name: "hooks";
153
+ readonly type: "address";
154
+ }, {
155
+ readonly name: "poolManager";
156
+ readonly type: "address";
157
+ }, {
158
+ readonly name: "fee";
159
+ readonly type: "uint24";
160
+ }, {
161
+ readonly name: "parameters";
162
+ readonly type: "bytes32";
163
+ }];
164
+ };
165
+ /** The UniversalRouter's CL_SWAP_EXACT_IN_SINGLE parameters. */
166
+ export declare const SWAP_EXACT_IN_SINGLE: readonly [{
167
+ readonly type: "tuple";
168
+ readonly components: readonly [{
169
+ readonly type: "tuple";
170
+ readonly components: readonly [{
171
+ readonly name: "currency0";
172
+ readonly type: "address";
173
+ }, {
174
+ readonly name: "currency1";
175
+ readonly type: "address";
176
+ }, {
177
+ readonly name: "hooks";
178
+ readonly type: "address";
179
+ }, {
180
+ readonly name: "poolManager";
181
+ readonly type: "address";
182
+ }, {
183
+ readonly name: "fee";
184
+ readonly type: "uint24";
185
+ }, {
186
+ readonly name: "parameters";
187
+ readonly type: "bytes32";
188
+ }];
189
+ readonly name: "poolKey";
190
+ }, {
191
+ readonly name: "zeroForOne";
192
+ readonly type: "bool";
193
+ }, {
194
+ readonly name: "amountIn";
195
+ readonly type: "uint128";
196
+ }, {
197
+ readonly name: "amountOutMinimum";
198
+ readonly type: "uint128";
199
+ }, {
200
+ readonly name: "hookData";
201
+ readonly type: "bytes";
202
+ }];
203
+ }];
204
+ /** PancakeSwap Infinity's CL quoter: runs the real swap in an eth_call and reverts with the result. */
205
+ export declare const clQuoterAbi: readonly [{
206
+ readonly type: "function";
207
+ readonly name: "quoteExactInputSingle";
208
+ readonly stateMutability: "nonpayable";
209
+ readonly inputs: readonly [{
210
+ readonly name: "params";
211
+ readonly type: "tuple";
212
+ readonly components: readonly [{
213
+ readonly type: "tuple";
214
+ readonly components: readonly [{
215
+ readonly name: "currency0";
216
+ readonly type: "address";
217
+ }, {
218
+ readonly name: "currency1";
219
+ readonly type: "address";
220
+ }, {
221
+ readonly name: "hooks";
222
+ readonly type: "address";
223
+ }, {
224
+ readonly name: "poolManager";
225
+ readonly type: "address";
226
+ }, {
227
+ readonly name: "fee";
228
+ readonly type: "uint24";
229
+ }, {
230
+ readonly name: "parameters";
231
+ readonly type: "bytes32";
232
+ }];
233
+ readonly name: "poolKey";
234
+ }, {
235
+ readonly name: "zeroForOne";
236
+ readonly type: "bool";
237
+ }, {
238
+ readonly name: "exactAmount";
239
+ readonly type: "uint128";
240
+ }, {
241
+ readonly name: "hookData";
242
+ readonly type: "bytes";
243
+ }];
244
+ }];
245
+ readonly outputs: readonly [{
246
+ readonly name: "amountOut";
247
+ readonly type: "uint256";
248
+ }, {
249
+ readonly name: "gasEstimate";
250
+ readonly type: "uint256";
251
+ }];
252
+ }];
253
+ /** PancakeSwap Infinity's CL pool manager: the price of a pool. */
254
+ export declare const clPoolManagerAbi: readonly [{
255
+ readonly name: "getSlot0";
256
+ readonly type: "function";
257
+ readonly stateMutability: "view";
258
+ readonly inputs: readonly [{
259
+ readonly type: "bytes32";
260
+ readonly name: "id";
261
+ }];
262
+ readonly outputs: readonly [{
263
+ readonly type: "uint160";
264
+ readonly name: "sqrtPriceX96";
265
+ }, {
266
+ readonly type: "int24";
267
+ readonly name: "tick";
268
+ }, {
269
+ readonly type: "uint24";
270
+ readonly name: "protocolFee";
271
+ }, {
272
+ readonly type: "uint24";
273
+ readonly name: "lpFee";
274
+ }];
275
+ }, {
276
+ readonly name: "getLiquidity";
277
+ readonly type: "function";
278
+ readonly stateMutability: "view";
279
+ readonly inputs: readonly [{
280
+ readonly type: "bytes32";
281
+ readonly name: "id";
282
+ }];
283
+ readonly outputs: readonly [{
284
+ readonly type: "uint128";
285
+ readonly name: "liquidity";
286
+ }];
287
+ }];
288
+ /** PancakeSwap V3's SwapRouter (sticky coins trade in a V3 pool of 1 %). */
289
+ export declare const v3RouterAbi: readonly [{
290
+ readonly name: "exactInputSingle";
291
+ readonly type: "function";
292
+ readonly stateMutability: "payable";
293
+ readonly inputs: readonly [{
294
+ readonly type: "tuple";
295
+ readonly components: readonly [{
296
+ readonly type: "address";
297
+ readonly name: "tokenIn";
298
+ }, {
299
+ readonly type: "address";
300
+ readonly name: "tokenOut";
301
+ }, {
302
+ readonly type: "uint24";
303
+ readonly name: "fee";
304
+ }, {
305
+ readonly type: "address";
306
+ readonly name: "recipient";
307
+ }, {
308
+ readonly type: "uint256";
309
+ readonly name: "deadline";
310
+ }, {
311
+ readonly type: "uint256";
312
+ readonly name: "amountIn";
313
+ }, {
314
+ readonly type: "uint256";
315
+ readonly name: "amountOutMinimum";
316
+ }, {
317
+ readonly type: "uint160";
318
+ readonly name: "sqrtPriceLimitX96";
319
+ }];
320
+ }];
321
+ readonly outputs: readonly [{
322
+ readonly type: "uint256";
323
+ readonly name: "amountOut";
324
+ }];
325
+ }, {
326
+ readonly name: "unwrapWETH9";
327
+ readonly type: "function";
328
+ readonly stateMutability: "payable";
329
+ readonly inputs: readonly [{
330
+ readonly type: "uint256";
331
+ readonly name: "amountMinimum";
332
+ }, {
333
+ readonly type: "address";
334
+ readonly name: "recipient";
335
+ }];
336
+ readonly outputs: readonly [];
337
+ }, {
338
+ readonly name: "multicall";
339
+ readonly type: "function";
340
+ readonly stateMutability: "payable";
341
+ readonly inputs: readonly [{
342
+ readonly type: "bytes[]";
343
+ readonly name: "data";
344
+ }];
345
+ readonly outputs: readonly [{
346
+ readonly type: "bytes[]";
347
+ readonly name: "results";
348
+ }];
349
+ }];
350
+ /** PancakeSwap V3's QuoterV2. */
351
+ export declare const v3QuoterAbi: readonly [{
352
+ readonly name: "quoteExactInputSingle";
353
+ readonly type: "function";
354
+ readonly stateMutability: "nonpayable";
355
+ readonly inputs: readonly [{
356
+ readonly type: "tuple";
357
+ readonly components: readonly [{
358
+ readonly type: "address";
359
+ readonly name: "tokenIn";
360
+ }, {
361
+ readonly type: "address";
362
+ readonly name: "tokenOut";
363
+ }, {
364
+ readonly type: "uint256";
365
+ readonly name: "amountIn";
366
+ }, {
367
+ readonly type: "uint24";
368
+ readonly name: "fee";
369
+ }, {
370
+ readonly type: "uint160";
371
+ readonly name: "sqrtPriceLimitX96";
372
+ }];
373
+ }];
374
+ readonly outputs: readonly [{
375
+ readonly type: "uint256";
376
+ readonly name: "amountOut";
377
+ }, {
378
+ readonly type: "uint160";
379
+ readonly name: "sqrtPriceX96After";
380
+ }, {
381
+ readonly type: "uint32";
382
+ readonly name: "initializedTicksCrossed";
383
+ }, {
384
+ readonly type: "uint256";
385
+ readonly name: "gasEstimate";
386
+ }];
387
+ }];
388
+ /** A PancakeSwap V3 pool's price. */
389
+ export declare const v3PoolAbi: readonly [{
390
+ readonly name: "slot0";
391
+ readonly type: "function";
392
+ readonly stateMutability: "view";
393
+ readonly inputs: readonly [];
394
+ readonly outputs: readonly [{
395
+ readonly type: "uint160";
396
+ readonly name: "sqrtPriceX96";
397
+ }, {
398
+ readonly type: "int24";
399
+ readonly name: "tick";
400
+ }, {
401
+ readonly type: "uint16";
402
+ }, {
403
+ readonly type: "uint16";
404
+ }, {
405
+ readonly type: "uint16";
406
+ }, {
407
+ readonly type: "uint32";
408
+ }, {
409
+ readonly type: "bool";
410
+ }];
411
+ }];
412
+ /** PancakeSwap V2. */
413
+ export declare const pancakeV2FactoryAbi: readonly [{
414
+ readonly name: "getPair";
415
+ readonly type: "function";
416
+ readonly stateMutability: "view";
417
+ readonly inputs: readonly [{
418
+ readonly type: "address";
419
+ }, {
420
+ readonly type: "address";
421
+ }];
422
+ readonly outputs: readonly [{
423
+ readonly type: "address";
424
+ }];
425
+ }];
426
+ export declare const v2PairAbi: readonly [{
427
+ readonly name: "token0";
428
+ readonly type: "function";
429
+ readonly stateMutability: "view";
430
+ readonly inputs: readonly [];
431
+ readonly outputs: readonly [{
432
+ readonly type: "address";
433
+ }];
434
+ }, {
435
+ readonly name: "getReserves";
436
+ readonly type: "function";
437
+ readonly stateMutability: "view";
438
+ readonly inputs: readonly [];
439
+ readonly outputs: readonly [{
440
+ readonly type: "uint112";
441
+ readonly name: "reserve0";
442
+ }, {
443
+ readonly type: "uint112";
444
+ readonly name: "reserve1";
445
+ }, {
446
+ readonly type: "uint32";
447
+ readonly name: "blockTimestampLast";
448
+ }];
449
+ }];