infra-sdk-typescript 0.1.0 → 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
@@ -226,7 +226,7 @@ interface SignTransactionRequest {
226
226
  interface SignTransactionParams {
227
227
  chainType: ChainType;
228
228
  /** HD index of the signing wallet. */
229
- addressIndex: number;
229
+ addressIndex?: number;
230
230
  /** Target chain id (e.g. `8453`). Required for EVM. */
231
231
  chainId?: number;
232
232
  network?: Network;
@@ -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
@@ -226,7 +226,7 @@ interface SignTransactionRequest {
226
226
  interface SignTransactionParams {
227
227
  chainType: ChainType;
228
228
  /** HD index of the signing wallet. */
229
- addressIndex: number;
229
+ addressIndex?: number;
230
230
  /** Target chain id (e.g. `8453`). Required for EVM. */
231
231
  chainId?: number;
232
232
  network?: Network;
@@ -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,78 +1,80 @@
1
- {
2
- "name": "infra-sdk-typescript",
3
- "version": "0.1.0",
4
- "description": "Official TypeScript SDK for the Convexity Infra API — Wallet, Tokenization, and Blockchain Events (Indexer).",
5
- "license": "MIT",
6
- "author": "Convexity",
7
- "homepage": "https://docs.withconvexity.com",
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/ConvexityTeam/infra-sdk-typescript.git"
11
- },
12
- "keywords": [
13
- "convexity",
14
- "wallet",
15
- "tokenization",
16
- "indexer",
17
- "blockchain",
18
- "sdk",
19
- "typescript",
20
- "web3"
21
- ],
22
- "type": "module",
23
- "sideEffects": false,
24
- "main": "./dist/index.cjs",
25
- "module": "./dist/index.js",
26
- "types": "./dist/index.d.ts",
27
- "exports": {
28
- ".": {
29
- "import": {
30
- "types": "./dist/index.d.ts",
31
- "default": "./dist/index.js"
32
- },
33
- "require": {
34
- "types": "./dist/index.d.cts",
35
- "default": "./dist/index.cjs"
36
- }
37
- },
38
- "./package.json": "./package.json"
39
- },
40
- "files": [
41
- "dist",
42
- "README.md",
43
- "LICENSE",
44
- "CHANGELOG.md"
45
- ],
46
- "engines": {
47
- "node": ">=18"
48
- },
49
- "scripts": {
50
- "build": "tsup",
51
- "dev": "tsup --watch",
52
- "typecheck": "tsc --noEmit",
53
- "lint": "eslint src tests",
54
- "lint:fix": "eslint src tests --fix",
55
- "format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\" \"examples/**/*.ts\"",
56
- "format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\" \"examples/**/*.ts\"",
57
- "test": "vitest run",
58
- "test:watch": "vitest",
59
- "test:coverage": "vitest run --coverage",
60
- "prepublishOnly": "npm run build",
61
- "ci": "npm run typecheck && npm run lint && npm run test && npm run build"
62
- },
63
- "devDependencies": {
64
- "@eslint/js": "^9.18.0",
65
- "@types/node": "^20.14.0",
66
- "@vitest/coverage-v8": "^2.1.8",
67
- "eslint": "^9.18.0",
68
- "eslint-config-prettier": "^9.1.0",
69
- "prettier": "^3.4.2",
70
- "tsup": "^8.3.5",
71
- "typescript": "^5.7.3",
72
- "typescript-eslint": "^8.19.1",
73
- "vitest": "^2.1.8"
74
- },
75
- "publishConfig": {
76
- "access": "public"
77
- }
78
- }
1
+ {
2
+ "name": "infra-sdk-typescript",
3
+ "version": "0.1.2",
4
+ "description": "Official TypeScript SDK for the Convexity Infra API — Wallet, Tokenization, and Blockchain Events (Indexer).",
5
+ "license": "MIT",
6
+ "author": "Convexity",
7
+ "homepage": "https://docs.withconvexity.com",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/ConvexityTeam/infra-sdk-typescript.git"
11
+ },
12
+ "keywords": [
13
+ "convexity",
14
+ "wallet",
15
+ "tokenization",
16
+ "indexer",
17
+ "blockchain",
18
+ "sdk",
19
+ "typescript",
20
+ "web3"
21
+ ],
22
+ "type": "module",
23
+ "sideEffects": false,
24
+ "main": "./dist/index.cjs",
25
+ "module": "./dist/index.js",
26
+ "types": "./dist/index.d.ts",
27
+ "exports": {
28
+ ".": {
29
+ "import": {
30
+ "types": "./dist/index.d.ts",
31
+ "default": "./dist/index.js"
32
+ },
33
+ "require": {
34
+ "types": "./dist/index.d.cts",
35
+ "default": "./dist/index.cjs"
36
+ }
37
+ },
38
+ "./package.json": "./package.json"
39
+ },
40
+ "files": [
41
+ "dist",
42
+ "README.md",
43
+ "LICENSE",
44
+ "CHANGELOG.md"
45
+ ],
46
+ "engines": {
47
+ "node": ">=18"
48
+ },
49
+ "scripts": {
50
+ "build": "tsup",
51
+ "dev": "tsup --watch",
52
+ "typecheck": "tsc --noEmit",
53
+ "lint": "eslint src tests",
54
+ "lint:fix": "eslint src tests --fix",
55
+ "format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\" \"examples/**/*.ts\"",
56
+ "format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\" \"examples/**/*.ts\"",
57
+ "test": "vitest run",
58
+ "test:watch": "vitest",
59
+ "test:coverage": "vitest run --coverage",
60
+ "prepublishOnly": "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"
63
+ },
64
+ "devDependencies": {
65
+ "@eslint/js": "^9.18.0",
66
+ "@types/node": "^20.14.0",
67
+ "@vitest/coverage-v8": "^2.1.8",
68
+ "eslint": "^9.18.0",
69
+ "eslint-config-prettier": "^9.1.0",
70
+ "prettier": "^3.4.2",
71
+ "tsup": "^8.3.5",
72
+ "tsx": "^4.19.2",
73
+ "typescript": "^5.7.3",
74
+ "typescript-eslint": "^8.19.1",
75
+ "vitest": "^2.1.8"
76
+ },
77
+ "publishConfig": {
78
+ "access": "public"
79
+ }
80
+ }