thaifi-wallet-cli 0.2.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.
@@ -93,9 +93,9 @@ export async function login(options = {}) {
93
93
  console.log(" Wallet account: " + status.userAddress);
94
94
  console.log(" Spend limit: " +
95
95
  Number(status.limitAmount ?? 0) / 10 ** 6 +
96
- " per token / " +
96
+ " pathUSD / " +
97
97
  Math.round((status.limitPeriod ?? 0) / 86400) +
98
- " days");
98
+ " days (THCFI/THCOC limits set at approval)");
99
99
  console.log(" Key expires: " + (status.expiry ? new Date(status.expiry * 1000).toISOString() : "never"));
100
100
  console.log("");
101
101
  console.log("Try: thaifi whoami");
@@ -36,7 +36,7 @@ export async function whoami() {
36
36
  .filter(([, raw]) => raw !== null)
37
37
  .map(([symbol, raw]) => `${symbol} ${fmt(raw)}`)
38
38
  .join(", ");
39
- console.log("Limit left: " + parts + " (of " + Number(store.limitAmount ?? 0) / 10 ** 6 + " per token)");
39
+ console.log("Limit left: " + parts + " (pathUSD cap " + Number(store.limitAmount ?? 0) / 10 ** 6 + ")");
40
40
  }
41
41
  console.log("Key expires: " + (store.keyExpiry ? new Date(store.keyExpiry * 1000).toISOString() : "never"));
42
42
  console.log("Wallet: " + store.walletUrl);
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ const program = new Command();
14
14
  program
15
15
  .name("thaifi")
16
16
  .description("ThaiFi Wallet CLI — pair with wallet.thaifi.com and sign with on-chain access keys")
17
- .version("0.2.0");
17
+ .version("0.2.1");
18
18
  program
19
19
  .command("login")
20
20
  .description("Pair this CLI with your ThaiFi Wallet (opens the browser to approve)")
package/dist/tokens.js CHANGED
@@ -15,7 +15,7 @@ export const THCFI = {
15
15
  export const THCOC = {
16
16
  address: "0x5c4B54cf00Df2be0169E05DfAF34eE754cace9a4",
17
17
  symbol: "THCOC",
18
- name: "THCOC",
18
+ name: "ThaiCoin OpenCraft",
19
19
  decimals: 6,
20
20
  };
21
21
  /** Tokens listed by `thaifi tokens` / shown by default in `thaifi balance`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thaifi-wallet-cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "ThaiFi Wallet CLI for AI agents — pair with wallet.thaifi.com, sign with on-chain access keys (spending limits enforced on-chain), x402/MPP payments",
5
5
  "type": "module",
6
6
  "bin": {