@coin-voyage/crypto 2.2.0-beta.0 → 2.2.0-beta.2

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,64 +1,7 @@
1
- import { Chain, Client, FallbackTransport, HttpTransport, PublicActions, WalletActions } from "@bigmi/core";
1
+ import { type UTXOSchema, Chain, Client, FallbackTransport, HttpTransport, PublicActions, WalletActions } from "@bigmi/core";
2
2
  /**
3
3
  * Get an instance of a provider for a specific chain
4
4
  * @param chainId - Id of the chain the provider is for
5
5
  * @returns The public client for the given chain
6
6
  */
7
- export declare const getUTXOPublicClient: (chainId: number) => Promise<Client<FallbackTransport<readonly HttpTransport[]>, Chain, undefined, [{
8
- Method: "getblockcount";
9
- Parameters: [];
10
- ReturnType: number;
11
- }, {
12
- Method: "getblockhash";
13
- Parameters: [number];
14
- ReturnType: string;
15
- }, {
16
- Method: "getblock";
17
- Parameters: [string, number];
18
- ReturnType: string;
19
- }, {
20
- Method: "getblockstats";
21
- Parameters: [string | number, Array<import("@bigmi/core").BlockStatsKeys>?];
22
- ReturnType: import("@bigmi/core").BlockStats;
23
- }, {
24
- Method: "sendrawtransaction";
25
- Parameters: [string, number?];
26
- ReturnType: string;
27
- }, {
28
- Method: "getrawtransaction";
29
- Parameters: [string, boolean, string?];
30
- ReturnType: import("@bigmi/core").UTXOTransaction;
31
- }, {
32
- Method: "getBalance";
33
- Parameters: {
34
- address: string;
35
- };
36
- ReturnType: bigint;
37
- }, {
38
- Method: "getTransactions";
39
- Parameters: {
40
- address: string;
41
- offset?: number;
42
- limit?: number;
43
- lastBlock?: string;
44
- afterTxId?: string;
45
- };
46
- ReturnType: {
47
- transactions: Array<Partial<import("@bigmi/core").UTXOTransaction>>;
48
- total: number;
49
- hasMore?: boolean;
50
- };
51
- }, {
52
- Method: "getTransactionFee";
53
- Parameters: {
54
- txId: string;
55
- };
56
- ReturnType: bigint;
57
- }, {
58
- Method: "getUTXOs";
59
- Parameters: {
60
- address: string;
61
- minValue?: number;
62
- };
63
- ReturnType: Array<import("@bigmi/core/dist/esm/types/transaction").UTXO>;
64
- }], PublicActions & WalletActions>>;
7
+ export declare const getUTXOPublicClient: (chainId: number) => Promise<Client<FallbackTransport<readonly HttpTransport[]>, Chain, undefined, UTXOSchema, PublicActions & WalletActions>>;
@@ -1 +1 @@
1
- {"version":3,"file":"utxo-public-client.js","sourceRoot":"","sources":["../../src/utxo/utxo-public-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,IAAI,EACJ,OAAO,EACP,UAAU,EACV,WAAW,EAGX,YAAY,EACZ,QAAQ,EAGR,OAAO,EACP,aAAa,EAEb,SAAS,EACT,aAAa,GAEd,MAAM,aAAa,CAAA;AAEpB,mBAAmB;AACnB,MAAM,aAAa,GAGf,EAAE,CAAA;AAEN;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EAAE,OAAe,EAAE,EAAE;IAC3D,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5B,MAAM,MAAM,GAAG,YAAY,CAAC;YAC1B,KAAK,EAAE,OAAO;YACd,SAAS,EAAE,SAAS,EAAc;YAClC,SAAS,EAAE,QAAQ,CAAC,CAAC,UAAU,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;YACrE,eAAe,EAAE,KAAM;SACxB,CAAC;aACC,MAAM,CAAC,aAAa,CAAC;aACrB,MAAM,CAAC,aAAa,CAAC,CAAA;QACxB,aAAa,CAAC,OAAO,CAAC,GAAG,MAAM,CAAA;IACjC,CAAC;IAED,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CAAC,0CAA0C,OAAO,EAAE,CAAC,CAAA;IACtE,CAAC;IAED,OAAO,aAAa,CAAC,OAAO,CAAC,CAAA;AAC/B,CAAC,CAAA"}
1
+ {"version":3,"file":"utxo-public-client.js","sourceRoot":"","sources":["../../src/utxo/utxo-public-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,IAAI,EACJ,OAAO,EACP,UAAU,EACV,WAAW,EAGX,YAAY,EACZ,QAAQ,EAGR,OAAO,EACP,aAAa,EAEb,SAAS,EACT,aAAa,GAEd,MAAM,aAAa,CAAA;AAEpB,mBAAmB;AACnB,MAAM,aAAa,GAGf,EAAE,CAAA;AAEN;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EACtC,OAAe,EAC4G,EAAE;IAC7H,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5B,MAAM,MAAM,GAAG,YAAY,CAAC;YAC1B,KAAK,EAAE,OAAO;YACd,SAAS,EAAE,SAAS,EAAc;YAClC,SAAS,EAAE,QAAQ,CAAC,CAAC,UAAU,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;YACrE,eAAe,EAAE,KAAM;SACxB,CAAC;aACC,MAAM,CAAC,aAAa,CAAC;aACrB,MAAM,CAAC,aAAa,CAAC,CAAA;QACxB,aAAa,CAAC,OAAO,CAAC,GAAG,MAAM,CAAA;IACjC,CAAC;IAED,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CAAC,0CAA0C,OAAO,EAAE,CAAC,CAAA;IACtE,CAAC;IAED,OAAO,aAAa,CAAC,OAAO,CAAC,CAAA;AAC/B,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
2
  "name": "@coin-voyage/crypto",
3
3
  "description": "Crypto utilities for Coin Voyage",
4
- "version": "2.2.0-beta.0",
4
+ "version": "2.2.0-beta.2",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "author": "Lars <lars@coinvoyage.io>",
8
8
  "homepage": "https://coinvoyage.io",
9
9
  "exports": {
10
- "./lib/config/*": "./dist/lib/config/*.js",
11
- "./lib/connectors/*": "./dist/lib/connectors/*.js",
12
- "./lib/utils/*": "./dist/lib/utils/*.js",
13
- "./evm/*": "./dist/evm/*.js",
14
- "./utxo/*": "./dist/utxo/*.js",
15
- "./solana/*": "./dist/solana/*.js",
16
- "./sui/*": "./dist/sui/*.js",
17
- "./types/*": "./dist/types/*.js",
18
- "./hooks": "./dist/hooks/index.js",
19
- "./wallets/*": "./dist/wallets/*.js"
10
+ "./hooks": {
11
+ "types": "./dist/hooks/index.d.ts",
12
+ "default": "./dist/hooks/index.js"
13
+ },
14
+ "./*": {
15
+ "types": "./dist/*.d.ts",
16
+ "default": "./dist/*.js"
17
+ }
20
18
  },
21
19
  "files": [
22
20
  "dist"
23
21
  ],
24
22
  "typesVersions": {
25
23
  "*": {
24
+ "hooks": [
25
+ "dist/hooks/index.d.ts"
26
+ ],
26
27
  "*": [
27
- "dist/*",
28
- "dist/*/index.d.ts"
28
+ "dist/*.d.ts"
29
29
  ]
30
30
  }
31
31
  },
@@ -50,7 +50,7 @@
50
50
  "@solana/wallet-adapter-walletconnect": "0.1.21",
51
51
  "@solana/wallet-adapter-base": "0.9.27",
52
52
  "@solana/wallet-adapter-coinbase": "0.1.23",
53
- "@coin-voyage/shared": "2.2.0-beta.0"
53
+ "@coin-voyage/shared": "2.2.0-beta.5"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/elliptic": "6.4.18"
@@ -77,6 +77,8 @@
77
77
  "release:build": "pnpm clean && pnpm build",
78
78
  "pre:release": "pnpm version prerelease --preid=beta",
79
79
  "pre:publish": "pnpm publish --access public --tag beta --no-git-checks",
80
+ "pre:steps": "pnpm pre:release && pnpm release:build && pnpm pre:publish",
81
+ "release": "pnpm publish --access public --no-git-checks",
80
82
  "type-check": "tsc --noEmit",
81
83
  "test": "vitest run"
82
84
  }