@steerprotocol/sdk 3.1.0-test-archived-subgraph-support.1 → 3.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/dist/index.browser.mjs +140 -48
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.cjs +146 -23390
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +113 -511
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +146 -23393
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _$viem from "viem";
|
|
2
2
|
import { Address, Client, Hash, PublicClient, TestClient, WalletClient } from "viem";
|
|
3
3
|
import { Campaign, createClient } from "@steerprotocol/api-sdk";
|
|
4
|
+
import { Pool } from "@uniswap/v3-sdk";
|
|
4
5
|
import { Decimal } from "decimal.js";
|
|
5
6
|
|
|
6
7
|
//#region src/utils/subgraph-types.d.ts
|
|
@@ -163,7 +164,8 @@ declare enum Chain {
|
|
|
163
164
|
Saga = "Saga",
|
|
164
165
|
Nibiru = "Nibiru",
|
|
165
166
|
Hyperevm = "Hyperevm",
|
|
166
|
-
Bittensor = "Bittensor"
|
|
167
|
+
Bittensor = "Bittensor",
|
|
168
|
+
Robinhood = "Robinhood"
|
|
167
169
|
}
|
|
168
170
|
declare const ChainId: { [key in Chain]: number };
|
|
169
171
|
declare enum Protocol {
|
|
@@ -309,7 +311,9 @@ declare enum MultiPositionManagers {
|
|
|
309
311
|
MultiPositionHenjinAlgebraHook = "HenjinIntegralHook",
|
|
310
312
|
MultiPositionHydrex = "MultiPositionHydrex",
|
|
311
313
|
MultiPositionBittensorUniV3 = "MultiPositionBittensorUniV3",
|
|
312
|
-
MultiPositionReserveV4 = "MultiPositionReserveV4"
|
|
314
|
+
MultiPositionReserveV4 = "MultiPositionReserveV4",
|
|
315
|
+
TestCypherAlgebraIntegralHook = "TestCypherAlgebraIntegralHook",
|
|
316
|
+
TestQuickswapAlgebraIntegralHook = "TestQuickswapAlgebraIntegralHook"
|
|
313
317
|
}
|
|
314
318
|
declare const AlgebgraHookBeacons: MultiPositionManagers[];
|
|
315
319
|
declare const UniswapHookBeacons: MultiPositionManagers[];
|
|
@@ -582,6 +586,7 @@ type ProtocolInfo = {
|
|
|
582
586
|
EntryPointAddress?: Partial<{ [chain in Chain]: string }>;
|
|
583
587
|
beaconAlgebraHook?: string;
|
|
584
588
|
algebraHookSupportedChains?: Chain[];
|
|
589
|
+
algebraHookBeaconsByChain?: Partial<{ [chain in Chain]: string[] }>;
|
|
585
590
|
};
|
|
586
591
|
type AMMConfigType = Partial<{ [protocol in SupportedProtocol]: ProtocolInfo }>;
|
|
587
592
|
interface Fee {
|
|
@@ -741,6 +746,11 @@ interface NetworkData {
|
|
|
741
746
|
* URL for accessing deprecated bundle information
|
|
742
747
|
*/
|
|
743
748
|
declare const deprecatedBundlesURL = "https://api.steer.finance/deprecated-bundles";
|
|
749
|
+
/**
|
|
750
|
+
* Configuration mapping of supported chains to their respective subgraph endpoints.
|
|
751
|
+
* Each chain has a dedicated subgraph URL for querying protocol data.
|
|
752
|
+
* Updated each chains for ormi and thegraph
|
|
753
|
+
*/
|
|
744
754
|
declare const steerSubgraphConfig: { [protocol in SteerSupportedChains]: string };
|
|
745
755
|
/**
|
|
746
756
|
* Retrieves the subgraph URL for a given chain ID.
|
|
@@ -7469,130 +7479,130 @@ declare const abis: {
|
|
|
7469
7479
|
};
|
|
7470
7480
|
//#endregion
|
|
7471
7481
|
//#region src/const/deployments/apechain.d.ts
|
|
7472
|
-
interface Contract$
|
|
7482
|
+
interface Contract$48 {
|
|
7473
7483
|
address: string;
|
|
7474
7484
|
startBlock?: number;
|
|
7475
7485
|
}
|
|
7476
|
-
declare const apechainAddresses: Record<string, Contract$
|
|
7486
|
+
declare const apechainAddresses: Record<string, Contract$48>;
|
|
7477
7487
|
//#endregion
|
|
7478
7488
|
//#region src/const/deployments/arbitrum.d.ts
|
|
7479
|
-
interface Contract$
|
|
7489
|
+
interface Contract$47 {
|
|
7480
7490
|
address: string;
|
|
7481
7491
|
startBlock?: number;
|
|
7482
7492
|
}
|
|
7483
|
-
declare const arbitrumAddresses: Record<string, Contract$
|
|
7493
|
+
declare const arbitrumAddresses: Record<string, Contract$47>;
|
|
7484
7494
|
//#endregion
|
|
7485
7495
|
//#region src/const/deployments/arbitrumgoerli.d.ts
|
|
7486
|
-
interface Contract$
|
|
7496
|
+
interface Contract$46 {
|
|
7487
7497
|
address: string;
|
|
7488
7498
|
startBlock?: number;
|
|
7489
7499
|
}
|
|
7490
|
-
declare const arbitrumgoerliAddresses: Record<string, Contract$
|
|
7500
|
+
declare const arbitrumgoerliAddresses: Record<string, Contract$46>;
|
|
7491
7501
|
//#endregion
|
|
7492
7502
|
//#region src/const/deployments/astar.d.ts
|
|
7493
|
-
interface Contract$
|
|
7503
|
+
interface Contract$45 {
|
|
7494
7504
|
address: string;
|
|
7495
7505
|
startBlock?: number;
|
|
7496
7506
|
}
|
|
7497
|
-
declare const astarAddresses: Record<string, Contract$
|
|
7507
|
+
declare const astarAddresses: Record<string, Contract$45>;
|
|
7498
7508
|
//#endregion
|
|
7499
7509
|
//#region src/const/deployments/astarzkevm.d.ts
|
|
7500
|
-
interface Contract$
|
|
7510
|
+
interface Contract$44 {
|
|
7501
7511
|
address: string;
|
|
7502
7512
|
startBlock?: number;
|
|
7503
7513
|
}
|
|
7504
|
-
declare const astarzkevmAddresses: Record<string, Contract$
|
|
7514
|
+
declare const astarzkevmAddresses: Record<string, Contract$44>;
|
|
7505
7515
|
//#endregion
|
|
7506
7516
|
//#region src/const/deployments/avalanche.d.ts
|
|
7507
|
-
interface Contract$
|
|
7517
|
+
interface Contract$43 {
|
|
7508
7518
|
address: string;
|
|
7509
7519
|
startBlock?: number;
|
|
7510
7520
|
}
|
|
7511
|
-
declare const avalancheAddresses: Record<string, Contract$
|
|
7521
|
+
declare const avalancheAddresses: Record<string, Contract$43>;
|
|
7512
7522
|
//#endregion
|
|
7513
7523
|
//#region src/const/deployments/bartiotest.d.ts
|
|
7514
|
-
interface Contract$
|
|
7524
|
+
interface Contract$42 {
|
|
7515
7525
|
address: string;
|
|
7516
7526
|
startBlock?: number;
|
|
7517
7527
|
}
|
|
7518
|
-
declare const bartiotestAddresses: Record<string, Contract$
|
|
7528
|
+
declare const bartiotestAddresses: Record<string, Contract$42>;
|
|
7519
7529
|
//#endregion
|
|
7520
7530
|
//#region src/const/deployments/base.d.ts
|
|
7521
|
-
interface Contract$
|
|
7531
|
+
interface Contract$41 {
|
|
7522
7532
|
address: string;
|
|
7523
7533
|
startBlock?: number;
|
|
7524
7534
|
}
|
|
7525
|
-
declare const baseAddresses: Record<string, Contract$
|
|
7535
|
+
declare const baseAddresses: Record<string, Contract$41>;
|
|
7526
7536
|
//#endregion
|
|
7527
7537
|
//#region src/const/deployments/blast.d.ts
|
|
7528
|
-
interface Contract$
|
|
7538
|
+
interface Contract$40 {
|
|
7529
7539
|
address: string;
|
|
7530
7540
|
startBlock?: number;
|
|
7531
7541
|
}
|
|
7532
|
-
declare const blastAddresses: Record<string, Contract$
|
|
7542
|
+
declare const blastAddresses: Record<string, Contract$40>;
|
|
7533
7543
|
//#endregion
|
|
7534
7544
|
//#region src/const/deployments/bsc.d.ts
|
|
7535
|
-
interface Contract$
|
|
7545
|
+
interface Contract$39 {
|
|
7536
7546
|
address: string;
|
|
7537
7547
|
startBlock?: number;
|
|
7538
7548
|
}
|
|
7539
|
-
declare const bscAddresses: Record<string, Contract$
|
|
7549
|
+
declare const bscAddresses: Record<string, Contract$39>;
|
|
7540
7550
|
//#endregion
|
|
7541
7551
|
//#region src/const/deployments/celo.d.ts
|
|
7542
|
-
interface Contract$
|
|
7552
|
+
interface Contract$38 {
|
|
7543
7553
|
address: string;
|
|
7544
7554
|
startBlock?: number;
|
|
7545
7555
|
}
|
|
7546
|
-
declare const celoAddresses: Record<string, Contract$
|
|
7556
|
+
declare const celoAddresses: Record<string, Contract$38>;
|
|
7547
7557
|
//#endregion
|
|
7548
7558
|
//#region src/const/deployments/evmos.d.ts
|
|
7549
|
-
interface Contract$
|
|
7559
|
+
interface Contract$37 {
|
|
7550
7560
|
address: string;
|
|
7551
7561
|
startBlock?: number;
|
|
7552
7562
|
}
|
|
7553
|
-
declare const evmosAddresses: Record<string, Contract$
|
|
7563
|
+
declare const evmosAddresses: Record<string, Contract$37>;
|
|
7554
7564
|
//#endregion
|
|
7555
7565
|
//#region src/const/deployments/fantom.d.ts
|
|
7556
|
-
interface Contract$
|
|
7566
|
+
interface Contract$36 {
|
|
7557
7567
|
address: string;
|
|
7558
7568
|
startBlock?: number;
|
|
7559
7569
|
}
|
|
7560
|
-
declare const fantomAddresses: Record<string, Contract$
|
|
7570
|
+
declare const fantomAddresses: Record<string, Contract$36>;
|
|
7561
7571
|
//#endregion
|
|
7562
7572
|
//#region src/const/deployments/filecoin.d.ts
|
|
7563
|
-
interface Contract$
|
|
7573
|
+
interface Contract$35 {
|
|
7564
7574
|
address: string;
|
|
7565
7575
|
startBlock?: number;
|
|
7566
7576
|
}
|
|
7567
|
-
declare const filecoinAddresses: Record<string, Contract$
|
|
7577
|
+
declare const filecoinAddresses: Record<string, Contract$35>;
|
|
7568
7578
|
//#endregion
|
|
7569
7579
|
//#region src/const/deployments/flare.d.ts
|
|
7570
|
-
interface Contract$
|
|
7580
|
+
interface Contract$34 {
|
|
7571
7581
|
address: string;
|
|
7572
7582
|
startBlock?: number;
|
|
7573
7583
|
}
|
|
7574
|
-
declare const flareAddresses: Record<string, Contract$
|
|
7584
|
+
declare const flareAddresses: Record<string, Contract$34>;
|
|
7575
7585
|
//#endregion
|
|
7576
7586
|
//#region src/const/deployments/goerli.d.ts
|
|
7577
|
-
interface Contract$
|
|
7587
|
+
interface Contract$33 {
|
|
7578
7588
|
address: string;
|
|
7579
7589
|
startBlock?: number;
|
|
7580
7590
|
}
|
|
7581
|
-
declare const goerliAddresses: Record<string, Contract$
|
|
7591
|
+
declare const goerliAddresses: Record<string, Contract$33>;
|
|
7582
7592
|
//#endregion
|
|
7583
7593
|
//#region src/const/deployments/kava.d.ts
|
|
7584
|
-
interface Contract$
|
|
7594
|
+
interface Contract$32 {
|
|
7585
7595
|
address: string;
|
|
7586
7596
|
startBlock?: number;
|
|
7587
7597
|
}
|
|
7588
|
-
declare const kavaAddresses: Record<string, Contract$
|
|
7598
|
+
declare const kavaAddresses: Record<string, Contract$32>;
|
|
7589
7599
|
//#endregion
|
|
7590
7600
|
//#region src/const/deployments/linea.d.ts
|
|
7591
|
-
interface Contract$
|
|
7601
|
+
interface Contract$31 {
|
|
7592
7602
|
address: string;
|
|
7593
7603
|
startBlock?: number;
|
|
7594
7604
|
}
|
|
7595
|
-
declare const lineaAddresses: Record<string, Contract$
|
|
7605
|
+
declare const lineaAddresses: Record<string, Contract$31>;
|
|
7596
7606
|
//#endregion
|
|
7597
7607
|
//#region src/const/deployments/localhost.d.ts
|
|
7598
7608
|
declare const localhostAddresses: {
|
|
@@ -7604,207 +7614,214 @@ declare const localhostAddresses: {
|
|
|
7604
7614
|
};
|
|
7605
7615
|
//#endregion
|
|
7606
7616
|
//#region src/const/deployments/eth.d.ts
|
|
7607
|
-
interface Contract$
|
|
7617
|
+
interface Contract$30 {
|
|
7608
7618
|
address: string;
|
|
7609
7619
|
startBlock?: number;
|
|
7610
7620
|
}
|
|
7611
|
-
declare const ethAddresses: Record<string, Contract$
|
|
7621
|
+
declare const ethAddresses: Record<string, Contract$30>;
|
|
7612
7622
|
//#endregion
|
|
7613
7623
|
//#region src/const/deployments/manta.d.ts
|
|
7614
|
-
interface Contract$
|
|
7624
|
+
interface Contract$29 {
|
|
7615
7625
|
address: string;
|
|
7616
7626
|
startBlock?: number;
|
|
7617
7627
|
}
|
|
7618
|
-
declare const mantaAddresses: Record<string, Contract$
|
|
7628
|
+
declare const mantaAddresses: Record<string, Contract$29>;
|
|
7619
7629
|
//#endregion
|
|
7620
7630
|
//#region src/const/deployments/mantle.d.ts
|
|
7621
|
-
interface Contract$
|
|
7631
|
+
interface Contract$28 {
|
|
7622
7632
|
address: string;
|
|
7623
7633
|
startBlock?: number;
|
|
7624
7634
|
}
|
|
7625
|
-
declare const mantleAddresses: Record<string, Contract$
|
|
7635
|
+
declare const mantleAddresses: Record<string, Contract$28>;
|
|
7626
7636
|
//#endregion
|
|
7627
7637
|
//#region src/const/deployments/metis.d.ts
|
|
7628
|
-
interface Contract$
|
|
7638
|
+
interface Contract$27 {
|
|
7629
7639
|
address: string;
|
|
7630
7640
|
startBlock?: number;
|
|
7631
7641
|
}
|
|
7632
|
-
declare const metisAddresses: Record<string, Contract$
|
|
7642
|
+
declare const metisAddresses: Record<string, Contract$27>;
|
|
7633
7643
|
//#endregion
|
|
7634
7644
|
//#region src/const/deployments/mode.d.ts
|
|
7635
|
-
interface Contract$
|
|
7645
|
+
interface Contract$26 {
|
|
7636
7646
|
address: string;
|
|
7637
7647
|
startBlock?: number;
|
|
7638
7648
|
}
|
|
7639
|
-
declare const modeAddresses: Record<string, Contract$
|
|
7649
|
+
declare const modeAddresses: Record<string, Contract$26>;
|
|
7640
7650
|
//#endregion
|
|
7641
7651
|
//#region src/const/deployments/moonbeam.d.ts
|
|
7642
|
-
interface Contract$
|
|
7652
|
+
interface Contract$25 {
|
|
7643
7653
|
address: string;
|
|
7644
7654
|
startBlock?: number;
|
|
7645
7655
|
}
|
|
7646
|
-
declare const moonbeamAddresses: Record<string, Contract$
|
|
7656
|
+
declare const moonbeamAddresses: Record<string, Contract$25>;
|
|
7647
7657
|
//#endregion
|
|
7648
7658
|
//#region src/const/deployments/mumbai.d.ts
|
|
7649
|
-
interface Contract$
|
|
7659
|
+
interface Contract$24 {
|
|
7650
7660
|
address: string;
|
|
7651
7661
|
startBlock?: number;
|
|
7652
7662
|
}
|
|
7653
|
-
declare const mumbaiAddresses: Record<string, Contract$
|
|
7663
|
+
declare const mumbaiAddresses: Record<string, Contract$24>;
|
|
7654
7664
|
//#endregion
|
|
7655
7665
|
//#region src/const/deployments/okxtestnet.d.ts
|
|
7656
|
-
interface Contract$
|
|
7666
|
+
interface Contract$23 {
|
|
7657
7667
|
address: string;
|
|
7658
7668
|
startBlock?: number;
|
|
7659
7669
|
}
|
|
7660
|
-
declare const okxtestnetAddresses: Record<string, Contract$
|
|
7670
|
+
declare const okxtestnetAddresses: Record<string, Contract$23>;
|
|
7661
7671
|
//#endregion
|
|
7662
7672
|
//#region src/const/deployments/optimism.d.ts
|
|
7663
|
-
interface Contract$
|
|
7673
|
+
interface Contract$22 {
|
|
7664
7674
|
address: string;
|
|
7665
7675
|
startBlock?: number;
|
|
7666
7676
|
}
|
|
7667
|
-
declare const optimismAddresses: Record<string, Contract$
|
|
7677
|
+
declare const optimismAddresses: Record<string, Contract$22>;
|
|
7668
7678
|
//#endregion
|
|
7669
7679
|
//#region src/const/deployments/optimismgoerli.d.ts
|
|
7670
|
-
interface Contract$
|
|
7680
|
+
interface Contract$21 {
|
|
7671
7681
|
address: string;
|
|
7672
7682
|
startBlock?: number;
|
|
7673
7683
|
}
|
|
7674
|
-
declare const optimismgoerliAddresses: Record<string, Contract$
|
|
7684
|
+
declare const optimismgoerliAddresses: Record<string, Contract$21>;
|
|
7675
7685
|
//#endregion
|
|
7676
7686
|
//#region src/const/deployments/polygon.d.ts
|
|
7677
|
-
interface Contract$
|
|
7687
|
+
interface Contract$20 {
|
|
7678
7688
|
address: string;
|
|
7679
7689
|
startBlock?: number;
|
|
7680
7690
|
}
|
|
7681
|
-
declare const polygonAddresses: Record<string, Contract$
|
|
7691
|
+
declare const polygonAddresses: Record<string, Contract$20>;
|
|
7682
7692
|
//#endregion
|
|
7683
7693
|
//#region src/const/deployments/polyzkevm.d.ts
|
|
7684
|
-
interface Contract$
|
|
7694
|
+
interface Contract$19 {
|
|
7685
7695
|
address: string;
|
|
7686
7696
|
startBlock?: number;
|
|
7687
7697
|
}
|
|
7688
|
-
declare const polyzkevmAddresses: Record<string, Contract$
|
|
7698
|
+
declare const polyzkevmAddresses: Record<string, Contract$19>;
|
|
7689
7699
|
//#endregion
|
|
7690
7700
|
//#region src/const/deployments/rootstock.d.ts
|
|
7691
|
-
interface Contract$
|
|
7701
|
+
interface Contract$18 {
|
|
7692
7702
|
address: string;
|
|
7693
7703
|
startBlock?: number;
|
|
7694
7704
|
}
|
|
7695
|
-
declare const rootstockAddresses: Record<string, Contract$
|
|
7705
|
+
declare const rootstockAddresses: Record<string, Contract$18>;
|
|
7696
7706
|
//#endregion
|
|
7697
7707
|
//#region src/const/deployments/scroll.d.ts
|
|
7698
|
-
interface Contract$
|
|
7708
|
+
interface Contract$17 {
|
|
7699
7709
|
address: string;
|
|
7700
7710
|
startBlock?: number;
|
|
7701
7711
|
}
|
|
7702
|
-
declare const scrollAddresses: Record<string, Contract$
|
|
7712
|
+
declare const scrollAddresses: Record<string, Contract$17>;
|
|
7703
7713
|
//#endregion
|
|
7704
7714
|
//#region src/const/deployments/sei.d.ts
|
|
7705
|
-
interface Contract$
|
|
7715
|
+
interface Contract$16 {
|
|
7706
7716
|
address: string;
|
|
7707
7717
|
startBlock?: number;
|
|
7708
7718
|
}
|
|
7709
|
-
declare const seiAddresses: Record<string, Contract$
|
|
7719
|
+
declare const seiAddresses: Record<string, Contract$16>;
|
|
7710
7720
|
//#endregion
|
|
7711
7721
|
//#region src/const/deployments/sonic.d.ts
|
|
7712
|
-
interface Contract$
|
|
7722
|
+
interface Contract$15 {
|
|
7713
7723
|
address: string;
|
|
7714
7724
|
startBlock?: number;
|
|
7715
7725
|
}
|
|
7716
|
-
declare const sonicAddresses: Record<string, Contract$
|
|
7726
|
+
declare const sonicAddresses: Record<string, Contract$15>;
|
|
7717
7727
|
//#endregion
|
|
7718
7728
|
//#region src/const/deployments/taiko.d.ts
|
|
7719
|
-
interface Contract$
|
|
7729
|
+
interface Contract$14 {
|
|
7720
7730
|
address: string;
|
|
7721
7731
|
startBlock?: number;
|
|
7722
7732
|
}
|
|
7723
|
-
declare const taikoAddresses: Record<string, Contract$
|
|
7733
|
+
declare const taikoAddresses: Record<string, Contract$14>;
|
|
7724
7734
|
//#endregion
|
|
7725
7735
|
//#region src/const/deployments/telos.d.ts
|
|
7726
|
-
interface Contract$
|
|
7736
|
+
interface Contract$13 {
|
|
7727
7737
|
address: string;
|
|
7728
7738
|
startBlock?: number;
|
|
7729
7739
|
}
|
|
7730
|
-
declare const telosAddresses: Record<string, Contract$
|
|
7740
|
+
declare const telosAddresses: Record<string, Contract$13>;
|
|
7731
7741
|
//#endregion
|
|
7732
7742
|
//#region src/const/deployments/thundercore.d.ts
|
|
7733
|
-
interface Contract$
|
|
7743
|
+
interface Contract$12 {
|
|
7734
7744
|
address: string;
|
|
7735
7745
|
startBlock?: number;
|
|
7736
7746
|
}
|
|
7737
|
-
declare const thundercoreAddresses: Record<string, Contract$
|
|
7747
|
+
declare const thundercoreAddresses: Record<string, Contract$12>;
|
|
7738
7748
|
//#endregion
|
|
7739
7749
|
//#region src/const/deployments/xlayer.d.ts
|
|
7740
|
-
interface Contract$
|
|
7750
|
+
interface Contract$11 {
|
|
7741
7751
|
address: string;
|
|
7742
7752
|
startBlock?: number;
|
|
7743
7753
|
}
|
|
7744
|
-
declare const xlayerAddresses: Record<string, Contract$
|
|
7754
|
+
declare const xlayerAddresses: Record<string, Contract$11>;
|
|
7745
7755
|
//#endregion
|
|
7746
7756
|
//#region src/const/deployments/zircuit.d.ts
|
|
7747
|
-
interface Contract$
|
|
7757
|
+
interface Contract$10 {
|
|
7748
7758
|
address: string;
|
|
7749
7759
|
startBlock?: number;
|
|
7750
7760
|
}
|
|
7751
|
-
declare const zircuitAddresses: Record<string, Contract$
|
|
7761
|
+
declare const zircuitAddresses: Record<string, Contract$10>;
|
|
7752
7762
|
//#endregion
|
|
7753
7763
|
//#region src/const/deployments/hemi.d.ts
|
|
7754
|
-
interface Contract$
|
|
7764
|
+
interface Contract$9 {
|
|
7755
7765
|
address: string;
|
|
7756
7766
|
startBlock?: number;
|
|
7757
7767
|
}
|
|
7758
|
-
declare const hemiAddresses: Record<string, Contract$
|
|
7768
|
+
declare const hemiAddresses: Record<string, Contract$9>;
|
|
7759
7769
|
//#endregion
|
|
7760
7770
|
//#region src/const/deployments/soneium.d.ts
|
|
7761
|
-
interface Contract$
|
|
7771
|
+
interface Contract$8 {
|
|
7762
7772
|
address: string;
|
|
7763
7773
|
startBlock?: number;
|
|
7764
7774
|
}
|
|
7765
|
-
declare const soneiumAddresses: Record<string, Contract$
|
|
7775
|
+
declare const soneiumAddresses: Record<string, Contract$8>;
|
|
7766
7776
|
//#endregion
|
|
7767
7777
|
//#region src/const/deployments/uni.d.ts
|
|
7768
|
-
interface Contract$
|
|
7778
|
+
interface Contract$7 {
|
|
7769
7779
|
address: string;
|
|
7770
7780
|
startBlock?: number;
|
|
7771
7781
|
}
|
|
7772
|
-
declare const uniAddresses: Record<string, Contract$
|
|
7782
|
+
declare const uniAddresses: Record<string, Contract$7>;
|
|
7773
7783
|
//#endregion
|
|
7774
7784
|
//#region src/const/deployments/zeta.d.ts
|
|
7775
|
-
interface Contract$
|
|
7785
|
+
interface Contract$6 {
|
|
7776
7786
|
address: string;
|
|
7777
7787
|
startBlock?: number;
|
|
7778
7788
|
}
|
|
7779
|
-
declare const zetaAddresses: Record<string, Contract$
|
|
7789
|
+
declare const zetaAddresses: Record<string, Contract$6>;
|
|
7780
7790
|
//#endregion
|
|
7781
7791
|
//#region src/const/deployments/bera.d.ts
|
|
7782
|
-
interface Contract$
|
|
7792
|
+
interface Contract$5 {
|
|
7783
7793
|
address: string;
|
|
7784
7794
|
startBlock?: number;
|
|
7785
7795
|
}
|
|
7786
|
-
declare const beraAddresses: Record<string, Contract$
|
|
7796
|
+
declare const beraAddresses: Record<string, Contract$5>;
|
|
7787
7797
|
//#endregion
|
|
7788
7798
|
//#region src/const/deployments/katana.d.ts
|
|
7789
|
-
interface Contract$
|
|
7799
|
+
interface Contract$4 {
|
|
7790
7800
|
address: string;
|
|
7791
7801
|
startBlock?: number;
|
|
7792
7802
|
}
|
|
7793
|
-
declare const katanaAddresses: Record<string, Contract$
|
|
7803
|
+
declare const katanaAddresses: Record<string, Contract$4>;
|
|
7794
7804
|
//#endregion
|
|
7795
7805
|
//#region src/const/deployments/saga.d.ts
|
|
7796
|
-
interface Contract$
|
|
7806
|
+
interface Contract$3 {
|
|
7797
7807
|
address: string;
|
|
7798
7808
|
startBlock?: number;
|
|
7799
7809
|
}
|
|
7800
|
-
declare const sagaAddresses: Record<string, Contract$
|
|
7810
|
+
declare const sagaAddresses: Record<string, Contract$3>;
|
|
7801
7811
|
//#endregion
|
|
7802
7812
|
//#region src/const/deployments/bittensor.d.ts
|
|
7813
|
+
interface Contract$2 {
|
|
7814
|
+
address: string;
|
|
7815
|
+
startBlock?: number;
|
|
7816
|
+
}
|
|
7817
|
+
declare const bittensorAddresses: Record<string, Contract$2>;
|
|
7818
|
+
//#endregion
|
|
7819
|
+
//#region src/const/deployments/robinhood.d.ts
|
|
7803
7820
|
interface Contract$1 {
|
|
7804
7821
|
address: string;
|
|
7805
7822
|
startBlock?: number;
|
|
7806
7823
|
}
|
|
7807
|
-
declare const
|
|
7824
|
+
declare const robinhoodAddresses: Record<string, Contract$1>;
|
|
7808
7825
|
//#endregion
|
|
7809
7826
|
//#region src/const/capabilities.d.ts
|
|
7810
7827
|
type SupportedChainsFeature = 'subgraph' | 'deployments' | 'protocols' | 'singleAssetDeposit';
|
|
@@ -8545,421 +8562,6 @@ interface PoolSlot0 {
|
|
|
8545
8562
|
unlocked: boolean;
|
|
8546
8563
|
}
|
|
8547
8564
|
//#endregion
|
|
8548
|
-
//#region node_modules/jsbi/jsbi.d.ts
|
|
8549
|
-
declare class JSBI {
|
|
8550
|
-
private constructor(length: number, sign: boolean);
|
|
8551
|
-
private length: number;
|
|
8552
|
-
private sign: boolean;
|
|
8553
|
-
static BigInt(from: number | string | boolean | object): JSBI;
|
|
8554
|
-
toString(radix?: number): string;
|
|
8555
|
-
static toNumber(x: JSBI): number;
|
|
8556
|
-
static unaryMinus(x: JSBI): JSBI;
|
|
8557
|
-
static bitwiseNot(x: JSBI): JSBI;
|
|
8558
|
-
static exponentiate(x: JSBI, y: JSBI): JSBI;
|
|
8559
|
-
static multiply(x: JSBI, y: JSBI): JSBI;
|
|
8560
|
-
static divide(x: JSBI, y: JSBI): JSBI;
|
|
8561
|
-
static remainder(x: JSBI, y: JSBI): JSBI;
|
|
8562
|
-
static add(x: JSBI, y: JSBI): JSBI;
|
|
8563
|
-
static subtract(x: JSBI, y: JSBI): JSBI;
|
|
8564
|
-
static leftShift(x: JSBI, y: JSBI): JSBI;
|
|
8565
|
-
static signedRightShift(x: JSBI, y: JSBI): JSBI;
|
|
8566
|
-
static lessThan(x: JSBI, y: JSBI): boolean;
|
|
8567
|
-
static lessThanOrEqual(x: JSBI, y: JSBI): boolean;
|
|
8568
|
-
static greaterThan(x: JSBI, y: JSBI): boolean;
|
|
8569
|
-
static greaterThanOrEqual(x: JSBI, y: JSBI): boolean;
|
|
8570
|
-
static equal(x: JSBI, y: JSBI): boolean;
|
|
8571
|
-
static notEqual(x: JSBI, y: JSBI): boolean;
|
|
8572
|
-
static bitwiseAnd(x: JSBI, y: JSBI): JSBI;
|
|
8573
|
-
static bitwiseXor(x: JSBI, y: JSBI): JSBI;
|
|
8574
|
-
static bitwiseOr(x: JSBI, y: JSBI): JSBI;
|
|
8575
|
-
static asIntN(n: number, x: JSBI): JSBI;
|
|
8576
|
-
static asUintN(n: number, x: JSBI): JSBI;
|
|
8577
|
-
static ADD(x: any, y: any): any;
|
|
8578
|
-
static LT(x: any, y: any): boolean;
|
|
8579
|
-
static LE(x: any, y: any): boolean;
|
|
8580
|
-
static GT(x: any, y: any): boolean;
|
|
8581
|
-
static GE(x: any, y: any): boolean;
|
|
8582
|
-
static EQ(x: any, y: any): boolean;
|
|
8583
|
-
static NE(x: any, y: any): boolean;
|
|
8584
|
-
}
|
|
8585
|
-
//#endregion
|
|
8586
|
-
//#region node_modules/@uniswap/v3-sdk/node_modules/@uniswap/sdk-core/dist/constants.d.ts
|
|
8587
|
-
declare type BigintIsh = JSBI | string | number;
|
|
8588
|
-
declare enum Rounding {
|
|
8589
|
-
ROUND_DOWN = 0,
|
|
8590
|
-
ROUND_HALF_UP = 1,
|
|
8591
|
-
ROUND_UP = 2
|
|
8592
|
-
}
|
|
8593
|
-
//#endregion
|
|
8594
|
-
//#region node_modules/@ethersproject/bytes/lib/index.d.ts
|
|
8595
|
-
declare type Bytes = ArrayLike<number>;
|
|
8596
|
-
interface Hexable {
|
|
8597
|
-
toHexString(): string;
|
|
8598
|
-
}
|
|
8599
|
-
//#endregion
|
|
8600
|
-
//#region node_modules/@ethersproject/bignumber/lib/bignumber.d.ts
|
|
8601
|
-
declare type BigNumberish = BigNumber | Bytes | bigint | string | number;
|
|
8602
|
-
declare class BigNumber implements Hexable {
|
|
8603
|
-
readonly _hex: string;
|
|
8604
|
-
readonly _isBigNumber: boolean;
|
|
8605
|
-
constructor(constructorGuard: any, hex: string);
|
|
8606
|
-
fromTwos(value: number): BigNumber;
|
|
8607
|
-
toTwos(value: number): BigNumber;
|
|
8608
|
-
abs(): BigNumber;
|
|
8609
|
-
add(other: BigNumberish): BigNumber;
|
|
8610
|
-
sub(other: BigNumberish): BigNumber;
|
|
8611
|
-
div(other: BigNumberish): BigNumber;
|
|
8612
|
-
mul(other: BigNumberish): BigNumber;
|
|
8613
|
-
mod(other: BigNumberish): BigNumber;
|
|
8614
|
-
pow(other: BigNumberish): BigNumber;
|
|
8615
|
-
and(other: BigNumberish): BigNumber;
|
|
8616
|
-
or(other: BigNumberish): BigNumber;
|
|
8617
|
-
xor(other: BigNumberish): BigNumber;
|
|
8618
|
-
mask(value: number): BigNumber;
|
|
8619
|
-
shl(value: number): BigNumber;
|
|
8620
|
-
shr(value: number): BigNumber;
|
|
8621
|
-
eq(other: BigNumberish): boolean;
|
|
8622
|
-
lt(other: BigNumberish): boolean;
|
|
8623
|
-
lte(other: BigNumberish): boolean;
|
|
8624
|
-
gt(other: BigNumberish): boolean;
|
|
8625
|
-
gte(other: BigNumberish): boolean;
|
|
8626
|
-
isNegative(): boolean;
|
|
8627
|
-
isZero(): boolean;
|
|
8628
|
-
toNumber(): number;
|
|
8629
|
-
toBigInt(): bigint;
|
|
8630
|
-
toString(): string;
|
|
8631
|
-
toHexString(): string;
|
|
8632
|
-
toJSON(key?: string): any;
|
|
8633
|
-
static from(value: any): BigNumber;
|
|
8634
|
-
static isBigNumber(value: any): value is BigNumber;
|
|
8635
|
-
}
|
|
8636
|
-
//#endregion
|
|
8637
|
-
//#region node_modules/@uniswap/v3-sdk/node_modules/@uniswap/sdk-core/dist/entities/token.d.ts
|
|
8638
|
-
/**
|
|
8639
|
-
* Represents an ERC20 token with a unique address and some metadata.
|
|
8640
|
-
*/
|
|
8641
|
-
declare class Token extends BaseCurrency {
|
|
8642
|
-
readonly isNative: false;
|
|
8643
|
-
readonly isToken: true;
|
|
8644
|
-
/**
|
|
8645
|
-
* The contract address on the chain on which this token lives
|
|
8646
|
-
*/
|
|
8647
|
-
readonly address: string;
|
|
8648
|
-
/**
|
|
8649
|
-
* Relevant for fee-on-transfer (FOT) token taxes,
|
|
8650
|
-
* Not every ERC20 token is FOT token, so this field is optional
|
|
8651
|
-
*/
|
|
8652
|
-
readonly buyFeeBps?: BigNumber;
|
|
8653
|
-
readonly sellFeeBps?: BigNumber;
|
|
8654
|
-
/**
|
|
8655
|
-
*
|
|
8656
|
-
* @param chainId {@link BaseCurrency#chainId}
|
|
8657
|
-
* @param address The contract address on the chain on which this token lives
|
|
8658
|
-
* @param decimals {@link BaseCurrency#decimals}
|
|
8659
|
-
* @param symbol {@link BaseCurrency#symbol}
|
|
8660
|
-
* @param name {@link BaseCurrency#name}
|
|
8661
|
-
* @param bypassChecksum If true it only checks for length === 42, startsWith 0x and contains only hex characters
|
|
8662
|
-
* @param buyFeeBps Buy fee tax for FOT tokens, in basis points
|
|
8663
|
-
* @param sellFeeBps Sell fee tax for FOT tokens, in basis points
|
|
8664
|
-
*/
|
|
8665
|
-
constructor(chainId: number, address: string, decimals: number, symbol?: string, name?: string, bypassChecksum?: boolean, buyFeeBps?: BigNumber, sellFeeBps?: BigNumber);
|
|
8666
|
-
/**
|
|
8667
|
-
* Returns true if the two tokens are equivalent, i.e. have the same chainId and address.
|
|
8668
|
-
* @param other other token to compare
|
|
8669
|
-
*/
|
|
8670
|
-
equals(other: Currency): boolean;
|
|
8671
|
-
/**
|
|
8672
|
-
* Returns true if the address of this token sorts before the address of the other token
|
|
8673
|
-
* @param other other token to compare
|
|
8674
|
-
* @throws if the tokens have the same address
|
|
8675
|
-
* @throws if the tokens are on different chains
|
|
8676
|
-
*/
|
|
8677
|
-
sortsBefore(other: Token): boolean;
|
|
8678
|
-
/**
|
|
8679
|
-
* Return this token, which does not need to be wrapped
|
|
8680
|
-
*/
|
|
8681
|
-
get wrapped(): Token;
|
|
8682
|
-
}
|
|
8683
|
-
//#endregion
|
|
8684
|
-
//#region node_modules/@uniswap/v3-sdk/node_modules/@uniswap/sdk-core/dist/entities/baseCurrency.d.ts
|
|
8685
|
-
/**
|
|
8686
|
-
* A currency is any fungible financial instrument, including Ether, all ERC20 tokens, and other chain-native currencies
|
|
8687
|
-
*/
|
|
8688
|
-
declare abstract class BaseCurrency {
|
|
8689
|
-
/**
|
|
8690
|
-
* Returns whether the currency is native to the chain and must be wrapped (e.g. Ether)
|
|
8691
|
-
*/
|
|
8692
|
-
abstract readonly isNative: boolean;
|
|
8693
|
-
/**
|
|
8694
|
-
* Returns whether the currency is a token that is usable in Uniswap without wrapping
|
|
8695
|
-
*/
|
|
8696
|
-
abstract readonly isToken: boolean;
|
|
8697
|
-
/**
|
|
8698
|
-
* The chain ID on which this currency resides
|
|
8699
|
-
*/
|
|
8700
|
-
readonly chainId: number;
|
|
8701
|
-
/**
|
|
8702
|
-
* The decimals used in representing currency amounts
|
|
8703
|
-
*/
|
|
8704
|
-
readonly decimals: number;
|
|
8705
|
-
/**
|
|
8706
|
-
* The symbol of the currency, i.e. a short textual non-unique identifier
|
|
8707
|
-
*/
|
|
8708
|
-
readonly symbol?: string;
|
|
8709
|
-
/**
|
|
8710
|
-
* The name of the currency, i.e. a descriptive textual non-unique identifier
|
|
8711
|
-
*/
|
|
8712
|
-
readonly name?: string;
|
|
8713
|
-
/**
|
|
8714
|
-
* Constructs an instance of the base class `BaseCurrency`.
|
|
8715
|
-
* @param chainId the chain ID on which this currency resides
|
|
8716
|
-
* @param decimals decimals of the currency
|
|
8717
|
-
* @param symbol symbol of the currency
|
|
8718
|
-
* @param name of the currency
|
|
8719
|
-
*/
|
|
8720
|
-
protected constructor(chainId: number, decimals: number, symbol?: string, name?: string);
|
|
8721
|
-
/**
|
|
8722
|
-
* Returns whether this currency is functionally equivalent to the other currency
|
|
8723
|
-
* @param other the other currency
|
|
8724
|
-
*/
|
|
8725
|
-
abstract equals(other: Currency): boolean;
|
|
8726
|
-
/**
|
|
8727
|
-
* Return the wrapped version of this currency that can be used with the Uniswap contracts. Currencies must
|
|
8728
|
-
* implement this to be used in Uniswap
|
|
8729
|
-
*/
|
|
8730
|
-
abstract get wrapped(): Token;
|
|
8731
|
-
}
|
|
8732
|
-
//#endregion
|
|
8733
|
-
//#region node_modules/@uniswap/v3-sdk/node_modules/@uniswap/sdk-core/dist/entities/nativeCurrency.d.ts
|
|
8734
|
-
/**
|
|
8735
|
-
* Represents the native currency of the chain on which it resides, e.g.
|
|
8736
|
-
*/
|
|
8737
|
-
declare abstract class NativeCurrency extends BaseCurrency {
|
|
8738
|
-
readonly isNative: true;
|
|
8739
|
-
readonly isToken: false;
|
|
8740
|
-
}
|
|
8741
|
-
//#endregion
|
|
8742
|
-
//#region node_modules/@uniswap/v3-sdk/node_modules/@uniswap/sdk-core/dist/entities/currency.d.ts
|
|
8743
|
-
declare type Currency = NativeCurrency | Token;
|
|
8744
|
-
//#endregion
|
|
8745
|
-
//#region node_modules/@uniswap/v3-sdk/node_modules/@uniswap/sdk-core/dist/entities/fractions/fraction.d.ts
|
|
8746
|
-
declare class Fraction {
|
|
8747
|
-
readonly numerator: JSBI;
|
|
8748
|
-
readonly denominator: JSBI;
|
|
8749
|
-
constructor(numerator: BigintIsh, denominator?: BigintIsh);
|
|
8750
|
-
private static tryParseFraction;
|
|
8751
|
-
get quotient(): JSBI;
|
|
8752
|
-
get remainder(): Fraction;
|
|
8753
|
-
invert(): Fraction;
|
|
8754
|
-
add(other: Fraction | BigintIsh): Fraction;
|
|
8755
|
-
subtract(other: Fraction | BigintIsh): Fraction;
|
|
8756
|
-
lessThan(other: Fraction | BigintIsh): boolean;
|
|
8757
|
-
equalTo(other: Fraction | BigintIsh): boolean;
|
|
8758
|
-
greaterThan(other: Fraction | BigintIsh): boolean;
|
|
8759
|
-
multiply(other: Fraction | BigintIsh): Fraction;
|
|
8760
|
-
divide(other: Fraction | BigintIsh): Fraction;
|
|
8761
|
-
toSignificant(significantDigits: number, format?: object, rounding?: Rounding): string;
|
|
8762
|
-
toFixed(decimalPlaces: number, format?: object, rounding?: Rounding): string;
|
|
8763
|
-
/**
|
|
8764
|
-
* Helper method for converting any super class back to a fraction
|
|
8765
|
-
*/
|
|
8766
|
-
get asFraction(): Fraction;
|
|
8767
|
-
}
|
|
8768
|
-
//#endregion
|
|
8769
|
-
//#region node_modules/@uniswap/v3-sdk/node_modules/@uniswap/sdk-core/dist/entities/fractions/currencyAmount.d.ts
|
|
8770
|
-
declare class CurrencyAmount<T extends Currency> extends Fraction {
|
|
8771
|
-
readonly currency: T;
|
|
8772
|
-
readonly decimalScale: JSBI;
|
|
8773
|
-
/**
|
|
8774
|
-
* Returns a new currency amount instance from the unitless amount of token, i.e. the raw amount
|
|
8775
|
-
* @param currency the currency in the amount
|
|
8776
|
-
* @param rawAmount the raw token or ether amount
|
|
8777
|
-
*/
|
|
8778
|
-
static fromRawAmount<T extends Currency>(currency: T, rawAmount: BigintIsh): CurrencyAmount<T>;
|
|
8779
|
-
/**
|
|
8780
|
-
* Construct a currency amount with a denominator that is not equal to 1
|
|
8781
|
-
* @param currency the currency
|
|
8782
|
-
* @param numerator the numerator of the fractional token amount
|
|
8783
|
-
* @param denominator the denominator of the fractional token amount
|
|
8784
|
-
*/
|
|
8785
|
-
static fromFractionalAmount<T extends Currency>(currency: T, numerator: BigintIsh, denominator: BigintIsh): CurrencyAmount<T>;
|
|
8786
|
-
protected constructor(currency: T, numerator: BigintIsh, denominator?: BigintIsh);
|
|
8787
|
-
add(other: CurrencyAmount<T>): CurrencyAmount<T>;
|
|
8788
|
-
subtract(other: CurrencyAmount<T>): CurrencyAmount<T>;
|
|
8789
|
-
multiply(other: Fraction | BigintIsh): CurrencyAmount<T>;
|
|
8790
|
-
divide(other: Fraction | BigintIsh): CurrencyAmount<T>;
|
|
8791
|
-
toSignificant(significantDigits?: number, format?: object, rounding?: Rounding): string;
|
|
8792
|
-
toFixed(decimalPlaces?: number, format?: object, rounding?: Rounding): string;
|
|
8793
|
-
toExact(format?: object): string;
|
|
8794
|
-
get wrapped(): CurrencyAmount<Token>;
|
|
8795
|
-
}
|
|
8796
|
-
//#endregion
|
|
8797
|
-
//#region node_modules/@uniswap/v3-sdk/node_modules/@uniswap/sdk-core/dist/entities/fractions/price.d.ts
|
|
8798
|
-
declare class Price<TBase extends Currency, TQuote extends Currency> extends Fraction {
|
|
8799
|
-
readonly baseCurrency: TBase;
|
|
8800
|
-
readonly quoteCurrency: TQuote;
|
|
8801
|
-
readonly scalar: Fraction;
|
|
8802
|
-
/**
|
|
8803
|
-
* Construct a price, either with the base and quote currency amount, or the
|
|
8804
|
-
* @param args
|
|
8805
|
-
*/
|
|
8806
|
-
constructor(...args: [TBase, TQuote, BigintIsh, BigintIsh] | [{
|
|
8807
|
-
baseAmount: CurrencyAmount<TBase>;
|
|
8808
|
-
quoteAmount: CurrencyAmount<TQuote>;
|
|
8809
|
-
}]);
|
|
8810
|
-
/**
|
|
8811
|
-
* Flip the price, switching the base and quote currency
|
|
8812
|
-
*/
|
|
8813
|
-
invert(): Price<TQuote, TBase>;
|
|
8814
|
-
/**
|
|
8815
|
-
* Multiply the price by another price, returning a new price. The other price must have the same base currency as this price's quote currency
|
|
8816
|
-
* @param other the other price
|
|
8817
|
-
*/
|
|
8818
|
-
multiply<TOtherQuote extends Currency>(other: Price<TQuote, TOtherQuote>): Price<TBase, TOtherQuote>;
|
|
8819
|
-
/**
|
|
8820
|
-
* Return the amount of quote currency corresponding to a given amount of the base currency
|
|
8821
|
-
* @param currencyAmount the amount of base currency to quote against the price
|
|
8822
|
-
*/
|
|
8823
|
-
quote(currencyAmount: CurrencyAmount<TBase>): CurrencyAmount<TQuote>;
|
|
8824
|
-
/**
|
|
8825
|
-
* Get the value scaled by decimals for formatting
|
|
8826
|
-
* @private
|
|
8827
|
-
*/
|
|
8828
|
-
private get adjustedForDecimals();
|
|
8829
|
-
toSignificant(significantDigits?: number, format?: object, rounding?: Rounding): string;
|
|
8830
|
-
toFixed(decimalPlaces?: number, format?: object, rounding?: Rounding): string;
|
|
8831
|
-
}
|
|
8832
|
-
//#endregion
|
|
8833
|
-
//#region node_modules/@uniswap/v3-sdk/dist/constants.d.ts
|
|
8834
|
-
/**
|
|
8835
|
-
* The default factory enabled fee amounts, denominated in hundredths of bips.
|
|
8836
|
-
*/
|
|
8837
|
-
declare enum FeeAmount {
|
|
8838
|
-
LOWEST = 100,
|
|
8839
|
-
LOW_200 = 200,
|
|
8840
|
-
LOW_300 = 300,
|
|
8841
|
-
LOW_400 = 400,
|
|
8842
|
-
LOW = 500,
|
|
8843
|
-
MEDIUM = 3000,
|
|
8844
|
-
HIGH = 10000
|
|
8845
|
-
}
|
|
8846
|
-
//#endregion
|
|
8847
|
-
//#region node_modules/@uniswap/v3-sdk/dist/entities/tick.d.ts
|
|
8848
|
-
interface TickConstructorArgs {
|
|
8849
|
-
index: number;
|
|
8850
|
-
liquidityGross: BigintIsh;
|
|
8851
|
-
liquidityNet: BigintIsh;
|
|
8852
|
-
}
|
|
8853
|
-
declare class Tick {
|
|
8854
|
-
readonly index: number;
|
|
8855
|
-
readonly liquidityGross: JSBI;
|
|
8856
|
-
readonly liquidityNet: JSBI;
|
|
8857
|
-
constructor({
|
|
8858
|
-
index,
|
|
8859
|
-
liquidityGross,
|
|
8860
|
-
liquidityNet
|
|
8861
|
-
}: TickConstructorArgs);
|
|
8862
|
-
}
|
|
8863
|
-
//#endregion
|
|
8864
|
-
//#region node_modules/@uniswap/v3-sdk/dist/entities/tickDataProvider.d.ts
|
|
8865
|
-
/**
|
|
8866
|
-
* Provides information about ticks
|
|
8867
|
-
*/
|
|
8868
|
-
interface TickDataProvider {
|
|
8869
|
-
/**
|
|
8870
|
-
* Return information corresponding to a specific tick
|
|
8871
|
-
* @param tick the tick to load
|
|
8872
|
-
*/
|
|
8873
|
-
getTick(tick: number): Promise<{
|
|
8874
|
-
liquidityNet: BigintIsh;
|
|
8875
|
-
}>;
|
|
8876
|
-
/**
|
|
8877
|
-
* Return the next tick that is initialized within a single word
|
|
8878
|
-
* @param tick The current tick
|
|
8879
|
-
* @param lte Whether the next tick should be lte the current tick
|
|
8880
|
-
* @param tickSpacing The tick spacing of the pool
|
|
8881
|
-
*/
|
|
8882
|
-
nextInitializedTickWithinOneWord(tick: number, lte: boolean, tickSpacing: number): Promise<[number, boolean]>;
|
|
8883
|
-
}
|
|
8884
|
-
//#endregion
|
|
8885
|
-
//#region node_modules/@uniswap/v3-sdk/dist/entities/pool.d.ts
|
|
8886
|
-
/**
|
|
8887
|
-
* Represents a V3 pool
|
|
8888
|
-
*/
|
|
8889
|
-
declare class Pool {
|
|
8890
|
-
readonly token0: Token;
|
|
8891
|
-
readonly token1: Token;
|
|
8892
|
-
readonly fee: FeeAmount;
|
|
8893
|
-
readonly sqrtRatioX96: JSBI;
|
|
8894
|
-
readonly liquidity: JSBI;
|
|
8895
|
-
readonly tickCurrent: number;
|
|
8896
|
-
readonly tickDataProvider: TickDataProvider;
|
|
8897
|
-
private _token0Price?;
|
|
8898
|
-
private _token1Price?;
|
|
8899
|
-
static getAddress(tokenA: Token, tokenB: Token, fee: FeeAmount, initCodeHashManualOverride?: string, factoryAddressOverride?: string): string;
|
|
8900
|
-
/**
|
|
8901
|
-
* Construct a pool
|
|
8902
|
-
* @param tokenA One of the tokens in the pool
|
|
8903
|
-
* @param tokenB The other token in the pool
|
|
8904
|
-
* @param fee The fee in hundredths of a bips of the input amount of every swap that is collected by the pool
|
|
8905
|
-
* @param sqrtRatioX96 The sqrt of the current ratio of amounts of token1 to token0
|
|
8906
|
-
* @param liquidity The current value of in range liquidity
|
|
8907
|
-
* @param tickCurrent The current tick of the pool
|
|
8908
|
-
* @param ticks The current state of the pool ticks or a data provider that can return tick data
|
|
8909
|
-
*/
|
|
8910
|
-
constructor(tokenA: Token, tokenB: Token, fee: FeeAmount, sqrtRatioX96: BigintIsh, liquidity: BigintIsh, tickCurrent: number, ticks?: TickDataProvider | (Tick | TickConstructorArgs)[]);
|
|
8911
|
-
/**
|
|
8912
|
-
* Returns true if the token is either token0 or token1
|
|
8913
|
-
* @param token The token to check
|
|
8914
|
-
* @returns True if token is either token0 or token
|
|
8915
|
-
*/
|
|
8916
|
-
involvesToken(token: Token): boolean;
|
|
8917
|
-
/**
|
|
8918
|
-
* Returns the current mid price of the pool in terms of token0, i.e. the ratio of token1 over token0
|
|
8919
|
-
*/
|
|
8920
|
-
get token0Price(): Price<Token, Token>;
|
|
8921
|
-
/**
|
|
8922
|
-
* Returns the current mid price of the pool in terms of token1, i.e. the ratio of token0 over token1
|
|
8923
|
-
*/
|
|
8924
|
-
get token1Price(): Price<Token, Token>;
|
|
8925
|
-
/**
|
|
8926
|
-
* Return the price of the given token in terms of the other token in the pool.
|
|
8927
|
-
* @param token The token to return price of
|
|
8928
|
-
* @returns The price of the given token, in terms of the other.
|
|
8929
|
-
*/
|
|
8930
|
-
priceOf(token: Token): Price<Token, Token>;
|
|
8931
|
-
/**
|
|
8932
|
-
* Returns the chain ID of the tokens in the pool.
|
|
8933
|
-
*/
|
|
8934
|
-
get chainId(): number;
|
|
8935
|
-
/**
|
|
8936
|
-
* Given an input amount of a token, return the computed output amount, and a pool with state updated after the trade
|
|
8937
|
-
* @param inputAmount The input amount for which to quote the output amount
|
|
8938
|
-
* @param sqrtPriceLimitX96 The Q64.96 sqrt price limit
|
|
8939
|
-
* @returns The output amount and the pool with updated state
|
|
8940
|
-
*/
|
|
8941
|
-
getOutputAmount(inputAmount: CurrencyAmount<Token>, sqrtPriceLimitX96?: JSBI): Promise<[CurrencyAmount<Token>, Pool]>;
|
|
8942
|
-
/**
|
|
8943
|
-
* Given a desired output amount of a token, return the computed input amount and a pool with state updated after the trade
|
|
8944
|
-
* @param outputAmount the output amount for which to quote the input amount
|
|
8945
|
-
* @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap
|
|
8946
|
-
* @returns The input amount and the pool with updated state
|
|
8947
|
-
*/
|
|
8948
|
-
getInputAmount(outputAmount: CurrencyAmount<Token>, sqrtPriceLimitX96?: JSBI): Promise<[CurrencyAmount<Token>, Pool]>;
|
|
8949
|
-
/**
|
|
8950
|
-
* Executes a swap
|
|
8951
|
-
* @param zeroForOne Whether the amount in is token0 or token1
|
|
8952
|
-
* @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)
|
|
8953
|
-
* @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap
|
|
8954
|
-
* @returns amountCalculated
|
|
8955
|
-
* @returns sqrtRatioX96
|
|
8956
|
-
* @returns liquidity
|
|
8957
|
-
* @returns tickCurrent
|
|
8958
|
-
*/
|
|
8959
|
-
private swap;
|
|
8960
|
-
get tickSpacing(): number;
|
|
8961
|
-
}
|
|
8962
|
-
//#endregion
|
|
8963
8565
|
//#region src/base/SubgraphClient.d.ts
|
|
8964
8566
|
declare abstract class SubgraphClient {
|
|
8965
8567
|
protected readonly client: Client;
|
|
@@ -11076,5 +10678,5 @@ declare class FeeManagerClient extends SubgraphClient {
|
|
|
11076
10678
|
}[]>>;
|
|
11077
10679
|
}
|
|
11078
10680
|
//#endregion
|
|
11079
|
-
export { AERODROME_PROTOCOLS, ALGEBRA_INTEGRAL_PROTOCOLS, ALGEBRA_INTEGRAL_V_2_0_PROTOCOLS, ALGEBRA_PROTOCOLS, AMMConfigType, AMMType, API_URLS, AlgebgraHookBeacons, AlgebraIntegral21QuoteParams, AlgebraQuoteParams, AlgebraVaultDetails, ApiPageInfo, ApiVaultFilter, AprFilter, AprResponse, BaseQuoteParams, BaseVaultDetails, BlackholeAprDetailedParams, BlackholeAprDetailedResponse, BlackholeSnapshotAnalysis, CalculateLimitPriceParams, CalculateSwapAmountParams, Chain, ChainId, ClaimProofEdge, ClaimProofNode, ClaimProofsPageInfo, ClaimProofsResponse, ClaimRewardEdge, ClaimRewardNode, ClaimRewardParams, ClaimRewardsConnection, ClaimRewardsParams, Contract, ContractAddresses, ContractName, DIRECTIONAL_ALGEBRA_PROTOCOLS, DefaultFeeManagerConfigParams, DeprecationData, EstimateLpTokensParams, FEE_MANAGER_ABI, Fee, FeeManagerClient, FeeManagerConfigParams, FeeWithdrawalParams, FormattedRoute, GetRewardParams, GetSupportedChainsOptions, GlobalStateABI, type GraphQLPoolData, type GraphQLTokenData, LimitPoolState, LpPriceResponse, LpTokenEstimationResponse, MultiPositionManagers, MultiVaultFeeWithdrawalParams, MultipleFeeWithdrawalParams, NetworkConfig, NetworkData, Networks, POOLSHARK_PROTOCOLS, PageInfo, PendingRewardsParams, PendingRewardsResponse, PoolClient, PoolData, PoolEdge, PoolFilter, PoolNode, PoolSharkGlobalState, PoolSlot0, PoolsConnection, PoolsharkStructs, Protocol, ProtocolContractAddresses, ProtocolDetails, ProtocolInfo, QuickSwapQuoterV2, QuoteParams, QuoterFunctionArgs, QuoterV2ABI, QuoterV2AlgebgraIntegral, QuoterV2AlgebgraIntegral21, QuoterV2Factory, QuoterV2Shadow, QuoterV2Thick, Reward, RewardBalance, RewardSummary, RouteShortcut, SHADOW_PROTOCOLS, ShadowQuoteParams, SimulateSwapParams, SingleAssetDepositClient, SingleAssetDepositParams, SingleAssetDepositPreview, Slot0, SmartRewarderContract, SmartRewards, StabilityVaultInfo, StakeParams, Staking, StakingClient, StakingPool, StakingPoolFilter, StakingProtocol, SteerClient, SteerConfig, SteerResponse, SteerSupportedChains, StrykePositionManagers, SubgraphClient, SubgraphResponse, SubgraphVaultClient, SubgraphVaultDetails, SubgraphVaultDetailsWithLpData, SubgraphVaultPosition, SupportedChain, SupportedChainFeatures, SupportedChainsFeature, SupportedChainsInclude, SupportedProtocol, SwapAmountResponse, SwapSimulationResponse, ThickQuoteParams, Token0, Token1, TokenData, TokenEdge, TokenFilter, TokenNode, TokenValueParams, TokenValueResponse, TokensConnection, UniswapHookBeacons, UniswapQuoteParams, UniswapV3PoolABI, UniswapV3QuoterABI, VAULT_FEES_ABI, VaultAllowanceParams, VaultApproveParams, VaultApr, VaultBalanceParams, VaultClient, VaultDetails, VaultDetailsResponse, VaultEdge, VaultFetchOptions, VaultFilter, VaultNode, VaultTokens, VaultsConnection, WithdrawParams, abis, apechainAddresses, arbitrumAddresses, arbitrumgoerliAddresses, arthswapConfig, astarAddresses, astarzkevmAddresses, avalancheAddresses, bartiotestAddresses, baseAddresses, baseSwapConfig, basexConfig, beraAddresses, bittensorAddresses, bittensorUniV3Config, blastAddresses, bscAddresses, calculateLimitPrice, calculateSwapAmount, camelotConfig, celoAddresses, chainIdToName, chainNameToId, crustConfig, deprecatedBundlesURL, determineSwapDirection, equilibreConfig, erc1155Abi, erc20Abi, erc721Abi, estimateLpTokens, ethAddresses, evmosAddresses, fantomAddresses, fenixConfig, filecoinAddresses, flareAddresses, forgeConfig, fusionxConfig, getAmmConfig, getAmmConfigByChainId, getApiUrl, getBeaconNameByProtocol, getContractAddressByChainIdAndContractName, getExpectedParamType, getFactoryAddress, getInitCodeHash, getNFTManagerAddress, getNetworkByChainId, getPoolHelperByChainId, getPoolSlot0, getProtcolTypeByAmmType, getProtocolBySubgraph, getProtocolConfigByBeacon, getProtocolContractAddresses, getProtocolInfoByChainId, getProtocolInfoByName, getProtocolSubgraphURL, getProtocolTypeByBeacon, getProtocolsForChainId, getQuoterV2Address, getStabilityVaultsPeripheryAddress, getStabilityVaultsSubgraphUrl, getSubgraphUrlByChainId, getSupportedChainByChainId, getSupportedChainIds, getSupportedChains, getSwapRouterAddress, getTheGraphResolverUrl, getTickLensAddress, getVaultReserves, glyphConfig, goerliAddresses, hemiAddresses, henjinConfig, herculesConfig, horizaConfig, isAerodromeVault, isAlgebraDirectionProtocol, isAlgebraIntegral21QuoteParams, isAlgebraIntegralProtocol, isAlgebraIntegralV2Protocol, isAlgebraProtocol, isAlgebraProtocolBySubgraph, isAlgebraQuoteParams, isPoolSharkProtocol, isShadowProtocol, isShadowQuoteParams, isSingleAssetDepositSupported, isThickQuoteParams, isThickV2Protocol, isUniswapQuoteParams, isValidStakingProtocol, katanaAddresses, katanaConfig, kavaAddresses, kimConfig, kinetixConfig, lineaAddresses, linehubConfig, localhostAddresses, lynexConfig, maiaConfig, mantaAddresses, mantleAddresses, metaVaultConfig, metisAddresses, modeAddresses, moonbeamAddresses, mumbaiAddresses, nestVaultConfig, networks, normalizeProtocol, novaswapConfig, okxtestnetAddresses, optimismAddresses, optimismgoerliAddresses, pancakeSwapConfig, polygonAddresses, polyzkevmAddresses, poolsharkConfig, quickSwapAlgebraConfig, quickSwapConfig, quickSwapIntegralConfig, quickSwapUniv3Config, retroConfig, rootstockAddresses, sagaAddresses, scrollAddresses, seiAddresses, shadowConfig, simulateSwap, singleTokenDepositAbi, soneiumAddresses, sonicAddresses, spark32Config, sparkConfig, stabilityVaultsConfig, steerSubgraphConfig, supswapConfig, sushiConfig, swapmodeConfig, swapsicleConfig, taikoAddresses, telosAddresses, thenaConfig, thickConfig, thrusterConfig, thundercoreAddresses, uniAddresses, uniswapConfig, validateQuoteParams, validateSwapParams, xlayerAddresses, zetaAddresses, zircuitAddresses };
|
|
10681
|
+
export { AERODROME_PROTOCOLS, ALGEBRA_INTEGRAL_PROTOCOLS, ALGEBRA_INTEGRAL_V_2_0_PROTOCOLS, ALGEBRA_PROTOCOLS, AMMConfigType, AMMType, API_URLS, AlgebgraHookBeacons, AlgebraIntegral21QuoteParams, AlgebraQuoteParams, AlgebraVaultDetails, ApiPageInfo, ApiVaultFilter, AprFilter, AprResponse, BaseQuoteParams, BaseVaultDetails, BlackholeAprDetailedParams, BlackholeAprDetailedResponse, BlackholeSnapshotAnalysis, CalculateLimitPriceParams, CalculateSwapAmountParams, Chain, ChainId, ClaimProofEdge, ClaimProofNode, ClaimProofsPageInfo, ClaimProofsResponse, ClaimRewardEdge, ClaimRewardNode, ClaimRewardParams, ClaimRewardsConnection, ClaimRewardsParams, Contract, ContractAddresses, ContractName, DIRECTIONAL_ALGEBRA_PROTOCOLS, DefaultFeeManagerConfigParams, DeprecationData, EstimateLpTokensParams, FEE_MANAGER_ABI, Fee, FeeManagerClient, FeeManagerConfigParams, FeeWithdrawalParams, FormattedRoute, GetRewardParams, GetSupportedChainsOptions, GlobalStateABI, type GraphQLPoolData, type GraphQLTokenData, LimitPoolState, LpPriceResponse, LpTokenEstimationResponse, MultiPositionManagers, MultiVaultFeeWithdrawalParams, MultipleFeeWithdrawalParams, NetworkConfig, NetworkData, Networks, POOLSHARK_PROTOCOLS, PageInfo, PendingRewardsParams, PendingRewardsResponse, PoolClient, PoolData, PoolEdge, PoolFilter, PoolNode, PoolSharkGlobalState, PoolSlot0, PoolsConnection, PoolsharkStructs, Protocol, ProtocolContractAddresses, ProtocolDetails, ProtocolInfo, QuickSwapQuoterV2, QuoteParams, QuoterFunctionArgs, QuoterV2ABI, QuoterV2AlgebgraIntegral, QuoterV2AlgebgraIntegral21, QuoterV2Factory, QuoterV2Shadow, QuoterV2Thick, Reward, RewardBalance, RewardSummary, RouteShortcut, SHADOW_PROTOCOLS, ShadowQuoteParams, SimulateSwapParams, SingleAssetDepositClient, SingleAssetDepositParams, SingleAssetDepositPreview, Slot0, SmartRewarderContract, SmartRewards, StabilityVaultInfo, StakeParams, Staking, StakingClient, StakingPool, StakingPoolFilter, StakingProtocol, SteerClient, SteerConfig, SteerResponse, SteerSupportedChains, StrykePositionManagers, SubgraphClient, SubgraphResponse, SubgraphVaultClient, SubgraphVaultDetails, SubgraphVaultDetailsWithLpData, SubgraphVaultPosition, SupportedChain, SupportedChainFeatures, SupportedChainsFeature, SupportedChainsInclude, SupportedProtocol, SwapAmountResponse, SwapSimulationResponse, ThickQuoteParams, Token0, Token1, TokenData, TokenEdge, TokenFilter, TokenNode, TokenValueParams, TokenValueResponse, TokensConnection, UniswapHookBeacons, UniswapQuoteParams, UniswapV3PoolABI, UniswapV3QuoterABI, VAULT_FEES_ABI, VaultAllowanceParams, VaultApproveParams, VaultApr, VaultBalanceParams, VaultClient, VaultDetails, VaultDetailsResponse, VaultEdge, VaultFetchOptions, VaultFilter, VaultNode, VaultTokens, VaultsConnection, WithdrawParams, abis, apechainAddresses, arbitrumAddresses, arbitrumgoerliAddresses, arthswapConfig, astarAddresses, astarzkevmAddresses, avalancheAddresses, bartiotestAddresses, baseAddresses, baseSwapConfig, basexConfig, beraAddresses, bittensorAddresses, bittensorUniV3Config, blastAddresses, bscAddresses, calculateLimitPrice, calculateSwapAmount, camelotConfig, celoAddresses, chainIdToName, chainNameToId, crustConfig, deprecatedBundlesURL, determineSwapDirection, equilibreConfig, erc1155Abi, erc20Abi, erc721Abi, estimateLpTokens, ethAddresses, evmosAddresses, fantomAddresses, fenixConfig, filecoinAddresses, flareAddresses, forgeConfig, fusionxConfig, getAmmConfig, getAmmConfigByChainId, getApiUrl, getBeaconNameByProtocol, getContractAddressByChainIdAndContractName, getExpectedParamType, getFactoryAddress, getInitCodeHash, getNFTManagerAddress, getNetworkByChainId, getPoolHelperByChainId, getPoolSlot0, getProtcolTypeByAmmType, getProtocolBySubgraph, getProtocolConfigByBeacon, getProtocolContractAddresses, getProtocolInfoByChainId, getProtocolInfoByName, getProtocolSubgraphURL, getProtocolTypeByBeacon, getProtocolsForChainId, getQuoterV2Address, getStabilityVaultsPeripheryAddress, getStabilityVaultsSubgraphUrl, getSubgraphUrlByChainId, getSupportedChainByChainId, getSupportedChainIds, getSupportedChains, getSwapRouterAddress, getTheGraphResolverUrl, getTickLensAddress, getVaultReserves, glyphConfig, goerliAddresses, hemiAddresses, henjinConfig, herculesConfig, horizaConfig, isAerodromeVault, isAlgebraDirectionProtocol, isAlgebraIntegral21QuoteParams, isAlgebraIntegralProtocol, isAlgebraIntegralV2Protocol, isAlgebraProtocol, isAlgebraProtocolBySubgraph, isAlgebraQuoteParams, isPoolSharkProtocol, isShadowProtocol, isShadowQuoteParams, isSingleAssetDepositSupported, isThickQuoteParams, isThickV2Protocol, isUniswapQuoteParams, isValidStakingProtocol, katanaAddresses, katanaConfig, kavaAddresses, kimConfig, kinetixConfig, lineaAddresses, linehubConfig, localhostAddresses, lynexConfig, maiaConfig, mantaAddresses, mantleAddresses, metaVaultConfig, metisAddresses, modeAddresses, moonbeamAddresses, mumbaiAddresses, nestVaultConfig, networks, normalizeProtocol, novaswapConfig, okxtestnetAddresses, optimismAddresses, optimismgoerliAddresses, pancakeSwapConfig, polygonAddresses, polyzkevmAddresses, poolsharkConfig, quickSwapAlgebraConfig, quickSwapConfig, quickSwapIntegralConfig, quickSwapUniv3Config, retroConfig, robinhoodAddresses, rootstockAddresses, sagaAddresses, scrollAddresses, seiAddresses, shadowConfig, simulateSwap, singleTokenDepositAbi, soneiumAddresses, sonicAddresses, spark32Config, sparkConfig, stabilityVaultsConfig, steerSubgraphConfig, supswapConfig, sushiConfig, swapmodeConfig, swapsicleConfig, taikoAddresses, telosAddresses, thenaConfig, thickConfig, thrusterConfig, thundercoreAddresses, uniAddresses, uniswapConfig, validateQuoteParams, validateSwapParams, xlayerAddresses, zetaAddresses, zircuitAddresses };
|
|
11080
10682
|
//# sourceMappingURL=index.d.mts.map
|