@ubi.fun/sdk 0.1.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 +10 -0
- package/README.md +279 -0
- package/dist/abi/AddressFeeSplitManager.d.cts +938 -0
- package/dist/abi/AddressFeeSplitManager.d.ts +939 -0
- package/dist/abi/AddressFeeSplitManager.d.ts.map +1 -0
- package/dist/abi/BidWall.d.cts +739 -0
- package/dist/abi/BidWall.d.ts +740 -0
- package/dist/abi/BidWall.d.ts.map +1 -0
- package/dist/abi/FairLaunch.d.cts +535 -0
- package/dist/abi/FairLaunch.d.ts +536 -0
- package/dist/abi/FairLaunch.d.ts.map +1 -0
- package/dist/abi/FeeEscrow.d.cts +281 -0
- package/dist/abi/FeeEscrow.d.ts +282 -0
- package/dist/abi/FeeEscrow.d.ts.map +1 -0
- package/dist/abi/Flaunch.d.cts +775 -0
- package/dist/abi/Flaunch.d.ts +776 -0
- package/dist/abi/Flaunch.d.ts.map +1 -0
- package/dist/abi/FlaunchPositionManager.d.cts +2170 -0
- package/dist/abi/FlaunchPositionManager.d.ts +2171 -0
- package/dist/abi/FlaunchPositionManager.d.ts.map +1 -0
- package/dist/abi/FlaunchZap.d.cts +300 -0
- package/dist/abi/FlaunchZap.d.ts +301 -0
- package/dist/abi/FlaunchZap.d.ts.map +1 -0
- package/dist/abi/InitialPrice.d.cts +252 -0
- package/dist/abi/InitialPrice.d.ts +253 -0
- package/dist/abi/InitialPrice.d.ts.map +1 -0
- package/dist/abi/Memecoin.d.cts +680 -0
- package/dist/abi/Memecoin.d.ts +681 -0
- package/dist/abi/Memecoin.d.ts.map +1 -0
- package/dist/abi/Multicall.d.cts +332 -0
- package/dist/abi/Multicall.d.ts +333 -0
- package/dist/abi/Multicall.d.ts.map +1 -0
- package/dist/abi/PoolManager.d.cts +1056 -0
- package/dist/abi/PoolManager.d.ts +1057 -0
- package/dist/abi/PoolManager.d.ts.map +1 -0
- package/dist/abi/PoolSwap.d.cts +89 -0
- package/dist/abi/PoolSwap.d.ts +90 -0
- package/dist/abi/PoolSwap.d.ts.map +1 -0
- package/dist/abi/Quoter.d.cts +485 -0
- package/dist/abi/Quoter.d.ts +486 -0
- package/dist/abi/Quoter.d.ts.map +1 -0
- package/dist/abi/ReferralEscrow.d.cts +459 -0
- package/dist/abi/ReferralEscrow.d.ts +460 -0
- package/dist/abi/ReferralEscrow.d.ts.map +1 -0
- package/dist/abi/TreasuryManager.d.cts +325 -0
- package/dist/abi/TreasuryManager.d.ts +326 -0
- package/dist/abi/TreasuryManager.d.ts.map +1 -0
- package/dist/abi/TreasuryManagerFactory.d.cts +433 -0
- package/dist/abi/TreasuryManagerFactory.d.ts +434 -0
- package/dist/abi/TreasuryManagerFactory.d.ts.map +1 -0
- package/dist/abi/UniversalRewardsDistributor.d.cts +191 -0
- package/dist/abi/UniversalRewardsDistributor.d.ts +192 -0
- package/dist/abi/UniversalRewardsDistributor.d.ts.map +1 -0
- package/dist/abi/XHandleClaims.d.cts +383 -0
- package/dist/abi/XHandleClaims.d.ts +384 -0
- package/dist/abi/XHandleClaims.d.ts.map +1 -0
- package/dist/abi/index.cjs +13541 -0
- package/dist/abi/index.cjs.map +1 -0
- package/dist/abi/index.d.cts +18 -0
- package/dist/abi/index.d.ts +19 -0
- package/dist/abi/index.d.ts.map +1 -0
- package/dist/abi/index.js +13522 -0
- package/dist/abi/index.js.map +1 -0
- package/dist/addresses/index.cjs +90 -0
- package/dist/addresses/index.cjs.map +1 -0
- package/dist/addresses/index.js +70 -0
- package/dist/addresses/index.js.map +1 -0
- package/dist/addresses.d.cts +48 -0
- package/dist/addresses.d.ts +49 -0
- package/dist/addresses.d.ts.map +1 -0
- package/dist/clients/BidWallClient.d.cts +44 -0
- package/dist/clients/BidWallClient.d.ts +45 -0
- package/dist/clients/BidWallClient.d.ts.map +1 -0
- package/dist/clients/FairLaunchClient.d.cts +47 -0
- package/dist/clients/FairLaunchClient.d.ts +48 -0
- package/dist/clients/FairLaunchClient.d.ts.map +1 -0
- package/dist/clients/FeeEscrowClient.d.cts +40 -0
- package/dist/clients/FeeEscrowClient.d.ts +41 -0
- package/dist/clients/FeeEscrowClient.d.ts.map +1 -0
- package/dist/clients/FlaunchClient.d.cts +35 -0
- package/dist/clients/FlaunchClient.d.ts +36 -0
- package/dist/clients/FlaunchClient.d.ts.map +1 -0
- package/dist/clients/FlaunchPositionManagerClient.d.cts +117 -0
- package/dist/clients/FlaunchPositionManagerClient.d.ts +118 -0
- package/dist/clients/FlaunchPositionManagerClient.d.ts.map +1 -0
- package/dist/clients/FlaunchZapClient.d.cts +127 -0
- package/dist/clients/FlaunchZapClient.d.ts +128 -0
- package/dist/clients/FlaunchZapClient.d.ts.map +1 -0
- package/dist/clients/InitialPriceClient.d.cts +32 -0
- package/dist/clients/InitialPriceClient.d.ts +33 -0
- package/dist/clients/InitialPriceClient.d.ts.map +1 -0
- package/dist/clients/MemecoinClient.d.cts +66 -0
- package/dist/clients/MemecoinClient.d.ts +67 -0
- package/dist/clients/MemecoinClient.d.ts.map +1 -0
- package/dist/clients/MulticallClient.d.cts +15 -0
- package/dist/clients/MulticallClient.d.ts +16 -0
- package/dist/clients/MulticallClient.d.ts.map +1 -0
- package/dist/clients/PoolManagerClient.d.cts +50 -0
- package/dist/clients/PoolManagerClient.d.ts +51 -0
- package/dist/clients/PoolManagerClient.d.ts.map +1 -0
- package/dist/clients/PoolSwapClient.d.cts +37 -0
- package/dist/clients/PoolSwapClient.d.ts +38 -0
- package/dist/clients/PoolSwapClient.d.ts.map +1 -0
- package/dist/clients/QuoterClient.d.cts +58 -0
- package/dist/clients/QuoterClient.d.ts +59 -0
- package/dist/clients/QuoterClient.d.ts.map +1 -0
- package/dist/clients/ReferralEscrowClient.d.cts +39 -0
- package/dist/clients/ReferralEscrowClient.d.ts +40 -0
- package/dist/clients/ReferralEscrowClient.d.ts.map +1 -0
- package/dist/clients/TreasuryManagerClient.d.cts +71 -0
- package/dist/clients/TreasuryManagerClient.d.ts +72 -0
- package/dist/clients/TreasuryManagerClient.d.ts.map +1 -0
- package/dist/clients/TreasuryManagerFactoryClient.d.cts +15 -0
- package/dist/clients/TreasuryManagerFactoryClient.d.ts +16 -0
- package/dist/clients/TreasuryManagerFactoryClient.d.ts.map +1 -0
- package/dist/clients/UniversalRewardsDistributorClient.d.cts +45 -0
- package/dist/clients/UniversalRewardsDistributorClient.d.ts +46 -0
- package/dist/clients/UniversalRewardsDistributorClient.d.ts.map +1 -0
- package/dist/clients/XHandleClaimsClient.d.cts +64 -0
- package/dist/clients/XHandleClaimsClient.d.ts +65 -0
- package/dist/clients/XHandleClaimsClient.d.ts.map +1 -0
- package/dist/helpers/chainIdToChain.d.cts +113 -0
- package/dist/helpers/chainIdToChain.d.ts +114 -0
- package/dist/helpers/chainIdToChain.d.ts.map +1 -0
- package/dist/helpers/hex.d.cts +3 -0
- package/dist/helpers/hex.d.ts +4 -0
- package/dist/helpers/hex.d.ts.map +1 -0
- package/dist/helpers/index.cjs +196 -0
- package/dist/helpers/index.cjs.map +1 -0
- package/dist/helpers/index.d.cts +3 -0
- package/dist/helpers/index.d.ts +4 -0
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/helpers/index.js +184 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/helpers/ipfs.d.cts +56 -0
- package/dist/helpers/ipfs.d.ts +57 -0
- package/dist/helpers/ipfs.d.ts.map +1 -0
- package/dist/hooks/FlaunchPositionManagerHooks.d.cts +28 -0
- package/dist/hooks/FlaunchPositionManagerHooks.d.ts +29 -0
- package/dist/hooks/FlaunchPositionManagerHooks.d.ts.map +1 -0
- package/dist/hooks/index.cjs +73 -0
- package/dist/hooks/index.cjs.map +1 -0
- package/dist/hooks/index.d.cts +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +70 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/index.cjs +16808 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +31 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +16718 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.cjs +2 -0
- package/dist/index.umd.cjs.map +1 -0
- package/dist/sdk/FlaunchSDK.d.cts +520 -0
- package/dist/sdk/FlaunchSDK.d.ts +521 -0
- package/dist/sdk/FlaunchSDK.d.ts.map +1 -0
- package/dist/sdk/calldata.d.cts +65 -0
- package/dist/sdk/calldata.d.ts +66 -0
- package/dist/sdk/calldata.d.ts.map +1 -0
- package/dist/sdk/drift.d.cts +20 -0
- package/dist/sdk/drift.d.ts +21 -0
- package/dist/sdk/drift.d.ts.map +1 -0
- package/dist/sdk/factory.d.cts +20 -0
- package/dist/sdk/factory.d.ts +21 -0
- package/dist/sdk/factory.d.ts.map +1 -0
- package/dist/types.d.cts +56 -0
- package/dist/types.d.ts +57 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/index.cjs +455 -0
- package/dist/utils/index.cjs.map +1 -0
- package/dist/utils/index.d.cts +4 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +431 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/parseSwap.d.cts +45 -0
- package/dist/utils/parseSwap.d.ts +46 -0
- package/dist/utils/parseSwap.d.ts.map +1 -0
- package/dist/utils/slippage.d.cts +11 -0
- package/dist/utils/slippage.d.ts +12 -0
- package/dist/utils/slippage.d.ts.map +1 -0
- package/dist/utils/swap.d.cts +49 -0
- package/dist/utils/swap.d.ts +50 -0
- package/dist/utils/swap.d.ts.map +1 -0
- package/dist/utils/univ4.d.cts +78 -0
- package/dist/utils/univ4.d.ts +79 -0
- package/dist/utils/univ4.d.ts.map +1 -0
- package/package.json +161 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const ARC_MAINNET_CHAIN_ID = 5042;
|
|
4
|
+
const ARC_TESTNET_CHAIN_ID = 5042002;
|
|
5
|
+
const USDC_ADDRESS = "0x3600000000000000000000000000000000000000";
|
|
6
|
+
const NativeTokenAddress = {
|
|
7
|
+
[ARC_MAINNET_CHAIN_ID]: USDC_ADDRESS,
|
|
8
|
+
[ARC_TESTNET_CHAIN_ID]: USDC_ADDRESS
|
|
9
|
+
};
|
|
10
|
+
const FlaunchZapAddress = {
|
|
11
|
+
[ARC_MAINNET_CHAIN_ID]: "0xe07F7cA66EC795592385018Dd998F0B50b8A2834",
|
|
12
|
+
[ARC_TESTNET_CHAIN_ID]: "0x3fd667aaa89519772bb44e984de408bfcd40e285"
|
|
13
|
+
};
|
|
14
|
+
const FlaunchPositionManagerAddress = {
|
|
15
|
+
[ARC_MAINNET_CHAIN_ID]: "0xC780c0f4aAc690908854D351b8bFda2812daeFDc",
|
|
16
|
+
[ARC_TESTNET_CHAIN_ID]: "0x88af0b76752ff31aa351cea2cc2e43a1b7c32fdc"
|
|
17
|
+
};
|
|
18
|
+
const FlaunchAddress = {
|
|
19
|
+
[ARC_MAINNET_CHAIN_ID]: "0x93E5A7565008db9688BA5211Fa552d8b108B9c75",
|
|
20
|
+
[ARC_TESTNET_CHAIN_ID]: "0x55a0e1a458f1c13023dbd6b204e2a439c3b44663"
|
|
21
|
+
};
|
|
22
|
+
const FairLaunchAddress = {
|
|
23
|
+
[ARC_MAINNET_CHAIN_ID]: "0xdCDADa707264d9e2B0E8c2feC467860C97434Bd4",
|
|
24
|
+
[ARC_TESTNET_CHAIN_ID]: "0xd2ea5591fe0b5820b6de33afbc3b468d070038ea"
|
|
25
|
+
};
|
|
26
|
+
const BidWallAddress = {
|
|
27
|
+
[ARC_MAINNET_CHAIN_ID]: "0xC5DD30802fefab789Cd9b1e835Bd7301a8D23F8A",
|
|
28
|
+
[ARC_TESTNET_CHAIN_ID]: "0x04f947e5fc0ac42836f880d45705af7483a2c4c0"
|
|
29
|
+
};
|
|
30
|
+
const PoolSwapAddress = {
|
|
31
|
+
[ARC_MAINNET_CHAIN_ID]: "0x3A61B6E86fde5Fc657a48819837F346C7E2Fffa7",
|
|
32
|
+
[ARC_TESTNET_CHAIN_ID]: "0x396d41eb4d110d64491d01cd186548fdc82b1b4a"
|
|
33
|
+
};
|
|
34
|
+
const TreasuryManagerFactoryAddress = {
|
|
35
|
+
[ARC_MAINNET_CHAIN_ID]: "0xE25C132F379DB49C463328eF427E28DBCbD3a2F0",
|
|
36
|
+
[ARC_TESTNET_CHAIN_ID]: "0x093c10b780f7cf8fca9aa7dbc83a64cddf55215f"
|
|
37
|
+
};
|
|
38
|
+
const AddressFeeSplitManagerAddress = {
|
|
39
|
+
[ARC_MAINNET_CHAIN_ID]: "0xde10818344f5ab75ecfA772887cE5751D6Cb91C7",
|
|
40
|
+
[ARC_TESTNET_CHAIN_ID]: "0xA7d182B81aF7B40b6d09Da88A12a4f7ad770e162"
|
|
41
|
+
};
|
|
42
|
+
const FeeEscrowAddress = {
|
|
43
|
+
[ARC_MAINNET_CHAIN_ID]: "0x678f0D1C045e820Ec1d4806749f2629e1035550e",
|
|
44
|
+
[ARC_TESTNET_CHAIN_ID]: "0x59b3269aaf9db83bd3029c84d8b5226fa5702f78"
|
|
45
|
+
};
|
|
46
|
+
const ReferralEscrowAddress = {
|
|
47
|
+
[ARC_MAINNET_CHAIN_ID]: "0xf25B9ceAba005CcCb0cefC4e323e6e519F111eB3",
|
|
48
|
+
[ARC_TESTNET_CHAIN_ID]: "0x51b6a4759f9c9a681349c857f6fd912cdfeb8fef"
|
|
49
|
+
};
|
|
50
|
+
const XHandleClaimsAddress = {
|
|
51
|
+
[ARC_MAINNET_CHAIN_ID]: "0xfC38298590893c39E46D319aEd9EC3bf6CB17A3E",
|
|
52
|
+
[ARC_TESTNET_CHAIN_ID]: "0x6fE2b9e1Da493E4584e742C03e1926a4CD8AC2A1"
|
|
53
|
+
};
|
|
54
|
+
const UniversalRewardsDistributorAddress = {
|
|
55
|
+
[ARC_MAINNET_CHAIN_ID]: "0x66003091e723778d7D3285BB6c24ff3F0Ddcc7F7",
|
|
56
|
+
[ARC_TESTNET_CHAIN_ID]: "0x7a8e9dA46db2be8436c4404476b40F07a31A6d95"
|
|
57
|
+
};
|
|
58
|
+
const PoolManagerAddress = {
|
|
59
|
+
[ARC_MAINNET_CHAIN_ID]: "0x8366a39CC670B4001A1121B8F6A443A643e40951",
|
|
60
|
+
[ARC_TESTNET_CHAIN_ID]: "0x5fb24c800133a0930280788c5eb3468764154309"
|
|
61
|
+
};
|
|
62
|
+
const QuoterAddress = {
|
|
63
|
+
[ARC_MAINNET_CHAIN_ID]: "0x4595D3CD7A6D98d83A719934e829db5076fF1d0d",
|
|
64
|
+
[ARC_TESTNET_CHAIN_ID]: "0xf517623f178Ba90e5b3299cb121D38F5A0733ac4"
|
|
65
|
+
};
|
|
66
|
+
const ApiBaseUrl = {
|
|
67
|
+
[ARC_MAINNET_CHAIN_ID]: "https://api.ubi.fun",
|
|
68
|
+
[ARC_TESTNET_CHAIN_ID]: "https://api-dev.ubi.fun"
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
exports.ARC_MAINNET_CHAIN_ID = ARC_MAINNET_CHAIN_ID;
|
|
72
|
+
exports.ARC_TESTNET_CHAIN_ID = ARC_TESTNET_CHAIN_ID;
|
|
73
|
+
exports.AddressFeeSplitManagerAddress = AddressFeeSplitManagerAddress;
|
|
74
|
+
exports.ApiBaseUrl = ApiBaseUrl;
|
|
75
|
+
exports.BidWallAddress = BidWallAddress;
|
|
76
|
+
exports.FairLaunchAddress = FairLaunchAddress;
|
|
77
|
+
exports.FeeEscrowAddress = FeeEscrowAddress;
|
|
78
|
+
exports.FlaunchAddress = FlaunchAddress;
|
|
79
|
+
exports.FlaunchPositionManagerAddress = FlaunchPositionManagerAddress;
|
|
80
|
+
exports.FlaunchZapAddress = FlaunchZapAddress;
|
|
81
|
+
exports.NativeTokenAddress = NativeTokenAddress;
|
|
82
|
+
exports.PoolManagerAddress = PoolManagerAddress;
|
|
83
|
+
exports.PoolSwapAddress = PoolSwapAddress;
|
|
84
|
+
exports.QuoterAddress = QuoterAddress;
|
|
85
|
+
exports.ReferralEscrowAddress = ReferralEscrowAddress;
|
|
86
|
+
exports.TreasuryManagerFactoryAddress = TreasuryManagerFactoryAddress;
|
|
87
|
+
exports.USDC_ADDRESS = USDC_ADDRESS;
|
|
88
|
+
exports.UniversalRewardsDistributorAddress = UniversalRewardsDistributorAddress;
|
|
89
|
+
exports.XHandleClaimsAddress = XHandleClaimsAddress;
|
|
90
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../src/addresses.ts"],"sourcesContent":["import { Addresses } from \"./types\";\n\n/**\n * ubi.fun deployments on Arc (Circle).\n *\n * Source of truth: deployments/arc-mainnet-5042.json and\n * deployments/arc-testnet-5042002.json in the contracts repo, mirrored by the\n * committed frontend registry. The cash / native asset on Arc is native USDC\n * (6 decimals through its ERC20 interface) at\n * 0x3600000000000000000000000000000000000000: the position manager's\n * \"nativeToken\" slot IS this USDC, and every pool pairs a coin against it.\n * There is no flETH, no WETH wrapping, and no unwrap step on this chain.\n */\nexport const ARC_MAINNET_CHAIN_ID = 5042;\nexport const ARC_TESTNET_CHAIN_ID = 5042002;\n\n/** Arc native USDC (ERC20 interface, 6 decimals). The cash side of every pool. */\nexport const USDC_ADDRESS =\n \"0x3600000000000000000000000000000000000000\" as const;\n\n/**\n * The pool \"native token\": Arc native USDC on both networks. Kept as an\n * Addresses map so client code stays chain-keyed like every other contract.\n */\nexport const NativeTokenAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: USDC_ADDRESS,\n [ARC_TESTNET_CHAIN_ID]: USDC_ADDRESS,\n};\n\nexport const FlaunchZapAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0xe07F7cA66EC795592385018Dd998F0B50b8A2834\",\n [ARC_TESTNET_CHAIN_ID]: \"0x3fd667aaa89519772bb44e984de408bfcd40e285\",\n};\n\n// SDK \"FlaunchPositionManager\" maps to our deployment \"PositionManager\".\nexport const FlaunchPositionManagerAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0xC780c0f4aAc690908854D351b8bFda2812daeFDc\",\n [ARC_TESTNET_CHAIN_ID]: \"0x88af0b76752ff31aa351cea2cc2e43a1b7c32fdc\",\n};\n\nexport const FlaunchAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0x93E5A7565008db9688BA5211Fa552d8b108B9c75\",\n [ARC_TESTNET_CHAIN_ID]: \"0x55a0e1a458f1c13023dbd6b204e2a439c3b44663\",\n};\n\nexport const FairLaunchAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0xdCDADa707264d9e2B0E8c2feC467860C97434Bd4\",\n [ARC_TESTNET_CHAIN_ID]: \"0xd2ea5591fe0b5820b6de33afbc3b468d070038ea\",\n};\n\n// SDK \"BidWall\" maps to our deployment \"BurningBidWall\" (a modified BidWall).\nexport const BidWallAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0xC5DD30802fefab789Cd9b1e835Bd7301a8D23F8A\",\n [ARC_TESTNET_CHAIN_ID]: \"0x04f947e5fc0ac42836f880d45705af7483a2c4c0\",\n};\n\n/** Referrer-aware swap router: the supported way to trade ubi.fun pools. */\nexport const PoolSwapAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0x3A61B6E86fde5Fc657a48819837F346C7E2Fffa7\",\n [ARC_TESTNET_CHAIN_ID]: \"0x396d41eb4d110d64491d01cd186548fdc82b1b4a\",\n};\n\nexport const TreasuryManagerFactoryAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0xE25C132F379DB49C463328eF427E28DBCbD3a2F0\",\n [ARC_TESTNET_CHAIN_ID]: \"0x093c10b780f7cf8fca9aa7dbc83a64cddf55215f\",\n};\n\n// The approved AddressFeeSplitManager IMPLEMENTATION (factory deploys clones).\nexport const AddressFeeSplitManagerAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0xde10818344f5ab75ecfA772887cE5751D6Cb91C7\",\n [ARC_TESTNET_CHAIN_ID]: \"0xA7d182B81aF7B40b6d09Da88A12a4f7ad770e162\",\n};\n\n/** Creator revenue escrow: balances accrue here, claimed as USDC (unwrap=false). */\nexport const FeeEscrowAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0x678f0D1C045e820Ec1d4806749f2629e1035550e\",\n [ARC_TESTNET_CHAIN_ID]: \"0x59b3269aaf9db83bd3029c84d8b5226fa5702f78\",\n};\n\n/** Referrer rewards escrow: 5% of every swap fee routed with your address. */\nexport const ReferralEscrowAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0xf25B9ceAba005CcCb0cefC4e323e6e519F111eB3\",\n [ARC_TESTNET_CHAIN_ID]: \"0x51b6a4759f9c9a681349c857f6fd912cdfeb8fef\",\n};\n\n/** X-handle earnings registry: per-handle CREATE2 escrows + attested claims. */\nexport const XHandleClaimsAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0xfC38298590893c39E46D319aEd9EC3bf6CB17A3E\",\n [ARC_TESTNET_CHAIN_ID]: \"0x6fE2b9e1Da493E4584e742C03e1926a4CD8AC2A1\",\n};\n\n/**\n * Morpho UniversalRewardsDistributor paying the daily USDC holder pool\n * (24% of every swap fee). Claims are Merkle-proofed cumulative amounts.\n */\nexport const UniversalRewardsDistributorAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0x66003091e723778d7D3285BB6c24ff3F0Ddcc7F7\",\n [ARC_TESTNET_CHAIN_ID]: \"0x7a8e9dA46db2be8436c4404476b40F07a31A6d95\",\n};\n\n/** Uniswap v4 PoolManager (canonical deployment on mainnet, ours on testnet). */\nexport const PoolManagerAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0x8366a39CC670B4001A1121B8F6A443A643e40951\",\n [ARC_TESTNET_CHAIN_ID]: \"0x5fb24c800133a0930280788c5eb3468764154309\",\n};\n\nexport const QuoterAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0x4595D3CD7A6D98d83A719934e829db5076fF1d0d\",\n [ARC_TESTNET_CHAIN_ID]: \"0xf517623f178Ba90e5b3299cb121D38F5A0733ac4\",\n};\n\n/** Base URL of the ubi.fun read/upload API serving each network. */\nexport const ApiBaseUrl: { [chainId: number]: string } = {\n [ARC_MAINNET_CHAIN_ID]: \"https://api.ubi.fun\",\n [ARC_TESTNET_CHAIN_ID]: \"https://api-dev.ubi.fun\",\n};\n"],"names":[],"mappings":";;AAaO,MAAM,oBAAA,GAAuB;AAC7B,MAAM,oBAAA,GAAuB;AAG7B,MAAM,YAAA,GACX;AAMK,MAAM,kBAAA,GAAgC;AAAA,EAC3C,CAAC,oBAAoB,GAAG,YAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAEO,MAAM,iBAAA,GAA+B;AAAA,EAC1C,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAGO,MAAM,6BAAA,GAA2C;AAAA,EACtD,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAEO,MAAM,cAAA,GAA4B;AAAA,EACvC,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAEO,MAAM,iBAAA,GAA+B;AAAA,EAC1C,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAGO,MAAM,cAAA,GAA4B;AAAA,EACvC,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAGO,MAAM,eAAA,GAA6B;AAAA,EACxC,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAEO,MAAM,6BAAA,GAA2C;AAAA,EACtD,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAGO,MAAM,6BAAA,GAA2C;AAAA,EACtD,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAGO,MAAM,gBAAA,GAA8B;AAAA,EACzC,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAGO,MAAM,qBAAA,GAAmC;AAAA,EAC9C,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAGO,MAAM,oBAAA,GAAkC;AAAA,EAC7C,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAMO,MAAM,kCAAA,GAAgD;AAAA,EAC3D,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAGO,MAAM,kBAAA,GAAgC;AAAA,EAC3C,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAEO,MAAM,aAAA,GAA2B;AAAA,EACtC,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAGO,MAAM,UAAA,GAA4C;AAAA,EACvD,CAAC,oBAAoB,GAAG,qBAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
const ARC_MAINNET_CHAIN_ID = 5042;
|
|
2
|
+
const ARC_TESTNET_CHAIN_ID = 5042002;
|
|
3
|
+
const USDC_ADDRESS = "0x3600000000000000000000000000000000000000";
|
|
4
|
+
const NativeTokenAddress = {
|
|
5
|
+
[ARC_MAINNET_CHAIN_ID]: USDC_ADDRESS,
|
|
6
|
+
[ARC_TESTNET_CHAIN_ID]: USDC_ADDRESS
|
|
7
|
+
};
|
|
8
|
+
const FlaunchZapAddress = {
|
|
9
|
+
[ARC_MAINNET_CHAIN_ID]: "0xe07F7cA66EC795592385018Dd998F0B50b8A2834",
|
|
10
|
+
[ARC_TESTNET_CHAIN_ID]: "0x3fd667aaa89519772bb44e984de408bfcd40e285"
|
|
11
|
+
};
|
|
12
|
+
const FlaunchPositionManagerAddress = {
|
|
13
|
+
[ARC_MAINNET_CHAIN_ID]: "0xC780c0f4aAc690908854D351b8bFda2812daeFDc",
|
|
14
|
+
[ARC_TESTNET_CHAIN_ID]: "0x88af0b76752ff31aa351cea2cc2e43a1b7c32fdc"
|
|
15
|
+
};
|
|
16
|
+
const FlaunchAddress = {
|
|
17
|
+
[ARC_MAINNET_CHAIN_ID]: "0x93E5A7565008db9688BA5211Fa552d8b108B9c75",
|
|
18
|
+
[ARC_TESTNET_CHAIN_ID]: "0x55a0e1a458f1c13023dbd6b204e2a439c3b44663"
|
|
19
|
+
};
|
|
20
|
+
const FairLaunchAddress = {
|
|
21
|
+
[ARC_MAINNET_CHAIN_ID]: "0xdCDADa707264d9e2B0E8c2feC467860C97434Bd4",
|
|
22
|
+
[ARC_TESTNET_CHAIN_ID]: "0xd2ea5591fe0b5820b6de33afbc3b468d070038ea"
|
|
23
|
+
};
|
|
24
|
+
const BidWallAddress = {
|
|
25
|
+
[ARC_MAINNET_CHAIN_ID]: "0xC5DD30802fefab789Cd9b1e835Bd7301a8D23F8A",
|
|
26
|
+
[ARC_TESTNET_CHAIN_ID]: "0x04f947e5fc0ac42836f880d45705af7483a2c4c0"
|
|
27
|
+
};
|
|
28
|
+
const PoolSwapAddress = {
|
|
29
|
+
[ARC_MAINNET_CHAIN_ID]: "0x3A61B6E86fde5Fc657a48819837F346C7E2Fffa7",
|
|
30
|
+
[ARC_TESTNET_CHAIN_ID]: "0x396d41eb4d110d64491d01cd186548fdc82b1b4a"
|
|
31
|
+
};
|
|
32
|
+
const TreasuryManagerFactoryAddress = {
|
|
33
|
+
[ARC_MAINNET_CHAIN_ID]: "0xE25C132F379DB49C463328eF427E28DBCbD3a2F0",
|
|
34
|
+
[ARC_TESTNET_CHAIN_ID]: "0x093c10b780f7cf8fca9aa7dbc83a64cddf55215f"
|
|
35
|
+
};
|
|
36
|
+
const AddressFeeSplitManagerAddress = {
|
|
37
|
+
[ARC_MAINNET_CHAIN_ID]: "0xde10818344f5ab75ecfA772887cE5751D6Cb91C7",
|
|
38
|
+
[ARC_TESTNET_CHAIN_ID]: "0xA7d182B81aF7B40b6d09Da88A12a4f7ad770e162"
|
|
39
|
+
};
|
|
40
|
+
const FeeEscrowAddress = {
|
|
41
|
+
[ARC_MAINNET_CHAIN_ID]: "0x678f0D1C045e820Ec1d4806749f2629e1035550e",
|
|
42
|
+
[ARC_TESTNET_CHAIN_ID]: "0x59b3269aaf9db83bd3029c84d8b5226fa5702f78"
|
|
43
|
+
};
|
|
44
|
+
const ReferralEscrowAddress = {
|
|
45
|
+
[ARC_MAINNET_CHAIN_ID]: "0xf25B9ceAba005CcCb0cefC4e323e6e519F111eB3",
|
|
46
|
+
[ARC_TESTNET_CHAIN_ID]: "0x51b6a4759f9c9a681349c857f6fd912cdfeb8fef"
|
|
47
|
+
};
|
|
48
|
+
const XHandleClaimsAddress = {
|
|
49
|
+
[ARC_MAINNET_CHAIN_ID]: "0xfC38298590893c39E46D319aEd9EC3bf6CB17A3E",
|
|
50
|
+
[ARC_TESTNET_CHAIN_ID]: "0x6fE2b9e1Da493E4584e742C03e1926a4CD8AC2A1"
|
|
51
|
+
};
|
|
52
|
+
const UniversalRewardsDistributorAddress = {
|
|
53
|
+
[ARC_MAINNET_CHAIN_ID]: "0x66003091e723778d7D3285BB6c24ff3F0Ddcc7F7",
|
|
54
|
+
[ARC_TESTNET_CHAIN_ID]: "0x7a8e9dA46db2be8436c4404476b40F07a31A6d95"
|
|
55
|
+
};
|
|
56
|
+
const PoolManagerAddress = {
|
|
57
|
+
[ARC_MAINNET_CHAIN_ID]: "0x8366a39CC670B4001A1121B8F6A443A643e40951",
|
|
58
|
+
[ARC_TESTNET_CHAIN_ID]: "0x5fb24c800133a0930280788c5eb3468764154309"
|
|
59
|
+
};
|
|
60
|
+
const QuoterAddress = {
|
|
61
|
+
[ARC_MAINNET_CHAIN_ID]: "0x4595D3CD7A6D98d83A719934e829db5076fF1d0d",
|
|
62
|
+
[ARC_TESTNET_CHAIN_ID]: "0xf517623f178Ba90e5b3299cb121D38F5A0733ac4"
|
|
63
|
+
};
|
|
64
|
+
const ApiBaseUrl = {
|
|
65
|
+
[ARC_MAINNET_CHAIN_ID]: "https://api.ubi.fun",
|
|
66
|
+
[ARC_TESTNET_CHAIN_ID]: "https://api-dev.ubi.fun"
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export { ARC_MAINNET_CHAIN_ID, ARC_TESTNET_CHAIN_ID, AddressFeeSplitManagerAddress, ApiBaseUrl, BidWallAddress, FairLaunchAddress, FeeEscrowAddress, FlaunchAddress, FlaunchPositionManagerAddress, FlaunchZapAddress, NativeTokenAddress, PoolManagerAddress, PoolSwapAddress, QuoterAddress, ReferralEscrowAddress, TreasuryManagerFactoryAddress, USDC_ADDRESS, UniversalRewardsDistributorAddress, XHandleClaimsAddress };
|
|
70
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/addresses.ts"],"sourcesContent":["import { Addresses } from \"./types\";\n\n/**\n * ubi.fun deployments on Arc (Circle).\n *\n * Source of truth: deployments/arc-mainnet-5042.json and\n * deployments/arc-testnet-5042002.json in the contracts repo, mirrored by the\n * committed frontend registry. The cash / native asset on Arc is native USDC\n * (6 decimals through its ERC20 interface) at\n * 0x3600000000000000000000000000000000000000: the position manager's\n * \"nativeToken\" slot IS this USDC, and every pool pairs a coin against it.\n * There is no flETH, no WETH wrapping, and no unwrap step on this chain.\n */\nexport const ARC_MAINNET_CHAIN_ID = 5042;\nexport const ARC_TESTNET_CHAIN_ID = 5042002;\n\n/** Arc native USDC (ERC20 interface, 6 decimals). The cash side of every pool. */\nexport const USDC_ADDRESS =\n \"0x3600000000000000000000000000000000000000\" as const;\n\n/**\n * The pool \"native token\": Arc native USDC on both networks. Kept as an\n * Addresses map so client code stays chain-keyed like every other contract.\n */\nexport const NativeTokenAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: USDC_ADDRESS,\n [ARC_TESTNET_CHAIN_ID]: USDC_ADDRESS,\n};\n\nexport const FlaunchZapAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0xe07F7cA66EC795592385018Dd998F0B50b8A2834\",\n [ARC_TESTNET_CHAIN_ID]: \"0x3fd667aaa89519772bb44e984de408bfcd40e285\",\n};\n\n// SDK \"FlaunchPositionManager\" maps to our deployment \"PositionManager\".\nexport const FlaunchPositionManagerAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0xC780c0f4aAc690908854D351b8bFda2812daeFDc\",\n [ARC_TESTNET_CHAIN_ID]: \"0x88af0b76752ff31aa351cea2cc2e43a1b7c32fdc\",\n};\n\nexport const FlaunchAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0x93E5A7565008db9688BA5211Fa552d8b108B9c75\",\n [ARC_TESTNET_CHAIN_ID]: \"0x55a0e1a458f1c13023dbd6b204e2a439c3b44663\",\n};\n\nexport const FairLaunchAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0xdCDADa707264d9e2B0E8c2feC467860C97434Bd4\",\n [ARC_TESTNET_CHAIN_ID]: \"0xd2ea5591fe0b5820b6de33afbc3b468d070038ea\",\n};\n\n// SDK \"BidWall\" maps to our deployment \"BurningBidWall\" (a modified BidWall).\nexport const BidWallAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0xC5DD30802fefab789Cd9b1e835Bd7301a8D23F8A\",\n [ARC_TESTNET_CHAIN_ID]: \"0x04f947e5fc0ac42836f880d45705af7483a2c4c0\",\n};\n\n/** Referrer-aware swap router: the supported way to trade ubi.fun pools. */\nexport const PoolSwapAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0x3A61B6E86fde5Fc657a48819837F346C7E2Fffa7\",\n [ARC_TESTNET_CHAIN_ID]: \"0x396d41eb4d110d64491d01cd186548fdc82b1b4a\",\n};\n\nexport const TreasuryManagerFactoryAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0xE25C132F379DB49C463328eF427E28DBCbD3a2F0\",\n [ARC_TESTNET_CHAIN_ID]: \"0x093c10b780f7cf8fca9aa7dbc83a64cddf55215f\",\n};\n\n// The approved AddressFeeSplitManager IMPLEMENTATION (factory deploys clones).\nexport const AddressFeeSplitManagerAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0xde10818344f5ab75ecfA772887cE5751D6Cb91C7\",\n [ARC_TESTNET_CHAIN_ID]: \"0xA7d182B81aF7B40b6d09Da88A12a4f7ad770e162\",\n};\n\n/** Creator revenue escrow: balances accrue here, claimed as USDC (unwrap=false). */\nexport const FeeEscrowAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0x678f0D1C045e820Ec1d4806749f2629e1035550e\",\n [ARC_TESTNET_CHAIN_ID]: \"0x59b3269aaf9db83bd3029c84d8b5226fa5702f78\",\n};\n\n/** Referrer rewards escrow: 5% of every swap fee routed with your address. */\nexport const ReferralEscrowAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0xf25B9ceAba005CcCb0cefC4e323e6e519F111eB3\",\n [ARC_TESTNET_CHAIN_ID]: \"0x51b6a4759f9c9a681349c857f6fd912cdfeb8fef\",\n};\n\n/** X-handle earnings registry: per-handle CREATE2 escrows + attested claims. */\nexport const XHandleClaimsAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0xfC38298590893c39E46D319aEd9EC3bf6CB17A3E\",\n [ARC_TESTNET_CHAIN_ID]: \"0x6fE2b9e1Da493E4584e742C03e1926a4CD8AC2A1\",\n};\n\n/**\n * Morpho UniversalRewardsDistributor paying the daily USDC holder pool\n * (24% of every swap fee). Claims are Merkle-proofed cumulative amounts.\n */\nexport const UniversalRewardsDistributorAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0x66003091e723778d7D3285BB6c24ff3F0Ddcc7F7\",\n [ARC_TESTNET_CHAIN_ID]: \"0x7a8e9dA46db2be8436c4404476b40F07a31A6d95\",\n};\n\n/** Uniswap v4 PoolManager (canonical deployment on mainnet, ours on testnet). */\nexport const PoolManagerAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0x8366a39CC670B4001A1121B8F6A443A643e40951\",\n [ARC_TESTNET_CHAIN_ID]: \"0x5fb24c800133a0930280788c5eb3468764154309\",\n};\n\nexport const QuoterAddress: Addresses = {\n [ARC_MAINNET_CHAIN_ID]: \"0x4595D3CD7A6D98d83A719934e829db5076fF1d0d\",\n [ARC_TESTNET_CHAIN_ID]: \"0xf517623f178Ba90e5b3299cb121D38F5A0733ac4\",\n};\n\n/** Base URL of the ubi.fun read/upload API serving each network. */\nexport const ApiBaseUrl: { [chainId: number]: string } = {\n [ARC_MAINNET_CHAIN_ID]: \"https://api.ubi.fun\",\n [ARC_TESTNET_CHAIN_ID]: \"https://api-dev.ubi.fun\",\n};\n"],"names":[],"mappings":"AAaO,MAAM,oBAAA,GAAuB;AAC7B,MAAM,oBAAA,GAAuB;AAG7B,MAAM,YAAA,GACX;AAMK,MAAM,kBAAA,GAAgC;AAAA,EAC3C,CAAC,oBAAoB,GAAG,YAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAEO,MAAM,iBAAA,GAA+B;AAAA,EAC1C,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAGO,MAAM,6BAAA,GAA2C;AAAA,EACtD,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAEO,MAAM,cAAA,GAA4B;AAAA,EACvC,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAEO,MAAM,iBAAA,GAA+B;AAAA,EAC1C,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAGO,MAAM,cAAA,GAA4B;AAAA,EACvC,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAGO,MAAM,eAAA,GAA6B;AAAA,EACxC,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAEO,MAAM,6BAAA,GAA2C;AAAA,EACtD,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAGO,MAAM,6BAAA,GAA2C;AAAA,EACtD,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAGO,MAAM,gBAAA,GAA8B;AAAA,EACzC,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAGO,MAAM,qBAAA,GAAmC;AAAA,EAC9C,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAGO,MAAM,oBAAA,GAAkC;AAAA,EAC7C,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAMO,MAAM,kCAAA,GAAgD;AAAA,EAC3D,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAGO,MAAM,kBAAA,GAAgC;AAAA,EAC3C,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAEO,MAAM,aAAA,GAA2B;AAAA,EACtC,CAAC,oBAAoB,GAAG,4CAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;AAGO,MAAM,UAAA,GAA4C;AAAA,EACvD,CAAC,oBAAoB,GAAG,qBAAA;AAAA,EACxB,CAAC,oBAAoB,GAAG;AAC1B;;;;"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Addresses } from "./types.cjs";
|
|
2
|
+
/**
|
|
3
|
+
* ubi.fun deployments on Arc (Circle).
|
|
4
|
+
*
|
|
5
|
+
* Source of truth: deployments/arc-mainnet-5042.json and
|
|
6
|
+
* deployments/arc-testnet-5042002.json in the contracts repo, mirrored by the
|
|
7
|
+
* committed frontend registry. The cash / native asset on Arc is native USDC
|
|
8
|
+
* (6 decimals through its ERC20 interface) at
|
|
9
|
+
* 0x3600000000000000000000000000000000000000: the position manager's
|
|
10
|
+
* "nativeToken" slot IS this USDC, and every pool pairs a coin against it.
|
|
11
|
+
* There is no flETH, no WETH wrapping, and no unwrap step on this chain.
|
|
12
|
+
*/
|
|
13
|
+
export declare const ARC_MAINNET_CHAIN_ID = 5042;
|
|
14
|
+
export declare const ARC_TESTNET_CHAIN_ID = 5042002;
|
|
15
|
+
/** Arc native USDC (ERC20 interface, 6 decimals). The cash side of every pool. */
|
|
16
|
+
export declare const USDC_ADDRESS: "0x3600000000000000000000000000000000000000";
|
|
17
|
+
/**
|
|
18
|
+
* The pool "native token": Arc native USDC on both networks. Kept as an
|
|
19
|
+
* Addresses map so client code stays chain-keyed like every other contract.
|
|
20
|
+
*/
|
|
21
|
+
export declare const NativeTokenAddress: Addresses;
|
|
22
|
+
export declare const FlaunchZapAddress: Addresses;
|
|
23
|
+
export declare const FlaunchPositionManagerAddress: Addresses;
|
|
24
|
+
export declare const FlaunchAddress: Addresses;
|
|
25
|
+
export declare const FairLaunchAddress: Addresses;
|
|
26
|
+
export declare const BidWallAddress: Addresses;
|
|
27
|
+
/** Referrer-aware swap router: the supported way to trade ubi.fun pools. */
|
|
28
|
+
export declare const PoolSwapAddress: Addresses;
|
|
29
|
+
export declare const TreasuryManagerFactoryAddress: Addresses;
|
|
30
|
+
export declare const AddressFeeSplitManagerAddress: Addresses;
|
|
31
|
+
/** Creator revenue escrow: balances accrue here, claimed as USDC (unwrap=false). */
|
|
32
|
+
export declare const FeeEscrowAddress: Addresses;
|
|
33
|
+
/** Referrer rewards escrow: 5% of every swap fee routed with your address. */
|
|
34
|
+
export declare const ReferralEscrowAddress: Addresses;
|
|
35
|
+
/** X-handle earnings registry: per-handle CREATE2 escrows + attested claims. */
|
|
36
|
+
export declare const XHandleClaimsAddress: Addresses;
|
|
37
|
+
/**
|
|
38
|
+
* Morpho UniversalRewardsDistributor paying the daily USDC holder pool
|
|
39
|
+
* (24% of every swap fee). Claims are Merkle-proofed cumulative amounts.
|
|
40
|
+
*/
|
|
41
|
+
export declare const UniversalRewardsDistributorAddress: Addresses;
|
|
42
|
+
/** Uniswap v4 PoolManager (canonical deployment on mainnet, ours on testnet). */
|
|
43
|
+
export declare const PoolManagerAddress: Addresses;
|
|
44
|
+
export declare const QuoterAddress: Addresses;
|
|
45
|
+
/** Base URL of the ubi.fun read/upload API serving each network. */
|
|
46
|
+
export declare const ApiBaseUrl: {
|
|
47
|
+
[chainId: number]: string;
|
|
48
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Addresses } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* ubi.fun deployments on Arc (Circle).
|
|
4
|
+
*
|
|
5
|
+
* Source of truth: deployments/arc-mainnet-5042.json and
|
|
6
|
+
* deployments/arc-testnet-5042002.json in the contracts repo, mirrored by the
|
|
7
|
+
* committed frontend registry. The cash / native asset on Arc is native USDC
|
|
8
|
+
* (6 decimals through its ERC20 interface) at
|
|
9
|
+
* 0x3600000000000000000000000000000000000000: the position manager's
|
|
10
|
+
* "nativeToken" slot IS this USDC, and every pool pairs a coin against it.
|
|
11
|
+
* There is no flETH, no WETH wrapping, and no unwrap step on this chain.
|
|
12
|
+
*/
|
|
13
|
+
export declare const ARC_MAINNET_CHAIN_ID = 5042;
|
|
14
|
+
export declare const ARC_TESTNET_CHAIN_ID = 5042002;
|
|
15
|
+
/** Arc native USDC (ERC20 interface, 6 decimals). The cash side of every pool. */
|
|
16
|
+
export declare const USDC_ADDRESS: "0x3600000000000000000000000000000000000000";
|
|
17
|
+
/**
|
|
18
|
+
* The pool "native token": Arc native USDC on both networks. Kept as an
|
|
19
|
+
* Addresses map so client code stays chain-keyed like every other contract.
|
|
20
|
+
*/
|
|
21
|
+
export declare const NativeTokenAddress: Addresses;
|
|
22
|
+
export declare const FlaunchZapAddress: Addresses;
|
|
23
|
+
export declare const FlaunchPositionManagerAddress: Addresses;
|
|
24
|
+
export declare const FlaunchAddress: Addresses;
|
|
25
|
+
export declare const FairLaunchAddress: Addresses;
|
|
26
|
+
export declare const BidWallAddress: Addresses;
|
|
27
|
+
/** Referrer-aware swap router: the supported way to trade ubi.fun pools. */
|
|
28
|
+
export declare const PoolSwapAddress: Addresses;
|
|
29
|
+
export declare const TreasuryManagerFactoryAddress: Addresses;
|
|
30
|
+
export declare const AddressFeeSplitManagerAddress: Addresses;
|
|
31
|
+
/** Creator revenue escrow: balances accrue here, claimed as USDC (unwrap=false). */
|
|
32
|
+
export declare const FeeEscrowAddress: Addresses;
|
|
33
|
+
/** Referrer rewards escrow: 5% of every swap fee routed with your address. */
|
|
34
|
+
export declare const ReferralEscrowAddress: Addresses;
|
|
35
|
+
/** X-handle earnings registry: per-handle CREATE2 escrows + attested claims. */
|
|
36
|
+
export declare const XHandleClaimsAddress: Addresses;
|
|
37
|
+
/**
|
|
38
|
+
* Morpho UniversalRewardsDistributor paying the daily USDC holder pool
|
|
39
|
+
* (24% of every swap fee). Claims are Merkle-proofed cumulative amounts.
|
|
40
|
+
*/
|
|
41
|
+
export declare const UniversalRewardsDistributorAddress: Addresses;
|
|
42
|
+
/** Uniswap v4 PoolManager (canonical deployment on mainnet, ours on testnet). */
|
|
43
|
+
export declare const PoolManagerAddress: Addresses;
|
|
44
|
+
export declare const QuoterAddress: Addresses;
|
|
45
|
+
/** Base URL of the ubi.fun read/upload API serving each network. */
|
|
46
|
+
export declare const ApiBaseUrl: {
|
|
47
|
+
[chainId: number]: string;
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=addresses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../src/addresses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,OAAO,CAAC;AACzC,eAAO,MAAM,oBAAoB,UAAU,CAAC;AAE5C,kFAAkF;AAClF,eAAO,MAAM,YAAY,EACvB,4CAAqD,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,SAGhC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,SAG/B,CAAC;AAGF,eAAO,MAAM,6BAA6B,EAAE,SAG3C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAG5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,SAG/B,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,SAG5B,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,eAAe,EAAE,SAG7B,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,SAG3C,CAAC;AAGF,eAAO,MAAM,6BAA6B,EAAE,SAG3C,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,gBAAgB,EAAE,SAG9B,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB,EAAE,SAGnC,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,oBAAoB,EAAE,SAGlC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kCAAkC,EAAE,SAGhD,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,kBAAkB,EAAE,SAGhC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SAG3B,CAAC;AAEF,oEAAoE;AACpE,eAAO,MAAM,UAAU,EAAE;IAAE,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAA;CAGnD,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type ReadContract, type Address, type Drift, type HexString } from "@delvtech/drift";
|
|
2
|
+
import { BidwallAbi } from "../abi/BidWall.cjs";
|
|
3
|
+
export type BidwallABI = typeof BidwallAbi;
|
|
4
|
+
/**
|
|
5
|
+
* Client for interacting with the BidWall V1 contract in read-only mode
|
|
6
|
+
* Provides methods to query bid wall positions and pool information
|
|
7
|
+
*/
|
|
8
|
+
export declare class ReadBidWall {
|
|
9
|
+
readonly contract: ReadContract<BidwallABI>;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new ReadBidWall instance
|
|
12
|
+
* @param address - The address of the BidWall contract
|
|
13
|
+
* @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
|
|
14
|
+
* @throws Error if address is not provided
|
|
15
|
+
*/
|
|
16
|
+
constructor(address: Address, drift?: Drift);
|
|
17
|
+
/**
|
|
18
|
+
* Gets information about a bid wall position for a specific pool
|
|
19
|
+
* @param poolId - The ID of the pool
|
|
20
|
+
* @returns Promise<{amount0_: bigint, amount1_: bigint, pendingEth_: bigint}> - Position details including token amounts and pending ETH
|
|
21
|
+
*/
|
|
22
|
+
position({ poolId }: {
|
|
23
|
+
poolId: HexString;
|
|
24
|
+
}): Promise<{
|
|
25
|
+
amount0_: bigint;
|
|
26
|
+
amount1_: bigint;
|
|
27
|
+
pendingEth_: bigint;
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* Gets configuration information about a pool's bid wall
|
|
31
|
+
* @param poolId - The ID of the pool
|
|
32
|
+
* @returns Promise<{tickLower: number, tickUpper: number}> - Pool configuration including tick range
|
|
33
|
+
*/
|
|
34
|
+
poolInfo({ poolId }: {
|
|
35
|
+
poolId: HexString;
|
|
36
|
+
}): Promise<{
|
|
37
|
+
tickLower: number;
|
|
38
|
+
tickUpper: number;
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
initialized: boolean;
|
|
41
|
+
pendingETHFees: bigint;
|
|
42
|
+
cumulativeSwapFees: bigint;
|
|
43
|
+
}>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type ReadContract, type Address, type Drift, type HexString } from "@delvtech/drift";
|
|
2
|
+
import { BidwallAbi } from "../abi/BidWall.js";
|
|
3
|
+
export type BidwallABI = typeof BidwallAbi;
|
|
4
|
+
/**
|
|
5
|
+
* Client for interacting with the BidWall V1 contract in read-only mode
|
|
6
|
+
* Provides methods to query bid wall positions and pool information
|
|
7
|
+
*/
|
|
8
|
+
export declare class ReadBidWall {
|
|
9
|
+
readonly contract: ReadContract<BidwallABI>;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new ReadBidWall instance
|
|
12
|
+
* @param address - The address of the BidWall contract
|
|
13
|
+
* @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
|
|
14
|
+
* @throws Error if address is not provided
|
|
15
|
+
*/
|
|
16
|
+
constructor(address: Address, drift?: Drift);
|
|
17
|
+
/**
|
|
18
|
+
* Gets information about a bid wall position for a specific pool
|
|
19
|
+
* @param poolId - The ID of the pool
|
|
20
|
+
* @returns Promise<{amount0_: bigint, amount1_: bigint, pendingEth_: bigint}> - Position details including token amounts and pending ETH
|
|
21
|
+
*/
|
|
22
|
+
position({ poolId }: {
|
|
23
|
+
poolId: HexString;
|
|
24
|
+
}): Promise<{
|
|
25
|
+
amount0_: bigint;
|
|
26
|
+
amount1_: bigint;
|
|
27
|
+
pendingEth_: bigint;
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* Gets configuration information about a pool's bid wall
|
|
31
|
+
* @param poolId - The ID of the pool
|
|
32
|
+
* @returns Promise<{tickLower: number, tickUpper: number}> - Pool configuration including tick range
|
|
33
|
+
*/
|
|
34
|
+
poolInfo({ poolId }: {
|
|
35
|
+
poolId: HexString;
|
|
36
|
+
}): Promise<{
|
|
37
|
+
tickLower: number;
|
|
38
|
+
tickUpper: number;
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
initialized: boolean;
|
|
41
|
+
pendingETHFees: bigint;
|
|
42
|
+
cumulativeSwapFees: bigint;
|
|
43
|
+
}>;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=BidWallClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BidWallClient.d.ts","sourceRoot":"","sources":["../../src/clients/BidWallClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EAIV,KAAK,SAAS,EAEf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC;AAE3C;;;GAGG;AACH,qBAAa,WAAW;IACtB,SAAgB,QAAQ,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IAEnD;;;;;OAKG;gBACS,OAAO,EAAE,OAAO,EAAE,KAAK,GAAE,KAAqB;IAW1D;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE;;;;;IAM1C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE;;;;;;;;CAK3C"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type ReadContract, type Address, type Drift, type HexString } from "@delvtech/drift";
|
|
2
|
+
import { FairLaunchAbi } from "../abi/FairLaunch.cjs";
|
|
3
|
+
export type FairLaunchABI = typeof FairLaunchAbi;
|
|
4
|
+
/**
|
|
5
|
+
* Client for interacting with the FairLaunch V1 contract in read-only mode
|
|
6
|
+
* Provides methods to query fair launch information and status
|
|
7
|
+
*/
|
|
8
|
+
export declare class ReadFairLaunch {
|
|
9
|
+
readonly contract: ReadContract<FairLaunchABI>;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new ReadFairLaunch instance
|
|
12
|
+
* @param address - The address of the FairLaunch contract
|
|
13
|
+
* @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
|
|
14
|
+
* @throws Error if address is not provided
|
|
15
|
+
*/
|
|
16
|
+
constructor(address: Address, drift?: Drift);
|
|
17
|
+
/**
|
|
18
|
+
* Gets the fair launch duration in seconds for a pool. Per-pool since v5
|
|
19
|
+
* (the launcher chooses it in FlaunchParams.fairLaunchDuration).
|
|
20
|
+
*/
|
|
21
|
+
fairLaunchDuration({ poolId }: {
|
|
22
|
+
poolId: HexString;
|
|
23
|
+
}): Promise<number>;
|
|
24
|
+
/**
|
|
25
|
+
* Gets information about a fair launch for a specific pool
|
|
26
|
+
* @param poolId - The ID of the pool
|
|
27
|
+
* @returns Promise<{initialTick: number, closed: boolean, endsAt: number}> - Fair launch details
|
|
28
|
+
*/
|
|
29
|
+
fairLaunchInfo({ poolId }: {
|
|
30
|
+
poolId: HexString;
|
|
31
|
+
}): Promise<{
|
|
32
|
+
startsAt: bigint;
|
|
33
|
+
endsAt: bigint;
|
|
34
|
+
initialTick: number;
|
|
35
|
+
revenue: bigint;
|
|
36
|
+
supply: bigint;
|
|
37
|
+
closed: boolean;
|
|
38
|
+
}>;
|
|
39
|
+
/**
|
|
40
|
+
* Checks if a fair launch is currently active
|
|
41
|
+
* @param poolId - The ID of the pool
|
|
42
|
+
* @returns Promise<boolean> - True if the fair launch is active (not closed and not expired), false otherwise
|
|
43
|
+
*/
|
|
44
|
+
isFairLaunchActive({ poolId }: {
|
|
45
|
+
poolId: HexString;
|
|
46
|
+
}): Promise<boolean>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type ReadContract, type Address, type Drift, type HexString } from "@delvtech/drift";
|
|
2
|
+
import { FairLaunchAbi } from "../abi/FairLaunch.js";
|
|
3
|
+
export type FairLaunchABI = typeof FairLaunchAbi;
|
|
4
|
+
/**
|
|
5
|
+
* Client for interacting with the FairLaunch V1 contract in read-only mode
|
|
6
|
+
* Provides methods to query fair launch information and status
|
|
7
|
+
*/
|
|
8
|
+
export declare class ReadFairLaunch {
|
|
9
|
+
readonly contract: ReadContract<FairLaunchABI>;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new ReadFairLaunch instance
|
|
12
|
+
* @param address - The address of the FairLaunch contract
|
|
13
|
+
* @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
|
|
14
|
+
* @throws Error if address is not provided
|
|
15
|
+
*/
|
|
16
|
+
constructor(address: Address, drift?: Drift);
|
|
17
|
+
/**
|
|
18
|
+
* Gets the fair launch duration in seconds for a pool. Per-pool since v5
|
|
19
|
+
* (the launcher chooses it in FlaunchParams.fairLaunchDuration).
|
|
20
|
+
*/
|
|
21
|
+
fairLaunchDuration({ poolId }: {
|
|
22
|
+
poolId: HexString;
|
|
23
|
+
}): Promise<number>;
|
|
24
|
+
/**
|
|
25
|
+
* Gets information about a fair launch for a specific pool
|
|
26
|
+
* @param poolId - The ID of the pool
|
|
27
|
+
* @returns Promise<{initialTick: number, closed: boolean, endsAt: number}> - Fair launch details
|
|
28
|
+
*/
|
|
29
|
+
fairLaunchInfo({ poolId }: {
|
|
30
|
+
poolId: HexString;
|
|
31
|
+
}): Promise<{
|
|
32
|
+
startsAt: bigint;
|
|
33
|
+
endsAt: bigint;
|
|
34
|
+
initialTick: number;
|
|
35
|
+
revenue: bigint;
|
|
36
|
+
supply: bigint;
|
|
37
|
+
closed: boolean;
|
|
38
|
+
}>;
|
|
39
|
+
/**
|
|
40
|
+
* Checks if a fair launch is currently active
|
|
41
|
+
* @param poolId - The ID of the pool
|
|
42
|
+
* @returns Promise<boolean> - True if the fair launch is active (not closed and not expired), false otherwise
|
|
43
|
+
*/
|
|
44
|
+
isFairLaunchActive({ poolId }: {
|
|
45
|
+
poolId: HexString;
|
|
46
|
+
}): Promise<boolean>;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=FairLaunchClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FairLaunchClient.d.ts","sourceRoot":"","sources":["../../src/clients/FairLaunchClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EAIV,KAAK,SAAS,EAEf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC;AAEjD;;;GAGG;AACH,qBAAa,cAAc;IACzB,SAAgB,QAAQ,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;IAEtD;;;;;OAKG;gBACS,OAAO,EAAE,OAAO,EAAE,KAAK,GAAE,KAAqB;IAW1D;;;OAGG;IACG,kBAAkB,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE;IAK1D;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE;;;;;;;;IAMhD;;;;OAIG;IACG,kBAAkB,CAAC,EAAE,MAAM,EAAE,EAAE;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE;CAY3D"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type ReadContract, type Address, type Drift, type ReadWriteContract, type ReadWriteAdapter } from "@delvtech/drift";
|
|
2
|
+
import { FeeEscrowAbi } from "../abi/FeeEscrow.cjs";
|
|
3
|
+
export type FeeEscrowABI = typeof FeeEscrowAbi;
|
|
4
|
+
/**
|
|
5
|
+
* Client for interacting with the FeeEscrow contract in read-only mode
|
|
6
|
+
* Provides methods to query fee balances and withdraw fees
|
|
7
|
+
*/
|
|
8
|
+
export declare class ReadFeeEscrow {
|
|
9
|
+
readonly contract: ReadContract<FeeEscrowABI>;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new ReadFeeEscrow instance
|
|
12
|
+
* @param address - The address of the FeeEscrow contract
|
|
13
|
+
* @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
|
|
14
|
+
* @throws Error if address is not provided
|
|
15
|
+
*/
|
|
16
|
+
constructor(address: Address, drift?: Drift);
|
|
17
|
+
/**
|
|
18
|
+
* Gets the claimable balance of fees for a creator
|
|
19
|
+
* @param creator - The address of the creator to check
|
|
20
|
+
* @returns Promise<bigint> - The claimable balance of fees
|
|
21
|
+
*/
|
|
22
|
+
balances(creator: Address): Promise<bigint>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Extended client for interacting with the FeeEscrow contract with write capabilities
|
|
26
|
+
* Provides methods to withdraw fees
|
|
27
|
+
*/
|
|
28
|
+
export declare class ReadWriteFeeEscrow extends ReadFeeEscrow {
|
|
29
|
+
contract: ReadWriteContract<FeeEscrowABI>;
|
|
30
|
+
constructor(address: Address, drift?: Drift<ReadWriteAdapter>);
|
|
31
|
+
/**
|
|
32
|
+
* Withdraws the caller's accrued fees to a recipient as USDC.
|
|
33
|
+
* @dev MUST be unwrap=false on Arc: unwrap=true calls a WETH-style
|
|
34
|
+
* withdraw() that does not exist on the native USDC interface and the whole
|
|
35
|
+
* claim would revert. The ERC20 IS the dollar.
|
|
36
|
+
* @param recipient - The address to receive the fees
|
|
37
|
+
* @returns Transaction response
|
|
38
|
+
*/
|
|
39
|
+
withdrawFees(recipient: Address): Promise<`0x${string}`>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type ReadContract, type Address, type Drift, type ReadWriteContract, type ReadWriteAdapter } from "@delvtech/drift";
|
|
2
|
+
import { FeeEscrowAbi } from "../abi/FeeEscrow.js";
|
|
3
|
+
export type FeeEscrowABI = typeof FeeEscrowAbi;
|
|
4
|
+
/**
|
|
5
|
+
* Client for interacting with the FeeEscrow contract in read-only mode
|
|
6
|
+
* Provides methods to query fee balances and withdraw fees
|
|
7
|
+
*/
|
|
8
|
+
export declare class ReadFeeEscrow {
|
|
9
|
+
readonly contract: ReadContract<FeeEscrowABI>;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new ReadFeeEscrow instance
|
|
12
|
+
* @param address - The address of the FeeEscrow contract
|
|
13
|
+
* @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
|
|
14
|
+
* @throws Error if address is not provided
|
|
15
|
+
*/
|
|
16
|
+
constructor(address: Address, drift?: Drift);
|
|
17
|
+
/**
|
|
18
|
+
* Gets the claimable balance of fees for a creator
|
|
19
|
+
* @param creator - The address of the creator to check
|
|
20
|
+
* @returns Promise<bigint> - The claimable balance of fees
|
|
21
|
+
*/
|
|
22
|
+
balances(creator: Address): Promise<bigint>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Extended client for interacting with the FeeEscrow contract with write capabilities
|
|
26
|
+
* Provides methods to withdraw fees
|
|
27
|
+
*/
|
|
28
|
+
export declare class ReadWriteFeeEscrow extends ReadFeeEscrow {
|
|
29
|
+
contract: ReadWriteContract<FeeEscrowABI>;
|
|
30
|
+
constructor(address: Address, drift?: Drift<ReadWriteAdapter>);
|
|
31
|
+
/**
|
|
32
|
+
* Withdraws the caller's accrued fees to a recipient as USDC.
|
|
33
|
+
* @dev MUST be unwrap=false on Arc: unwrap=true calls a WETH-style
|
|
34
|
+
* withdraw() that does not exist on the native USDC interface and the whole
|
|
35
|
+
* claim would revert. The ERC20 IS the dollar.
|
|
36
|
+
* @param recipient - The address to receive the fees
|
|
37
|
+
* @returns Transaction response
|
|
38
|
+
*/
|
|
39
|
+
withdrawFees(recipient: Address): Promise<`0x${string}`>;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=FeeEscrowClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeeEscrowClient.d.ts","sourceRoot":"","sources":["../../src/clients/FeeEscrowClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAEtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC;AAE/C;;;GAGG;AACH,qBAAa,aAAa;IACxB,SAAgB,QAAQ,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;IAErD;;;;;OAKG;gBACS,OAAO,EAAE,OAAO,EAAE,KAAK,GAAE,KAAqB;IAW1D;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO;CAK1B;AAED;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,aAAa;IAC3C,QAAQ,EAAE,iBAAiB,CAAC,YAAY,CAAC,CAAC;gBAGhD,OAAO,EAAE,OAAO,EAChB,KAAK,GAAE,KAAK,CAAC,gBAAgB,CAAiB;IAKhD;;;;;;;OAOG;IACH,YAAY,CAAC,SAAS,EAAE,OAAO;CAMhC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type ReadContract, type Address, type Drift } from "@delvtech/drift";
|
|
2
|
+
import { FlaunchAbi } from "../abi/Flaunch.cjs";
|
|
3
|
+
export type FlaunchABI = typeof FlaunchAbi;
|
|
4
|
+
/**
|
|
5
|
+
* Client for interacting with the Flaunch V1 contract in read-only mode
|
|
6
|
+
* Provides methods to query token IDs and metadata URIs
|
|
7
|
+
*/
|
|
8
|
+
export declare class ReadFlaunch {
|
|
9
|
+
readonly contract: ReadContract<FlaunchABI>;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new ReadFlaunch instance
|
|
12
|
+
* @param address - The address of the Flaunch contract
|
|
13
|
+
* @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
|
|
14
|
+
* @throws Error if address is not provided
|
|
15
|
+
*/
|
|
16
|
+
constructor(address: Address, drift?: Drift);
|
|
17
|
+
/**
|
|
18
|
+
* Gets the token ID associated with a memecoin
|
|
19
|
+
* @param coinAddress - The address of the memecoin
|
|
20
|
+
* @returns Promise<bigint> - The token ID
|
|
21
|
+
*/
|
|
22
|
+
tokenId(coinAddress: Address): Promise<bigint>;
|
|
23
|
+
/**
|
|
24
|
+
* Gets the metadata URI for a token
|
|
25
|
+
* @param tokenId - The ID of the token
|
|
26
|
+
* @returns Promise<string> - The token's metadata URI
|
|
27
|
+
*/
|
|
28
|
+
tokenURI(tokenId: bigint): Promise<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Gets the memecoin address for a given token ID
|
|
31
|
+
* @param tokenId - The ID of the token
|
|
32
|
+
* @returns Promise<Address> - The address of the memecoin
|
|
33
|
+
*/
|
|
34
|
+
memecoin(tokenId: bigint): Promise<`0x${string}`>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type ReadContract, type Address, type Drift } from "@delvtech/drift";
|
|
2
|
+
import { FlaunchAbi } from "../abi/Flaunch.js";
|
|
3
|
+
export type FlaunchABI = typeof FlaunchAbi;
|
|
4
|
+
/**
|
|
5
|
+
* Client for interacting with the Flaunch V1 contract in read-only mode
|
|
6
|
+
* Provides methods to query token IDs and metadata URIs
|
|
7
|
+
*/
|
|
8
|
+
export declare class ReadFlaunch {
|
|
9
|
+
readonly contract: ReadContract<FlaunchABI>;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new ReadFlaunch instance
|
|
12
|
+
* @param address - The address of the Flaunch contract
|
|
13
|
+
* @param drift - Optional drift instance for contract interactions (creates new instance if not provided)
|
|
14
|
+
* @throws Error if address is not provided
|
|
15
|
+
*/
|
|
16
|
+
constructor(address: Address, drift?: Drift);
|
|
17
|
+
/**
|
|
18
|
+
* Gets the token ID associated with a memecoin
|
|
19
|
+
* @param coinAddress - The address of the memecoin
|
|
20
|
+
* @returns Promise<bigint> - The token ID
|
|
21
|
+
*/
|
|
22
|
+
tokenId(coinAddress: Address): Promise<bigint>;
|
|
23
|
+
/**
|
|
24
|
+
* Gets the metadata URI for a token
|
|
25
|
+
* @param tokenId - The ID of the token
|
|
26
|
+
* @returns Promise<string> - The token's metadata URI
|
|
27
|
+
*/
|
|
28
|
+
tokenURI(tokenId: bigint): Promise<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Gets the memecoin address for a given token ID
|
|
31
|
+
* @param tokenId - The ID of the token
|
|
32
|
+
* @returns Promise<Address> - The address of the memecoin
|
|
33
|
+
*/
|
|
34
|
+
memecoin(tokenId: bigint): Promise<`0x${string}`>;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=FlaunchClient.d.ts.map
|