@evergonlabs/tmi-protocol-api 0.4.0 → 0.4.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.
package/dist/app.d.ts CHANGED
@@ -2499,19 +2499,19 @@ export declare function getApp(factory: Factory): import("hono/hono-base").HonoB
2499
2499
  };
2500
2500
  };
2501
2501
  } & {
2502
- "/proxy/deployTransparentProxy": {
2502
+ "/erc20/getInitData": {
2503
2503
  $post: {
2504
2504
  input: {
2505
2505
  json: {
2506
- initData: `0x${string}`;
2507
- implementation: `0x${string}`;
2508
- proxyAdminOwner: `0x${string}`;
2506
+ cap: string;
2507
+ defaultAdmin: `0x${string}`;
2508
+ minter: `0x${string}`;
2509
+ tokenName: string;
2510
+ tokenSymbol: string;
2509
2511
  };
2510
2512
  };
2511
2513
  output: {
2512
- abi: any[];
2513
- args: any[];
2514
- bytecode: `0x${string}`;
2514
+ data: `0x${string}`;
2515
2515
  };
2516
2516
  outputFormat: "json";
2517
2517
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -2529,6 +2529,25 @@ export declare function getApp(factory: Factory): import("hono/hono-base").HonoB
2529
2529
  status: import("hono/utils/http-status").ContentfulStatusCode;
2530
2530
  };
2531
2531
  };
2532
+ } & {
2533
+ "/proxy/deployTransparentProxy": {
2534
+ $post: {
2535
+ input: {
2536
+ json: {
2537
+ initData: `0x${string}`;
2538
+ implementation: `0x${string}`;
2539
+ proxyAdminOwner: `0x${string}`;
2540
+ };
2541
+ };
2542
+ output: {
2543
+ abi: any[];
2544
+ args: any[];
2545
+ bytecode: `0x${string}`;
2546
+ };
2547
+ outputFormat: "json";
2548
+ status: import("hono/utils/http-status").ContentfulStatusCode;
2549
+ };
2550
+ };
2532
2551
  } & {
2533
2552
  "/proxy/upgradeTransparentProxy": {
2534
2553
  $post: {
package/dist/app.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAWtC;AAED,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAE7C,eAAO,MAAM,SAAS;;;CAGpB,CAAC"}
package/dist/client.d.ts CHANGED
@@ -3048,20 +3048,20 @@ export declare function createClient(...args: Parameters<typeof hc>): {
3048
3048
  };
3049
3049
  } & {
3050
3050
  issuance: {
3051
- proxy: {
3052
- deployTransparentProxy: import("hono/client").ClientRequest<{
3051
+ erc20: {
3052
+ getInitData: import("hono/client").ClientRequest<{
3053
3053
  $post: {
3054
3054
  input: {
3055
3055
  json: {
3056
- initData: `0x${string}`;
3057
- implementation: `0x${string}`;
3058
- proxyAdminOwner: `0x${string}`;
3056
+ cap: string;
3057
+ defaultAdmin: `0x${string}`;
3058
+ minter: `0x${string}`;
3059
+ tokenName: string;
3060
+ tokenSymbol: string;
3059
3061
  };
3060
3062
  };
3061
3063
  output: {
3062
- abi: any[];
3063
- args: any[];
3064
- bytecode: `0x${string}`;
3064
+ data: `0x${string}`;
3065
3065
  };
3066
3066
  outputFormat: "json";
3067
3067
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -3085,6 +3085,29 @@ export declare function createClient(...args: Parameters<typeof hc>): {
3085
3085
  }>;
3086
3086
  };
3087
3087
  };
3088
+ } & {
3089
+ issuance: {
3090
+ proxy: {
3091
+ deployTransparentProxy: import("hono/client").ClientRequest<{
3092
+ $post: {
3093
+ input: {
3094
+ json: {
3095
+ initData: `0x${string}`;
3096
+ implementation: `0x${string}`;
3097
+ proxyAdminOwner: `0x${string}`;
3098
+ };
3099
+ };
3100
+ output: {
3101
+ abi: any[];
3102
+ args: any[];
3103
+ bytecode: `0x${string}`;
3104
+ };
3105
+ outputFormat: "json";
3106
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3107
+ };
3108
+ }>;
3109
+ };
3110
+ };
3088
3111
  } & {
3089
3112
  issuance: {
3090
3113
  proxy: {
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGjC,wBAAgB,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C;AACvE,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const GATING_SIGNER_ADDRESS: "0x29A75f22AC9A7303Abb86ce521Bb44C4C69028A0";
2
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/issuance/common.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,EAAG,4CAAqD,CAAC"}
@@ -0,0 +1 @@
1
+ export const GATING_SIGNER_ADDRESS = "0x29A75f22AC9A7303Abb86ce521Bb44C4C69028A0"; // @todo externalize
@@ -1 +1 @@
1
- {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/issuance/deploy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA+BvC,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;qEAOlE;AAiCD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;EAOnC,CAAC;AAEH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAiBpE;AAgCD,eAAO,MAAM,uCAAuC;;;;;;;;;;;;EASlD,CAAC;AAEH,wBAAgB,iCAAiC,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAcnF;AA4BD,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;qEAOlE"}
1
+ {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/issuance/deploy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAiCvC,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;qEAOlE;AAqCD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;EAOnC,CAAC;AAKH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAgBpE;AAkCD,eAAO,MAAM,uCAAuC;;;;;;;;;;;;EASlD,CAAC;AAEH,wBAAgB,iCAAiC,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAcnF;AA8BD,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;qEAOlE"}
@@ -1,12 +1,14 @@
1
1
  import { z } from "zod";
2
+ import { encodeFunctionData } from "viem";
2
3
  import { describeRoute } from "hono-openapi";
3
4
  import { erc1967ProxyAbi, erc1967ProxyBytecode } from "@evergonlabs/tmi-evm-contracts/erc1967";
4
5
  import { transparentUpgradeableProxyAbi, transparentUpgradeableProxyBytecode, } from "@evergonlabs/tmi-evm-contracts/transparentUpgradeableProxy";
5
6
  import { proxyAdminAbi, proxyAdminBytecode } from "@evergonlabs/tmi-evm-contracts/proxyAdmin";
6
7
  import { resolver, validator } from "hono-openapi/zod";
7
8
  import { AddressSchema, HexStringSchema } from "../common/index.js";
8
- import { encodeFunctionData } from "viem";
9
9
  import { erc20GatedAbi, erc20GatedBytecode } from "../common/abis/erc20Whitelisted.js";
10
+ import { GATING_SIGNER_ADDRESS } from "./common.js";
11
+ // Issue ERC20 Gated contract
10
12
  const IssuanceDeployErc20Schema = z
11
13
  .object({
12
14
  bytecode: HexStringSchema,
@@ -39,6 +41,7 @@ export function createErc20Token(factory) {
39
41
  });
40
42
  });
41
43
  }
44
+ // Issue ERC1967 proxy contract for ERC20 Gated
42
45
  const IssuanceDeployErc1967Schema = z
43
46
  .object({
44
47
  bytecode: HexStringSchema.openapi({ description: "Bytecode of the smartcontract" }),
@@ -68,6 +71,7 @@ const deployProxyRoute = describeRoute({
68
71
  },
69
72
  },
70
73
  });
74
+ // @todo the same params are in getInitData.ts so it could be utilized
71
75
  export const DeployErc1967ProxySchema = z.object({
72
76
  erc20Address: AddressSchema.openapi("The address of the deployed contract from `Get Gated ERC20`"),
73
77
  tokenName: z.string(),
@@ -76,14 +80,15 @@ export const DeployErc1967ProxySchema = z.object({
76
80
  defaultAdmin: AddressSchema,
77
81
  minter: AddressSchema,
78
82
  });
83
+ // @todo This must be splitted as we did with TUP
84
+ // @todo make it deprecated
79
85
  export function createErc1967Proxy(factory) {
80
86
  return factory.createHandlers(deployProxyRoute, validator("json", DeployErc1967ProxySchema), async (c) => {
81
87
  const { erc20Address, tokenName, tokenSymbol, cap, defaultAdmin, minter } = c.req.valid("json");
82
- const gatingSigner = "0x29A75f22AC9A7303Abb86ce521Bb44C4C69028A0"; // todo: externalize
83
88
  const initData = encodeFunctionData({
84
89
  abi: erc20GatedAbi,
85
90
  functionName: "init",
86
- args: [tokenName, tokenSymbol, BigInt(cap), defaultAdmin, minter, gatingSigner],
91
+ args: [tokenName, tokenSymbol, BigInt(cap), defaultAdmin, minter, GATING_SIGNER_ADDRESS],
87
92
  });
88
93
  return c.json({
89
94
  bytecode: erc1967ProxyBytecode,
@@ -92,6 +97,7 @@ export function createErc1967Proxy(factory) {
92
97
  });
93
98
  });
94
99
  }
100
+ // Issue generic TUP contract
95
101
  const IssuanceDeployTransparentProxySchema = z
96
102
  .object({
97
103
  bytecode: HexStringSchema.openapi({ description: "Bytecode of the smartcontract" }),
@@ -139,6 +145,7 @@ export function createTransparentUpgradeableProxy(factory) {
139
145
  });
140
146
  });
141
147
  }
148
+ // Issue generic ProxyAdmin contract
142
149
  const IssuanceDeployProxyAdminSchema = z
143
150
  .object({
144
151
  bytecode: HexStringSchema.openapi({ description: "Bytecode of the smartcontract" }),
@@ -0,0 +1,75 @@
1
+ import z from "zod";
2
+ import { Env } from "hono";
3
+ import { Factory } from "hono/factory";
4
+ export declare const Erc20InitDataResponse: z.ZodObject<{
5
+ data: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ data: `0x${string}`;
8
+ }, {
9
+ data: `0x${string}`;
10
+ }>;
11
+ export declare const Erc20InitDataParams: z.ZodObject<{
12
+ tokenName: z.ZodString;
13
+ tokenSymbol: z.ZodString;
14
+ cap: z.ZodPipeline<z.ZodString, z.ZodBigInt>;
15
+ defaultAdmin: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
16
+ minter: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ cap: bigint;
19
+ defaultAdmin: `0x${string}`;
20
+ minter: `0x${string}`;
21
+ tokenName: string;
22
+ tokenSymbol: string;
23
+ }, {
24
+ cap: string;
25
+ defaultAdmin: `0x${string}`;
26
+ minter: `0x${string}`;
27
+ tokenName: string;
28
+ tokenSymbol: string;
29
+ }>;
30
+ export declare function createGetErc20InitData<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
31
+ data: `0x${string}`;
32
+ }, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
33
+ in: {
34
+ json: {
35
+ cap: string;
36
+ defaultAdmin: `0x${string}`;
37
+ minter: `0x${string}`;
38
+ tokenName: string;
39
+ tokenSymbol: string;
40
+ };
41
+ };
42
+ out: {
43
+ json: {
44
+ cap: bigint;
45
+ defaultAdmin: `0x${string}`;
46
+ minter: `0x${string}`;
47
+ tokenName: string;
48
+ tokenSymbol: string;
49
+ };
50
+ };
51
+ }, Promise<Response & import("hono").TypedResponse<{
52
+ data: `0x${string}`;
53
+ }, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
54
+ in: {
55
+ json: {
56
+ cap: string;
57
+ defaultAdmin: `0x${string}`;
58
+ minter: `0x${string}`;
59
+ tokenName: string;
60
+ tokenSymbol: string;
61
+ };
62
+ };
63
+ out: {
64
+ json: {
65
+ cap: bigint;
66
+ defaultAdmin: `0x${string}`;
67
+ minter: `0x${string}`;
68
+ tokenName: string;
69
+ tokenSymbol: string;
70
+ };
71
+ };
72
+ }, Promise<Response & import("hono").TypedResponse<{
73
+ data: `0x${string}`;
74
+ }, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
75
+ //# sourceMappingURL=getInitData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getInitData.d.ts","sourceRoot":"","sources":["../../src/issuance/getInitData.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAOvC,eAAO,MAAM,qBAAqB;;;;;;EAM9B,CAAC;AAEL,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAU5B,CAAC;AAkBL,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAaxE"}
@@ -0,0 +1,53 @@
1
+ import z from "zod";
2
+ import { describeRoute } from "hono-openapi";
3
+ import { resolver, validator } from "hono-openapi/zod";
4
+ import { encodeFunctionData } from "viem";
5
+ import { erc20GatedAbi } from "../common/abis/erc20Whitelisted.js";
6
+ import { AddressSchema, HexStringSchema } from "../common/index.js";
7
+ import { GATING_SIGNER_ADDRESS } from "./common.js";
8
+ export const Erc20InitDataResponse = z
9
+ .object({
10
+ data: HexStringSchema.openapi("Init function call data in hex format"),
11
+ })
12
+ .openapi({
13
+ ref: "Erc20InitDataResponse",
14
+ });
15
+ export const Erc20InitDataParams = z
16
+ .object({
17
+ tokenName: z.string().nonempty(),
18
+ tokenSymbol: z.string().nonempty(),
19
+ cap: z.string().pipe(z.coerce.bigint().nonnegative()).openapi("Max. token supply"),
20
+ defaultAdmin: AddressSchema,
21
+ minter: AddressSchema,
22
+ })
23
+ .openapi({
24
+ ref: "ERC20InitDataParams",
25
+ });
26
+ const getErc20InitDataRoute = describeRoute({
27
+ summary: "Get ERC20 Init Data",
28
+ description: `Returns init function call data in hex format. This is useful for using as initData in TransparentUpgradeableProxy`,
29
+ tags: ["Issuance"],
30
+ responses: {
31
+ 200: {
32
+ description: "Init function call data in hex format",
33
+ content: {
34
+ "application/json": {
35
+ schema: resolver(Erc20InitDataResponse),
36
+ },
37
+ },
38
+ },
39
+ },
40
+ });
41
+ export function createGetErc20InitData(factory) {
42
+ return factory.createHandlers(getErc20InitDataRoute, validator("json", Erc20InitDataParams), async (c) => {
43
+ const data = c.req.valid("json");
44
+ const initData = encodeFunctionData({
45
+ abi: erc20GatedAbi,
46
+ functionName: "init",
47
+ args: [data.tokenName, data.tokenSymbol, data.cap, data.defaultAdmin, data.minter, GATING_SIGNER_ADDRESS],
48
+ });
49
+ return c.json({
50
+ data: initData,
51
+ });
52
+ });
53
+ }
@@ -181,19 +181,19 @@ export declare const issuanceApis: {
181
181
  };
182
182
  };
183
183
  } & {
184
- "/proxy/deployTransparentProxy": {
184
+ "/erc20/getInitData": {
185
185
  $post: {
186
186
  input: {
187
187
  json: {
188
- initData: `0x${string}`;
189
- implementation: `0x${string}`;
190
- proxyAdminOwner: `0x${string}`;
188
+ cap: string;
189
+ defaultAdmin: `0x${string}`;
190
+ minter: `0x${string}`;
191
+ tokenName: string;
192
+ tokenSymbol: string;
191
193
  };
192
194
  };
193
195
  output: {
194
- abi: any[];
195
- args: any[];
196
- bytecode: `0x${string}`;
196
+ data: `0x${string}`;
197
197
  };
198
198
  outputFormat: "json";
199
199
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -211,6 +211,25 @@ export declare const issuanceApis: {
211
211
  status: import("hono/utils/http-status").ContentfulStatusCode;
212
212
  };
213
213
  };
214
+ } & {
215
+ "/proxy/deployTransparentProxy": {
216
+ $post: {
217
+ input: {
218
+ json: {
219
+ initData: `0x${string}`;
220
+ implementation: `0x${string}`;
221
+ proxyAdminOwner: `0x${string}`;
222
+ };
223
+ };
224
+ output: {
225
+ abi: any[];
226
+ args: any[];
227
+ bytecode: `0x${string}`;
228
+ };
229
+ outputFormat: "json";
230
+ status: import("hono/utils/http-status").ContentfulStatusCode;
231
+ };
232
+ };
214
233
  } & {
215
234
  "/proxy/upgradeTransparentProxy": {
216
235
  $post: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/issuance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAWvC,eAAO,MAAM,YAAY;;gBAEX,CAAC,SAAS,GAAG,WAAW,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqB/C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/issuance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAYvC,eAAO,MAAM,YAAY;;gBAEX,CAAC,SAAS,GAAG,WAAW,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsB/C,CAAC"}
@@ -7,6 +7,7 @@ import { transferErc20Token } from "./transfer.js";
7
7
  import { createGrantRole } from "./grantRole.js";
8
8
  import { createRenounceRole } from "./renounceRole.js";
9
9
  import { upgradeTransparentProxy } from "./upgrade.js";
10
+ import { createGetErc20InitData } from "./getInitData.js";
10
11
  export const issuanceApis = {
11
12
  name: "Issuance APIs",
12
13
  createApp: (factory) => factory.createApp().route("/issuance", factory
@@ -19,8 +20,9 @@ export const issuanceApis = {
19
20
  .post("/erc20/proxy", ...createErc1967Proxy(factory))
20
21
  .post("/erc20/grantRole", ...createGrantRole(factory))
21
22
  .post("/erc20/renounceRole", ...createRenounceRole(factory))
22
- .post("/proxy/deployTransparentProxy", ...createTransparentUpgradeableProxy(factory))
23
+ .post("/erc20/getInitData", ...createGetErc20InitData(factory))
23
24
  .get("/proxy/deployProxyAdmin", ...createProxyAdmin(factory))
25
+ .post("/proxy/deployTransparentProxy", ...createTransparentUpgradeableProxy(factory))
24
26
  .post("/proxy/upgradeTransparentProxy", ...upgradeTransparentProxy(factory))),
25
27
  config: createApiConfig({
26
28
  title: "Issuance API",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evergonlabs/tmi-protocol-api",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -37,11 +37,11 @@
37
37
  "viem": "^2.23.2",
38
38
  "zod": "^3.25.0",
39
39
  "zod-openapi": "^4.2.4",
40
- "@evergonlabs/tmi-protocol-fractions-sdk": "0.2.1",
41
- "@evergonlabs/tmi-protocol-staking-sdk": "0.2.1",
42
- "@evergonlabs/tmi-protocol-indexer": "0.1.1",
43
40
  "@evergonlabs/tmi-protocol-shared": "0.1.0",
41
+ "@evergonlabs/tmi-protocol-fractions-sdk": "0.2.1",
44
42
  "@evergonlabs/tmi-protocol-types": "0.2.1",
43
+ "@evergonlabs/tmi-protocol-indexer": "0.1.1",
44
+ "@evergonlabs/tmi-protocol-staking-sdk": "0.2.1",
45
45
  "@evergonlabs/tmi-protocol-utils": "0.2.1"
46
46
  },
47
47
  "devDependencies": {