infra-sdk-typescript 0.1.1 → 0.1.2

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.cts CHANGED
@@ -379,7 +379,7 @@ interface CreateTokenParams {
379
379
  name: string;
380
380
  /** Issue price per token, in fiat major units. */
381
381
  price?: number;
382
- chain: Chain;
382
+ chainId: string;
383
383
  decimals: number;
384
384
  /** Asset class, e.g. `"MONEY_MARKET"`. */
385
385
  assetClass: string;
@@ -425,7 +425,7 @@ interface TokenSummary {
425
425
  /** Per-chain deployment details within a {@link TokenDetail}. */
426
426
  interface TokenChainDeployment {
427
427
  id: string;
428
- chain: Chain;
428
+ chainId: string;
429
429
  tokenAdmin: string;
430
430
  decimals: number;
431
431
  status: TokenStatus;
package/dist/index.d.ts CHANGED
@@ -379,7 +379,7 @@ interface CreateTokenParams {
379
379
  name: string;
380
380
  /** Issue price per token, in fiat major units. */
381
381
  price?: number;
382
- chain: Chain;
382
+ chainId: string;
383
383
  decimals: number;
384
384
  /** Asset class, e.g. `"MONEY_MARKET"`. */
385
385
  assetClass: string;
@@ -425,7 +425,7 @@ interface TokenSummary {
425
425
  /** Per-chain deployment details within a {@link TokenDetail}. */
426
426
  interface TokenChainDeployment {
427
427
  id: string;
428
- chain: Chain;
428
+ chainId: string;
429
429
  tokenAdmin: string;
430
430
  decimals: number;
431
431
  status: TokenStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infra-sdk-typescript",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Official TypeScript SDK for the Convexity Infra API — Wallet, Tokenization, and Blockchain Events (Indexer).",
5
5
  "license": "MIT",
6
6
  "author": "Convexity",
@@ -58,7 +58,8 @@
58
58
  "test:watch": "vitest",
59
59
  "test:coverage": "vitest run --coverage",
60
60
  "prepublishOnly": "npm run build",
61
- "ci": "npm run typecheck && npm run lint && npm run test && npm run build"
61
+ "ci": "npm run typecheck && npm run lint && npm run test && npm run build",
62
+ "example:run": "tsx examples/basic-usage.ts"
62
63
  },
63
64
  "devDependencies": {
64
65
  "@eslint/js": "^9.18.0",
@@ -68,6 +69,7 @@
68
69
  "eslint-config-prettier": "^9.1.0",
69
70
  "prettier": "^3.4.2",
70
71
  "tsup": "^8.3.5",
72
+ "tsx": "^4.19.2",
71
73
  "typescript": "^5.7.3",
72
74
  "typescript-eslint": "^8.19.1",
73
75
  "vitest": "^2.1.8"
@@ -75,4 +77,4 @@
75
77
  "publishConfig": {
76
78
  "access": "public"
77
79
  }
78
- }
80
+ }