@axxel/event-bus 1.1.1 → 1.1.2
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/README.md +0 -0
- package/dist/config/kafka.d.ts +0 -0
- package/dist/config/kafka.d.ts.map +0 -0
- package/dist/config/kafka.js +0 -0
- package/dist/consumers/index.d.ts +0 -0
- package/dist/consumers/index.d.ts.map +0 -0
- package/dist/consumers/index.js +0 -0
- package/dist/consumers/poolCreatedConsumer.d.ts +0 -0
- package/dist/consumers/poolCreatedConsumer.d.ts.map +0 -0
- package/dist/consumers/poolCreatedConsumer.js +0 -0
- package/dist/consumers/tokenPriceConsumer.d.ts +0 -0
- package/dist/consumers/tokenPriceConsumer.d.ts.map +0 -0
- package/dist/consumers/tokenPriceConsumer.js +0 -0
- package/dist/consumers/tradeExecutionConsumer.d.ts +0 -0
- package/dist/consumers/tradeExecutionConsumer.d.ts.map +0 -0
- package/dist/consumers/tradeExecutionConsumer.js +0 -0
- package/dist/consumers/walletTransactionConsumer.d.ts +0 -0
- package/dist/consumers/walletTransactionConsumer.d.ts.map +0 -0
- package/dist/consumers/walletTransactionConsumer.js +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.d.ts.map +0 -0
- package/dist/index.js +0 -0
- package/dist/producers/index.d.ts +0 -0
- package/dist/producers/index.d.ts.map +0 -0
- package/dist/producers/index.js +0 -0
- package/dist/producers/poolCreatedProducer.d.ts +0 -0
- package/dist/producers/poolCreatedProducer.d.ts.map +0 -0
- package/dist/producers/poolCreatedProducer.js +0 -0
- package/dist/producers/tokenPriceProducer.d.ts +0 -0
- package/dist/producers/tokenPriceProducer.d.ts.map +0 -0
- package/dist/producers/tokenPriceProducer.js +0 -0
- package/dist/producers/tradeExecutionProducer.d.ts +0 -0
- package/dist/producers/tradeExecutionProducer.d.ts.map +0 -0
- package/dist/producers/tradeExecutionProducer.js +0 -0
- package/dist/producers/walletTransactionProducer.d.ts +0 -0
- package/dist/producers/walletTransactionProducer.d.ts.map +0 -0
- package/dist/producers/walletTransactionProducer.js +0 -0
- package/dist/topics.d.ts +0 -0
- package/dist/topics.d.ts.map +0 -0
- package/dist/topics.js +0 -0
- package/dist/types/PoolCreatedEvent.d.ts +0 -0
- package/dist/types/PoolCreatedEvent.d.ts.map +0 -0
- package/dist/types/PoolCreatedEvent.js +0 -0
- package/dist/types/TokenPriceEvent.d.ts +0 -0
- package/dist/types/TokenPriceEvent.d.ts.map +0 -0
- package/dist/types/TokenPriceEvent.js +0 -0
- package/dist/types/TradeExecutionEvent.d.ts +0 -0
- package/dist/types/TradeExecutionEvent.d.ts.map +0 -0
- package/dist/types/TradeExecutionEvent.js +0 -0
- package/dist/types/WalletTransactionEvent.d.ts +0 -0
- package/dist/types/WalletTransactionEvent.d.ts.map +0 -0
- package/dist/types/WalletTransactionEvent.js +0 -0
- package/dist/types/index.d.ts +0 -0
- package/dist/types/index.d.ts.map +0 -0
- package/dist/types/index.js +0 -0
- package/dist/validation/common.d.ts +1 -1
- package/dist/validation/common.d.ts.map +1 -1
- package/dist/validation/common.js +4 -2
- package/dist/validation/tokenPriceEvent.schema.d.ts +1 -1
- package/dist/validation/tokenPriceEvent.schema.d.ts.map +0 -0
- package/dist/validation/tokenPriceEvent.schema.js +0 -0
- package/dist/validation/walletTransactionEvent.schema.d.ts +4 -4
- package/dist/validation/walletTransactionEvent.schema.d.ts.map +0 -0
- package/dist/validation/walletTransactionEvent.schema.js +0 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
File without changes
|
package/dist/config/kafka.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/config/kafka.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/consumers/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.d.ts.map
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/producers/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/topics.d.ts
CHANGED
|
File without changes
|
package/dist/topics.d.ts.map
CHANGED
|
File without changes
|
package/dist/topics.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/types/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/types/index.js
CHANGED
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const chainIdSchema: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<number, number>>, z.ZodNumber>;
|
|
3
|
-
export declare const addressSchema: z.
|
|
3
|
+
export declare const addressSchema: z.ZodString;
|
|
4
4
|
export declare const txHashSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
5
5
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/validation/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/validation/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,aAAa,+JAEM,CAAC;AAEjC,eAAO,MAAM,aAAa,aAQvB,CAAC;AAEJ,eAAO,MAAM,YAAY,wDAGmB,CAAC"}
|
|
@@ -4,6 +4,7 @@ exports.txHashSchema = exports.addressSchema = exports.chainIdSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const HEX_ADDRESS_REGEX = /^0x[a-fA-F0-9]{40}$/;
|
|
6
6
|
const TX_HASH_REGEX = /^0x[a-fA-F0-9]{64}$/;
|
|
7
|
+
const SOLANA_ADDRESS_REGEX = /^[1-9A-HJ-NP-Za-km-z]{32,44}$/;
|
|
7
8
|
const numericChainIdInput = zod_1.z.union([
|
|
8
9
|
zod_1.z.number().int(),
|
|
9
10
|
zod_1.z
|
|
@@ -16,8 +17,9 @@ exports.chainIdSchema = numericChainIdInput
|
|
|
16
17
|
.pipe(zod_1.z.number().int().min(0));
|
|
17
18
|
exports.addressSchema = zod_1.z
|
|
18
19
|
.string()
|
|
19
|
-
.refine((value) => HEX_ADDRESS_REGEX.test(value), {
|
|
20
|
-
|
|
20
|
+
.refine((value) => HEX_ADDRESS_REGEX.test(value) || SOLANA_ADDRESS_REGEX.test(value), {
|
|
21
|
+
message: 'invalid_address',
|
|
22
|
+
});
|
|
21
23
|
exports.txHashSchema = zod_1.z
|
|
22
24
|
.string()
|
|
23
25
|
.refine((value) => TX_HASH_REGEX.test(value), { message: 'invalid_tx_hash' })
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const tokenPriceEventSchema: z.ZodObject<{
|
|
3
3
|
chainId: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<number, number>>, z.ZodNumber>;
|
|
4
|
-
tokenAddress: z.
|
|
4
|
+
tokenAddress: z.ZodString;
|
|
5
5
|
blockNumber: z.ZodNumber;
|
|
6
6
|
price: z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7
7
|
price: z.ZodNumber;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const walletTransactionEventSchema: z.ZodObject<{
|
|
3
3
|
chainId: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<number, number>>, z.ZodNumber>;
|
|
4
|
-
walletAddress: z.
|
|
4
|
+
walletAddress: z.ZodString;
|
|
5
5
|
type: z.ZodString;
|
|
6
|
-
pool: z.ZodOptional<z.ZodNullable<z.
|
|
6
|
+
pool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
7
|
txHash: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
8
8
|
baseAmount: z.ZodString;
|
|
9
9
|
quoteAmount: z.ZodString;
|
|
10
|
-
baseTokenAddress: z.
|
|
10
|
+
baseTokenAddress: z.ZodString;
|
|
11
11
|
baseTokenSymbol: z.ZodString;
|
|
12
|
-
quoteTokenAddress: z.
|
|
12
|
+
quoteTokenAddress: z.ZodString;
|
|
13
13
|
quoteTokenSymbol: z.ZodString;
|
|
14
14
|
blockTimestamp: z.ZodNumber;
|
|
15
15
|
liquidity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axxel/event-bus",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Axxel Kafka Event Bus SDK",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -37,4 +37,4 @@
|
|
|
37
37
|
"tsx": "^4.20.6",
|
|
38
38
|
"typescript": "^5.9.3"
|
|
39
39
|
}
|
|
40
|
-
}
|
|
40
|
+
}
|