@pickhooks/sdk 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +309 -3
- package/dist/abis/any3.d.ts +2123 -0
- package/dist/abis/any3.js +3 -0
- package/dist/abis/anytax.d.ts +1786 -0
- package/dist/abis/anytax.js +3 -0
- package/dist/abis/calls.d.ts +2515 -0
- package/dist/abis/calls.js +4 -0
- package/dist/abis/common.d.ts +449 -0
- package/dist/abis/common.js +91 -0
- package/dist/abis/dips.d.ts +897 -0
- package/dist/abis/dips.js +2 -0
- package/dist/abis/index.d.ts +12 -0
- package/dist/abis/index.js +12 -0
- package/dist/abis/infra.d.ts +701 -0
- package/dist/abis/infra.js +4 -0
- package/dist/abis/lever.d.ts +1710 -0
- package/dist/abis/lever.js +5 -0
- package/dist/abis/lever2.d.ts +2710 -0
- package/dist/abis/lever2.js +5 -0
- package/dist/abis/pools.d.ts +1898 -0
- package/dist/abis/pools.js +4 -0
- package/dist/abis/sticky.d.ts +953 -0
- package/dist/abis/sticky.js +4 -0
- package/dist/abis/v1.d.ts +1627 -0
- package/dist/abis/v1.js +5 -0
- package/dist/abis/v2.d.ts +3264 -0
- package/dist/abis/v2.js +8 -0
- package/dist/addresses.d.ts +87 -0
- package/dist/addresses.js +62 -0
- package/dist/any.d.ts +447 -0
- package/dist/any.js +729 -0
- package/dist/api.d.ts +62 -0
- package/dist/api.js +30 -0
- package/dist/blocks.d.ts +107 -0
- package/dist/blocks.js +126 -0
- package/dist/coin-rules-config.d.ts +8 -0
- package/dist/coin-rules-config.js +13 -0
- package/dist/coin-rules.d.ts +383 -0
- package/dist/coin-rules.js +878 -0
- package/dist/coins.d.ts +217 -0
- package/dist/coins.js +520 -0
- package/dist/dips.d.ts +133 -0
- package/dist/dips.js +148 -0
- package/dist/errors.d.ts +35 -0
- package/dist/errors.js +347 -0
- package/dist/index.d.ts +73 -0
- package/dist/index.js +58 -0
- package/dist/infinity.d.ts +63 -0
- package/dist/infinity.js +96 -0
- package/dist/infra.d.ts +112 -0
- package/dist/infra.js +114 -0
- package/dist/lever.d.ts +391 -0
- package/dist/lever.js +419 -0
- package/dist/pools.d.ts +274 -0
- package/dist/pools.js +405 -0
- package/dist/sticky-rules.d.ts +179 -0
- package/dist/sticky-rules.js +580 -0
- package/dist/sticky.d.ts +216 -0
- package/dist/sticky.js +292 -0
- package/dist/tx.d.ts +70 -0
- package/dist/tx.js +69 -0
- package/dist/v3.d.ts +42 -0
- package/dist/v3.js +98 -0
- package/package.json +58 -4
package/dist/abis/v1.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Generated from web/src/lib/abi.ts (the site's ABIs of the live contracts). Do not edit by hand: node scripts/gen-abis.mjs
|
|
2
|
+
export const v1TokenAbi = [{ "type": "function", "name": "activate", "inputs": [{ "name": "pool_", "type": "address" }, { "name": "pool2_", "type": "address" }, { "name": "locker_", "type": "address" }, { "name": "curveSupply_", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "allowance", "inputs": [{ "name": "", "type": "address" }, { "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "approve", "inputs": [{ "name": "spender", "type": "address" }, { "name": "amount", "type": "uint256" }], "outputs": [{ "name": "", "type": "bool" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "balanceOf", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "claim", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "creator", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "curveSupply", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "decimals", "inputs": [], "outputs": [{ "name": "", "type": "uint8" }], "stateMutability": "view" }, { "type": "function", "name": "entangledOpen", "inputs": [], "outputs": [{ "name": "", "type": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "factory", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "fundJackpot", "inputs": [], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "fundRewards", "inputs": [], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "isOn", "inputs": [{ "name": "id", "type": "uint8" }], "outputs": [{ "name": "", "type": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "jackpotLast", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "jackpotPot", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "jackpotTime", "inputs": [], "outputs": [{ "name": "", "type": "uint40" }], "stateMutability": "view" }, { "type": "function", "name": "locker", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "marketOpen", "inputs": [], "outputs": [{ "name": "", "type": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "maxWallet", "inputs": [], "outputs": [{ "name": "cap", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "metadata", "inputs": [], "outputs": [{ "name": "", "type": "string" }], "stateMutability": "view" }, { "type": "function", "name": "name", "inputs": [], "outputs": [{ "name": "", "type": "string" }], "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": "pool", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "pool2", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "rewardsPot", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "rules", "inputs": [], "outputs": [{ "name": "", "type": "tuple", "components": [{ "name": "mask", "type": "uint64" }, { "name": "maxWalletBps", "type": "uint16" }, { "name": "riseStartBps", "type": "uint16" }, { "name": "riseStepBps", "type": "uint16" }, { "name": "riseSeconds", "type": "uint32" }, { "name": "chapterStartBps", "type": "uint16" }, { "name": "chapterVolume", "type": "uint128" }, { "name": "clubMax", "type": "uint32" }, { "name": "gateToken", "type": "address" }, { "name": "gateMin", "type": "uint128" }, { "name": "maxTradeBps", "type": "uint16" }, { "name": "buysPerBlock", "type": "uint16" }, { "name": "maxGasPrice", "type": "uint64" }, { "name": "raiseBps", "type": "uint16" }, { "name": "raiseReset", "type": "uint32" }, { "name": "minBuy", "type": "uint128" }, { "name": "slowSeconds", "type": "uint32" }, { "name": "buyLimit", "type": "uint16" }, { "name": "dumpBuyBps", "type": "uint16" }, { "name": "dumpSellBps", "type": "uint16" }, { "name": "curveSmallBps", "type": "uint16" }, { "name": "curveFloorBps", "type": "uint16" }, { "name": "curveBigBagBps", "type": "uint16" }, { "name": "taperStartBps", "type": "uint16" }, { "name": "taperEndBps", "type": "uint16" }, { "name": "taperSoldBps", "type": "uint16" }, { "name": "unlockBuys", "type": "uint16" }, { "name": "devLockSeconds", "type": "uint32" }, { "name": "devCapBps", "type": "uint16" }, { "name": "devGapSeconds", "type": "uint32" }, { "name": "diamondSeconds", "type": "uint32" }, { "name": "cooldownSeconds", "type": "uint32" }, { "name": "jailWindow", "type": "uint32" }, { "name": "jailSeconds", "type": "uint32" }, { "name": "openHour", "type": "uint8" }, { "name": "closeHour", "type": "uint8" }, { "name": "weekdays", "type": "uint8" }, { "name": "sellsOpen", "type": "bool" }, { "name": "sellWindow", "type": "uint32" }, { "name": "sellPeriod", "type": "uint32" }, { "name": "tickSeconds", "type": "uint32" }, { "name": "bellSeconds", "type": "uint32" }, { "name": "bellSoldBps", "type": "uint16" }, { "name": "rewardPerBuy", "type": "uint128" }, { "name": "rewardMinBuy", "type": "uint128" }, { "name": "rewardEveryN", "type": "uint16" }, { "name": "jackpotSilence", "type": "uint32" }, { "name": "jackpotShareBps", "type": "uint16" }, { "name": "jackpotMinBuy", "type": "uint128" }, { "name": "jackpotFeeBps", "type": "uint16" }, { "name": "dipBps", "type": "uint16" }, { "name": "beacon", "type": "address" }, { "name": "beaconTargetBps", "type": "uint16" }, { "name": "partner", "type": "address" }, { "name": "reactBaseBps", "type": "uint16" }, { "name": "reactSensitivity", "type": "uint16" }] }], "stateMutability": "view" }, { "type": "function", "name": "settleJackpot", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "soldBps", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "start", "inputs": [], "outputs": [{ "name": "", "type": "uint40" }], "stateMutability": "view" }, { "type": "function", "name": "stats", "inputs": [], "outputs": [{ "name": "holders", "type": "uint32" }, { "name": "buys", "type": "uint32" }, { "name": "sells", "type": "uint32" }, { "name": "buysSinceSell", "type": "uint32" }, { "name": "lastBuyTime", "type": "uint40" }, { "name": "lastBuyBlock", "type": "uint64" }, { "name": "buysInBlock", "type": "uint16" }, { "name": "lastBuyer", "type": "address" }, { "name": "devLastSend", "type": "uint40" }, { "name": "qualifyingBuys", "type": "uint32" }, { "name": "volume", "type": "uint128" }, { "name": "net", "type": "uint128" }, { "name": "peak", "type": "uint128" }, { "name": "lastBuyAmount", "type": "uint128" }], "stateMutability": "view" }, { "type": "function", "name": "symbol", "inputs": [], "outputs": [{ "name": "", "type": "string" }], "stateMutability": "view" }, { "type": "function", "name": "totalSupply", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "transfer", "inputs": [{ "name": "to", "type": "address" }, { "name": "amount", "type": "uint256" }], "outputs": [{ "name": "", "type": "bool" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "transferFrom", "inputs": [{ "name": "from", "type": "address" }, { "name": "to", "type": "address" }, { "name": "amount", "type": "uint256" }], "outputs": [{ "name": "", "type": "bool" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "until", "inputs": [{ "name": "", "type": "uint8" }], "outputs": [{ "name": "", "type": "uint40" }], "stateMutability": "view" }, { "type": "function", "name": "wallets", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "buys", "type": "uint32" }, { "name": "lastBuy", "type": "uint40" }, { "name": "lastTrade", "type": "uint40" }, { "name": "jailUntil", "type": "uint40" }], "stateMutability": "view" }, { "type": "function", "name": "withdrawRewards", "inputs": [{ "name": "amount", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "Activated", "inputs": [{ "name": "pool", "type": "address", "indexed": false }, { "name": "pool2", "type": "address", "indexed": false }, { "name": "locker", "type": "address", "indexed": false }, { "name": "curveSupply", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Approval", "inputs": [{ "name": "owner", "type": "address", "indexed": true }, { "name": "spender", "type": "address", "indexed": true }, { "name": "value", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Claimed", "inputs": [{ "name": "who", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "JackpotWon", "inputs": [{ "name": "winner", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "PotFunded", "inputs": [{ "name": "jackpot", "type": "bool", "indexed": false }, { "name": "from", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "RewardEarned", "inputs": [{ "name": "buyer", "type": "address", "indexed": true }, { "name": "amount", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Transfer", "inputs": [{ "name": "from", "type": "address", "indexed": true }, { "name": "to", "type": "address", "indexed": true }, { "name": "value", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "error", "name": "Blocked", "inputs": [{ "name": "rule", "type": "uint8" }] }, { "type": "error", "name": "NotCreator", "inputs": [] }, { "type": "error", "name": "NotFactory", "inputs": [] }, { "type": "error", "name": "NothingOwed", "inputs": [] }, { "type": "error", "name": "PayFailed", "inputs": [] }];
|
|
3
|
+
export const v1FactoryAbi = [{ "type": "function", "name": "FEE", "inputs": [], "outputs": [{ "name": "", "type": "uint24" }], "stateMutability": "view" }, { "type": "function", "name": "KNOWN", "inputs": [], "outputs": [{ "name": "", "type": "uint64" }], "stateMutability": "view" }, { "type": "function", "name": "MAX_RULES", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "NPM", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "ROUTER", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "V2", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "WBNB", "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": "deployer", "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": "locker", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "owner", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "platformWallet", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "seedBnb", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "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": "setSeed", "inputs": [{ "name": "seedBnb_", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setStartPrice", "inputs": [{ "name": "sp0", "type": "uint160" }, { "name": "tl0", "type": "int24" }, { "name": "sp1", "type": "uint160" }, { "name": "tu1", "type": "int24" }, { "name": "startFdv_", "type": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "sqrtPrice0", "inputs": [], "outputs": [{ "name": "", "type": "uint160" }], "stateMutability": "view" }, { "type": "function", "name": "sqrtPrice1", "inputs": [], "outputs": [{ "name": "", "type": "uint160" }], "stateMutability": "view" }, { "type": "function", "name": "startFdv", "inputs": [], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "tickLower0", "inputs": [], "outputs": [{ "name": "", "type": "int24" }], "stateMutability": "view" }, { "type": "function", "name": "tickUpper1", "inputs": [], "outputs": [{ "name": "", "type": "int24" }], "stateMutability": "view" }, { "type": "function", "name": "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": "pool", "type": "address", "indexed": false }, { "name": "pair", "type": "address", "indexed": false }, { "name": "tokenId", "type": "uint256", "indexed": false }, { "name": "mask", "type": "uint64", "indexed": false }], "anonymous": false }, { "type": "error", "name": "Bad", "inputs": [{ "name": "what", "type": "string" }] }, { "type": "error", "name": "NotOwner", "inputs": [] }, { "type": "error", "name": "PoolPrice", "inputs": [] }];
|
|
4
|
+
export const v1LockerAbi = [{ "type": "function", "name": "LP_OF_PLATFORM_BPS", "inputs": [], "outputs": [{ "name": "", "type": "uint16" }], "stateMutability": "view" }, { "type": "function", "name": "collect", "inputs": [{ "name": "token", "type": "address" }], "outputs": [{ "name": "bnb", "type": "uint256" }, { "name": "burned", "type": "uint256" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "factory", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "npm", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "onERC721Received", "inputs": [{ "name": "", "type": "address" }, { "name": "", "type": "address" }, { "name": "", "type": "uint256" }, { "name": "", "type": "bytes" }], "outputs": [{ "name": "", "type": "bytes4" }], "stateMutability": "pure" }, { "type": "function", "name": "pending", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "", "type": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "positions", "inputs": [{ "name": "", "type": "address" }], "outputs": [{ "name": "tokenId", "type": "uint256" }, { "name": "pair", "type": "address" }, { "name": "creator", "type": "address" }, { "name": "creatorBps", "type": "uint16" }, { "name": "potBps", "type": "uint16" }, { "name": "tokenIs0", "type": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "register", "inputs": [{ "name": "token", "type": "address" }, { "name": "tokenId", "type": "uint256" }, { "name": "pair", "type": "address" }, { "name": "creator", "type": "address" }, { "name": "creatorBps", "type": "uint16" }, { "name": "potBps", "type": "uint16" }, { "name": "tokenIs0", "type": "bool" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "wbnb", "inputs": [], "outputs": [{ "name": "", "type": "address" }], "stateMutability": "view" }, { "type": "function", "name": "withdrawPending", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "Collected", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "bnb", "type": "uint256", "indexed": false }, { "name": "burned", "type": "uint256", "indexed": false }, { "name": "toCreator", "type": "uint256", "indexed": false }, { "name": "toPot", "type": "uint256", "indexed": false }, { "name": "toPlatform", "type": "uint256", "indexed": false }, { "name": "lpBnb", "type": "uint256", "indexed": false }, { "name": "lpCoins", "type": "uint256", "indexed": false }], "anonymous": false }, { "type": "event", "name": "Registered", "inputs": [{ "name": "token", "type": "address", "indexed": true }, { "name": "tokenId", "type": "uint256", "indexed": false }, { "name": "pair", "type": "address", "indexed": false }, { "name": "creator", "type": "address", "indexed": false }, { "name": "creatorBps", "type": "uint16", "indexed": false }, { "name": "potBps", "type": "uint16", "indexed": false }], "anonymous": false }, { "type": "error", "name": "NotFactory", "inputs": [] }, { "type": "error", "name": "Unknown", "inputs": [] }];
|
|
5
|
+
export const v1BuySimCode = "0x60806040526004361015610011575f80fd5b5f3560e01c63e7627a8614610024575f80fd5b346100d05760603660031901126100d0575f8061003f6100d4565b6100476100ea565b63a9059cbb60e01b60a0526001600160a01b031660a4526044803560c4526080526100726064610114565b60a082608051925af13d156100c8573d9067ffffffffffffffff82116100c357604051916100aa601f8201601f191660200184610137565b82523d5f602084013e5b156100bb57005b602081519101fd5b610100565b6060906100b4565b5f80fd5b600435906001600160a01b03821682036100d057565b602435906001600160a01b03821682036100d057565b634e487b7160e01b5f52604160045260245ffd5b601f80199101166080016080811067ffffffffffffffff8211176100c357604052565b90601f8019910116810190811067ffffffffffffffff8211176100c35760405256fea2646970667358221220fc7894a2da466ca964508f69852d0f91fdeccc10987030d5399013e3c9bcf92c64736f6c634300081c0033";
|