@evergonlabs/tmi-protocol-api 0.7.0 → 0.8.0

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.
Files changed (61) hide show
  1. package/dist/app.d.ts +60 -6
  2. package/dist/app.d.ts.map +1 -1
  3. package/dist/client.d.ts +60 -2
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/common/blockchain.d.ts +5 -4
  6. package/dist/common/blockchain.d.ts.map +1 -1
  7. package/dist/common/blockchain.js +5 -9
  8. package/dist/common/config.d.ts +4 -1
  9. package/dist/common/config.d.ts.map +1 -1
  10. package/dist/common/config.js +0 -9
  11. package/dist/common/context.d.ts +2 -2
  12. package/dist/common/context.d.ts.map +1 -1
  13. package/dist/common/models/transaction.js +1 -1
  14. package/dist/factory.d.ts +2 -2
  15. package/dist/factory.d.ts.map +1 -1
  16. package/dist/fractions/markets/getDeployEvent.js +1 -1
  17. package/dist/fractions/sales/getVaultAddress.js +1 -1
  18. package/dist/fractions/sales/getWithdrawEvent.js +1 -1
  19. package/dist/fractions/sales/parseFractionsCreatedEvent.js +1 -1
  20. package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.js +1 -1
  21. package/dist/fractions/sig/getNonce.route.js +1 -1
  22. package/dist/general/balanceClient.d.ts +2 -1
  23. package/dist/general/balanceClient.d.ts.map +1 -1
  24. package/dist/general/balanceClient.js +2 -2
  25. package/dist/general/common.d.ts +2 -1
  26. package/dist/general/common.d.ts.map +1 -1
  27. package/dist/general/common.js +2 -2
  28. package/dist/general/estimateGas.js +1 -1
  29. package/dist/general/getBalance.js +1 -1
  30. package/dist/general/getBalancesBatch.js +1 -1
  31. package/dist/general/searchBalances.js +1 -1
  32. package/dist/issuance/erc20/deploy.d.ts +0 -2
  33. package/dist/issuance/erc20/deploy.d.ts.map +1 -1
  34. package/dist/issuance/erc20/deploy.js +17 -21
  35. package/dist/issuance/erc20/deployGated.d.ts +40 -0
  36. package/dist/issuance/erc20/deployGated.d.ts.map +1 -0
  37. package/dist/issuance/erc20/deployGated.js +58 -0
  38. package/dist/issuance/erc20/index.d.ts +29 -2
  39. package/dist/issuance/erc20/index.d.ts.map +1 -1
  40. package/dist/issuance/erc20/index.js +2 -0
  41. package/dist/issuance/erc20/parseErc20DeployEvent.d.ts +1 -1
  42. package/dist/issuance/erc20/parseErc20DeployEvent.d.ts.map +1 -1
  43. package/dist/issuance/erc20/parseErc20DeployEvent.js +2 -2
  44. package/dist/issuance/erc721/deploy.d.ts +0 -2
  45. package/dist/issuance/erc721/deploy.d.ts.map +1 -1
  46. package/dist/issuance/erc721/deploy.js +4 -8
  47. package/dist/issuance/erc721/deployGated.d.ts +40 -0
  48. package/dist/issuance/erc721/deployGated.d.ts.map +1 -0
  49. package/dist/issuance/erc721/deployGated.js +58 -0
  50. package/dist/issuance/erc721/index.d.ts +29 -2
  51. package/dist/issuance/erc721/index.d.ts.map +1 -1
  52. package/dist/issuance/erc721/index.js +2 -0
  53. package/dist/issuance/erc721/parseErc721DeployEvent.d.ts +1 -1
  54. package/dist/issuance/erc721/parseErc721DeployEvent.d.ts.map +1 -1
  55. package/dist/issuance/erc721/parseErc721DeployEvent.js +2 -2
  56. package/dist/issuance/index.d.ts +58 -4
  57. package/dist/issuance/index.d.ts.map +1 -1
  58. package/dist/stakingTemplates/templates/common/getCreatePoolEvent.js +1 -1
  59. package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.js +1 -1
  60. package/dist/stakingTemplates/templates/common/getStakeEvent.js +1 -1
  61. package/package.json +8 -8
@@ -9,7 +9,6 @@ export declare const IssuanceApi: import("../common/controller.js").IApi<import(
9
9
  supplyCap: string;
10
10
  defaultTokenAdmin: string;
11
11
  minter: string;
12
- gatingSigner?: string | undefined;
13
12
  };
14
13
  };
15
14
  output: {
@@ -27,6 +26,34 @@ export declare const IssuanceApi: import("../common/controller.js").IApi<import(
27
26
  };
28
27
  };
