@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.
Files changed (85) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +418 -3
  3. package/dist/abis/agents.d.ts +2418 -0
  4. package/dist/abis/agents.js +4 -0
  5. package/dist/abis/any3.d.ts +2123 -0
  6. package/dist/abis/any3.js +3 -0
  7. package/dist/abis/anytax.d.ts +1786 -0
  8. package/dist/abis/anytax.js +3 -0
  9. package/dist/abis/calls.d.ts +2515 -0
  10. package/dist/abis/calls.js +4 -0
  11. package/dist/abis/common.d.ts +449 -0
  12. package/dist/abis/common.js +91 -0
  13. package/dist/abis/dips.d.ts +897 -0
  14. package/dist/abis/dips.js +2 -0
  15. package/dist/abis/index.d.ts +14 -0
  16. package/dist/abis/index.js +14 -0
  17. package/dist/abis/infra.d.ts +701 -0
  18. package/dist/abis/infra.js +4 -0
  19. package/dist/abis/lever.d.ts +1710 -0
  20. package/dist/abis/lever.js +5 -0
  21. package/dist/abis/lever2.d.ts +2710 -0
  22. package/dist/abis/lever2.js +5 -0
  23. package/dist/abis/pools.d.ts +1898 -0
  24. package/dist/abis/pools.js +4 -0
  25. package/dist/abis/sticky.d.ts +953 -0
  26. package/dist/abis/sticky.js +4 -0
  27. package/dist/abis/sticky2.d.ts +3750 -0
  28. package/dist/abis/sticky2.js +8 -0
  29. package/dist/abis/v1.d.ts +1627 -0
  30. package/dist/abis/v1.js +5 -0
  31. package/dist/abis/v2.d.ts +3264 -0
  32. package/dist/abis/v2.js +8 -0
  33. package/dist/addresses.d.ts +100 -0
  34. package/dist/addresses.js +71 -0
  35. package/dist/agents-catalog.d.ts +318 -0
  36. package/dist/agents-catalog.js +353 -0
  37. package/dist/agents.d.ts +543 -0
  38. package/dist/agents.js +667 -0
  39. package/dist/any.d.ts +447 -0
  40. package/dist/any.js +729 -0
  41. package/dist/api.d.ts +62 -0
  42. package/dist/api.js +30 -0
  43. package/dist/blocks.d.ts +107 -0
  44. package/dist/blocks.js +126 -0
  45. package/dist/coin-rules-config.d.ts +8 -0
  46. package/dist/coin-rules-config.js +13 -0
  47. package/dist/coin-rules.d.ts +383 -0
  48. package/dist/coin-rules.js +878 -0
  49. package/dist/coins.d.ts +217 -0
  50. package/dist/coins.js +520 -0
  51. package/dist/desks.d.ts +298 -0
  52. package/dist/desks.js +343 -0
  53. package/dist/dips.d.ts +133 -0
  54. package/dist/dips.js +148 -0
  55. package/dist/errors.d.ts +35 -0
  56. package/dist/errors.js +414 -0
  57. package/dist/index.d.ts +104 -0
  58. package/dist/index.js +91 -0
  59. package/dist/infinity.d.ts +63 -0
  60. package/dist/infinity.js +96 -0
  61. package/dist/infra.d.ts +112 -0
  62. package/dist/infra.js +114 -0
  63. package/dist/lever.d.ts +391 -0
  64. package/dist/lever.js +419 -0
  65. package/dist/pools.d.ts +274 -0
  66. package/dist/pools.js +405 -0
  67. package/dist/sticky-rules.d.ts +179 -0
  68. package/dist/sticky-rules.js +580 -0
  69. package/dist/sticky-sim.d.ts +125 -0
  70. package/dist/sticky-sim.js +637 -0
  71. package/dist/sticky.d.ts +286 -0
  72. package/dist/sticky.js +420 -0
  73. package/dist/tlock.d.ts +67 -0
  74. package/dist/tlock.js +185 -0
  75. package/dist/tx.d.ts +72 -0
  76. package/dist/tx.js +78 -0
  77. package/dist/v2.d.ts +106 -0
  78. package/dist/v2.js +61 -0
  79. package/dist/v3.d.ts +42 -0
  80. package/dist/v3.js +98 -0
  81. package/dist/wallet.d.ts +80 -0
  82. package/dist/wallet.js +115 -0
  83. package/dist/watch.d.ts +82 -0
  84. package/dist/watch.js +194 -0
  85. package/package.json +67 -4
