signet.js 0.0.8 → 0.0.9

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.8",
3
+ "version": "0.0.9",
4
4
  "description": "A TypeScript library for handling multi-chain transactions and signatures using Signet MPC",
5
5
  "type": "module",
6
6
  "exports": {
package/types/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import BN from 'bn.js';
2
- import { TransactionRequest, Address, SignableMessage, TypedDataDefinition, Hex, Hash, PublicClient, TransactionReceipt, WalletClient } from 'viem';
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
5
  import { TxRaw } from 'cosmjs-types/cosmos/tx/v1beta1/tx';
@@ -317,11 +317,11 @@ declare class EVM extends ChainAdapter<EVMTransactionRequest, EVMUnsignedTransac
317
317
  /**
318
318
  * Creates a new EVM chain instance
319
319
  * @param params - Configuration parameters
320
- * @param params.rpcUrl - URL of the EVM JSON-RPC provider (e.g., Infura endpoint)
320
+ * @param params.publicClient - A Viem PublicClient instance for reading from the blockchain
321
321
  * @param params.contract - Instance of the chain signature contract for MPC operations
322
322
  */
323
- constructor({ rpcUrl, contract, }: {
324
- rpcUrl: string;
323
+ constructor({ publicClient, contract, }: {
324
+ publicClient: PublicClient;
325
325
  contract: BaseChainSignatureContract;
326
326
  });
327
327
  private attachGasAndNonce;
package/types/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import BN from 'bn.js';
2
- import { TransactionRequest, Address, SignableMessage, TypedDataDefinition, Hex, Hash, PublicClient, TransactionReceipt, WalletClient } from 'viem';
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
5
  import { TxRaw } from 'cosmjs-types/cosmos/tx/v1beta1/tx';
@@ -317,11 +317,11 @@ declare class EVM extends ChainAdapter<EVMTransactionRequest, EVMUnsignedTransac
317
317
  /**
318
318
  * Creates a new EVM chain instance
319
319
  * @param params - Configuration parameters
320
- * @param params.rpcUrl - URL of the EVM JSON-RPC provider (e.g., Infura endpoint)
320
+ * @param params.publicClient - A Viem PublicClient instance for reading from the blockchain
321
321
  * @param params.contract - Instance of the chain signature contract for MPC operations
322
322
  */
323
- constructor({ rpcUrl, contract, }: {
324
- rpcUrl: string;
323
+ constructor({ publicClient, contract, }: {
324
+ publicClient: PublicClient;
325
325
  contract: BaseChainSignatureContract;
326
326
  });
327
327
  private attachGasAndNonce;