29
28
  }, "/deploy"> | import("hono/types").MergeSchemaPath<{
29
+ "/": {
30
+ $post: {
31
+ input: {
32
+ json: {
33
+ chainId: 11155111 | 72080;
34
+ tokenName: string;
35
+ tokenSymbol: string;
36
+ supplyCap: string;
37
+ defaultTokenAdmin: string;
38
+ minter: string;
39
+ gatingSigner?: string | undefined;
40
+ };
41
+ };
42
+ output: {
43
+ data: `0x${string}`;
44
+ to: `0x${string}`;
45
+ details: {
46
+ functionName: string;
47
+ address: `0x${string}`;
48
+ abi: any[];
49
+ args: any[];
50
+ };
51
+ };
52
+ outputFormat: "json";
53
+ status: import("hono/utils/http-status").ContentfulStatusCode;
54
+ };
55
+ };
56
+ }, "/deployGated"> | import("hono/types").MergeSchemaPath<{
30
57
  "/": {
31
58
  $get: {
32
59
  input: {
@@ -44,7 +71,7 @@ export declare const IssuanceApi: import("../common/controller.js").IApi<import(
44
71
  symbol: string;
45
72
  };
46
73
  outputFormat: "json";
47
- status: 200;
74
+ status: import("hono/utils/http-status").ContentfulStatusCode;
48
75
  };
49
76
  };
50
77
  }, "/getDeployEvent"> | import("hono/types").MergeSchemaPath<{
@@ -304,7 +331,6 @@ export declare const IssuanceApi: import("../common/controller.js").IApi<import(
304
331
  baseURI: string;
305
332
  defaultTokenAdmin: string;
306
333
  minter: string;
307
- gatingSigner?: string | undefined;
308
334
  };
309
335
  };
310
336
  output: {
@@ -322,6 +348,34 @@ export declare const IssuanceApi: import("../common/controller.js").IApi<import(
322
348
  };
323
349
  };
324
350
  }, "/deploy"> | import("hono/types").MergeSchemaPath<{
351
+ "/": {
352
+ $post: {
353
+ input: {
354
+ json: {
355
+ chainId: 11155111 | 72080;
356
+ tokenName: string;
357
+ tokenSymbol: string;
358
+ baseURI: string;
359
+ defaultTokenAdmin: string;
360
+ minter: string;
361
+ gatingSigner?: string | undefined;
362
+ };
363
+ };
364
+ output: {
365
+ data: `0x${string}`;
366
+ to: `0x${string}`;
367
+ details: {
368
+ functionName: string;
369
+ address: `0x${string}`;
370
+ abi: any[];
371
+ args: any[];
372
+ };
373
+ };
374
+ outputFormat: "json";
375
+ status: import("hono/utils/http-status").ContentfulStatusCode;
376
+ };
377
+ };
378
+ }, "/deployGated"> | import("hono/types").MergeSchemaPath<{
325
379
  "/": {
326
380
  $get: {
327
381
  input: {
@@ -339,7 +393,7 @@ export declare const IssuanceApi: import("../common/controller.js").IApi<import(
339
393
  baseURI: string;
340
394
  };
341
395
  outputFormat: "json";
342
- status: 200;
396
+ status: import("hono/utils/http-status").ContentfulStatusCode;
343
397
  };
344
398
  };
345
399
  }, "/getDeployEvent"> | import("hono/types").MergeSchemaPath<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/issuance/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAStB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/issuance/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAStB,CAAC"}
@@ -30,7 +30,7 @@ export function createGetCreatePoolEventController(template) {
30
30
  },
31
31
  }), validator("query", SentTransactionParamsSchema), async (c) => {
32
32
  const params = c.req.valid("query");
33
- const receipt = await waitForTransactionReceipt(getPublicClient(params.chainId), {
33
+ const receipt = await waitForTransactionReceipt(getPublicClient(params.chainId, c.env.config), {
34
34
  hash: params.hash,
35
35
  });
36
36
  const result = parseAssetManagersDeployEvent(template.template, receipt.logs);
@@ -28,7 +28,7 @@ export function createGetPlatformDeployEventController(template) {
28
28
  },
29
29
  }), validator("query", SentTransactionParamsSchema), async (c) => {
30
30
  const params = c.req.valid("query");
31
- const receipt = await waitForTransactionReceipt(getPublicClient(params.chainId), {
31
+ const receipt = await waitForTransactionReceipt(getPublicClient(params.chainId, c.env.config), {
32
32
  hash: params.hash,
33
33
  });
34
34
  const result = parseDeployDiamondEvent(receipt.logs);
@@ -34,7 +34,7 @@ export function createGetStakeEventController(template) {
34
34
  },
35
35
  }), validator("query", SentTransactionParamsSchema), async (c) => {
36
36
  const params = c.req.valid("query");
37
- const receipt = await waitForTransactionReceipt(getPublicClient(params.chainId), {
37
+ const receipt = await waitForTransactionReceipt(getPublicClient(params.chainId, c.env.config), {
38
38
  hash: params.hash,
39
39
  });
40
40
  const result = parseStakeEvent(template.template, receipt.logs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evergonlabs/tmi-protocol-api",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -39,13 +39,13 @@
39
39
  "viem": "^2.23.2",
40
40
  "zod": "^4.3.6",
41
41
  "zod-openapi": "^5.4.6",
42
- "@evergonlabs/tmi-protocol-contracts": "0.7.0",
43
- "@evergonlabs/tmi-protocol-fractions-sdk": "0.7.0",
44
- "@evergonlabs/tmi-protocol-indexer": "0.7.0",
45
- "@evergonlabs/tmi-protocol-shared": "0.7.0",
46
- "@evergonlabs/tmi-protocol-staking-sdk": "0.7.0",
47
- "@evergonlabs/tmi-protocol-types": "0.7.0",
48
- "@evergonlabs/tmi-protocol-utils": "0.7.0"
42
+ "@evergonlabs/tmi-protocol-shared": "0.8.0",
43
+ "@evergonlabs/tmi-protocol-fractions-sdk": "0.8.0",
44
+ "@evergonlabs/tmi-protocol-indexer": "0.8.0",
45
+ "@evergonlabs/tmi-protocol-contracts": "0.8.0",
46
+ "@evergonlabs/tmi-protocol-staking-sdk": "0.8.0",
47
+ "@evergonlabs/tmi-protocol-utils": "0.8.0",
48
+ "@evergonlabs/tmi-protocol-types": "0.8.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@evergonlabs/tmi-eslint-config": "0.3.0",