@@ -0,0 +1,4 @@
1
+ // Generated from out-agents (src/agents), mainnet factory 0x5965e2D2128248ac2CB4FFf312CFB098a1eDA232. Do not edit by hand: node scripts/gen-abis.mjs
2
+ export const agentsFactoryAbi = [{ "type": "function", "name": "MAX_PLATFORM_BPS", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "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": "desk", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "floors", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "hook", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "init", "inputs": [{ "name": "hook_", "type": "address" }, { "name": "desk_", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "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": "p", "type": "tuple", "components": [{ "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": "buyFeeBps", "type": "uint16" }, { "name": "sellFeeBps", "type": "uint16" }, { "name": "burnBps", "type": "uint16" }, { "name": "lpBps", "type": "uint16" }, { "name": "floorBps", "type": "uint16" }, { "name": "rewardsBps", "type": "uint16" }, { "name": "jackpotBps", "type": "uint16" }, { "name": "creatorBps", "type": "uint16" }] }, { "name": "env", "type": "tuple", "components": [{ "name": "maxFeeBps", "type": "uint16" }, { "name": "maxCreatorBps", "type": "uint16" }, { "name": "allowedMask", "type": "uint64" }, { "name": "notice", "type": "uint32" }, { "name": "minGap", "type": "uint32" }, { "name": "vetoBps", "type": "uint16" }, { "name": "fireBps", "type": "uint16" }] }, { "name": "pilot", "type": "address" }, { "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": "platformBps", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "platformWallet", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "setOwner", "inputs": [{ "name": "o", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setPlatform", "inputs": [{ "name": "wallet", "type": "address" }, { "name": "platformBps_", "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": "event", "name": "Launched", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "creator", "type": "address", "indexed": true }, { "name": "poolId", "type": "bytes32", "indexed": true }, { "name": "pilot", "type": "address", "indexed": false }, { "name": "floor", "type": "address", "indexed": false }, { "name": "curveSupply", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "error", "name": "Bad", "inputs": [{ "name": "what", "type": "string" }] }, { "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": "NotReady", "inputs": [] }, { "type": "error", "name": "NotVault", "inputs": [] }];
3
+ export const agentsHookAbi = [{ "type": "function", "name": "BITMAP", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_RUN", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "MIN_LP", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "RUN_GAP", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "STEADY_BPS", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "addLiquidity", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "liquidity", "type": "uint128" }], "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": "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": "burn", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "coinsBurned", "type": "uint256" }], "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": "floor", "type": "address" }, { "name": "start", "type": "uint40" }, { "name": "platformBps", "type": "uint16" }, { "name": "version", "type": "uint64" }, { "name": "curveSupply", "type": "uint128" }], "stateMutability": "view" }, { "type": "function", "name": "collectPlatform", "inputs": [], "outputs": [{ "name": "a", "type": "uint256" }], "stateMutability": "nonpayable" }, { "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": "feedFloor", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "a", "type": "uint256" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "getHooksRegistrationBitmap", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "pure" }, { "type": "function", "name": "give", "inputs": [{ "name": "token", "type": "address" }, { "name": "bucket", "type": "uint8" }], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "lockAcquired", "inputs": [{ "name": "data", "type": "bytes" }], "outputs": [{ "name": "", "type": "bytes" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "move", "inputs": [{ "name": "token", "type": "address" }, { "name": "from", "type": "uint8" }, { "name": "to", "type": "uint8" }, { "name": "amount", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "outside", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "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": "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": "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": "programOf", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "", "type": "bytes" }], "stateMutability": "view" }, { "type": "function", "name": "register", "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": "token", "type": "address" }, { "name": "creator", "type": "address" }, { "name": "floor", "type": "address" }, { "name": "platformBps", "type": "uint16" }, { "name": "curveSupply", "type": "uint128" }, { "name": "program", "type": "bytes" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setDesk", "inputs": [{ "name": "desk_", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setProgram", "inputs": [{ "name": "token", "type": "address" }, { "name": "program", "type": "bytes" }, { "name": "version", "type": "uint64" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "settleJackpot", "inputs": [{ "name": "token", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "stateOf", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "pots", "type": "tuple", "components": [{ "name": "treasury", "type": "uint128" }, { "name": "burn", "type": "uint128" }, { "name": "lp", "type": "uint128" }, { "name": "floor", "type": "uint128" }, { "name": "rewards", "type": "uint128" }, { "name": "jackpot", "type": "uint128" }] }, { "name": "totals", "type": "tuple", "components": [{ "name": "burnedBnb", "type": "uint128" }, { "name": "burnedCoins", "type": "uint128" }, { "name": "lpBnb", "type": "uint128" }, { "name": "lpLiquidity", "type": "uint128" }, { "name": "floorBnb", "type": "uint128" }, { "name": "lpCoins", "type": "uint128" }] }, { "name": "stats", "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" }] }, { "name": "jackpotLast", "type": "address" }, { "name": "jackpotTime", "type": "uint40" }], "stateMutability": "view" }, { "type": "function", "name": "vault", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "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": "event", "name": "Burned", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "bnb", "type": "uint256", "indexed": false }, { "name": "coins", "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": "FloorFed", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "floor", "type": "address", "indexed": false }, { "name": "bnb", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Given", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "bucket", "type": "uint8", "indexed": false }, { "name": "from", "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": "LiquidityAdded", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "bnb", "type": "uint256", "indexed": false }, { "name": "coins", "type": "uint256", "indexed": false }, { "name": "liquidity", "type": "uint128", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Moved", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "from", "type": "uint8", "indexed": false }, { "name": "to", "type": "uint8", "indexed": false }, { "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": "ProgramSet", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "version", "type": "uint64", "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": "floor", "type": "address", "indexed": false }, { "name": "platformBps", "type": "uint16", "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": "BadBucket", "inputs": [] }, { "type": "error", "name": "Blocked", "inputs": [{ "name": "rule", "type": "uint8" }] }, { "type": "error", "name": "DeskSet", "inputs": [] }, { "type": "error", "name": "Empty", "inputs": [] }, { "type": "error", "name": "NoPlatform", "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": "TooSoon", "inputs": [] }, { "type": "error", "name": "UnknownPool", "inputs": [] }, { "type": "error", "name": "Unsteady", "inputs": [] }];
4
+ export const agentsDeskAbi = [{ "type": "function", "name": "activate", "inputs": [{ "name": "token", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "agentOf", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "pilot", "type": "address" }, { "name": "epoch", "type": "uint32" }, { "name": "lastChange", "type": "uint40" }, { "name": "version", "type": "uint64" }, { "name": "env", "type": "tuple", "components": [{ "name": "maxFeeBps", "type": "uint16" }, { "name": "maxCreatorBps", "type": "uint16" }, { "name": "allowedMask", "type": "uint64" }, { "name": "notice", "type": "uint32" }, { "name": "minGap", "type": "uint32" }, { "name": "vetoBps", "type": "uint16" }, { "name": "fireBps", "type": "uint16" }] }], "stateMutability": "view" }, { "type": "function", "name": "cancel", "inputs": [{ "name": "token", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "dueAt", "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": "fire", "inputs": [{ "name": "token", "type": "address" }, { "name": "amount", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "fireOf", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "locked", "type": "uint256" }, { "name": "needed", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "fireTally", "inputs": [{ "name": "", "type": "address" }, { "name": "", "type": "uint32" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "handOver", "inputs": [{ "name": "token", "type": "address" }, { "name": "to", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "hook", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "lastId", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "uint64" }], "stateMutability": "view" }, { "type": "function", "name": "locks", "inputs": [{ "name": "", "type": "address" }, { "name": "", "type": "address" }], "outputs": [{ "name": "amount", "type": "uint128" }, { "name": "vetoId", "type": "uint64" }, { "name": "fireEpoch", "type": "uint32" }, { "name": "vetoing", "type": "bool" }, { "name": "firing", "type": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "move", "inputs": [{ "name": "token", "type": "address" }, { "name": "from", "type": "uint8" }, { "name": "to", "type": "uint8" }, { "name": "amount", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "pendingOf", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "id", "type": "uint64" }, { "name": "activeAt", "type": "uint40" }, { "name": "note", "type": "bytes32" }, { "name": "vetoLocked", "type": "uint256" }, { "name": "vetoNeeded", "type": "uint256" }, { "name": "p", "type": "tuple", "components": [{ "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": "buyFeeBps", "type": "uint16" }, { "name": "sellFeeBps", "type": "uint16" }, { "name": "burnBps", "type": "uint16" }, { "name": "lpBps", "type": "uint16" }, { "name": "floorBps", "type": "uint16" }, { "name": "rewardsBps", "type": "uint16" }, { "name": "jackpotBps", "type": "uint16" }, { "name": "creatorBps", "type": "uint16" }] }], "stateMutability": "view" }, { "type": "function", "name": "propose", "inputs": [{ "name": "token", "type": "address" }, { "name": "p", "type": "tuple", "components": [{ "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": "buyFeeBps", "type": "uint16" }, { "name": "sellFeeBps", "type": "uint16" }, { "name": "burnBps", "type": "uint16" }, { "name": "lpBps", "type": "uint16" }, { "name": "floorBps", "type": "uint16" }, { "name": "rewardsBps", "type": "uint16" }, { "name": "jackpotBps", "type": "uint16" }, { "name": "creatorBps", "type": "uint16" }] }, { "name": "note", "type": "bytes32" }], "outputs": [{ "name": "id", "type": "uint64" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "register", "inputs": [{ "name": "token", "type": "address" }, { "name": "pilot", "type": "address" }, { "name": "env", "type": "tuple", "components": [{ "name": "maxFeeBps", "type": "uint16" }, { "name": "maxCreatorBps", "type": "uint16" }, { "name": "allowedMask", "type": "uint64" }, { "name": "notice", "type": "uint32" }, { "name": "minGap", "type": "uint32" }, { "name": "vetoBps", "type": "uint16" }, { "name": "fireBps", "type": "uint16" }] }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "veto", "inputs": [{ "name": "token", "type": "address" }, { "name": "amount", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "withdraw", "inputs": [{ "name": "token", "type": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "Activated", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "id", "type": "uint64", "indexed": true }, { "name": "note", "type": "bytes32", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Cancelled", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "id", "type": "uint64", "indexed": true }], "anonymous": false }, { "type": "event", "name": "FireBacked", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "who", "type": "address", "indexed": true }, { "name": "epoch", "type": "uint32", "indexed": true }, { "name": "total", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Locked", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "who", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "PilotFired", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "pilot", "type": "address", "indexed": true }, { "name": "locked", "type": "uint256", "indexed": false }, { "name": "needed", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "PilotHandedOver", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "from", "type": "address", "indexed": true }, { "name": "to", "type": "address", "indexed": true }], "anonymous": false }, { "type": "event", "name": "Proposed", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "id", "type": "uint64", "indexed": true }, { "name": "note", "type": "bytes32", "indexed": false }, { "name": "activeAt", "type": "uint40", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Registered", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "pilot", "type": "address", "indexed": true }], "anonymous": false }, { "type": "event", "name": "TreasuryMoved", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "from", "type": "uint8", "indexed": false }, { "name": "to", "type": "uint8", "indexed": false }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "VetoBacked", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "who", "type": "address", "indexed": true }, { "name": "id", "type": "uint64", "indexed": true }, { "name": "total", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Vetoed", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "id", "type": "uint64", "indexed": true }, { "name": "locked", "type": "uint256", "indexed": false }, { "name": "needed", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Withdrawn", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "who", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "error", "name": "Bad", "inputs": [{ "name": "what", "type": "string" }] }, { "type": "error", "name": "Closed", "inputs": [] }, { "type": "error", "name": "NoLock", "inputs": [] }, { "type": "error", "name": "NoPending", "inputs": [] }, { "type": "error", "name": "NoPilot", "inputs": [] }, { "type": "error", "name": "NotFactory", "inputs": [] }, { "type": "error", "name": "NotPilot", "inputs": [] }, { "type": "error", "name": "TooEarly", "inputs": [] }, { "type": "error", "name": "Transfer", "inputs": [] }];