@vapi-network/core 0.2.2 → 0.2.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/dist/config.d.ts +32 -3
- package/dist/config.d.ts.map +1 -1
- package/dist/index.js +145 -16
- package/dist/index.js.map +2 -2
- package/dist/keystore.d.ts +23 -0
- package/dist/keystore.d.ts.map +1 -1
- package/dist/support-report.d.ts +1 -1
- package/package.json +1 -1
package/dist/keystore.d.ts
CHANGED
|
@@ -64,6 +64,29 @@ export declare function createKeystore(passphrase: string, path?: string, option
|
|
|
64
64
|
enableSolana?: boolean;
|
|
65
65
|
}): Promise<VapiPaymentAccount>;
|
|
66
66
|
export declare function unlockKeystore(passphrase: string, path?: string): Promise<VapiPaymentAccount>;
|
|
67
|
+
/**
|
|
68
|
+
* The stored address, read without the passphrase. Only the encrypted key
|
|
69
|
+
* material needs the passphrase, so `vapi init` can name the wallet it refuses
|
|
70
|
+
* to replace. Returns undefined for a missing or unreadable keystore.
|
|
71
|
+
*/
|
|
72
|
+
export declare function readKeystoreAddress(path?: string): Promise<string | undefined>;
|
|
73
|
+
export type ExportedVapiKeys = {
|
|
74
|
+
evm: {
|
|
75
|
+
address: string;
|
|
76
|
+
privateKey: Hex;
|
|
77
|
+
};
|
|
78
|
+
solana?: {
|
|
79
|
+
address: string;
|
|
80
|
+
secretKey: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Decrypts the keystore into the formats other wallets import: 0x-prefixed hex
|
|
85
|
+
* for the EVM key, and the base58 64-byte Ed25519 secret key for Solana. Only
|
|
86
|
+
* `vapi export-key` may call this, and it must never write the result anywhere
|
|
87
|
+
* but the caller's stdout.
|
|
88
|
+
*/
|
|
89
|
+
export declare function exportKeystoreKeys(passphrase: string, path?: string): Promise<ExportedVapiKeys>;
|
|
67
90
|
/** Lazily adds a locally generated Ed25519 seed without replacing the EVM key. */
|
|
68
91
|
export declare function enableSolanaKey(passphrase: string, path?: string): Promise<VapiPaymentAccount>;
|
|
69
92
|
export declare function getKeystorePassphrase(options?: {
|
package/dist/keystore.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keystore.d.ts","sourceRoot":"","sources":["../src/keystore.ts"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"keystore.d.ts","sourceRoot":"","sources":["../src/keystore.ts"],"names":[],"mappings":"AAKA,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAsB,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AA0BhC,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;iBAIxB,CAAC;AAEH,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBlB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC1D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACtE,oCAAoC;AACpC,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAE7C,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,GAAG;IACxE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC;CACjC,CAAC;AAaF,qBAAa,aAAc,SAAQ,KAAK;gBAC1B,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAIpD;AAyBD,wBAAsB,iBAAiB,CACrC,UAAU,EAAE,GAAG,EACf,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,YAAY,CAAC,CAEvB;AA6CD,wBAAsB,iBAAiB,CAAC,QAAQ,EAAE,YAA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