pons-client 0.1.1 → 0.3.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/dist/index.cjs +29 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +90 -45
- package/dist/index.d.ts +90 -45
- package/dist/index.js +29 -25
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -25,7 +25,13 @@ declare const PHASE: {
|
|
|
25
25
|
readonly Rescued: 3;
|
|
26
26
|
};
|
|
27
27
|
type Phase = (typeof PHASE)[keyof typeof PHASE];
|
|
28
|
-
/** Snipe tax
|
|
28
|
+
/** Snipe tax decay window in EVM timestamp seconds (block.timestamp units) */
|
|
29
|
+
declare const SNIPE_TAX_DECAY_SECS: 5n;
|
|
30
|
+
/**
|
|
31
|
+
* Snipe tax decay window expressed in nanoseconds (5 seconds).
|
|
32
|
+
* @deprecated Use SNIPE_TAX_DECAY_SECS when comparing against block timestamps.
|
|
33
|
+
* This alias preserves its original nanosecond value for backward compatibility.
|
|
34
|
+
*/
|
|
29
35
|
declare const SNIPE_TAX_DECAY_NS: 5000000000n;
|
|
30
36
|
/** Maximum number of snipe tax exemptions per launch */
|
|
31
37
|
declare const MAX_SNIPE_EXEMPTIONS: 32;
|
|
@@ -272,15 +278,19 @@ interface TradeEvent {
|
|
|
272
278
|
}
|
|
273
279
|
interface FeeSweepEvent {
|
|
274
280
|
poolId: `0x${string}`;
|
|
275
|
-
|
|
276
|
-
|
|
281
|
+
protocolAmount: bigint;
|
|
282
|
+
buybackAmount: bigint;
|
|
283
|
+
creatorAmount: bigint;
|
|
284
|
+
tokensLocked: bigint;
|
|
277
285
|
blockNumber: bigint;
|
|
278
286
|
transactionHash: `0x${string}`;
|
|
279
287
|
}
|
|
280
288
|
interface TakeoverProposalEvent {
|
|
281
289
|
token: Address;
|
|
290
|
+
currentRecipient: Address;
|
|
282
291
|
newRecipient: Address;
|
|
283
292
|
effectiveAt: bigint;
|
|
293
|
+
expiresAt: bigint;
|
|
284
294
|
blockNumber: bigint;
|
|
285
295
|
transactionHash: `0x${string}`;
|
|
286
296
|
}
|
|
@@ -781,10 +791,10 @@ declare const factoryAbi: readonly [{
|
|
|
781
791
|
readonly indexed: true;
|
|
782
792
|
}, {
|
|
783
793
|
readonly type: "uint256";
|
|
784
|
-
readonly name: "
|
|
794
|
+
readonly name: "quoteOut";
|
|
785
795
|
}, {
|
|
786
796
|
readonly type: "uint256";
|
|
787
|
-
readonly name: "
|
|
797
|
+
readonly name: "tokenOut";
|
|
788
798
|
}];
|
|
789
799
|
}, {
|
|
790
800
|
readonly name: "PoolGraduated";
|
|
@@ -794,9 +804,14 @@ declare const factoryAbi: readonly [{
|
|
|
794
804
|
readonly name: "token";
|
|
795
805
|
readonly indexed: true;
|
|
796
806
|
}, {
|
|
797
|
-
readonly type: "
|
|
798
|
-
readonly name: "
|
|
799
|
-
|
|
807
|
+
readonly type: "uint256";
|
|
808
|
+
readonly name: "positionId";
|
|
809
|
+
}, {
|
|
810
|
+
readonly type: "uint256";
|
|
811
|
+
readonly name: "tokenAmount";
|
|
812
|
+
}, {
|
|
813
|
+
readonly type: "uint256";
|
|
814
|
+
readonly name: "pairTokenAmount";
|
|
800
815
|
}];
|
|
801
816
|
}, {
|
|
802
817
|
readonly name: "CreatorFeeRecipientChangeProposed";
|
|
@@ -805,6 +820,10 @@ declare const factoryAbi: readonly [{
|
|
|
805
820
|
readonly type: "address";
|
|
806
821
|
readonly name: "token";
|
|
807
822
|
readonly indexed: true;
|
|
823
|
+
}, {
|
|
824
|
+
readonly type: "address";
|
|
825
|
+
readonly name: "currentRecipient";
|
|
826
|
+
readonly indexed: true;
|
|
808
827
|
}, {
|
|
809
828
|
readonly type: "address";
|
|
810
829
|
readonly name: "newRecipient";
|
|
@@ -812,6 +831,9 @@ declare const factoryAbi: readonly [{
|
|
|
812
831
|
}, {
|
|
813
832
|
readonly type: "uint256";
|
|
814
833
|
readonly name: "effectiveAt";
|
|
834
|
+
}, {
|
|
835
|
+
readonly type: "uint256";
|
|
836
|
+
readonly name: "expiresAt";
|
|
815
837
|
}];
|
|
816
838
|
}, {
|
|
817
839
|
readonly name: "CreatorFeeRecipientUpdated";
|
|
@@ -822,7 +844,7 @@ declare const factoryAbi: readonly [{
|
|
|
822
844
|
readonly indexed: true;
|
|
823
845
|
}, {
|
|
824
846
|
readonly type: "address";
|
|
825
|
-
readonly name: "
|
|
847
|
+
readonly name: "previousRecipient";
|
|
826
848
|
readonly indexed: true;
|
|
827
849
|
}, {
|
|
828
850
|
readonly type: "address";
|
|
@@ -1060,23 +1082,20 @@ declare const curveAbi: readonly [{
|
|
|
1060
1082
|
readonly indexed: true;
|
|
1061
1083
|
}, {
|
|
1062
1084
|
readonly type: "uint256";
|
|
1063
|
-
readonly name: "
|
|
1085
|
+
readonly name: "refund";
|
|
1064
1086
|
}];
|
|
1065
1087
|
}, {
|
|
1066
1088
|
readonly name: "CurveCompleted";
|
|
1067
1089
|
readonly type: "event";
|
|
1068
1090
|
readonly inputs: readonly [{
|
|
1069
1091
|
readonly type: "address";
|
|
1070
|
-
readonly name: "
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
readonly type: "address";
|
|
1078
|
-
readonly name: "token";
|
|
1079
|
-
readonly indexed: true;
|
|
1092
|
+
readonly name: "recipient";
|
|
1093
|
+
}, {
|
|
1094
|
+
readonly type: "uint256";
|
|
1095
|
+
readonly name: "quoteOut";
|
|
1096
|
+
}, {
|
|
1097
|
+
readonly type: "uint256";
|
|
1098
|
+
readonly name: "tokenOut";
|
|
1080
1099
|
}];
|
|
1081
1100
|
}, {
|
|
1082
1101
|
readonly name: "AutoGraduationFailed";
|
|
@@ -1085,28 +1104,27 @@ declare const curveAbi: readonly [{
|
|
|
1085
1104
|
readonly type: "address";
|
|
1086
1105
|
readonly name: "token";
|
|
1087
1106
|
readonly indexed: true;
|
|
1107
|
+
}, {
|
|
1108
|
+
readonly type: "uint256";
|
|
1109
|
+
readonly name: "gasRemaining";
|
|
1088
1110
|
}];
|
|
1089
1111
|
}, {
|
|
1090
1112
|
readonly name: "FeesSwept";
|
|
1091
1113
|
readonly type: "event";
|
|
1092
1114
|
readonly inputs: readonly [{
|
|
1093
1115
|
readonly type: "uint256";
|
|
1094
|
-
readonly name: "
|
|
1116
|
+
readonly name: "protocolAmount";
|
|
1095
1117
|
}, {
|
|
1096
1118
|
readonly type: "uint256";
|
|
1097
|
-
readonly name: "
|
|
1119
|
+
readonly name: "buybackAmount";
|
|
1098
1120
|
}, {
|
|
1099
1121
|
readonly type: "uint256";
|
|
1100
|
-
readonly name: "
|
|
1122
|
+
readonly name: "creatorAmount";
|
|
1101
1123
|
}];
|
|
1102
1124
|
}, {
|
|
1103
1125
|
readonly name: "BuybackLocked";
|
|
1104
1126
|
readonly type: "event";
|
|
1105
1127
|
readonly inputs: readonly [{
|
|
1106
|
-
readonly type: "address";
|
|
1107
|
-
readonly name: "token";
|
|
1108
|
-
readonly indexed: true;
|
|
1109
|
-
}, {
|
|
1110
1128
|
readonly type: "uint256";
|
|
1111
1129
|
readonly name: "quoteSpent";
|
|
1112
1130
|
}, {
|
|
@@ -1320,12 +1338,13 @@ declare const hookAbi: readonly [{
|
|
|
1320
1338
|
readonly indexed: true;
|
|
1321
1339
|
}, {
|
|
1322
1340
|
readonly type: "address";
|
|
1323
|
-
readonly name: "
|
|
1324
|
-
readonly indexed: true;
|
|
1341
|
+
readonly name: "memecoin";
|
|
1325
1342
|
}, {
|
|
1326
1343
|
readonly type: "address";
|
|
1327
1344
|
readonly name: "quoteToken";
|
|
1328
|
-
|
|
1345
|
+
}, {
|
|
1346
|
+
readonly type: "address";
|
|
1347
|
+
readonly name: "creator";
|
|
1329
1348
|
}];
|
|
1330
1349
|
}, {
|
|
1331
1350
|
readonly name: "PoolFeesSwept";
|
|
@@ -1336,13 +1355,16 @@ declare const hookAbi: readonly [{
|
|
|
1336
1355
|
readonly indexed: true;
|
|
1337
1356
|
}, {
|
|
1338
1357
|
readonly type: "uint256";
|
|
1339
|
-
readonly name: "
|
|
1358
|
+
readonly name: "protocolAmount";
|
|
1340
1359
|
}, {
|
|
1341
1360
|
readonly type: "uint256";
|
|
1342
|
-
readonly name: "
|
|
1361
|
+
readonly name: "buybackAmount";
|
|
1343
1362
|
}, {
|
|
1344
1363
|
readonly type: "uint256";
|
|
1345
|
-
readonly name: "
|
|
1364
|
+
readonly name: "creatorAmount";
|
|
1365
|
+
}, {
|
|
1366
|
+
readonly type: "uint256";
|
|
1367
|
+
readonly name: "tokensLocked";
|
|
1346
1368
|
}];
|
|
1347
1369
|
}, {
|
|
1348
1370
|
readonly name: "PoolConversionSkipped";
|
|
@@ -1352,8 +1374,8 @@ declare const hookAbi: readonly [{
|
|
|
1352
1374
|
readonly name: "poolId";
|
|
1353
1375
|
readonly indexed: true;
|
|
1354
1376
|
}, {
|
|
1355
|
-
readonly type: "
|
|
1356
|
-
readonly name: "
|
|
1377
|
+
readonly type: "uint256";
|
|
1378
|
+
readonly name: "retainedMemecoin";
|
|
1357
1379
|
}];
|
|
1358
1380
|
}, {
|
|
1359
1381
|
readonly name: "PoolBuybackSkipped";
|
|
@@ -1363,8 +1385,8 @@ declare const hookAbi: readonly [{
|
|
|
1363
1385
|
readonly name: "poolId";
|
|
1364
1386
|
readonly indexed: true;
|
|
1365
1387
|
}, {
|
|
1366
|
-
readonly type: "
|
|
1367
|
-
readonly name: "
|
|
1388
|
+
readonly type: "uint256";
|
|
1389
|
+
readonly name: "foldedBackQuote";
|
|
1368
1390
|
}];
|
|
1369
1391
|
}];
|
|
1370
1392
|
|
|
@@ -1415,6 +1437,10 @@ declare const escrowAbi: readonly [{
|
|
|
1415
1437
|
readonly type: "address";
|
|
1416
1438
|
readonly name: "recipient";
|
|
1417
1439
|
readonly indexed: true;
|
|
1440
|
+
}, {
|
|
1441
|
+
readonly type: "address";
|
|
1442
|
+
readonly name: "depositor";
|
|
1443
|
+
readonly indexed: true;
|
|
1418
1444
|
}, {
|
|
1419
1445
|
readonly type: "uint256";
|
|
1420
1446
|
readonly name: "amount";
|
|
@@ -1441,6 +1467,10 @@ declare const escrowAbi: readonly [{
|
|
|
1441
1467
|
readonly type: "address";
|
|
1442
1468
|
readonly name: "token";
|
|
1443
1469
|
readonly indexed: true;
|
|
1470
|
+
}, {
|
|
1471
|
+
readonly type: "address";
|
|
1472
|
+
readonly name: "depositor";
|
|
1473
|
+
readonly indexed: true;
|
|
1444
1474
|
}, {
|
|
1445
1475
|
readonly type: "uint256";
|
|
1446
1476
|
readonly name: "amount";
|
|
@@ -1544,12 +1574,16 @@ declare const vaultAbi: readonly [{
|
|
|
1544
1574
|
readonly type: "address";
|
|
1545
1575
|
readonly name: "token";
|
|
1546
1576
|
readonly indexed: true;
|
|
1577
|
+
}, {
|
|
1578
|
+
readonly type: "address";
|
|
1579
|
+
readonly name: "depositor";
|
|
1580
|
+
readonly indexed: true;
|
|
1547
1581
|
}, {
|
|
1548
1582
|
readonly type: "uint256";
|
|
1549
1583
|
readonly name: "amount";
|
|
1550
1584
|
}, {
|
|
1551
1585
|
readonly type: "uint256";
|
|
1552
|
-
readonly name: "
|
|
1586
|
+
readonly name: "newVestingStart";
|
|
1553
1587
|
}];
|
|
1554
1588
|
}, {
|
|
1555
1589
|
readonly name: "Released";
|
|
@@ -1559,12 +1593,11 @@ declare const vaultAbi: readonly [{
|
|
|
1559
1593
|
readonly name: "token";
|
|
1560
1594
|
readonly indexed: true;
|
|
1561
1595
|
}, {
|
|
1562
|
-
readonly type: "
|
|
1563
|
-
readonly name: "
|
|
1564
|
-
readonly indexed: true;
|
|
1596
|
+
readonly type: "uint256";
|
|
1597
|
+
readonly name: "creatorAmount";
|
|
1565
1598
|
}, {
|
|
1566
1599
|
readonly type: "uint256";
|
|
1567
|
-
readonly name: "
|
|
1600
|
+
readonly name: "protocolAmount";
|
|
1568
1601
|
}];
|
|
1569
1602
|
}];
|
|
1570
1603
|
|
|
@@ -1735,10 +1768,10 @@ declare const poolManagerAbi: readonly [{
|
|
|
1735
1768
|
readonly name: "sender";
|
|
1736
1769
|
readonly indexed: true;
|
|
1737
1770
|
}, {
|
|
1738
|
-
readonly type: "
|
|
1771
|
+
readonly type: "int128";
|
|
1739
1772
|
readonly name: "amount0";
|
|
1740
1773
|
}, {
|
|
1741
|
-
readonly type: "
|
|
1774
|
+
readonly type: "int128";
|
|
1742
1775
|
readonly name: "amount1";
|
|
1743
1776
|
}, {
|
|
1744
1777
|
readonly type: "uint160";
|
|
@@ -1749,6 +1782,9 @@ declare const poolManagerAbi: readonly [{
|
|
|
1749
1782
|
}, {
|
|
1750
1783
|
readonly type: "int24";
|
|
1751
1784
|
readonly name: "tick";
|
|
1785
|
+
}, {
|
|
1786
|
+
readonly type: "uint24";
|
|
1787
|
+
readonly name: "fee";
|
|
1752
1788
|
}];
|
|
1753
1789
|
}, {
|
|
1754
1790
|
readonly name: "Initialize";
|
|
@@ -1765,12 +1801,21 @@ declare const poolManagerAbi: readonly [{
|
|
|
1765
1801
|
readonly type: "address";
|
|
1766
1802
|
readonly name: "currency1";
|
|
1767
1803
|
readonly indexed: true;
|
|
1804
|
+
}, {
|
|
1805
|
+
readonly type: "uint24";
|
|
1806
|
+
readonly name: "fee";
|
|
1768
1807
|
}, {
|
|
1769
1808
|
readonly type: "int24";
|
|
1770
1809
|
readonly name: "tickSpacing";
|
|
1771
1810
|
}, {
|
|
1772
1811
|
readonly type: "address";
|
|
1773
1812
|
readonly name: "hooks";
|
|
1813
|
+
}, {
|
|
1814
|
+
readonly type: "uint160";
|
|
1815
|
+
readonly name: "sqrtPriceX96";
|
|
1816
|
+
}, {
|
|
1817
|
+
readonly type: "int24";
|
|
1818
|
+
readonly name: "tick";
|
|
1774
1819
|
}];
|
|
1775
1820
|
}];
|
|
1776
1821
|
|
|
@@ -1859,4 +1904,4 @@ declare function requireValidSlippage(slippageBps: number): void;
|
|
|
1859
1904
|
*/
|
|
1860
1905
|
declare function minOutputWithSlippage(quoted: bigint, slippageBps: number): bigint;
|
|
1861
1906
|
|
|
1862
|
-
export { ADDRESSES, BPS, type BuyQuote, type BuyResult, type BuybackModule, type CurveModule, type CurveReserves, type CurveState, type DeployedAddresses, type EventsModule, type FactoryModule, type FeeBalance, type FeePolicy, type FeeSweepEvent, type FeesModule, type LaunchConfig, type LaunchConfigWithId, type LaunchEvent, type LaunchedToken, MAX_SNIPE_EXEMPTIONS, MIGRATION_CLAIM_WINDOW_SECS, type MigrationEpoch, type MigrationModule, type MigrationStatus, PHASE, type PendingTakeover, type Phase, type PonsClient, type PonsClientConfig, type PonsWallet, type PoolKey, type PoolModule, type QuoteAsset, ROBINHOOD_CHAIN_ID, SNIPE_TAX_DECAY_NS, type SellQuote, type SellResult, type Socials, type TakeoverModule, type TakeoverProposalEvent, type TokenInfo, type TokenParams, type TradeEvent, VESTING_DURATION_SECS, type VestingState, ZERO_ADDRESS, amountIn, amountOut, applyBps, ceilDiv, createPonsClient, curveAbi, escrowAbi, factoryAbi, formatETH, formatTokenAmount, graduationProgress, hookAbi, isValidAddress, marginalPrice, minOutputWithSlippage, normalizeAddress, poolManagerAbi, requirePositiveAmount, requireValidAddress, requireValidCreatorTax, requireValidExemptions, requireValidSlippage, routerAbi, shortenAddress, subtractBps, tokenAbi, vaultAbi };
|
|
1907
|
+
export { ADDRESSES, BPS, type BuyQuote, type BuyResult, type BuybackModule, type CurveModule, type CurveReserves, type CurveState, type DeployedAddresses, type EventsModule, type FactoryModule, type FeeBalance, type FeePolicy, type FeeSweepEvent, type FeesModule, type LaunchConfig, type LaunchConfigWithId, type LaunchEvent, type LaunchedToken, MAX_SNIPE_EXEMPTIONS, MIGRATION_CLAIM_WINDOW_SECS, type MigrationEpoch, type MigrationModule, type MigrationStatus, PHASE, type PendingTakeover, type Phase, type PonsClient, type PonsClientConfig, type PonsWallet, type PoolKey, type PoolModule, type QuoteAsset, ROBINHOOD_CHAIN_ID, SNIPE_TAX_DECAY_NS, SNIPE_TAX_DECAY_SECS, type SellQuote, type SellResult, type Socials, type TakeoverModule, type TakeoverProposalEvent, type TokenInfo, type TokenParams, type TradeEvent, VESTING_DURATION_SECS, type VestingState, ZERO_ADDRESS, amountIn, amountOut, applyBps, ceilDiv, createPonsClient, curveAbi, escrowAbi, factoryAbi, formatETH, formatTokenAmount, graduationProgress, hookAbi, isValidAddress, marginalPrice, minOutputWithSlippage, normalizeAddress, poolManagerAbi, requirePositiveAmount, requireValidAddress, requireValidCreatorTax, requireValidExemptions, requireValidSlippage, routerAbi, shortenAddress, subtractBps, tokenAbi, vaultAbi };
|
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,13 @@ declare const PHASE: {
|
|
|
25
25
|
readonly Rescued: 3;
|
|
26
26
|
};
|
|
27
27
|
type Phase = (typeof PHASE)[keyof typeof PHASE];
|
|
28
|
-
/** Snipe tax
|
|
28
|
+
/** Snipe tax decay window in EVM timestamp seconds (block.timestamp units) */
|
|
29
|
+
declare const SNIPE_TAX_DECAY_SECS: 5n;
|
|
30
|
+
/**
|
|
31
|
+
* Snipe tax decay window expressed in nanoseconds (5 seconds).
|
|
32
|
+
* @deprecated Use SNIPE_TAX_DECAY_SECS when comparing against block timestamps.
|
|
33
|
+
* This alias preserves its original nanosecond value for backward compatibility.
|
|
34
|
+
*/
|
|
29
35
|
declare const SNIPE_TAX_DECAY_NS: 5000000000n;
|
|
30
36
|
/** Maximum number of snipe tax exemptions per launch */
|
|
31
37
|
declare const MAX_SNIPE_EXEMPTIONS: 32;
|
|
@@ -272,15 +278,19 @@ interface TradeEvent {
|
|
|
272
278
|
}
|
|
273
279
|
interface FeeSweepEvent {
|
|
274
280
|
poolId: `0x${string}`;
|
|
275
|
-
|
|
276
|
-
|
|
281
|
+
protocolAmount: bigint;
|
|
282
|
+
buybackAmount: bigint;
|
|
283
|
+
creatorAmount: bigint;
|
|
284
|
+
tokensLocked: bigint;
|
|
277
285
|
blockNumber: bigint;
|
|
278
286
|
transactionHash: `0x${string}`;
|
|
279
287
|
}
|
|
280
288
|
interface TakeoverProposalEvent {
|
|
281
289
|
token: Address;
|
|
290
|
+
currentRecipient: Address;
|
|
282
291
|
newRecipient: Address;
|
|
283
292
|
effectiveAt: bigint;
|
|
293
|
+
expiresAt: bigint;
|
|
284
294
|
blockNumber: bigint;
|
|
285
295
|
transactionHash: `0x${string}`;
|
|
286
296
|
}
|
|
@@ -781,10 +791,10 @@ declare const factoryAbi: readonly [{
|
|
|
781
791
|
readonly indexed: true;
|
|
782
792
|
}, {
|
|
783
793
|
readonly type: "uint256";
|
|
784
|
-
readonly name: "
|
|
794
|
+
readonly name: "quoteOut";
|
|
785
795
|
}, {
|
|
786
796
|
readonly type: "uint256";
|
|
787
|
-
readonly name: "
|
|
797
|
+
readonly name: "tokenOut";
|
|
788
798
|
}];
|
|
789
799
|
}, {
|
|
790
800
|
readonly name: "PoolGraduated";
|
|
@@ -794,9 +804,14 @@ declare const factoryAbi: readonly [{
|
|
|
794
804
|
readonly name: "token";
|
|
795
805
|
readonly indexed: true;
|
|
796
806
|
}, {
|
|
797
|
-
readonly type: "
|
|
798
|
-
readonly name: "
|
|
799
|
-
|
|
807
|
+
readonly type: "uint256";
|
|
808
|
+
readonly name: "positionId";
|
|
809
|
+
}, {
|
|
810
|
+
readonly type: "uint256";
|
|
811
|
+
readonly name: "tokenAmount";
|
|
812
|
+
}, {
|
|
813
|
+
readonly type: "uint256";
|
|
814
|
+
readonly name: "pairTokenAmount";
|
|
800
815
|
}];
|
|
801
816
|
}, {
|
|
802
817
|
readonly name: "CreatorFeeRecipientChangeProposed";
|
|
@@ -805,6 +820,10 @@ declare const factoryAbi: readonly [{
|
|
|
805
820
|
readonly type: "address";
|
|
806
821
|
readonly name: "token";
|
|
807
822
|
readonly indexed: true;
|
|
823
|
+
}, {
|
|
824
|
+
readonly type: "address";
|
|
825
|
+
readonly name: "currentRecipient";
|
|
826
|
+
readonly indexed: true;
|
|
808
827
|
}, {
|
|
809
828
|
readonly type: "address";
|
|
810
829
|
readonly name: "newRecipient";
|
|
@@ -812,6 +831,9 @@ declare const factoryAbi: readonly [{
|
|
|
812
831
|
}, {
|
|
813
832
|
readonly type: "uint256";
|
|
814
833
|
readonly name: "effectiveAt";
|
|
834
|
+
}, {
|
|
835
|
+
readonly type: "uint256";
|
|
836
|
+
readonly name: "expiresAt";
|
|
815
837
|
}];
|
|
816
838
|
}, {
|
|
817
839
|
readonly name: "CreatorFeeRecipientUpdated";
|
|
@@ -822,7 +844,7 @@ declare const factoryAbi: readonly [{
|
|
|
822
844
|
readonly indexed: true;
|
|
823
845
|
}, {
|
|
824
846
|
readonly type: "address";
|
|
825
|
-
readonly name: "
|
|
847
|
+
readonly name: "previousRecipient";
|
|
826
848
|
readonly indexed: true;
|
|
827
849
|
}, {
|
|
828
850
|
readonly type: "address";
|
|
@@ -1060,23 +1082,20 @@ declare const curveAbi: readonly [{
|
|
|
1060
1082
|
readonly indexed: true;
|
|
1061
1083
|
}, {
|
|
1062
1084
|
readonly type: "uint256";
|
|
1063
|
-
readonly name: "
|
|
1085
|
+
readonly name: "refund";
|
|
1064
1086
|
}];
|
|
1065
1087
|
}, {
|
|
1066
1088
|
readonly name: "CurveCompleted";
|
|
1067
1089
|
readonly type: "event";
|
|
1068
1090
|
readonly inputs: readonly [{
|
|
1069
1091
|
readonly type: "address";
|
|
1070
|
-
readonly name: "
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
readonly type: "address";
|
|
1078
|
-
readonly name: "token";
|
|
1079
|
-
readonly indexed: true;
|
|
1092
|
+
readonly name: "recipient";
|
|
1093
|
+
}, {
|
|
1094
|
+
readonly type: "uint256";
|
|
1095
|
+
readonly name: "quoteOut";
|
|
1096
|
+
}, {
|
|
1097
|
+
readonly type: "uint256";
|
|
1098
|
+
readonly name: "tokenOut";
|
|
1080
1099
|
}];
|
|
1081
1100
|
}, {
|
|
1082
1101
|
readonly name: "AutoGraduationFailed";
|
|
@@ -1085,28 +1104,27 @@ declare const curveAbi: readonly [{
|
|
|
1085
1104
|
readonly type: "address";
|
|
1086
1105
|
readonly name: "token";
|
|
1087
1106
|
readonly indexed: true;
|
|
1107
|
+
}, {
|
|
1108
|
+
readonly type: "uint256";
|
|
1109
|
+
readonly name: "gasRemaining";
|
|
1088
1110
|
}];
|
|
1089
1111
|
}, {
|
|
1090
1112
|
readonly name: "FeesSwept";
|
|
1091
1113
|
readonly type: "event";
|
|
1092
1114
|
readonly inputs: readonly [{
|
|
1093
1115
|
readonly type: "uint256";
|
|
1094
|
-
readonly name: "
|
|
1116
|
+
readonly name: "protocolAmount";
|
|
1095
1117
|
}, {
|
|
1096
1118
|
readonly type: "uint256";
|
|
1097
|
-
readonly name: "
|
|
1119
|
+
readonly name: "buybackAmount";
|
|
1098
1120
|
}, {
|
|
1099
1121
|
readonly type: "uint256";
|
|
1100
|
-
readonly name: "
|
|
1122
|
+
readonly name: "creatorAmount";
|
|
1101
1123
|
}];
|
|
1102
1124
|
}, {
|
|
1103
1125
|
readonly name: "BuybackLocked";
|
|
1104
1126
|
readonly type: "event";
|
|
1105
1127
|
readonly inputs: readonly [{
|
|
1106
|
-
readonly type: "address";
|
|
1107
|
-
readonly name: "token";
|
|
1108
|
-
readonly indexed: true;
|
|
1109
|
-
}, {
|
|
1110
1128
|
readonly type: "uint256";
|
|
1111
1129
|
readonly name: "quoteSpent";
|
|
1112
1130
|
}, {
|
|
@@ -1320,12 +1338,13 @@ declare const hookAbi: readonly [{
|
|
|
1320
1338
|
readonly indexed: true;
|
|
1321
1339
|
}, {
|
|
1322
1340
|
readonly type: "address";
|
|
1323
|
-
readonly name: "
|
|
1324
|
-
readonly indexed: true;
|
|
1341
|
+
readonly name: "memecoin";
|
|
1325
1342
|
}, {
|
|
1326
1343
|
readonly type: "address";
|
|
1327
1344
|
readonly name: "quoteToken";
|
|
1328
|
-
|
|
1345
|
+
}, {
|
|
1346
|
+
readonly type: "address";
|
|
1347
|
+
readonly name: "creator";
|
|
1329
1348
|
}];
|
|
1330
1349
|
}, {
|
|
1331
1350
|
readonly name: "PoolFeesSwept";
|
|
@@ -1336,13 +1355,16 @@ declare const hookAbi: readonly [{
|
|
|
1336
1355
|
readonly indexed: true;
|
|
1337
1356
|
}, {
|
|
1338
1357
|
readonly type: "uint256";
|
|
1339
|
-
readonly name: "
|
|
1358
|
+
readonly name: "protocolAmount";
|
|
1340
1359
|
}, {
|
|
1341
1360
|
readonly type: "uint256";
|
|
1342
|
-
readonly name: "
|
|
1361
|
+
readonly name: "buybackAmount";
|
|
1343
1362
|
}, {
|
|
1344
1363
|
readonly type: "uint256";
|
|
1345
|
-
readonly name: "
|
|
1364
|
+
readonly name: "creatorAmount";
|
|
1365
|
+
}, {
|
|
1366
|
+
readonly type: "uint256";
|
|
1367
|
+
readonly name: "tokensLocked";
|
|
1346
1368
|
}];
|
|
1347
1369
|
}, {
|
|
1348
1370
|
readonly name: "PoolConversionSkipped";
|
|
@@ -1352,8 +1374,8 @@ declare const hookAbi: readonly [{
|
|
|
1352
1374
|
readonly name: "poolId";
|
|
1353
1375
|
readonly indexed: true;
|
|
1354
1376
|
}, {
|
|
1355
|
-
readonly type: "
|
|
1356
|
-
readonly name: "
|
|
1377
|
+
readonly type: "uint256";
|
|
1378
|
+
readonly name: "retainedMemecoin";
|
|
1357
1379
|
}];
|
|
1358
1380
|
}, {
|
|
1359
1381
|
readonly name: "PoolBuybackSkipped";
|
|
@@ -1363,8 +1385,8 @@ declare const hookAbi: readonly [{
|
|
|
1363
1385
|
readonly name: "poolId";
|
|
1364
1386
|
readonly indexed: true;
|
|
1365
1387
|
}, {
|
|
1366
|
-
readonly type: "
|
|
1367
|
-
readonly name: "
|
|
1388
|
+
readonly type: "uint256";
|
|
1389
|
+
readonly name: "foldedBackQuote";
|
|
1368
1390
|
}];
|
|
1369
1391
|
}];
|
|
1370
1392
|
|
|
@@ -1415,6 +1437,10 @@ declare const escrowAbi: readonly [{
|
|
|
1415
1437
|
readonly type: "address";
|
|
1416
1438
|
readonly name: "recipient";
|
|
1417
1439
|
readonly indexed: true;
|
|
1440
|
+
}, {
|
|
1441
|
+
readonly type: "address";
|
|
1442
|
+
readonly name: "depositor";
|
|
1443
|
+
readonly indexed: true;
|
|
1418
1444
|
}, {
|
|
1419
1445
|
readonly type: "uint256";
|
|
1420
1446
|
readonly name: "amount";
|
|
@@ -1441,6 +1467,10 @@ declare const escrowAbi: readonly [{
|
|
|
1441
1467
|
readonly type: "address";
|
|
1442
1468
|
readonly name: "token";
|
|
1443
1469
|
readonly indexed: true;
|
|
1470
|
+
}, {
|
|
1471
|
+
readonly type: "address";
|
|
1472
|
+
readonly name: "depositor";
|
|
1473
|
+
readonly indexed: true;
|
|
1444
1474
|
}, {
|
|
1445
1475
|
readonly type: "uint256";
|
|
1446
1476
|
readonly name: "amount";
|
|
@@ -1544,12 +1574,16 @@ declare const vaultAbi: readonly [{
|
|
|
1544
1574
|
readonly type: "address";
|
|
1545
1575
|
readonly name: "token";
|
|
1546
1576
|
readonly indexed: true;
|
|
1577
|
+
}, {
|
|
1578
|
+
readonly type: "address";
|
|
1579
|
+
readonly name: "depositor";
|
|
1580
|
+
readonly indexed: true;
|
|
1547
1581
|
}, {
|
|
1548
1582
|
readonly type: "uint256";
|
|
1549
1583
|
readonly name: "amount";
|
|
1550
1584
|
}, {
|
|
1551
1585
|
readonly type: "uint256";
|
|
1552
|
-
readonly name: "
|
|
1586
|
+
readonly name: "newVestingStart";
|
|
1553
1587
|
}];
|
|
1554
1588
|
}, {
|
|
1555
1589
|
readonly name: "Released";
|
|
@@ -1559,12 +1593,11 @@ declare const vaultAbi: readonly [{
|
|
|
1559
1593
|
readonly name: "token";
|
|
1560
1594
|
readonly indexed: true;
|
|
1561
1595
|
}, {
|
|
1562
|
-
readonly type: "
|
|
1563
|
-
readonly name: "
|
|
1564
|
-
readonly indexed: true;
|
|
1596
|
+
readonly type: "uint256";
|
|
1597
|
+
readonly name: "creatorAmount";
|
|
1565
1598
|
}, {
|
|
1566
1599
|
readonly type: "uint256";
|
|
1567
|
-
readonly name: "
|
|
1600
|
+
readonly name: "protocolAmount";
|
|
1568
1601
|
}];
|
|
1569
1602
|
}];
|
|
1570
1603
|
|
|
@@ -1735,10 +1768,10 @@ declare const poolManagerAbi: readonly [{
|
|
|
1735
1768
|
readonly name: "sender";
|
|
1736
1769
|
readonly indexed: true;
|
|
1737
1770
|
}, {
|
|
1738
|
-
readonly type: "
|
|
1771
|
+
readonly type: "int128";
|
|
1739
1772
|
readonly name: "amount0";
|
|
1740
1773
|
}, {
|
|
1741
|
-
readonly type: "
|
|
1774
|
+
readonly type: "int128";
|
|
1742
1775
|
readonly name: "amount1";
|
|
1743
1776
|
}, {
|
|
1744
1777
|
readonly type: "uint160";
|
|
@@ -1749,6 +1782,9 @@ declare const poolManagerAbi: readonly [{
|
|
|
1749
1782
|
}, {
|
|
1750
1783
|
readonly type: "int24";
|
|
1751
1784
|
readonly name: "tick";
|
|
1785
|
+
}, {
|
|
1786
|
+
readonly type: "uint24";
|
|
1787
|
+
readonly name: "fee";
|
|
1752
1788
|
}];
|
|
1753
1789
|
}, {
|
|
1754
1790
|
readonly name: "Initialize";
|
|
@@ -1765,12 +1801,21 @@ declare const poolManagerAbi: readonly [{
|
|
|
1765
1801
|
readonly type: "address";
|
|
1766
1802
|
readonly name: "currency1";
|
|
1767
1803
|
readonly indexed: true;
|
|
1804
|
+
}, {
|
|
1805
|
+
readonly type: "uint24";
|
|
1806
|
+
readonly name: "fee";
|
|
1768
1807
|
}, {
|
|
1769
1808
|
readonly type: "int24";
|
|
1770
1809
|
readonly name: "tickSpacing";
|
|
1771
1810
|
}, {
|
|
1772
1811
|
readonly type: "address";
|
|
1773
1812
|
readonly name: "hooks";
|
|
1813
|
+
}, {
|
|
1814
|
+
readonly type: "uint160";
|
|
1815
|
+
readonly name: "sqrtPriceX96";
|
|
1816
|
+
}, {
|
|
1817
|
+
readonly type: "int24";
|
|
1818
|
+
readonly name: "tick";
|
|
1774
1819
|
}];
|
|
1775
1820
|
}];
|
|
1776
1821
|
|
|
@@ -1859,4 +1904,4 @@ declare function requireValidSlippage(slippageBps: number): void;
|
|
|
1859
1904
|
*/
|
|
1860
1905
|
declare function minOutputWithSlippage(quoted: bigint, slippageBps: number): bigint;
|
|
1861
1906
|
|
|
1862
|
-
export { ADDRESSES, BPS, type BuyQuote, type BuyResult, type BuybackModule, type CurveModule, type CurveReserves, type CurveState, type DeployedAddresses, type EventsModule, type FactoryModule, type FeeBalance, type FeePolicy, type FeeSweepEvent, type FeesModule, type LaunchConfig, type LaunchConfigWithId, type LaunchEvent, type LaunchedToken, MAX_SNIPE_EXEMPTIONS, MIGRATION_CLAIM_WINDOW_SECS, type MigrationEpoch, type MigrationModule, type MigrationStatus, PHASE, type PendingTakeover, type Phase, type PonsClient, type PonsClientConfig, type PonsWallet, type PoolKey, type PoolModule, type QuoteAsset, ROBINHOOD_CHAIN_ID, SNIPE_TAX_DECAY_NS, type SellQuote, type SellResult, type Socials, type TakeoverModule, type TakeoverProposalEvent, type TokenInfo, type TokenParams, type TradeEvent, VESTING_DURATION_SECS, type VestingState, ZERO_ADDRESS, amountIn, amountOut, applyBps, ceilDiv, createPonsClient, curveAbi, escrowAbi, factoryAbi, formatETH, formatTokenAmount, graduationProgress, hookAbi, isValidAddress, marginalPrice, minOutputWithSlippage, normalizeAddress, poolManagerAbi, requirePositiveAmount, requireValidAddress, requireValidCreatorTax, requireValidExemptions, requireValidSlippage, routerAbi, shortenAddress, subtractBps, tokenAbi, vaultAbi };
|
|
1907
|
+
export { ADDRESSES, BPS, type BuyQuote, type BuyResult, type BuybackModule, type CurveModule, type CurveReserves, type CurveState, type DeployedAddresses, type EventsModule, type FactoryModule, type FeeBalance, type FeePolicy, type FeeSweepEvent, type FeesModule, type LaunchConfig, type LaunchConfigWithId, type LaunchEvent, type LaunchedToken, MAX_SNIPE_EXEMPTIONS, MIGRATION_CLAIM_WINDOW_SECS, type MigrationEpoch, type MigrationModule, type MigrationStatus, PHASE, type PendingTakeover, type Phase, type PonsClient, type PonsClientConfig, type PonsWallet, type PoolKey, type PoolModule, type QuoteAsset, ROBINHOOD_CHAIN_ID, SNIPE_TAX_DECAY_NS, SNIPE_TAX_DECAY_SECS, type SellQuote, type SellResult, type Socials, type TakeoverModule, type TakeoverProposalEvent, type TokenInfo, type TokenParams, type TradeEvent, VESTING_DURATION_SECS, type VestingState, ZERO_ADDRESS, amountIn, amountOut, applyBps, ceilDiv, createPonsClient, curveAbi, escrowAbi, factoryAbi, formatETH, formatTokenAmount, graduationProgress, hookAbi, isValidAddress, marginalPrice, minOutputWithSlippage, normalizeAddress, poolManagerAbi, requirePositiveAmount, requireValidAddress, requireValidCreatorTax, requireValidExemptions, requireValidSlippage, routerAbi, shortenAddress, subtractBps, tokenAbi, vaultAbi };
|