@evergonlabs/tmi-protocol-api 0.1.4 → 0.1.5
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 +15 -3
- package/dist/app.d.ts.map +1 -1
- package/dist/client.d.ts +15 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/fractions/activity/searchActivity.route.d.ts +45 -9
- package/dist/fractions/activity/searchActivity.route.d.ts.map +1 -1
- package/dist/fractions/activity/utils.d.ts +91 -15
- package/dist/fractions/activity/utils.d.ts.map +1 -1
- package/dist/fractions/activity/utils.js +12 -3
- package/dist/fractions/index.d.ts +15 -3
- package/dist/fractions/index.d.ts.map +1 -1
- package/dist/general/balanceClient.d.ts +21 -5
- package/dist/general/balanceClient.d.ts.map +1 -1
- package/dist/general/utils/tokenBalance/tokenBalance.d.ts +19 -3
- package/dist/general/utils/tokenBalance/tokenBalance.d.ts.map +1 -1
- package/dist/general/utils/tokenBalance/tokenBalance.js +8 -3
- package/package.json +4 -4
package/dist/app.d.ts
CHANGED
|
@@ -2064,13 +2064,20 @@ export declare function getApp(factory: Factory): import("hono/hono-base").HonoB
|
|
|
2064
2064
|
} | {
|
|
2065
2065
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.PURCHASE;
|
|
2066
2066
|
amountOfFractions: string;
|
|
2067
|
+
amountPaid: string;
|
|
2068
|
+
amountBurnt: string;
|
|
2067
2069
|
priceId: string;
|
|
2068
2070
|
purchaser: string;
|
|
2069
2071
|
} | {
|
|
2072
|
+
received: {
|
|
2073
|
+
tokenId: string;
|
|
2074
|
+
tokenAddress: string;
|
|
2075
|
+
amount: string;
|
|
2076
|
+
}[];
|
|
2070
2077
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.CLAIM;
|
|
2071
2078
|
receiver: string;
|
|
2072
|
-
|
|
2073
|
-
|
|
2079
|
+
claimId: string;
|
|
2080
|
+
fractionsBurnt: string;
|
|
2074
2081
|
} | {
|
|
2075
2082
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.REFUND;
|
|
2076
2083
|
amount: string;
|
|
@@ -2078,8 +2085,13 @@ export declare function getApp(factory: Factory): import("hono/hono-base").HonoB
|
|
|
2078
2085
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.WITHDRAW;
|
|
2079
2086
|
amount: string;
|
|
2080
2087
|
} | {
|
|
2088
|
+
received: {
|
|
2089
|
+
tokenId: string;
|
|
2090
|
+
tokenAddress: string;
|
|
2091
|
+
amount: string;
|
|
2092
|
+
}[];
|
|
2081
2093
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
2082
|
-
|
|
2094
|
+
receiver: string;
|
|
2083
2095
|
};
|
|
2084
2096
|
}[];
|
|
2085
2097
|
outputFormat: "json";
|
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;AAUvC,wBAAgB,MAAM,CAAC,OAAO,EAAE,OAAO
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAUvC,wBAAgB,MAAM,CAAC,OAAO,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAUtC;AAED,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAE7C,eAAO,MAAM,SAAS;;;CAGpB,CAAC"}
|
package/dist/client.d.ts
CHANGED
|
@@ -2535,13 +2535,20 @@ export declare function createClient(...args: Parameters<typeof hc>): {
|
|
|
2535
2535
|
} | {
|
|
2536
2536
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.PURCHASE;
|
|
2537
2537
|
amountOfFractions: string;
|
|
2538
|
+
amountPaid: string;
|
|
2539
|
+
amountBurnt: string;
|
|
2538
2540
|
priceId: string;
|
|
2539
2541
|
purchaser: string;
|
|
2540
2542
|
} | {
|
|
2543
|
+
received: {
|
|
2544
|
+
tokenId: string;
|
|
2545
|
+
tokenAddress: string;
|
|
2546
|
+
amount: string;
|
|
2547
|
+
}[];
|
|
2541
2548
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.CLAIM;
|
|
2542
2549
|
receiver: string;
|
|
2543
|
-
|
|
2544
|
-
|
|
2550
|
+
claimId: string;
|
|
2551
|
+
fractionsBurnt: string;
|
|
2545
2552
|
} | {
|
|
2546
2553
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.REFUND;
|
|
2547
2554
|
amount: string;
|
|
@@ -2549,8 +2556,13 @@ export declare function createClient(...args: Parameters<typeof hc>): {
|
|
|
2549
2556
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.WITHDRAW;
|
|
2550
2557
|
amount: string;
|
|
2551
2558
|
} | {
|
|
2559
|
+
received: {
|
|
2560
|
+
tokenId: string;
|
|
2561
|
+
tokenAddress: string;
|
|
2562
|
+
amount: string;
|
|
2563
|
+
}[];
|
|
2552
2564
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
2553
|
-
|
|
2565
|
+
receiver: string;
|
|
2554
2566
|
};
|
|
2555
2567
|
}[];
|
|
2556
2568
|
outputFormat: "json";
|
package/dist/client.d.ts.map
CHANGED
|
@@ -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
|
|
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"}
|
|
@@ -17,13 +17,20 @@ export declare function createSearchActivityV0App<E extends Env>(factory: Factor
|
|
|
17
17
|
} | {
|
|
18
18
|
type: FractionSaleEventEnum.PURCHASE;
|
|
19
19
|
amountOfFractions: string;
|
|
20
|
+
amountPaid: string;
|
|
21
|
+
amountBurnt: string;
|
|
20
22
|
priceId: string;
|
|
21
23
|
purchaser: string;
|
|
22
24
|
} | {
|
|
25
|
+
received: {
|
|
26
|
+
tokenId: string;
|
|
27
|
+
tokenAddress: string;
|
|
28
|
+
amount: string;
|
|
29
|
+
}[];
|
|
23
30
|
type: FractionSaleEventEnum.CLAIM;
|
|
24
31
|
receiver: string;
|
|
25
|
-
|
|
26
|
-
|
|
32
|
+
claimId: string;
|
|
33
|
+
fractionsBurnt: string;
|
|
27
34
|
} | {
|
|
28
35
|
type: FractionSaleEventEnum.REFUND;
|
|
29
36
|
amount: string;
|
|
@@ -31,8 +38,13 @@ export declare function createSearchActivityV0App<E extends Env>(factory: Factor
|
|
|
31
38
|
type: FractionSaleEventEnum.WITHDRAW;
|
|
32
39
|
amount: string;
|
|
33
40
|
} | {
|
|
41
|
+
received: {
|
|
42
|
+
tokenId: string;
|
|
43
|
+
tokenAddress: string;
|
|
44
|
+
amount: string;
|
|
45
|
+
}[];
|
|
34
46
|
type: FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
35
|
-
|
|
47
|
+
receiver: string;
|
|
36
48
|
};
|
|
37
49
|
}[], import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
38
50
|
in: {
|
|
@@ -79,13 +91,20 @@ export declare function createSearchActivityV0App<E extends Env>(factory: Factor
|
|
|
79
91
|
} | {
|
|
80
92
|
type: FractionSaleEventEnum.PURCHASE;
|
|
81
93
|
amountOfFractions: string;
|
|
94
|
+
amountPaid: string;
|
|
95
|
+
amountBurnt: string;
|
|
82
96
|
priceId: string;
|
|
83
97
|
purchaser: string;
|
|
84
98
|
} | {
|
|
99
|
+
received: {
|
|
100
|
+
tokenId: string;
|
|
101
|
+
tokenAddress: string;
|
|
102
|
+
amount: string;
|
|
103
|
+
}[];
|
|
85
104
|
type: FractionSaleEventEnum.CLAIM;
|
|
86
105
|
receiver: string;
|
|
87
|
-
|
|
88
|
-
|
|
106
|
+
claimId: string;
|
|
107
|
+
fractionsBurnt: string;
|
|
89
108
|
} | {
|
|
90
109
|
type: FractionSaleEventEnum.REFUND;
|
|
91
110
|
amount: string;
|
|
@@ -93,8 +112,13 @@ export declare function createSearchActivityV0App<E extends Env>(factory: Factor
|
|
|
93
112
|
type: FractionSaleEventEnum.WITHDRAW;
|
|
94
113
|
amount: string;
|
|
95
114
|
} | {
|
|
115
|
+
received: {
|
|
116
|
+
tokenId: string;
|
|
117
|
+
tokenAddress: string;
|
|
118
|
+
amount: string;
|
|
119
|
+
}[];
|
|
96
120
|
type: FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
97
|
-
|
|
121
|
+
receiver: string;
|
|
98
122
|
};
|
|
99
123
|
}[], 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, {
|
|
100
124
|
in: {
|
|
@@ -141,13 +165,20 @@ export declare function createSearchActivityV0App<E extends Env>(factory: Factor
|
|
|
141
165
|
} | {
|
|
142
166
|
type: FractionSaleEventEnum.PURCHASE;
|
|
143
167
|
amountOfFractions: string;
|
|
168
|
+
amountPaid: string;
|
|
169
|
+
amountBurnt: string;
|
|
144
170
|
priceId: string;
|
|
145
171
|
purchaser: string;
|
|
146
172
|
} | {
|
|
173
|
+
received: {
|
|
174
|
+
tokenId: string;
|
|
175
|
+
tokenAddress: string;
|
|
176
|
+
amount: string;
|
|
177
|
+
}[];
|
|
147
178
|
type: FractionSaleEventEnum.CLAIM;
|
|
148
179
|
receiver: string;
|
|
149
|
-
|
|
150
|
-
|
|
180
|
+
claimId: string;
|
|
181
|
+
fractionsBurnt: string;
|
|
151
182
|
} | {
|
|
152
183
|
type: FractionSaleEventEnum.REFUND;
|
|
153
184
|
amount: string;
|
|
@@ -155,8 +186,13 @@ export declare function createSearchActivityV0App<E extends Env>(factory: Factor
|
|
|
155
186
|
type: FractionSaleEventEnum.WITHDRAW;
|
|
156
187
|
amount: string;
|
|
157
188
|
} | {
|
|
189
|
+
received: {
|
|
190
|
+
tokenId: string;
|
|
191
|
+
tokenAddress: string;
|
|
192
|
+
amount: string;
|
|
193
|
+
}[];
|
|
158
194
|
type: FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
159
|
-
|
|
195
|
+
receiver: string;
|
|
160
196
|
};
|
|
161
197
|
}[], import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
162
198
|
//# sourceMappingURL=searchActivity.route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchActivity.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/activity/searchActivity.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAQvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAIjF,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"searchActivity.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/activity/searchActivity.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAQvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAIjF,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uEA+D3E"}
|
|
@@ -29,31 +29,60 @@ export declare const FractionActivityEntrySchema: z.ZodObject<{
|
|
|
29
29
|
purchaser: z.ZodString;
|
|
30
30
|
priceId: z.ZodString;
|
|
31
31
|
amountOfFractions: z.ZodString;
|
|
32
|
+
amountPaid: z.ZodString;
|
|
33
|
+
amountBurnt: z.ZodString;
|
|
32
34
|
}, "strip", z.ZodTypeAny, {
|
|
33
35
|
type: FractionSaleEventEnum.PURCHASE;
|
|
34
36
|
amountOfFractions: string;
|
|
37
|
+
amountPaid: string;
|
|
38
|
+
amountBurnt: string;
|
|
35
39
|
priceId: string;
|
|
36
40
|
purchaser: string;
|
|
37
41
|
}, {
|
|
38
42
|
type: FractionSaleEventEnum.PURCHASE;
|
|
39
43
|
amountOfFractions: string;
|
|
44
|
+
amountPaid: string;
|
|
45
|
+
amountBurnt: string;
|
|
40
46
|
priceId: string;
|
|
41
47
|
purchaser: string;
|
|
42
48
|
}>, z.ZodObject<{
|
|
43
49
|
type: z.ZodLiteral<FractionSaleEventEnum.CLAIM>;
|
|
44
50
|
receiver: z.ZodString;
|
|
45
|
-
|
|
46
|
-
|
|
51
|
+
claimId: z.ZodString;
|
|
52
|
+
fractionsBurnt: z.ZodString;
|
|
53
|
+
received: z.ZodArray<z.ZodObject<{
|
|
54
|
+
tokenAddress: z.ZodString;
|
|
55
|
+
amount: z.ZodString;
|
|
56
|
+
tokenId: z.ZodString;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
tokenId: string;
|
|
59
|
+
tokenAddress: string;
|
|
60
|
+
amount: string;
|
|
61
|
+
}, {
|
|
62
|
+
tokenId: string;
|
|
63
|
+
tokenAddress: string;
|
|
64
|
+
amount: string;
|
|
65
|
+
}>, "many">;
|
|
47
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
received: {
|
|
68
|
+
tokenId: string;
|
|
69
|
+
tokenAddress: string;
|
|
70
|
+
amount: string;
|
|
71
|
+
}[];
|
|
48
72
|
type: FractionSaleEventEnum.CLAIM;
|
|
49
73
|
receiver: string;
|
|
50
|
-
|
|
51
|
-
|
|
74
|
+
claimId: string;
|
|
75
|
+
fractionsBurnt: string;
|
|
52
76
|
}, {
|
|
77
|
+
received: {
|
|
78
|
+
tokenId: string;
|
|
79
|
+
tokenAddress: string;
|
|
80
|
+
amount: string;
|
|
81
|
+
}[];
|
|
53
82
|
type: FractionSaleEventEnum.CLAIM;
|
|
54
83
|
receiver: string;
|
|
55
|
-
|
|
56
|
-
|
|
84
|
+
claimId: string;
|
|
85
|
+
fractionsBurnt: string;
|
|
57
86
|
}>, z.ZodObject<{
|
|
58
87
|
type: z.ZodLiteral<FractionSaleEventEnum.REFUND>;
|
|
59
88
|
amount: z.ZodString;
|
|
@@ -74,13 +103,36 @@ export declare const FractionActivityEntrySchema: z.ZodObject<{
|
|
|
74
103
|
amount: string;
|
|
75
104
|
}>, z.ZodObject<{
|
|
76
105
|
type: z.ZodLiteral<FractionSaleEventEnum.WITHDRAW_NON_WRAPPED>;
|
|
77
|
-
|
|
106
|
+
receiver: z.ZodString;
|
|
107
|
+
received: z.ZodArray<z.ZodObject<{
|
|
108
|
+
tokenAddress: z.ZodString;
|
|
109
|
+
amount: z.ZodString;
|
|
110
|
+
tokenId: z.ZodString;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
tokenId: string;
|
|
113
|
+
tokenAddress: string;
|
|
114
|
+
amount: string;
|
|
115
|
+
}, {
|
|
116
|
+
tokenId: string;
|
|
117
|
+
tokenAddress: string;
|
|
118
|
+
amount: string;
|
|
119
|
+
}>, "many">;
|
|
78
120
|
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
received: {
|
|
122
|
+
tokenId: string;
|
|
123
|
+
tokenAddress: string;
|
|
124
|
+
amount: string;
|
|
125
|
+
}[];
|
|
79
126
|
type: FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
80
|
-
|
|
127
|
+
receiver: string;
|
|
81
128
|
}, {
|
|
129
|
+
received: {
|
|
130
|
+
tokenId: string;
|
|
131
|
+
tokenAddress: string;
|
|
132
|
+
amount: string;
|
|
133
|
+
}[];
|
|
82
134
|
type: FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
83
|
-
|
|
135
|
+
receiver: string;
|
|
84
136
|
}>]>;
|
|
85
137
|
}, "strip", z.ZodTypeAny, {
|
|
86
138
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
@@ -98,13 +150,20 @@ export declare const FractionActivityEntrySchema: z.ZodObject<{
|
|
|
98
150
|
} | {
|
|
99
151
|
type: FractionSaleEventEnum.PURCHASE;
|
|
100
152
|
amountOfFractions: string;
|
|
153
|
+
amountPaid: string;
|
|
154
|
+
amountBurnt: string;
|
|
101
155
|
priceId: string;
|
|
102
156
|
purchaser: string;
|
|
103
157
|
} | {
|
|
158
|
+
received: {
|
|
159
|
+
tokenId: string;
|
|
160
|
+
tokenAddress: string;
|
|
161
|
+
amount: string;
|
|
162
|
+
}[];
|
|
104
163
|
type: FractionSaleEventEnum.CLAIM;
|
|
105
164
|
receiver: string;
|
|
106
|
-
|
|
107
|
-
|
|
165
|
+
claimId: string;
|
|
166
|
+
fractionsBurnt: string;
|
|
108
167
|
} | {
|
|
109
168
|
type: FractionSaleEventEnum.REFUND;
|
|
110
169
|
amount: string;
|
|
@@ -112,8 +171,13 @@ export declare const FractionActivityEntrySchema: z.ZodObject<{
|
|
|
112
171
|
type: FractionSaleEventEnum.WITHDRAW;
|
|
113
172
|
amount: string;
|
|
114
173
|
} | {
|
|
174
|
+
received: {
|
|
175
|
+
tokenId: string;
|
|
176
|
+
tokenAddress: string;
|
|
177
|
+
amount: string;
|
|
178
|
+
}[];
|
|
115
179
|
type: FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
116
|
-
|
|
180
|
+
receiver: string;
|
|
117
181
|
};
|
|
118
182
|
}, {
|
|
119
183
|
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
@@ -131,13 +195,20 @@ export declare const FractionActivityEntrySchema: z.ZodObject<{
|
|
|
131
195
|
} | {
|
|
132
196
|
type: FractionSaleEventEnum.PURCHASE;
|
|
133
197
|
amountOfFractions: string;
|
|
198
|
+
amountPaid: string;
|
|
199
|
+
amountBurnt: string;
|
|
134
200
|
priceId: string;
|
|
135
201
|
purchaser: string;
|
|
136
202
|
} | {
|
|
203
|
+
received: {
|
|
204
|
+
tokenId: string;
|
|
205
|
+
tokenAddress: string;
|
|
206
|
+
amount: string;
|
|
207
|
+
}[];
|
|
137
208
|
type: FractionSaleEventEnum.CLAIM;
|
|
138
209
|
receiver: string;
|
|
139
|
-
|
|
140
|
-
|
|
210
|
+
claimId: string;
|
|
211
|
+
fractionsBurnt: string;
|
|
141
212
|
} | {
|
|
142
213
|
type: FractionSaleEventEnum.REFUND;
|
|
143
214
|
amount: string;
|
|
@@ -145,8 +216,13 @@ export declare const FractionActivityEntrySchema: z.ZodObject<{
|
|
|
145
216
|
type: FractionSaleEventEnum.WITHDRAW;
|
|
146
217
|
amount: string;
|
|
147
218
|
} | {
|
|
219
|
+
received: {
|
|
220
|
+
tokenId: string;
|
|
221
|
+
tokenAddress: string;
|
|
222
|
+
amount: string;
|
|
223
|
+
}[];
|
|
148
224
|
type: FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
149
|
-
|
|
225
|
+
receiver: string;
|
|
150
226
|
};
|
|
151
227
|
}>;
|
|
152
228
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/fractions/activity/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/fractions/activity/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AA6DzG,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcpC,CAAC"}
|
|
@@ -11,6 +11,11 @@ const baseSchema = z.object({
|
|
|
11
11
|
createdAt: z.date(),
|
|
12
12
|
updatedAt: z.date(),
|
|
13
13
|
});
|
|
14
|
+
const wrappedAssetAmountSchema = z.object({
|
|
15
|
+
tokenAddress: z.string(),
|
|
16
|
+
amount: z.string(),
|
|
17
|
+
tokenId: z.string(),
|
|
18
|
+
});
|
|
14
19
|
const createdEventSchema = z.object({
|
|
15
20
|
type: z.literal(FractionSaleEventEnum.CREATED),
|
|
16
21
|
});
|
|
@@ -23,12 +28,15 @@ const purchaseEventSchema = z.object({
|
|
|
23
28
|
purchaser: z.string(),
|
|
24
29
|
priceId: z.string(),
|
|
25
30
|
amountOfFractions: z.string(),
|
|
31
|
+
amountPaid: z.string(),
|
|
32
|
+
amountBurnt: z.string(),
|
|
26
33
|
});
|
|
27
34
|
const claimEventSchema = z.object({
|
|
28
35
|
type: z.literal(FractionSaleEventEnum.CLAIM),
|
|
29
36
|
receiver: z.string(),
|
|
30
|
-
|
|
31
|
-
|
|
37
|
+
claimId: z.string(),
|
|
38
|
+
fractionsBurnt: z.string(),
|
|
39
|
+
received: z.array(wrappedAssetAmountSchema),
|
|
32
40
|
});
|
|
33
41
|
const refundEventSchema = z.object({
|
|
34
42
|
type: z.literal(FractionSaleEventEnum.REFUND),
|
|
@@ -40,7 +48,8 @@ const withdrawEventSchema = z.object({
|
|
|
40
48
|
});
|
|
41
49
|
const withdrawNonWrappedEventSchema = z.object({
|
|
42
50
|
type: z.literal(FractionSaleEventEnum.WITHDRAW_NON_WRAPPED),
|
|
43
|
-
|
|
51
|
+
receiver: z.string(),
|
|
52
|
+
received: z.array(wrappedAssetAmountSchema),
|
|
44
53
|
});
|
|
45
54
|
export const FractionActivityEntrySchema = baseSchema
|
|
46
55
|
.extend({
|
|
@@ -1077,13 +1077,20 @@ export declare const fractionsApi: {
|
|
|
1077
1077
|
} | {
|
|
1078
1078
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.PURCHASE;
|
|
1079
1079
|
amountOfFractions: string;
|
|
1080
|
+
amountPaid: string;
|
|
1081
|
+
amountBurnt: string;
|
|
1080
1082
|
priceId: string;
|
|
1081
1083
|
purchaser: string;
|
|
1082
1084
|
} | {
|
|
1085
|
+
received: {
|
|
1086
|
+
tokenId: string;
|
|
1087
|
+
tokenAddress: string;
|
|
1088
|
+
amount: string;
|
|
1089
|
+
}[];
|
|
1083
1090
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.CLAIM;
|
|
1084
1091
|
receiver: string;
|
|
1085
|
-
|
|
1086
|
-
|
|
1092
|
+
claimId: string;
|
|
1093
|
+
fractionsBurnt: string;
|
|
1087
1094
|
} | {
|
|
1088
1095
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.REFUND;
|
|
1089
1096
|
amount: string;
|
|
@@ -1091,8 +1098,13 @@ export declare const fractionsApi: {
|
|
|
1091
1098
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.WITHDRAW;
|
|
1092
1099
|
amount: string;
|
|
1093
1100
|
} | {
|
|
1101
|
+
received: {
|
|
1102
|
+
tokenId: string;
|
|
1103
|
+
tokenAddress: string;
|
|
1104
|
+
amount: string;
|
|
1105
|
+
}[];
|
|
1094
1106
|
type: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
1095
|
-
|
|
1107
|
+
receiver: string;
|
|
1096
1108
|
};
|
|
1097
1109
|
}[];
|
|
1098
1110
|
outputFormat: "json";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fractions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA0GvC,eAAO,MAAM,YAAY;;gBAEX,CAAC,SAAS,GAAG,WAAW,OAAO,CAAC,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/fractions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA0GvC,eAAO,MAAM,YAAY;;gBAEX,CAAC,SAAS,GAAG,WAAW,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkB/C,CAAC"}
|
|
@@ -5,9 +5,9 @@ import { z } from "../common/zod.js";
|
|
|
5
5
|
export declare const AccountBalancesResponse: z.ZodObject<{
|
|
6
6
|
message: z.ZodString;
|
|
7
7
|
status: z.ZodString;
|
|
8
|
-
result: z.ZodArray<z.ZodObject<{
|
|
8
|
+
result: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
9
9
|
balance: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodString>;
|
|
10
|
-
|
|
10
|
+
contractAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
11
11
|
decimals: z.ZodEffects<z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodNumber>, number, string | number | bigint>;
|
|
12
12
|
tokenId: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodString>>;
|
|
13
13
|
name: z.ZodString;
|
|
@@ -18,7 +18,7 @@ export declare const AccountBalancesResponse: z.ZodObject<{
|
|
|
18
18
|
type: import("@evergonlabs/tmi-protocol-types/evm").TokenTypeEnum | null;
|
|
19
19
|
name: string;
|
|
20
20
|
decimals: number;
|
|
21
|
-
|
|
21
|
+
contractAddress: `0x${string}`;
|
|
22
22
|
balance: string;
|
|
23
23
|
tokenId?: string | undefined;
|
|
24
24
|
}, {
|
|
@@ -26,7 +26,23 @@ export declare const AccountBalancesResponse: z.ZodObject<{
|
|
|
26
26
|
type: string;
|
|
27
27
|
name: string;
|
|
28
28
|
decimals: string | number | bigint;
|
|
29
|
+
contractAddress: `0x${string}`;
|
|
30
|
+
balance: string | number | bigint;
|
|
31
|
+
tokenId?: string | number | bigint | undefined;
|
|
32
|
+
}>, {
|
|
29
33
|
tokenAddress: `0x${string}`;
|
|
34
|
+
symbol: string;
|
|
35
|
+
type: import("@evergonlabs/tmi-protocol-types/evm").TokenTypeEnum | null;
|
|
36
|
+
name: string;
|
|
37
|
+
decimals: number;
|
|
38
|
+
balance: string;
|
|
39
|
+
tokenId?: string | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
symbol: string;
|
|
42
|
+
type: string;
|
|
43
|
+
name: string;
|
|
44
|
+
decimals: string | number | bigint;
|
|
45
|
+
contractAddress: `0x${string}`;
|
|
30
46
|
balance: string | number | bigint;
|
|
31
47
|
tokenId?: string | number | bigint | undefined;
|
|
32
48
|
}>, "many">;
|
|
@@ -34,11 +50,11 @@ export declare const AccountBalancesResponse: z.ZodObject<{
|
|
|
34
50
|
status: string;
|
|
35
51
|
message: string;
|
|
36
52
|
result: {
|
|
53
|
+
tokenAddress: `0x${string}`;
|
|
37
54
|
symbol: string;
|
|
38
55
|
type: import("@evergonlabs/tmi-protocol-types/evm").TokenTypeEnum | null;
|
|
39
56
|
name: string;
|
|
40
57
|
decimals: number;
|
|
41
|
-
tokenAddress: `0x${string}`;
|
|
42
58
|
balance: string;
|
|
43
59
|
tokenId?: string | undefined;
|
|
44
60
|
}[];
|
|
@@ -50,7 +66,7 @@ export declare const AccountBalancesResponse: z.ZodObject<{
|
|
|
50
66
|
type: string;
|
|
51
67
|
name: string;
|
|
52
68
|
decimals: string | number | bigint;
|
|
53
|
-
|
|
69
|
+
contractAddress: `0x${string}`;
|
|
54
70
|
balance: string | number | bigint;
|
|
55
71
|
tokenId?: string | number | bigint | undefined;
|
|
56
72
|
}[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"balanceClient.d.ts","sourceRoot":"","sources":["../../src/general/balanceClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAErE,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,CAAC,EAAE,MAAM,kBAAkB,CAAC;AAErC,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"balanceClient.d.ts","sourceRoot":"","sources":["../../src/general/balanceClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAErE,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,CAAC,EAAE,MAAM,kBAAkB,CAAC;AAErC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIlC,CAAC;AAEH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,GAClB,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,EAAE,CAAC,CA2BzC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TokenTypeEnum } from "@evergonlabs/tmi-protocol-types/evm";
|
|
2
2
|
import { z } from "../../../common/zod.js";
|
|
3
|
-
export declare const TokenBalance: z.ZodObject<{
|
|
3
|
+
export declare const TokenBalance: z.ZodEffects<z.ZodObject<{
|
|
4
4
|
balance: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodString>;
|
|
5
|
-
|
|
5
|
+
contractAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
6
6
|
decimals: z.ZodEffects<z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodNumber>, number, string | number | bigint>;
|
|
7
7
|
tokenId: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodString>>;
|
|
8
8
|
name: z.ZodString;
|
|
@@ -13,7 +13,7 @@ export declare const TokenBalance: z.ZodObject<{
|
|
|
13
13
|
type: TokenTypeEnum | null;
|
|
14
14
|
name: string;
|
|
15
15
|
decimals: number;
|
|
16
|
-
|
|
16
|
+
contractAddress: `0x${string}`;
|
|
17
17
|
balance: string;
|
|
18
18
|
tokenId?: string | undefined;
|
|
19
19
|
}, {
|
|
@@ -21,7 +21,23 @@ export declare const TokenBalance: z.ZodObject<{
|
|
|
21
21
|
type: string;
|
|
22
22
|
name: string;
|
|
23
23
|
decimals: string | number | bigint;
|
|
24
|
+
contractAddress: `0x${string}`;
|
|
25
|
+
balance: string | number | bigint;
|
|
26
|
+
tokenId?: string | number | bigint | undefined;
|
|
27
|
+
}>, {
|
|
24
28
|
tokenAddress: `0x${string}`;
|
|
29
|
+
symbol: string;
|
|
30
|
+
type: TokenTypeEnum | null;
|
|
31
|
+
name: string;
|
|
32
|
+
decimals: number;
|
|
33
|
+
balance: string;
|
|
34
|
+
tokenId?: string | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
symbol: string;
|
|
37
|
+
type: string;
|
|
38
|
+
name: string;
|
|
39
|
+
decimals: string | number | bigint;
|
|
40
|
+
contractAddress: `0x${string}`;
|
|
25
41
|
balance: string | number | bigint;
|
|
26
42
|
tokenId?: string | number | bigint | undefined;
|
|
27
43
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenBalance.d.ts","sourceRoot":"","sources":["../../../../src/general/utils/tokenBalance/tokenBalance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAW3C,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"tokenBalance.d.ts","sourceRoot":"","sources":["../../../../src/general/utils/tokenBalance/tokenBalance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAW3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcpB,CAAC"}
|
|
@@ -8,13 +8,18 @@ const tokenTypeDict = {
|
|
|
8
8
|
"ERC-20": TokenTypeEnum.ERC20,
|
|
9
9
|
};
|
|
10
10
|
// @see definitions here https://docs.blockscout.com/devs/apis/rpc/account#get-list-of-tokens-owned-by-address
|
|
11
|
-
export const TokenBalance = z
|
|
11
|
+
export const TokenBalance = z
|
|
12
|
+
.object({
|
|
12
13
|
balance: NumberishSchema.pipe(z.string()),
|
|
13
|
-
|
|
14
|
+
contractAddress: AddressSchema,
|
|
14
15
|
// ERC-721 and ERC-1155 has no decimals but for interoperability we return 1
|
|
15
16
|
decimals: NumberishSchema.pipe(z.coerce.number()).transform((x) => x || 1),
|
|
16
17
|
tokenId: z.optional(NumberishSchema.pipe(z.string())),
|
|
17
18
|
name: z.string(),
|
|
18
19
|
symbol: z.string(),
|
|
19
20
|
type: z.string().transform((x) => (x in tokenTypeDict ? tokenTypeDict[x] : null)),
|
|
20
|
-
})
|
|
21
|
+
})
|
|
22
|
+
.transform(({ contractAddress, ...rest }) => ({
|
|
23
|
+
...rest,
|
|
24
|
+
tokenAddress: contractAddress,
|
|
25
|
+
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evergonlabs/tmi-protocol-api",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"zod": "^3.25.0",
|
|
39
39
|
"zod-openapi": "^4.2.4",
|
|
40
40
|
"@evergonlabs/tmi-protocol-indexer": "0.1.1",
|
|
41
|
-
"@evergonlabs/tmi-protocol-staking-sdk": "0.2.1",
|
|
42
|
-
"@evergonlabs/tmi-protocol-fractions-sdk": "0.2.1",
|
|
43
41
|
"@evergonlabs/tmi-protocol-shared": "0.1.0",
|
|
42
|
+
"@evergonlabs/tmi-protocol-types": "0.2.1",
|
|
43
|
+
"@evergonlabs/tmi-protocol-fractions-sdk": "0.2.1",
|
|
44
44
|
"@evergonlabs/tmi-protocol-utils": "0.2.1",
|
|
45
|
-
"@evergonlabs/tmi-protocol-
|
|
45
|
+
"@evergonlabs/tmi-protocol-staking-sdk": "0.2.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@evergonlabs/tmi-eslint-config": "^0.1.3",
|