signet.js 0.0.12-beta.12 → 0.0.12-beta.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "signet.js",
3
- "version": "0.0.12-beta.12",
3
+ "version": "0.0.12-beta.16",
4
4
  "description": "A TypeScript library for handling multi-chain transactions and signatures using Signet MPC",
5
5
  "type": "module",
6
6
  "exports": {
@@ -32,12 +32,18 @@
32
32
  "pre:deploy": "npm run build && npm run docs:build",
33
33
  "publish-npm": "npm run pre:deploy && cd dist && npm publish",
34
34
  "publish-npm:beta": "npm run pre:deploy && cd dist && npm publish --tag beta",
35
+ "release:patch": "npm version patch --no-git-tag-version --force && npm run publish-npm",
36
+ "release:minor": "npm version minor --no-git-tag-version --force && npm run publish-npm",
37
+ "release:major": "npm version major --no-git-tag-version --force && npm run publish-npm",
38
+ "release:beta": "npm version prerelease --preid=beta --no-git-tag-version --force && npm run publish-npm:beta",
35
39
  "hardhat": "pnpm exec hardhat node --config hardhat.config.mts",
36
40
  "test": "pnpm exec hardhat node --config hardhat.config.mts & sleep 2 && vitest run && pkill -f hardhat",
37
41
  "test:watch": "pnpm exec hardhat node --config hardhat.config.mts & sleep 2 && vitest --watch",
42
+ "test:ci": "pnpm exec hardhat node --config hardhat.config.mts & NODE_PID=$!; sleep 2 && vitest run; kill $NODE_PID",
38
43
  "docs:dev": "vocs dev",
39
44
  "docs:build": "vocs build",
40
- "docs:preview": "vocs preview"
45
+ "docs:preview": "vocs preview",
46
+ "format": "prettier --write ."
41
47
  },
42
48
  "author": "Sig Network",
43
49
  "license": "MIT",
package/types/index.d.cts CHANGED
@@ -2,7 +2,7 @@ import BN from 'bn.js';
2
2
  import { TransactionRequest, Address, SignableMessage, TypedDataDefinition, Hex, PublicClient, Hash, TransactionReceipt, WalletClient } from 'viem';
3
3
  import * as bitcoin from 'bitcoinjs-lib';
4
4
  import { EncodeObject } from '@cosmjs/proto-signing';
5
- import { TxRaw } from 'cosmjs-types/cosmos/tx/v1beta1/tx';
5
+ import { TxRaw } from 'cosmjs-types/cosmos/tx/v1beta1/tx.js';
6
6
  import { AnchorProvider, Idl } from '@coral-xyz/anchor';
7
7
  import { PublicKey, Connection, AccountMeta, TransactionInstruction, Signer } from '@solana/web3.js';
8
8
 
@@ -142,7 +142,7 @@ declare const compressPubKey: (uncompressedPubKeySEC1: UncompressedPubKeySEC1) =
142
142
  /**
143
143
  * Converts a NAJ public key to an uncompressed SEC1 public key.
144
144
  *
145
- * @param najPublicKey - The NAJ public key to convert (e.g. secp256k1:3Ww8iFjqTHufye5aRGUvrQqETegR4gVUcW8FX5xzscaN9ENhpkffojsxJwi6N1RbbHMTxYa9UyKeqK3fsMuwxjR5)
145
+ * @param najPublicKey - The NAJ public key to convert (e.g. secp 256k1:3Ww8iFjqTHufye5aRGUvrQqETegR4gVUcW8FX5xzscaN9ENhpkffojsxJwi6N1RbbHMTxYa9UyKeqK3fsMuwxjR5)
146
146
  * @returns The uncompressed SEC1 public key (e.g. 04 || x || y)
147
147
  */
148
148
  declare const najToUncompressedPubKeySEC1: (najPublicKey: NajPublicKey) => UncompressedPubKeySEC1;
package/types/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import BN from 'bn.js';
2
2
  import { TransactionRequest, Address, SignableMessage, TypedDataDefinition, Hex, PublicClient, Hash, TransactionReceipt, WalletClient } from 'viem';
3
3
  import * as bitcoin from 'bitcoinjs-lib';
4
4
  import { EncodeObject } from '@cosmjs/proto-signing';
5
- import { TxRaw } from 'cosmjs-types/cosmos/tx/v1beta1/tx';
5
+ import { TxRaw } from 'cosmjs-types/cosmos/tx/v1beta1/tx.js';
6
6
  import { AnchorProvider, Idl } from '@coral-xyz/anchor';
7
7
  import { PublicKey, Connection, AccountMeta, TransactionInstruction, Signer } from '@solana/web3.js';
8
8
 
@@ -142,7 +142,7 @@ declare const compressPubKey: (uncompressedPubKeySEC1: UncompressedPubKeySEC1) =
142
142
  /**
143
143
  * Converts a NAJ public key to an uncompressed SEC1 public key.
144
144
  *
145
- * @param najPublicKey - The NAJ public key to convert (e.g. secp256k1:3Ww8iFjqTHufye5aRGUvrQqETegR4gVUcW8FX5xzscaN9ENhpkffojsxJwi6N1RbbHMTxYa9UyKeqK3fsMuwxjR5)
145
+ * @param najPublicKey - The NAJ public key to convert (e.g. secp 256k1:3Ww8iFjqTHufye5aRGUvrQqETegR4gVUcW8FX5xzscaN9ENhpkffojsxJwi6N1RbbHMTxYa9UyKeqK3fsMuwxjR5)
146
146
  * @returns The uncompressed SEC1 public key (e.g. 04 || x || y)
147
147
  */
148
148
  declare const najToUncompressedPubKeySEC1: (najPublicKey: NajPublicKey) => UncompressedPubKeySEC1;