@steerprotocol/sdk 3.1.0-test-archived-subgraph-support.2 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.browser.mjs +108 -14
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.cjs +114 -23356
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +108 -511
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +114 -23359
- 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 {
|
|
@@ -7469,130 +7474,130 @@ declare const abis: {
|
|
|
7469
7474
|
};
|
|
7470
7475
|
//#endregion
|
|
7471
7476
|
//#region src/const/deployments/apechain.d.ts
|
|
7472
|
-
interface Contract$
|
|
7477
|
+
interface Contract$48 {
|
|
7473
7478
|
address: string;
|
|
7474
7479
|
startBlock?: number;
|
|
7475
7480
|
}
|
|
7476
|
-
declare const apechainAddresses: Record<string, Contract$
|
|
7481
|
+
declare const apechainAddresses: Record<string, Contract$48>;
|
|
7477
7482
|
//#endregion
|
|
7478
7483
|
//#region src/const/deployments/arbitrum.d.ts
|
|
7479
|
-
interface Contract$
|
|
7484
|
+
interface Contract$47 {
|
|
7480
7485
|
address: string;
|
|
7481
7486
|
startBlock?: number;
|
|
7482
7487
|
}
|
|
7483
|
-
declare const arbitrumAddresses: Record<string, Contract$
|
|
7488
|
+
declare const arbitrumAddresses: Record<string, Contract$47>;
|
|
7484
7489
|
//#endregion
|
|
7485
7490
|
//#region src/const/deployments/arbitrumgoerli.d.ts
|
|
7486
|
-
interface Contract$
|
|
7491
|
+
interface Contract$46 {
|
|
7487
7492
|
address: string;
|
|
7488
7493
|
startBlock?: number;
|
|
7489
7494
|
}
|
|
7490
|
-
declare const arbitrumgoerliAddresses: Record<string, Contract$
|
|
7495
|
+
declare const arbitrumgoerliAddresses: Record<string, Contract$46>;
|
|
7491
7496
|
//#endregion
|
|
7492
7497
|
//#region src/const/deployments/astar.d.ts
|
|
7493
|
-
interface Contract$
|
|
7498
|
+
interface Contract$45 {
|
|
7494
7499
|
address: string;
|
|
7495
7500
|
startBlock?: number;
|
|
7496
7501
|
}
|
|
7497
|
-
declare const astarAddresses: Record<string, Contract$
|
|
7502
|
+
declare const astarAddresses: Record<string, Contract$45>;
|
|
7498
7503
|
//#endregion
|
|
7499
7504
|
//#region src/const/deployments/astarzkevm.d.ts
|
|
7500
|
-
interface Contract$
|
|
7505
|
+
interface Contract$44 {
|
|
7501
7506
|
address: string;
|
|
7502
7507
|
startBlock?: number;
|
|
7503
7508
|
}
|
|
7504
|
-
declare const astarzkevmAddresses: Record<string, Contract$
|
|
7509
|
+
declare const astarzkevmAddresses: Record<string, Contract$44>;
|
|
7505
7510
|
//#endregion
|
|
7506
7511
|
//#region src/const/deployments/avalanche.d.ts
|
|
7507
|
-
interface Contract$
|
|
7512
|
+
interface Contract$43 {
|
|
7508
7513
|
address: string;
|
|
7509
7514
|
startBlock?: number;
|
|
7510
7515
|
}
|
|
7511
|
-
declare const avalancheAddresses: Record<string, Contract$
|
|
7516
|
+
declare const avalancheAddresses: Record<string, Contract$43>;
|
|
7512
7517
|
//#endregion
|
|
7513
7518
|
//#region src/const/deployments/bartiotest.d.ts
|
|
7514
|
-
interface Contract$
|
|
7519
|
+
interface Contract$42 {
|
|
7515
7520
|
address: string;
|
|
7516
7521
|
startBlock?: number;
|
|
7517
7522
|
}
|
|
7518
|
-
declare const bartiotestAddresses: Record<string, Contract$
|
|
7523
|
+
declare const bartiotestAddresses: Record<string, Contract$42>;
|
|
7519
7524
|
//#endregion
|
|
7520
7525
|
//#region src/const/deployments/base.d.ts
|
|
7521
|
-
interface Contract$
|
|
7526
|
+
interface Contract$41 {
|
|
7522
7527
|
address: string;
|
|
7523
7528
|
startBlock?: number;
|
|
7524
7529
|
}
|
|
7525
|
-
declare const baseAddresses: Record<string, Contract$
|
|
7530
|
+
declare const baseAddresses: Record<string, Contract$41>;
|
|
7526
7531
|
//#endregion
|
|
7527
7532
|
//#region src/const/deployments/blast.d.ts
|
|
7528
|
-
interface Contract$
|
|
7533
|
+
interface Contract$40 {
|
|
7529
7534
|
address: string;
|
|
7530
7535
|
startBlock?: number;
|
|
7531
7536
|
}
|
|
7532
|
-
declare const blastAddresses: Record<string, Contract$
|
|
7537
|
+
declare const blastAddresses: Record<string, Contract$40>;
|
|
7533
7538
|
//#endregion
|
|
7534
7539
|
//#region src/const/deployments/bsc.d.ts
|
|
7535
|
-
interface Contract$
|
|
7540
|
+
interface Contract$39 {
|
|
7536
7541
|
address: string;
|
|
7537
7542
|
startBlock?: number;
|
|
7538
7543
|
}
|
|
7539
|
-
declare const bscAddresses: Record<string, Contract$
|
|
7544
|
+
declare const bscAddresses: Record<string, Contract$39>;
|
|
7540
7545
|
//#endregion
|
|
7541
7546
|
//#region src/const/deployments/celo.d.ts
|
|
7542
|
-
interface Contract$
|
|
7547
|
+
interface Contract$38 {
|
|
7543
7548
|
address: string;
|
|
7544
7549
|
startBlock?: number;
|
|
7545
7550
|
}
|
|
7546
|
-
declare const celoAddresses: Record<string, Contract$
|
|
7551
|
+
declare const celoAddresses: Record<string, Contract$38>;
|
|
7547
7552
|
//#endregion
|
|
7548
7553
|
//#region src/const/deployments/evmos.d.ts
|
|
7549
|
-
interface Contract$
|
|
7554
|
+
interface Contract$37 {
|
|
7550
7555
|
address: string;
|
|
7551
7556
|
startBlock?: number;
|
|
7552
7557
|
}
|
|
7553
|
-
declare const evmosAddresses: Record<string, Contract$
|
|
7558
|
+
declare const evmosAddresses: Record<string, Contract$37>;
|
|
7554
7559
|
//#endregion
|
|
7555
7560
|
//#region src/const/deployments/fantom.d.ts
|
|
7556
|
-
interface Contract$
|
|
7561
|
+
interface Contract$36 {
|
|
7557
7562
|
address: string;
|
|
7558
7563
|
startBlock?: number;
|
|
7559
7564
|
}
|
|
7560
|
-
declare const fantomAddresses: Record<string, Contract$
|
|
7565
|
+
declare const fantomAddresses: Record<string, Contract$36>;
|
|
7561
7566
|
//#endregion
|
|
7562
7567
|
//#region src/const/deployments/filecoin.d.ts
|
|
7563
|
-
interface Contract$
|
|
7568
|
+
interface Contract$35 {
|
|
7564
7569
|
address: string;
|
|
7565
7570
|
startBlock?: number;
|
|
7566
7571
|
}
|
|
7567
|
-
declare const filecoinAddresses: Record<string, Contract$
|
|
7572
|
+
declare const filecoinAddresses: Record<string, Contract$35>;
|
|
7568
7573
|
//#endregion
|
|
7569
7574
|
//#region src/const/deployments/flare.d.ts
|
|
7570
|
-
interface Contract$
|
|
7575
|
+
interface Contract$34 {
|
|
7571
7576
|
address: string;
|
|
7572
7577
|
startBlock?: number;
|
|
7573
7578
|
}
|
|
7574
|
-
declare const flareAddresses: Record<string, Contract$
|
|
7579
|
+
declare const flareAddresses: Record<string, Contract$34>;
|
|
7575
7580
|
//#endregion
|
|
7576
7581
|
//#region src/const/deployments/goerli.d.ts
|
|
7577
|
-
interface Contract$
|
|
7582
|
+
interface Contract$33 {
|
|
7578
7583
|
address: string;
|
|
7579
7584
|
startBlock?: number;
|
|
7580
7585
|
}
|
|
7581
|
-
declare const goerliAddresses: Record<string, Contract$
|
|
7586
|
+
declare const goerliAddresses: Record<string, Contract$33>;
|
|
7582
7587
|
//#endregion
|
|
7583
7588
|
//#region src/const/deployments/kava.d.ts
|
|
7584
|
-
interface Contract$
|
|
7589
|
+
interface Contract$32 {
|
|
7585
7590
|
address: string;
|
|
7586
7591
|
startBlock?: number;
|
|
7587
7592
|
}
|
|
7588
|
-
declare const kavaAddresses: Record<string, Contract$
|
|
7593
|
+
declare const kavaAddresses: Record<string, Contract$32>;
|
|
7589
7594
|
//#endregion
|
|
7590
7595
|
//#region src/const/deployments/linea.d.ts
|
|
7591
|
-
interface Contract$
|
|
7596
|
+
interface Contract$31 {
|
|
7592
7597
|
address: string;
|
|
7593
7598
|
startBlock?: number;
|
|
7594
7599
|
}
|
|
7595
|
-
declare const lineaAddresses: Record<string, Contract$
|
|
7600
|
+
declare const lineaAddresses: Record<string, Contract$31>;
|
|
7596
7601
|
//#endregion
|
|
7597
7602
|
//#region src/const/deployments/localhost.d.ts
|
|
7598
7603
|
declare const localhostAddresses: {
|
|
@@ -7604,207 +7609,214 @@ declare const localhostAddresses: {
|
|
|
7604
7609
|
};
|
|
7605
7610
|
//#endregion
|
|
7606
7611
|
//#region src/const/deployments/eth.d.ts
|
|
7607
|
-
interface Contract$
|
|
7612
|
+
interface Contract$30 {
|
|
7608
7613
|
address: string;
|
|
7609
7614
|
startBlock?: number;
|
|
7610
7615
|
}
|
|
7611
|
-
declare const ethAddresses: Record<string, Contract$
|
|
7616
|
+
declare const ethAddresses: Record<string, Contract$30>;
|
|
7612
7617
|
//#endregion
|
|
7613
7618
|
//#region src/const/deployments/manta.d.ts
|
|
7614
|
-
interface Contract$
|
|
7619
|
+
interface Contract$29 {
|
|
7615
7620
|
address: string;
|
|
7616
7621
|
startBlock?: number;
|
|
7617
7622
|
}
|
|
7618
|
-
declare const mantaAddresses: Record<string, Contract$
|
|
7623
|
+
declare const mantaAddresses: Record<string, Contract$29>;
|
|
7619
7624
|
//#endregion
|
|
7620
7625
|
//#region src/const/deployments/mantle.d.ts
|
|
7621
|
-
interface Contract$
|
|
7626
|
+
interface Contract$28 {
|
|
7622
7627
|
address: string;
|
|
7623
7628
|
startBlock?: number;
|
|
7624
7629
|
}
|
|
7625
|
-
declare const mantleAddresses: Record<string, Contract$
|
|
7630
|
+
declare const mantleAddresses: Record<string, Contract$28>;
|
|
7626
7631
|
//#endregion
|
|
7627
7632
|
//#region src/const/deployments/metis.d.ts
|
|
7628
|
-
interface Contract$
|
|
7633
|
+
interface Contract$27 {
|
|
7629
7634
|
address: string;
|
|
7630
7635
|
startBlock?: number;
|
|
7631
7636
|
}
|
|
7632
|
-
declare const metisAddresses: Record<string, Contract$
|
|
7637
|
+
declare const metisAddresses: Record<string, Contract$27>;
|
|
7633
7638
|
//#endregion
|
|
7634
7639
|
//#region src/const/deployments/mode.d.ts
|
|
7635
|
-
interface Contract$
|
|
7640
|
+
interface Contract$26 {
|
|
7636
7641
|
address: string;
|
|
7637
7642
|
startBlock?: number;
|
|
7638
7643
|
}
|
|
7639
|
-
declare const modeAddresses: Record<string, Contract$
|
|
7644
|
+
declare const modeAddresses: Record<string, Contract$26>;
|
|
7640
7645
|
//#endregion
|
|
7641
7646
|
//#region src/const/deployments/moonbeam.d.ts
|
|
7642
|
-
interface Contract$
|
|
7647
|
+
interface Contract$25 {
|
|
7643
7648
|
address: string;
|
|
7644
7649
|
startBlock?: number;
|
|
7645
7650
|
}
|
|
7646
|
-
declare const moonbeamAddresses: Record<string, Contract$
|
|
7651
|
+
declare const moonbeamAddresses: Record<string, Contract$25>;
|
|
7647
7652
|
//#endregion
|
|
7648
7653
|
//#region src/const/deployments/mumbai.d.ts
|
|
7649
|
-
interface Contract$
|
|
7654
|
+
interface Contract$24 {
|
|
7650
7655
|
address: string;
|
|
7651
7656
|
startBlock?: number;
|
|
7652
7657
|
}
|
|
7653
|
-
declare const mumbaiAddresses: Record<string, Contract$
|
|
7658
|
+
declare const mumbaiAddresses: Record<string, Contract$24>;
|
|
7654
7659
|
//#endregion
|
|
7655
7660
|
//#region src/const/deployments/okxtestnet.d.ts
|
|
7656
|
-
interface Contract$
|
|
7661
|
+
interface Contract$23 {
|
|
7657
7662
|
address: string;
|
|
7658
7663
|
startBlock?: number;
|
|
7659
7664
|
}
|
|
7660
|
-
declare const okxtestnetAddresses: Record<string, Contract$
|
|
7665
|
+
declare const okxtestnetAddresses: Record<string, Contract$23>;
|
|
7661
7666
|
//#endregion
|
|
7662
7667
|
//#region src/const/deployments/optimism.d.ts
|
|
7663
|
-
interface Contract$
|
|
7668
|
+
interface Contract$22 {
|
|
7664
7669
|
address: string;
|
|
7665
7670
|
startBlock?: number;
|
|
7666
7671
|
}
|
|
7667
|
-
declare const optimismAddresses: Record<string, Contract$
|
|
7672
|
+
declare const optimismAddresses: Record<string, Contract$22>;
|
|
7668
7673
|
//#endregion
|
|
7669
7674
|
//#region src/const/deployments/optimismgoerli.d.ts
|
|
7670
|
-
interface Contract$
|
|
7675
|
+
interface Contract$21 {
|
|
7671
7676
|
address: string;
|
|
7672
7677
|
startBlock?: number;
|
|
7673
7678
|
}
|
|
7674
|
-
declare const optimismgoerliAddresses: Record<string, Contract$
|
|
7679
|
+
declare const optimismgoerliAddresses: Record<string, Contract$21>;
|
|
7675
7680
|
//#endregion
|
|
7676
7681
|
//#region src/const/deployments/polygon.d.ts
|
|
7677
|
-
interface Contract$
|
|
7682
|
+
interface Contract$20 {
|
|
7678
7683
|
address: string;
|
|
7679
7684
|
startBlock?: number;
|
|
7680
7685
|
}
|
|
7681
|
-
declare const polygonAddresses: Record<string, Contract$
|
|
7686
|
+
declare const polygonAddresses: Record<string, Contract$20>;
|
|
7682
7687
|
//#endregion
|
|
7683
7688
|
//#region src/const/deployments/polyzkevm.d.ts
|
|
7684
|
-
interface Contract$
|
|
7689
|
+
interface Contract$19 {
|
|
7685
7690
|
address: string;
|
|
7686
7691
|
startBlock?: number;
|
|
7687
7692
|
}
|
|
7688
|
-
declare const polyzkevmAddresses: Record<string, Contract$
|
|
7693
|
+
declare const polyzkevmAddresses: Record<string, Contract$19>;
|
|
7689
7694
|
//#endregion
|
|
7690
7695
|
//#region src/const/deployments/rootstock.d.ts
|
|
7691
|
-
interface Contract$
|
|
7696
|
+
interface Contract$18 {
|
|
7692
7697
|
address: string;
|
|
7693
7698
|
startBlock?: number;
|
|
7694
7699
|
}
|
|
7695
|
-
declare const rootstockAddresses: Record<string, Contract$
|
|
7700
|
+
declare const rootstockAddresses: Record<string, Contract$18>;
|
|
7696
7701
|
//#endregion
|
|
7697
7702
|
//#region src/const/deployments/scroll.d.ts
|
|
7698
|
-
interface Contract$
|
|
7703
|
+
interface Contract$17 {
|
|
7699
7704
|
address: string;
|
|
7700
7705
|
startBlock?: number;
|
|
7701
7706
|
}
|
|
7702
|
-
declare const scrollAddresses: Record<string, Contract$
|
|
7707
|
+
declare const scrollAddresses: Record<string, Contract$17>;
|
|
7703
7708
|
//#endregion
|
|
7704
7709
|
//#region src/const/deployments/sei.d.ts
|
|
7705
|
-
interface Contract$
|
|
7710
|
+
interface Contract$16 {
|
|
7706
7711
|
address: string;
|
|
7707
7712
|
startBlock?: number;
|
|
7708
7713
|
}
|
|
7709
|
-
declare const seiAddresses: Record<string, Contract$
|
|
7714
|
+
declare const seiAddresses: Record<string, Contract$16>;
|
|
7710
7715
|
//#endregion
|
|
7711
7716
|
//#region src/const/deployments/sonic.d.ts
|
|
7712
|
-
interface Contract$
|
|
7717
|
+
interface Contract$15 {
|
|
7713
7718
|
address: string;
|
|
7714
7719
|
startBlock?: number;
|
|
7715
7720
|
}
|
|
7716
|
-
declare const sonicAddresses: Record<string, Contract$
|
|
7721
|
+
declare const sonicAddresses: Record<string, Contract$15>;
|
|
7717
7722
|
//#endregion
|
|
7718
7723
|
//#region src/const/deployments/taiko.d.ts
|
|
7719
|
-
interface Contract$
|
|
7724
|
+
interface Contract$14 {
|
|
7720
7725
|
address: string;
|
|
7721
7726
|
startBlock?: number;
|
|
7722
7727
|
}
|
|
7723
|
-
declare const taikoAddresses: Record<string, Contract$
|
|
7728
|
+
declare const taikoAddresses: Record<string, Contract$14>;
|
|
7724
7729
|
//#endregion
|
|
7725
7730
|
//#region src/const/deployments/telos.d.ts
|
|
7726
|
-
interface Contract$
|
|
7731
|
+
interface Contract$13 {
|
|
7727
7732
|
address: string;
|
|
7728
7733
|
startBlock?: number;
|
|
7729
7734
|
}
|
|
7730
|
-
declare const telosAddresses: Record<string, Contract$
|
|
7735
|
+
declare const telosAddresses: Record<string, Contract$13>;
|
|
7731
7736
|
//#endregion
|
|
7732
7737
|
//#region src/const/deployments/thundercore.d.ts
|
|
7733
|
-
interface Contract$
|
|
7738
|
+
interface Contract$12 {
|
|
7734
7739
|
address: string;
|
|
7735
7740
|
startBlock?: number;
|
|
7736
7741
|
}
|
|
7737
|
-
declare const thundercoreAddresses: Record<string, Contract$
|
|
7742
|
+
declare const thundercoreAddresses: Record<string, Contract$12>;
|
|
7738
7743
|
//#endregion
|
|
7739
7744
|
//#region src/const/deployments/xlayer.d.ts
|
|
7740
|
-
interface Contract$
|
|
7745
|
+
interface Contract$11 {
|
|
7741
7746
|
address: string;
|
|
7742
7747
|
startBlock?: number;
|
|
7743
7748
|
}
|
|
7744
|
-
declare const xlayerAddresses: Record<string, Contract$
|
|
7749
|
+
declare const xlayerAddresses: Record<string, Contract$11>;
|
|
7745
7750
|
//#endregion
|
|
7746
7751
|
//#region src/const/deployments/zircuit.d.ts
|
|
7747
|
-
interface Contract$
|
|
7752
|
+
interface Contract$10 {
|
|
7748
7753
|
address: string;
|
|
7749
7754
|
startBlock?: number;
|
|
7750
7755
|
}
|
|
7751
|
-
declare const zircuitAddresses: Record<string, Contract$
|
|
7756
|
+
declare const zircuitAddresses: Record<string, Contract$10>;
|
|
7752
7757
|
//#endregion
|
|
7753
7758
|
//#region src/const/deployments/hemi.d.ts
|
|
7754
|
-
interface Contract$
|
|
7759
|
+
interface Contract$9 {
|
|
7755
7760
|
address: string;
|
|
7756
7761
|
startBlock?: number;
|
|
7757
7762
|
}
|
|
7758
|
-
declare const hemiAddresses: Record<string, Contract$
|
|
7763
|
+
declare const hemiAddresses: Record<string, Contract$9>;
|
|
7759
7764
|
//#endregion
|
|
7760
7765
|
//#region src/const/deployments/soneium.d.ts
|
|
7761
|
-
interface Contract$
|
|
7766
|
+
interface Contract$8 {
|
|
7762
7767
|
address: string;
|
|
7763
7768
|
startBlock?: number;
|
|
7764
7769
|
}
|
|
7765
|
-
declare const soneiumAddresses: Record<string, Contract$
|
|
7770
|
+
declare const soneiumAddresses: Record<string, Contract$8>;
|
|
7766
7771
|
//#endregion
|
|
7767
7772
|
//#region src/const/deployments/uni.d.ts
|
|
7768
|
-
interface Contract$
|
|
7773
|
+
interface Contract$7 {
|
|
7769
7774
|
address: string;
|
|
7770
7775
|
startBlock?: number;
|
|
7771
7776
|
}
|
|
7772
|
-
declare const uniAddresses: Record<string, Contract$
|
|
7777
|
+
declare const uniAddresses: Record<string, Contract$7>;
|
|
7773
7778
|
//#endregion
|
|
7774
7779
|
//#region src/const/deployments/zeta.d.ts
|
|
7775
|
-
interface Contract$
|
|
7780
|
+
interface Contract$6 {
|
|
7776
7781
|
address: string;
|
|
7777
7782
|
startBlock?: number;
|
|
7778
7783
|
}
|
|
7779
|
-
declare const zetaAddresses: Record<string, Contract$
|
|
7784
|
+
declare const zetaAddresses: Record<string, Contract$6>;
|
|
7780
7785
|
//#endregion
|
|
7781
7786
|
//#region src/const/deployments/bera.d.ts
|
|
7782
|
-
interface Contract$
|
|
7787
|
+
interface Contract$5 {
|
|
7783
7788
|
address: string;
|
|
7784
7789
|
startBlock?: number;
|
|
7785
7790
|
}
|
|
7786
|
-
declare const beraAddresses: Record<string, Contract$
|
|
7791
|
+
declare const beraAddresses: Record<string, Contract$5>;
|
|
7787
7792
|
//#endregion
|
|
7788
7793
|
//#region src/const/deployments/katana.d.ts
|
|
7789
|
-
interface Contract$
|
|
7794
|
+
interface Contract$4 {
|
|
7790
7795
|
address: string;
|
|
7791
7796
|
startBlock?: number;
|
|
7792
7797
|
}
|
|
7793
|
-
declare const katanaAddresses: Record<string, Contract$
|
|
7798
|
+
declare const katanaAddresses: Record<string, Contract$4>;
|
|
7794
7799
|
//#endregion
|
|
7795
7800
|
//#region src/const/deployments/saga.d.ts
|
|
7796
|
-
interface Contract$
|
|
7801
|
+
interface Contract$3 {
|
|
7797
7802
|
address: string;
|
|
7798
7803
|
startBlock?: number;
|
|
7799
7804
|
}
|
|
7800
|
-
declare const sagaAddresses: Record<string, Contract$
|
|
7805
|
+
declare const sagaAddresses: Record<string, Contract$3>;
|
|
7801
7806
|
//#endregion
|
|
7802
7807
|
//#region src/const/deployments/bittensor.d.ts
|
|
7808
|
+
interface Contract$2 {
|
|
7809
|
+
address: string;
|
|
7810
|
+
startBlock?: number;
|
|
7811
|
+
}
|
|
7812
|
+
declare const bittensorAddresses: Record<string, Contract$2>;
|
|
7813
|
+
//#endregion
|
|
7814
|
+
//#region src/const/deployments/robinhood.d.ts
|
|
7803
7815
|
interface Contract$1 {
|
|
7804
7816
|
address: string;
|
|
7805
7817
|
startBlock?: number;
|
|
7806
7818
|
}
|
|
7807
|
-
declare const
|
|
7819
|
+
declare const robinhoodAddresses: Record<string, Contract$1>;
|
|
7808
7820
|
//#endregion
|
|
7809
7821
|
//#region src/const/capabilities.d.ts
|
|
7810
7822
|
type SupportedChainsFeature = 'subgraph' | 'deployments' | 'protocols' | 'singleAssetDeposit';
|
|
@@ -8545,421 +8557,6 @@ interface PoolSlot0 {
|
|
|
8545
8557
|
unlocked: boolean;
|
|
8546
8558
|
}
|
|
8547
8559
|
//#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
8560
|
//#region src/base/SubgraphClient.d.ts
|
|
8964
8561
|
declare abstract class SubgraphClient {
|
|
8965
8562
|
protected readonly client: Client;
|
|
@@ -11076,5 +10673,5 @@ declare class FeeManagerClient extends SubgraphClient {
|
|
|
11076
10673
|
}[]>>;
|
|
11077
10674
|
}
|
|
11078
10675
|
//#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 };
|
|
10676
|
+
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
10677
|
//# sourceMappingURL=index.d.mts.map
|