@evergonlabs/tmi-protocol-api 0.2.1 → 0.3.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 CHANGED
@@ -2505,7 +2505,13 @@ export declare function getApp(factory: Factory): import("hono/hono-base").HonoB
2505
2505
  json: {
2506
2506
  implementation: `0x${string}`;
2507
2507
  proxyAdmin: `0x${string}`;
2508
- data?: `0x${string}` | undefined;
2508
+ erc20Data: {
2509
+ cap: bigint;
2510
+ defaultAdmin: `0x${string}`;
2511
+ minter: `0x${string}`;
2512
+ tokenName: string;
2513
+ tokenSymbol: string;
2514
+ };
2509
2515
  };
2510
2516
  };
2511
2517
  output: {
package/dist/app.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAWvC,wBAAgB,MAAM,CAAC,OAAO,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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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
@@ -3055,7 +3055,13 @@ export declare function createClient(...args: Parameters<typeof hc>): {
3055
3055
  json: {
3056
3056
  implementation: `0x${string}`;
3057
3057
  proxyAdmin: `0x${string}`;
3058
- data?: `0x${string}` | undefined;
3058
+ erc20Data: {
3059
+ cap: bigint;
3060
+ defaultAdmin: `0x${string}`;
3061
+ minter: `0x${string}`;
3062
+ tokenName: string;
3063
+ tokenSymbol: string;
3064
+ };
3059
3065
  };
3060
3066
  };
3061
3067
  output: {
@@ -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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE1D;AAED,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACnD,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACvE,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
@@ -88,15 +88,45 @@ export declare function createErc1967Proxy<E extends Env>(factory: Factory<E>):
88
88
  export declare const DeployTransparentProxySchema: z.ZodObject<{
89
89
  implementation: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
90
90
  proxyAdmin: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
91
- data: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
91
+ erc20Data: z.ZodObject<{
92
+ tokenName: z.ZodString;
93
+ tokenSymbol: z.ZodString;
94
+ cap: z.ZodBigInt;
95
+ defaultAdmin: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
96
+ minter: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ cap: bigint;
99
+ defaultAdmin: `0x${string}`;
100
+ minter: `0x${string}`;
101
+ tokenName: string;
102
+ tokenSymbol: string;
103
+ }, {
104
+ cap: bigint;
105
+ defaultAdmin: `0x${string}`;
106
+ minter: `0x${string}`;
107
+ tokenName: string;
108
+ tokenSymbol: string;
109
+ }>;
92
110
  }, "strip", z.ZodTypeAny, {
93
111
  implementation: `0x${string}`;
94
112
  proxyAdmin: `0x${string}`;
95
- data?: `0x${string}` | undefined;
113
+ erc20Data: {
114
+ cap: bigint;
115
+ defaultAdmin: `0x${string}`;
116
+ minter: `0x${string}`;
117
+ tokenName: string;
118
+ tokenSymbol: string;
119
+ };
96
120
  }, {
97
121
  implementation: `0x${string}`;
98
122
  proxyAdmin: `0x${string}`;
99
- data?: `0x${string}` | undefined;
123
+ erc20Data: {
124
+ cap: bigint;
125
+ defaultAdmin: `0x${string}`;
126
+ minter: `0x${string}`;
127
+ tokenName: string;
128
+ tokenSymbol: string;
129
+ };
100
130
  }>;
101
131
  export declare function createTransparentProxy<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
102
132
  abi: any[];
@@ -107,14 +137,26 @@ export declare function createTransparentProxy<E extends Env>(factory: Factory<E
107
137
  json: {
108
138
  implementation: `0x${string}`;
109
139
  proxyAdmin: `0x${string}`;
110
- data?: `0x${string}` | undefined;
140
+ erc20Data: {
141
+ cap: bigint;
142
+ defaultAdmin: `0x${string}`;
143
+ minter: `0x${string}`;
144
+ tokenName: string;
145
+ tokenSymbol: string;
146
+ };
111
147
  };
112
148
  };
113
149
  out: {
114
150
  json: {
115
151
  implementation: `0x${string}`;
116
152
  proxyAdmin: `0x${string}`;
117
- data?: `0x${string}` | undefined;
153
+ erc20Data: {
154
+ cap: bigint;
155
+ defaultAdmin: `0x${string}`;
156
+ minter: `0x${string}`;
157
+ tokenName: string;
158
+ tokenSymbol: string;
159
+ };
118
160
  };
119
161
  };
120
162
  }, Promise<Response & import("hono").TypedResponse<{
@@ -126,14 +168,26 @@ export declare function createTransparentProxy<E extends Env>(factory: Factory<E
126
168
  json: {
127
169
  implementation: `0x${string}`;
128
170
  proxyAdmin: `0x${string}`;
129
- data?: `0x${string}` | undefined;
171
+ erc20Data: {
172
+ cap: bigint;
173
+ defaultAdmin: `0x${string}`;
174
+ minter: `0x${string}`;
175
+ tokenName: string;
176
+ tokenSymbol: string;
177
+ };
130
178
  };
131
179
  };
132
180
  out: {
133
181
  json: {
134
182
  implementation: `0x${string}`;
135
183
  proxyAdmin: `0x${string}`;
136
- data?: `0x${string}` | undefined;
184
+ erc20Data: {
185
+ cap: bigint;
186
+ defaultAdmin: `0x${string}`;
187
+ minter: `0x${string}`;
188
+ tokenName: string;
189
+ tokenSymbol: string;
190
+ };
137
191
  };
138
192
  };
139
193
  }, Promise<Response & import("hono").TypedResponse<{
@@ -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;A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OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEA2BxE;AA4BD,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;qEAOlE"}
@@ -123,15 +123,34 @@ const deployTransparentProxyRoute = describeRoute({
123
123
  export const DeployTransparentProxySchema = z.object({
124
124
  implementation: AddressSchema.openapi("The address of the implementation contract"),
125
125
  proxyAdmin: AddressSchema.openapi("The address of the proxy admin"),
126
- data: HexStringSchema.openapi("The encoded initialization data for the implementation").optional(),
126
+ erc20Data: z.object({
127
+ tokenName: z.string(),
128
+ tokenSymbol: z.string(),
129
+ cap: z.coerce.bigint(),
130
+ defaultAdmin: AddressSchema,
131
+ minter: AddressSchema,
132
+ }),
127
133
  });
128
134
  export function createTransparentProxy(factory) {
129
135
  return factory.createHandlers(deployTransparentProxyRoute, validator("json", DeployTransparentProxySchema), async (c) => {
130
- const { implementation, proxyAdmin: admin, data } = c.req.valid("json");
136
+ const { implementation, proxyAdmin: admin, erc20Data } = c.req.valid("json");
137
+ const gatingSigner = "0x29A75f22AC9A7303Abb86ce521Bb44C4C69028A0"; // todo: externalize
138
+ const initData = encodeFunctionData({
139
+ abi: erc20GatedAbi,
140
+ functionName: "init",
141
+ args: [
142
+ erc20Data.tokenName,
143
+ erc20Data.tokenSymbol,
144
+ BigInt(erc20Data.cap),
145
+ erc20Data.defaultAdmin,
146
+ erc20Data.minter,
147
+ gatingSigner,
148
+ ],
149
+ });
131
150
  return c.json({
132
151
  bytecode: transparentUpgradeableProxyBytecode,
133
152
  abi: transparentUpgradeableProxyAbi,
134
- args: [implementation, admin, data || "0x"],
153
+ args: [implementation, admin, initData],
135
154
  });
136
155
  });
137
156
  }
@@ -187,7 +187,13 @@ export declare const issuanceApis: {
187
187
  json: {
188
188
  implementation: `0x${string}`;
189
189
  proxyAdmin: `0x${string}`;
190
- data?: `0x${string}` | undefined;
190
+ erc20Data: {
191
+ cap: bigint;
192
+ defaultAdmin: `0x${string}`;
193
+ minter: `0x${string}`;
194
+ tokenName: string;
195
+ tokenSymbol: string;
196
+ };
191
197
  };
192
198
  };
193
199
  output: {
@@ -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;AAWvC,eAAO,MAAM,YAAY;;gBAEX,CAAC,SAAS,GAAG,WAAW,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqB/C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evergonlabs/tmi-protocol-api",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -39,9 +39,9 @@
39
39
  "zod-openapi": "^4.2.4",
40
40
  "@evergonlabs/tmi-protocol-fractions-sdk": "0.2.1",
41
41
  "@evergonlabs/tmi-protocol-indexer": "0.1.1",
42
- "@evergonlabs/tmi-protocol-shared": "0.1.0",
43
42
  "@evergonlabs/tmi-protocol-types": "0.2.1",
44
43
  "@evergonlabs/tmi-protocol-staking-sdk": "0.2.1",
44
+ "@evergonlabs/tmi-protocol-shared": "0.1.0",
45
45
  "@evergonlabs/tmi-protocol-utils": "0.2.1"
46
46
  },
47
47
  "devDependencies": {