@pioneer-platform/maya-network 8.5.0 → 8.6.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.
@@ -0,0 +1,2 @@
1
+
2
+ $ tsc -p .
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @pioneer-platform/maya-network
2
2
 
3
+ ## 8.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Automated minor version bump for all packages
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @pioneer-platform/loggerdog@8.6.0
13
+
3
14
  ## 8.5.0
4
15
 
5
16
  ### Minor Changes
package/build.sh ADDED
@@ -0,0 +1,22 @@
1
+ #!/bin/bash
2
+ # Fast Bun build (replaces slow tsc)
3
+
4
+ OUTDIR="${1:-lib}"
5
+ ENTRY="${2:-src/index.ts}"
6
+
7
+ # Clean output
8
+ rm -rf "$OUTDIR"
9
+ mkdir -p "$OUTDIR"
10
+
11
+ # Build with Bun (10x faster than tsc)
12
+ bun build "$ENTRY" \
13
+ --outdir "$OUTDIR" \
14
+ --target node \
15
+ --format cjs \
16
+ --sourcemap \
17
+ --minify
18
+
19
+ # Generate TypeScript declarations
20
+ bunx tsc --emitDeclarationOnly --outDir "$OUTDIR" --project .
21
+
22
+ echo "✅ Built $OUTDIR"
package/lib/index.d.ts ADDED
@@ -0,0 +1,32 @@
1
+ declare const TAG = " | thorchain-api | ";
2
+ declare const prettyjson: any;
3
+ declare const axiosLib: any;
4
+ declare const Axios: any;
5
+ declare const https: any;
6
+ declare const axios: any;
7
+ declare const axiosRetry: any;
8
+ declare const log: any;
9
+ declare let URL_THORNODE: string;
10
+ declare let URL_MIDGARD: string;
11
+ declare let BASE_THOR: number;
12
+ /**********************************
13
+ // Lib
14
+ //**********************************/
15
+ declare const get_pool: (poolId: string) => Promise<any>;
16
+ declare const get_pools: () => Promise<any>;
17
+ declare const get_pool_addresses: () => Promise<any>;
18
+ declare let get_last_block: () => Promise<any>;
19
+ declare let get_block_height: () => Promise<any>;
20
+ declare let get_transaction: (txid: string) => Promise<any>;
21
+ declare let broadcast_transaction: (tx: string) => Promise<any>;
22
+ declare let get_account_info: (address: string) => Promise<any>;
23
+ declare let normalize_tx: (tx: any, address?: string) => any;
24
+ declare let get_txs_by_address: (address: string) => Promise<any>;
25
+ declare let get_balance: (address: string) => Promise<number>;
26
+ declare let get_balances: (address: string) => Promise<{
27
+ denom: any;
28
+ amountBase: any;
29
+ amount: number;
30
+ decimals: number;
31
+ }[]>;
32
+ declare let get_node_info_verbose: () => Promise<any>;