@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.
- package/dist/app.d.ts +60 -6
- package/dist/app.d.ts.map +1 -1
- package/dist/client.d.ts +60 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/common/blockchain.d.ts +5 -4
- package/dist/common/blockchain.d.ts.map +1 -1
- package/dist/common/blockchain.js +5 -9
- package/dist/common/config.d.ts +4 -1
- package/dist/common/config.d.ts.map +1 -1
- package/dist/common/config.js +0 -9
- package/dist/common/context.d.ts +2 -2
- package/dist/common/context.d.ts.map +1 -1
- package/dist/common/models/transaction.js +1 -1
- package/dist/factory.d.ts +2 -2
- package/dist/factory.d.ts.map +1 -1
- package/dist/fractions/markets/getDeployEvent.js +1 -1
- package/dist/fractions/sales/getVaultAddress.js +1 -1
- package/dist/fractions/sales/getWithdrawEvent.js +1 -1
- package/dist/fractions/sales/parseFractionsCreatedEvent.js +1 -1
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.js +1 -1
- package/dist/fractions/sig/getNonce.route.js +1 -1
- package/dist/general/balanceClient.d.ts +2 -1
- package/dist/general/balanceClient.d.ts.map +1 -1
- package/dist/general/balanceClient.js +2 -2
- package/dist/general/common.d.ts +2 -1
- package/dist/general/common.d.ts.map +1 -1
- package/dist/general/common.js +2 -2
- package/dist/general/estimateGas.js +1 -1
- package/dist/general/getBalance.js +1 -1
- package/dist/general/getBalancesBatch.js +1 -1
- package/dist/general/searchBalances.js +1 -1
- package/dist/issuance/erc20/deploy.d.ts +0 -2
- package/dist/issuance/erc20/deploy.d.ts.map +1 -1
- package/dist/issuance/erc20/deploy.js +17 -21
- package/dist/issuance/erc20/deployGated.d.ts +40 -0
- package/dist/issuance/erc20/deployGated.d.ts.map +1 -0
- package/dist/issuance/erc20/deployGated.js +58 -0
- package/dist/issuance/erc20/index.d.ts +29 -2
- package/dist/issuance/erc20/index.d.ts.map +1 -1
- package/dist/issuance/erc20/index.js +2 -0
- package/dist/issuance/erc20/parseErc20DeployEvent.d.ts +1 -1
- package/dist/issuance/erc20/parseErc20DeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc20/parseErc20DeployEvent.js +2 -2
- package/dist/issuance/erc721/deploy.d.ts +0 -2
- package/dist/issuance/erc721/deploy.d.ts.map +1 -1
- package/dist/issuance/erc721/deploy.js +4 -8
- package/dist/issuance/erc721/deployGated.d.ts +40 -0
- package/dist/issuance/erc721/deployGated.d.ts.map +1 -0
- package/dist/issuance/erc721/deployGated.js +58 -0
- package/dist/issuance/erc721/index.d.ts +29 -2
- package/dist/issuance/erc721/index.d.ts.map +1 -1
- package/dist/issuance/erc721/index.js +2 -0
- package/dist/issuance/erc721/parseErc721DeployEvent.d.ts +1 -1
- package/dist/issuance/erc721/parseErc721DeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc721/parseErc721DeployEvent.js +2 -2
- package/dist/issuance/index.d.ts +58 -4
- package/dist/issuance/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/getCreatePoolEvent.js +1 -1
- package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.js +1 -1
- package/dist/stakingTemplates/templates/common/getStakeEvent.js +1 -1
- package/package.json +8 -8
package/dist/issuance/index.d.ts
CHANGED
|
@@ -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:
|
|
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:
|
|
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
|
|
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.
|
|
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-
|
|
43
|
-
"@evergonlabs/tmi-protocol-fractions-sdk": "0.
|
|
44
|
-
"@evergonlabs/tmi-protocol-indexer": "0.
|
|
45
|
-
"@evergonlabs/tmi-protocol-
|
|
46
|
-
"@evergonlabs/tmi-protocol-staking-sdk": "0.
|
|
47
|
-
"@evergonlabs/tmi-protocol-
|
|
48
|
-
"@evergonlabs/tmi-protocol-
|
|
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",
|