@cann4n/wallet-keypair 0.1.0 → 0.2.1
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/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/keypairWalletProvider.test.js +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,5 @@ import { KeypairWalletProvider } from "./keypairWalletProvider";
|
|
|
2
2
|
import type { KeypairWalletProviderConfig } from "./keypairWalletProvider";
|
|
3
3
|
export { KeypairWalletProvider };
|
|
4
4
|
export type { KeypairWalletProviderConfig };
|
|
5
|
-
/** Create a keypair wallet provider from an Ed25519 keypair and network config. */
|
|
6
5
|
export declare function keypairWallet(config: KeypairWalletProviderConfig): KeypairWalletProvider;
|
|
7
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAE3E,OAAO,EAAE,qBAAqB,EAAE,CAAC;AACjC,YAAY,EAAE,2BAA2B,EAAE,CAAC;AAE5C,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAE3E,OAAO,EAAE,qBAAqB,EAAE,CAAC;AACjC,YAAY,EAAE,2BAA2B,EAAE,CAAC;AAE5C,wBAAgB,aAAa,CAAC,MAAM,EAAE,2BAA2B,GAAG,qBAAqB,CAExF"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { KeypairWalletProvider } from "./keypairWalletProvider";
|
|
1
|
+
import { KeypairWalletProvider } from "./keypairWalletProvider.js";
|
|
2
2
|
export { KeypairWalletProvider };
|
|
3
|
-
/** Create a keypair wallet provider from an Ed25519 keypair and network config. */
|
|
4
3
|
export function keypairWallet(config) {
|
|
5
4
|
return new KeypairWalletProvider(config);
|
|
6
5
|
}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAGjC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAGjC,MAAM,UAAU,aAAa,CAAC,MAAmC;IAC/D,OAAO,IAAI,qBAAqB,CAAC,MAAM,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describe, it, expect } from "vitest";
|
|
2
2
|
import { STELLAR_NETWORKS } from "@cann4n/core";
|
|
3
3
|
import * as StellarSdk from "@stellar/stellar-sdk";
|
|
4
|
-
import { KeypairWalletProvider } from "./keypairWalletProvider";
|
|
4
|
+
import { KeypairWalletProvider } from "./keypairWalletProvider.js";
|
|
5
5
|
describe("KeypairWalletProvider", () => {
|
|
6
6
|
const keypair = StellarSdk.Keypair.random();
|
|
7
7
|
it("should return wallet name and address", () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cann4n/wallet-keypair",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Ed25519 keypair wallet provider for AgentKit Stellar",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cann4n/core": "^0.1
|
|
20
|
+
"@cann4n/core": "^0.2.1"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"@stellar/stellar-sdk": "^12.3.0"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"directory": "packages/wallet-keypair"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
|
-
"build": "tsc",
|
|
40
|
+
"build": "tsc && node ../../scripts/fix-esm-imports.mjs dist",
|
|
41
41
|
"test": "vitest run",
|
|
42
42
|
"lint": "eslint src/",
|
|
43
43
|
"typecheck": "tsc --noEmit",
|