@memfork/cli 0.1.9 → 0.1.11
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 +2 -0
- package/dist/config.js +9 -2
- package/package.json +2 -2
package/dist/config.d.ts
CHANGED
|
@@ -74,6 +74,7 @@ export interface ResolvedConfig {
|
|
|
74
74
|
defaultBranch: string;
|
|
75
75
|
rpcUrl?: string;
|
|
76
76
|
packageId?: string;
|
|
77
|
+
sponsorUrl?: string;
|
|
77
78
|
}
|
|
78
79
|
export declare function projectConfigPath(cwd?: string): string;
|
|
79
80
|
export declare function credentialsPath(): string;
|
|
@@ -104,6 +105,7 @@ export declare function toClientConfig(r: ResolvedConfig): {
|
|
|
104
105
|
network: "testnet" | "mainnet" | "devnet" | "localnet";
|
|
105
106
|
rpcUrl: string | undefined;
|
|
106
107
|
packageId: string | undefined;
|
|
108
|
+
sponsorUrl: string | undefined;
|
|
107
109
|
memwal: {
|
|
108
110
|
accountId: string;
|
|
109
111
|
delegateKey: string;
|
package/dist/config.js
CHANGED
|
@@ -42,7 +42,10 @@ export const MEMWAL_CONSTANTS = {
|
|
|
42
42
|
},
|
|
43
43
|
};
|
|
44
44
|
// ─── Paths ────────────────────────────────────────────────────────────────────
|
|
45
|
-
|
|
45
|
+
function defaultRelayer(network) {
|
|
46
|
+
return MEMWAL_CONSTANTS[network]?.relayer
|
|
47
|
+
?? MEMWAL_CONSTANTS.mainnet.relayer;
|
|
48
|
+
}
|
|
46
49
|
export function projectConfigPath(cwd = process.cwd()) {
|
|
47
50
|
return path.join(cwd, ".memfork", "config.json");
|
|
48
51
|
}
|
|
@@ -175,11 +178,14 @@ export function resolveConfig(opts = {}) {
|
|
|
175
178
|
privateKey,
|
|
176
179
|
memwalAccountId,
|
|
177
180
|
memwalKey,
|
|
178
|
-
memwalRelayer:
|
|
181
|
+
memwalRelayer: env["MEMFORK_RELAYER_URL"] ??
|
|
182
|
+
stored?.memwalRelayer ??
|
|
183
|
+
defaultRelayer(network),
|
|
179
184
|
network,
|
|
180
185
|
defaultBranch: project?.defaultBranch ?? "main",
|
|
181
186
|
rpcUrl: env["MEMFORK_RPC_URL"] ?? project?.rpcUrl,
|
|
182
187
|
packageId: env["MEMFORK_PACKAGE_ID"] ?? project?.packageId,
|
|
188
|
+
sponsorUrl: env["MEMFORK_SPONSOR_URL"] ?? project?.["sponsorUrl"],
|
|
183
189
|
};
|
|
184
190
|
}
|
|
185
191
|
/**
|
|
@@ -193,6 +199,7 @@ export function toClientConfig(r) {
|
|
|
193
199
|
network: r.network,
|
|
194
200
|
rpcUrl: r.rpcUrl,
|
|
195
201
|
packageId: r.packageId,
|
|
202
|
+
sponsorUrl: r.sponsorUrl,
|
|
196
203
|
memwal: {
|
|
197
204
|
accountId: r.memwalAccountId,
|
|
198
205
|
delegateKey: r.memwalKey,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memfork/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "MemForks CLI — init, commit, recall, merge, install plugins",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@inquirer/prompts": "^8.5.2",
|
|
36
|
-
"@memfork/core": "^0.1.
|
|
36
|
+
"@memfork/core": "^0.1.4",
|
|
37
37
|
"chalk": "^5.6.2",
|
|
38
38
|
"commander": "^15.0.0"
|
|
39
39
|
},
|