@swapkit/core 1.0.0-rc.119 → 1.0.0-rc.120

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.
@@ -1,31 +0,0 @@
1
- import { RequestClient } from "@swapkit/helpers";
2
- import type { Chain } from "@swapkit/types";
3
- import { ApiUrl } from "@swapkit/types";
4
-
5
- type InboundAddressData = {
6
- address: string;
7
- chain: Chain;
8
- chain_lp_actions_paused: boolean;
9
- chain_trading_paused: boolean;
10
- dust_threshold: string;
11
- gas_rate: string;
12
- gas_rate_units: string;
13
- global_trading_paused: boolean;
14
- halted: boolean;
15
- outbound_fee: string;
16
- outbound_tx_size: string;
17
- pub_key: string;
18
- router: string;
19
- }[];
20
-
21
- export const getMayaInboundData = (stagenet: boolean) => {
22
- const baseUrl = stagenet ? ApiUrl.MayanodeStagenet : ApiUrl.MayanodeMainnet;
23
-
24
- return RequestClient.get<InboundAddressData>(`${baseUrl}/mayachain/inbound_addresses`);
25
- };
26
-
27
- export const getMayaMimirData = (stagenet: boolean) => {
28
- const baseUrl = stagenet ? ApiUrl.MayanodeStagenet : ApiUrl.MayanodeMainnet;
29
-
30
- return RequestClient.get<Record<string, number>>(`${baseUrl}/mayachain/mimir`);
31
- };
@@ -1,31 +0,0 @@
1
- import { RequestClient } from "@swapkit/helpers";
2
- import type { Chain } from "@swapkit/types";
3
- import { ApiUrl } from "@swapkit/types";
4
-
5
- type InboundAddressData = {
6
- address: string;
7
- chain: Chain;
8
- chain_lp_actions_paused: boolean;
9
- chain_trading_paused: boolean;
10
- dust_threshold: string;
11
- gas_rate: string;
12
- gas_rate_units: string;
13
- global_trading_paused: boolean;
14
- halted: boolean;
15
- outbound_fee: string;
16
- outbound_tx_size: string;
17
- pub_key: string;
18
- router: string;
19
- }[];
20
-
21
- export const getThorInboundData = (stagenet: boolean) => {
22
- const baseUrl = stagenet ? ApiUrl.ThornodeStagenet : ApiUrl.ThornodeMainnet;
23
-
24
- return RequestClient.get<InboundAddressData>(`${baseUrl}/thorchain/inbound_addresses`);
25
- };
26
-
27
- export const getThorMimirData = (stagenet: boolean) => {
28
- const baseUrl = stagenet ? ApiUrl.ThornodeStagenet : ApiUrl.ThornodeMainnet;
29
-
30
- return RequestClient.get<Record<string, number>>(`${baseUrl}/thorchain/mimir`);
31
- };