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 +2 -0
- package/dist/ethers.d.ts +1 -1
- package/dist/ethers.js +3 -3
- package/dist/http.d.ts +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/solana.d.ts +1 -1
- package/dist/solana.js +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/vault.d.ts +1 -1
- package/dist/vault.js +1 -1
- package/dist/viem.d.ts +1 -1
- package/dist/viem.js +3 -3
- package/dist/web3.d.ts +1 -1
- package/dist/web3.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
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
package/dist/solana.js
CHANGED
package/dist/utils.d.ts
CHANGED
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
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
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);
|