emblem-vault-ai-signers 0.1.2 → 0.1.3

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/README.md CHANGED
@@ -12,6 +12,8 @@ Remote signer adapters for Emblem Vault that plug into popular Ethereum librarie
12
12
 
13
13
  > Note: The ethers adapter targets ethers v6.
14
14
 
15
+ See the Changelog for release details: CHANGELOG.md
16
+
15
17
  ## Install
16
18
 
17
19
  ```
package/dist/ethers.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { EmblemRemoteConfig, VaultInfo } from "./types";
1
+ import type { EmblemRemoteConfig, VaultInfo } from "./types.js";
2
2
  import { AbstractSigner } from "ethers";
3
3
  import type { Provider, TransactionLike, TransactionRequest, TransactionResponse, TypedDataDomain, TypedDataField } from "ethers";
4
4
  export declare class EmblemEthersWallet extends AbstractSigner {
package/dist/ethers.js CHANGED
@@ -1,6 +1,6 @@
1
- import { emblemPost } from "./http";
2
- import { bytesToHex, normalizeTxForEmblem } from "./utils";
3
- import { fetchVaultInfo } from "./vault";
1
+ import { emblemPost } from "./http.js";
2
+ import { bytesToHex, normalizeTxForEmblem } from "./utils.js";
3
+ import { fetchVaultInfo } from "./vault.js";
4
4
  import { AbstractSigner, resolveAddress } from "ethers";
5
5
  export class EmblemEthersWallet extends AbstractSigner {
6
6
  constructor(config, provider, seed) {
package/dist/http.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import type { EmblemRemoteConfig } from "./types";
1
+ import type { EmblemRemoteConfig } from "./types.js";
2
2
  export declare function emblemPost<T = any>(path: string, body: any, { apiKey, baseUrl }: EmblemRemoteConfig): Promise<T>;
3
3
  export declare function emblemGet<T = any>(path: string, { apiKey, baseUrl }: EmblemRemoteConfig): Promise<T>;
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import type { Provider } from "ethers";
2
- import type { EmblemRemoteConfig } from "./types";
3
- export type { EmblemRemoteConfig, Hex, VaultInfo } from "./types";
4
- import { EmblemEthersWallet } from "./ethers";
5
- import { EmblemSolanaSigner } from "./solana";
6
- import { EmblemWeb3Adapter } from "./web3";
2
+ import type { EmblemRemoteConfig } from "./types.js";
3
+ export type { EmblemRemoteConfig, Hex, VaultInfo } from "./types.js";
4
+ import { EmblemEthersWallet } from "./ethers.js";
5
+ import { EmblemSolanaSigner } from "./solana.js";
6
+ import { EmblemWeb3Adapter } from "./web3.js";
7
7
  export declare class EmblemVaultClient {
8
8
  private readonly config;
9
9
  private _infoPromise?;
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { toViemAccount } from "./viem";
2
- import { toEthersWallet } from "./ethers";
3
- import { toSolanaKitSigner, toSolanaWeb3Signer } from "./solana";
4
- import { toWeb3Adapter } from "./web3";
5
- import { fetchVaultInfo } from "./vault";
1
+ import { toViemAccount } from "./viem.js";
2
+ import { toEthersWallet } from "./ethers.js";
3
+ import { toSolanaKitSigner, toSolanaWeb3Signer } from "./solana.js";
4
+ import { toWeb3Adapter } from "./web3.js";
5
+ import { fetchVaultInfo } from "./vault.js";
6
6
  export class EmblemVaultClient {
7
7
  constructor(config) {
8
8
  this.config = config;
package/dist/solana.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { EmblemRemoteConfig, VaultInfo } from "./types";
1
+ import type { EmblemRemoteConfig, VaultInfo } from "./types.js";
2
2
  export declare class EmblemSolanaSigner {
3
3
  readonly publicKey: string;
4
4
  constructor(publicKey: string);
package/dist/solana.js CHANGED
@@ -1,4 +1,4 @@
1
- import { fetchVaultInfo } from "./vault";
1
+ import { fetchVaultInfo } from "./vault.js";
2
2
  export class EmblemSolanaSigner {
3
3
  constructor(publicKey) {
4
4
  this.publicKey = publicKey;
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Hex } from "./types";
1
+ import type { Hex } from "./types.js";
2
2
  export declare function toHexIfBigInt(v: any): any;
3
3
  /**
4
4
  * viem txs sometimes have bigint / hex / optional fields. Ethers serializers
package/dist/vault.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import type { EmblemRemoteConfig, VaultInfo } from "./types";
1
+ import type { EmblemRemoteConfig, VaultInfo } from "./types.js";
2
2
  export declare function fetchVaultInfo(config: EmblemRemoteConfig): Promise<VaultInfo>;
package/dist/vault.js CHANGED
@@ -1,4 +1,4 @@
1
- import { emblemGet, emblemPost } from "./http";
1
+ import { emblemGet, emblemPost } from "./http.js";
2
2
  export async function fetchVaultInfo(config) {
3
3
  let data;
4
4
  try {
package/dist/viem.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { EmblemRemoteConfig, VaultInfo } from "./types";
1
+ import type { EmblemRemoteConfig, VaultInfo } from "./types.js";
2
2
  import type { TypedDataDefinition } from "viem";
3
3
  export declare function toViemAccount(config: EmblemRemoteConfig, infoOverride?: VaultInfo): Promise<{
4
4
  address: import("abitype").Address;
package/dist/viem.js CHANGED
@@ -1,7 +1,7 @@
1
- import { emblemPost } from "./http";
2
- import { bytesToHex, isHexString, normalizeTxForEmblem } from "./utils";
1
+ import { emblemPost } from "./http.js";
2
+ import { bytesToHex, isHexString, normalizeTxForEmblem } from "./utils.js";
3
3
  import { toAccount } from "viem/accounts";
4
- import { fetchVaultInfo } from "./vault";
4
+ import { fetchVaultInfo } from "./vault.js";
5
5
  export async function toViemAccount(config, infoOverride) {
6
6
  const info = infoOverride ?? await fetchVaultInfo(config);
7
7
  const { evmAddress, vaultId } = info;
package/dist/web3.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { EmblemRemoteConfig, Hex, VaultInfo } from "./types";
1
+ import type { EmblemRemoteConfig, Hex, VaultInfo } from "./types.js";
2
2
  export declare class EmblemWeb3Adapter {
3
3
  #private;
4
4
  readonly address: `0x${string}`;
package/dist/web3.js CHANGED
@@ -10,9 +10,9 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
10
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
11
  };
12
12
  var _EmblemWeb3Adapter_vaultId, _EmblemWeb3Adapter_config;
13
- import { emblemPost } from "./http";
14
- import { bytesToHex, normalizeTxForEmblem } from "./utils";
15
- import { fetchVaultInfo } from "./vault";
13
+ import { emblemPost } from "./http.js";
14
+ import { bytesToHex, normalizeTxForEmblem } from "./utils.js";
15
+ import { fetchVaultInfo } from "./vault.js";
16
16
  export class EmblemWeb3Adapter {
17
17
  constructor(address, vaultId, config) {
18
18
  _EmblemWeb3Adapter_vaultId.set(this, void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emblem-vault-ai-signers",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Emblem Vault remote signer adapters for viem and ethers",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",