@develit-services/blockchain 0.8.5 → 0.11.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.
Files changed (38) hide show
  1. package/dist/database/schema.cjs +2 -2
  2. package/dist/database/schema.d.cts +1 -1
  3. package/dist/database/schema.d.mts +1 -1
  4. package/dist/database/schema.d.ts +1 -1
  5. package/dist/database/schema.mjs +2 -2
  6. package/dist/export/worker.cjs +3 -3
  7. package/dist/export/worker.d.cts +2 -2
  8. package/dist/export/worker.d.mts +2 -2
  9. package/dist/export/worker.d.ts +2 -2
  10. package/dist/export/worker.mjs +3 -3
  11. package/dist/export/workflows.cjs +4 -4
  12. package/dist/export/workflows.mjs +4 -4
  13. package/dist/export/wrangler.cjs +2 -0
  14. package/dist/export/wrangler.d.cts +4 -1
  15. package/dist/export/wrangler.d.mts +4 -1
  16. package/dist/export/wrangler.d.ts +4 -1
  17. package/dist/export/wrangler.mjs +2 -0
  18. package/dist/shared/{blockchain.BKGlFbOW.mjs → blockchain.8YeEVniE.mjs} +1 -1
  19. package/dist/shared/{blockchain.Br6esGv4.d.cts → blockchain.Bh6x4dsx.d.ts} +22 -5
  20. package/dist/shared/{blockchain.wsLSmIaf.mjs → blockchain.ByhE_RaE.mjs} +85 -13
  21. package/dist/shared/{blockchain.Cjq9eH7Z.cjs → blockchain.C5pjxssf.cjs} +16 -3
  22. package/dist/shared/{blockchain.JBv4ipVR.cjs → blockchain.CRWCUwHr.cjs} +85 -13
  23. package/dist/shared/{blockchain.C1Jdisxn.d.ts → blockchain.CVKUvfyj.d.cts} +3 -0
  24. package/dist/shared/{blockchain.C1Jdisxn.d.cts → blockchain.CVKUvfyj.d.mts} +3 -0
  25. package/dist/shared/{blockchain.C1Jdisxn.d.mts → blockchain.CVKUvfyj.d.ts} +3 -0
  26. package/dist/shared/{blockchain.ZJPECySM.cjs → blockchain.CXld_MYP.cjs} +1 -1
  27. package/dist/shared/{blockchain.DcWSUM60.d.mts → blockchain.CeVkeCGH.d.cts} +22 -5
  28. package/dist/shared/{blockchain.DUhjXgba.d.cts → blockchain.CyyZn6RX.d.cts} +8 -8
  29. package/dist/shared/{blockchain.DUhjXgba.d.mts → blockchain.CyyZn6RX.d.mts} +8 -8
  30. package/dist/shared/{blockchain.DUhjXgba.d.ts → blockchain.CyyZn6RX.d.ts} +8 -8
  31. package/dist/shared/{blockchain.DurPotrN.d.ts → blockchain.DNPZEckN.d.mts} +22 -5
  32. package/dist/shared/{blockchain.CKh8Fs7w.mjs → blockchain.c19XIse8.mjs} +15 -4
  33. package/dist/types.cjs +3 -1
  34. package/dist/types.d.cts +4 -4
  35. package/dist/types.d.mts +4 -4
  36. package/dist/types.d.ts +4 -4
  37. package/dist/types.mjs +1 -1
  38. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const database_schema = require('../shared/blockchain.ZJPECySM.cjs');
3
+ const database_schema = require('../shared/blockchain.CXld_MYP.cjs');
4
4
  require('@develit-io/backend-sdk');
5
5
  require('drizzle-orm/sqlite-core');
6
- require('../shared/blockchain.Cjq9eH7Z.cjs');
6
+ require('../shared/blockchain.C5pjxssf.cjs');
7
7
  require('zod');
8
8
 
9
9
 
@@ -1,2 +1,2 @@
1
- export { c as address, d as addressCredentials, t as tokens, e as transaction } from '../shared/blockchain.DUhjXgba.cjs';
1
+ export { c as address, d as addressCredentials, t as tokens, e as transaction } from '../shared/blockchain.CyyZn6RX.cjs';
2
2
  import 'drizzle-orm/sqlite-core';
@@ -1,2 +1,2 @@
1
- export { c as address, d as addressCredentials, t as tokens, e as transaction } from '../shared/blockchain.DUhjXgba.mjs';
1
+ export { c as address, d as addressCredentials, t as tokens, e as transaction } from '../shared/blockchain.CyyZn6RX.mjs';
2
2
  import 'drizzle-orm/sqlite-core';
@@ -1,2 +1,2 @@
1
- export { c as address, d as addressCredentials, t as tokens, e as transaction } from '../shared/blockchain.DUhjXgba.js';
1
+ export { c as address, d as addressCredentials, t as tokens, e as transaction } from '../shared/blockchain.CyyZn6RX.js';
2
2
  import 'drizzle-orm/sqlite-core';
@@ -1,5 +1,5 @@
1
- export { a as address, b as addressCredentials, t as tokens, c as transaction } from '../shared/blockchain.BKGlFbOW.mjs';
1
+ export { a as address, b as addressCredentials, t as tokens, c as transaction } from '../shared/blockchain.8YeEVniE.mjs';
2
2
  import '@develit-io/backend-sdk';
3
3
  import 'drizzle-orm/sqlite-core';
4
- import '../shared/blockchain.CKh8Fs7w.mjs';
4
+ import '../shared/blockchain.c19XIse8.mjs';
5
5
  import 'zod';
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const backendSdk = require('@develit-io/backend-sdk');
6
- const blockchain = require('../shared/blockchain.JBv4ipVR.cjs');
7
- const syncAddress = require('../shared/blockchain.Cjq9eH7Z.cjs');
6
+ const blockchain = require('../shared/blockchain.CRWCUwHr.cjs');
7
+ const syncAddress = require('../shared/blockchain.C5pjxssf.cjs');
8
8
  const cloudflare_workers = require('cloudflare:workers');
9
9
  const d1 = require('drizzle-orm/d1');
10
- require('../shared/blockchain.ZJPECySM.cjs');
10
+ require('../shared/blockchain.CXld_MYP.cjs');
11
11
  require('drizzle-orm/sqlite-core');
12
12
  require('drizzle-orm');
13
13
  require('viem');
@@ -1,10 +1,10 @@
1
1
  import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
2
2
  import { IRPCResponse } from '@develit-io/backend-sdk';
3
- import { t as tables, S as SyncAddressInput, a as SyncAddressOutput, G as GetTransactionInput, b as GetTransactionOutput, c as GetBlockInput, d as GetBlockOutput } from '../shared/blockchain.Br6esGv4.cjs';
3
+ import { t as tables, S as SyncAddressInput, a as SyncAddressOutput, G as GetTransactionInput, b as GetTransactionOutput, c as GetBlockInput, d as GetBlockOutput } from '../shared/blockchain.CeVkeCGH.cjs';
4
4
  import { WorkerEntrypoint } from 'cloudflare:workers';
5
5
  import { DrizzleD1Database } from 'drizzle-orm/d1';
6
6
  import 'zod';
7
- import '../shared/blockchain.DUhjXgba.cjs';
7
+ import '../shared/blockchain.CyyZn6RX.cjs';
8
8
  import 'drizzle-orm/sqlite-core';
9
9
 
10
10
  declare const BlockchainServiceBase_base: (abstract new (ctx: ExecutionContext, env: BlockchainEnv) => WorkerEntrypoint<BlockchainEnv, {}>) & (abstract new (...args: any[]) => _develit_io_backend_sdk.DevelitWorkerMethods);
@@ -1,10 +1,10 @@
1
1
  import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
2
2
  import { IRPCResponse } from '@develit-io/backend-sdk';
3
- import { t as tables, S as SyncAddressInput, a as SyncAddressOutput, G as GetTransactionInput, b as GetTransactionOutput, c as GetBlockInput, d as GetBlockOutput } from '../shared/blockchain.DcWSUM60.mjs';
3
+ import { t as tables, S as SyncAddressInput, a as SyncAddressOutput, G as GetTransactionInput, b as GetTransactionOutput, c as GetBlockInput, d as GetBlockOutput } from '../shared/blockchain.DNPZEckN.mjs';
4
4
  import { WorkerEntrypoint } from 'cloudflare:workers';
5
5
  import { DrizzleD1Database } from 'drizzle-orm/d1';
6
6
  import 'zod';
7
- import '../shared/blockchain.DUhjXgba.mjs';
7
+ import '../shared/blockchain.CyyZn6RX.mjs';
8
8
  import 'drizzle-orm/sqlite-core';
9
9
 
10
10
  declare const BlockchainServiceBase_base: (abstract new (ctx: ExecutionContext, env: BlockchainEnv) => WorkerEntrypoint<BlockchainEnv, {}>) & (abstract new (...args: any[]) => _develit_io_backend_sdk.DevelitWorkerMethods);
@@ -1,10 +1,10 @@
1
1
  import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
2
2
  import { IRPCResponse } from '@develit-io/backend-sdk';
3
- import { t as tables, S as SyncAddressInput, a as SyncAddressOutput, G as GetTransactionInput, b as GetTransactionOutput, c as GetBlockInput, d as GetBlockOutput } from '../shared/blockchain.DurPotrN.js';
3
+ import { t as tables, S as SyncAddressInput, a as SyncAddressOutput, G as GetTransactionInput, b as GetTransactionOutput, c as GetBlockInput, d as GetBlockOutput } from '../shared/blockchain.Bh6x4dsx.js';
4
4
  import { WorkerEntrypoint } from 'cloudflare:workers';
5
5
  import { DrizzleD1Database } from 'drizzle-orm/d1';
6
6
  import 'zod';
7
- import '../shared/blockchain.DUhjXgba.js';
7
+ import '../shared/blockchain.CyyZn6RX.js';
8
8
  import 'drizzle-orm/sqlite-core';
9
9
 
10
10
  declare const BlockchainServiceBase_base: (abstract new (ctx: ExecutionContext, env: BlockchainEnv) => WorkerEntrypoint<BlockchainEnv, {}>) & (abstract new (...args: any[]) => _develit_io_backend_sdk.DevelitWorkerMethods);
@@ -1,9 +1,9 @@
1
1
  import { develitWorker, action, service } from '@develit-io/backend-sdk';
2
- import { t as tables, i as initiateConnector } from '../shared/blockchain.wsLSmIaf.mjs';
3
- import { s as syncAddressInputSchema, d as getTransactionInputSchema, g as getBlockInputSchema } from '../shared/blockchain.CKh8Fs7w.mjs';
2
+ import { t as tables, i as initiateConnector } from '../shared/blockchain.ByhE_RaE.mjs';
3
+ import { s as syncAddressInputSchema, d as getTransactionInputSchema, g as getBlockInputSchema } from '../shared/blockchain.c19XIse8.mjs';
4
4
  import { WorkerEntrypoint } from 'cloudflare:workers';
5
5
  import { drizzle } from 'drizzle-orm/d1';
6
- import '../shared/blockchain.BKGlFbOW.mjs';
6
+ import '../shared/blockchain.8YeEVniE.mjs';
7
7
  import 'drizzle-orm/sqlite-core';
8
8
  import 'drizzle-orm';
9
9
  import 'viem';
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  const backendSdk = require('@develit-io/backend-sdk');
4
- const blockchain = require('../shared/blockchain.JBv4ipVR.cjs');
4
+ const blockchain = require('../shared/blockchain.CRWCUwHr.cjs');
5
5
  const drizzleOrm = require('drizzle-orm');
6
6
  const cloudflare_workers = require('cloudflare:workers');
7
7
  const cloudflare_workflows = require('cloudflare:workflows');
8
8
  const d1 = require('drizzle-orm/d1');
9
- require('../shared/blockchain.ZJPECySM.cjs');
9
+ require('../shared/blockchain.CXld_MYP.cjs');
10
10
  require('drizzle-orm/sqlite-core');
11
- require('../shared/blockchain.Cjq9eH7Z.cjs');
11
+ require('../shared/blockchain.C5pjxssf.cjs');
12
12
  require('zod');
13
13
  require('viem');
14
14
  require('viem/accounts');
@@ -69,7 +69,7 @@ class BlockchainSyncAddressTxs extends cloudflare_workers.WorkflowEntrypoint {
69
69
  const { addressId } = event.payload;
70
70
  const db = d1.drizzle(this.env.BLOCKCHAIN_D1, { schema: blockchain.tables });
71
71
  if (!addressId) {
72
- throw new cloudflare_workflows.NonRetryableError(`Haven't obtained addressId to load.`);
72
+ throw new cloudflare_workflows.NonRetryableError(`Have not obtained addressId to load.`);
73
73
  }
74
74
  while (true) {
75
75
  const now = /* @__PURE__ */ new Date();
@@ -1,12 +1,12 @@
1
1
  import { uuidv4, asNonEmpty } from '@develit-io/backend-sdk';
2
- import { t as tables, i as initiateConnector } from '../shared/blockchain.wsLSmIaf.mjs';
2
+ import { t as tables, i as initiateConnector } from '../shared/blockchain.ByhE_RaE.mjs';
3
3
  import { eq } from 'drizzle-orm';
4
4
  import { WorkflowEntrypoint } from 'cloudflare:workers';
5
5
  import { NonRetryableError } from 'cloudflare:workflows';
6
6
  import { drizzle } from 'drizzle-orm/d1';
7
- import '../shared/blockchain.BKGlFbOW.mjs';
7
+ import '../shared/blockchain.8YeEVniE.mjs';
8
8
  import 'drizzle-orm/sqlite-core';
9
- import '../shared/blockchain.CKh8Fs7w.mjs';
9
+ import '../shared/blockchain.c19XIse8.mjs';
10
10
  import 'zod';
11
11
  import 'viem';
12
12
  import 'viem/accounts';
@@ -67,7 +67,7 @@ class BlockchainSyncAddressTxs extends WorkflowEntrypoint {
67
67
  const { addressId } = event.payload;
68
68
  const db = drizzle(this.env.BLOCKCHAIN_D1, { schema: tables });
69
69
  if (!addressId) {
70
- throw new NonRetryableError(`Haven't obtained addressId to load.`);
70
+ throw new NonRetryableError(`Have not obtained addressId to load.`);
71
71
  }
72
72
  while (true) {
73
73
  const now = /* @__PURE__ */ new Date();
@@ -15,6 +15,7 @@ function defineBlockchainServiceWrangler(config) {
15
15
  service: `${project}-secrets-store`
16
16
  }
17
17
  ],
18
+ triggers: envs.local.triggers,
18
19
  d1_databases: [
19
20
  {
20
21
  binding: "BLOCKCHAIN_D1",
@@ -47,6 +48,7 @@ function defineBlockchainServiceWrangler(config) {
47
48
  vars: {
48
49
  ENVIRONMENT: envName
49
50
  },
51
+ triggers: envs.local.triggers,
50
52
  d1_databases: [
51
53
  {
52
54
  binding: "BLOCKCHAIN_D1",
@@ -1,10 +1,13 @@
1
- import { B as BlockchainServiceWranglerConfig } from '../shared/blockchain.C1Jdisxn.cjs';
1
+ import { B as BlockchainServiceWranglerConfig } from '../shared/blockchain.CVKUvfyj.cjs';
2
2
 
3
3
  declare function defineBlockchainServiceWrangler(config: BlockchainServiceWranglerConfig): {
4
4
  services: {
5
5
  binding: string;
6
6
  service: string;
7
7
  }[];
8
+ triggers: {
9
+ crons: string[];
10
+ };
8
11
  d1_databases: {
9
12
  binding: string;
10
13
  database_name: string;
@@ -1,10 +1,13 @@
1
- import { B as BlockchainServiceWranglerConfig } from '../shared/blockchain.C1Jdisxn.mjs';
1
+ import { B as BlockchainServiceWranglerConfig } from '../shared/blockchain.CVKUvfyj.mjs';
2
2
 
3
3
  declare function defineBlockchainServiceWrangler(config: BlockchainServiceWranglerConfig): {
4
4
  services: {
5
5
  binding: string;
6
6
  service: string;
7
7
  }[];
8
+ triggers: {
9
+ crons: string[];
10
+ };
8
11
  d1_databases: {
9
12
  binding: string;
10
13
  database_name: string;
@@ -1,10 +1,13 @@
1
- import { B as BlockchainServiceWranglerConfig } from '../shared/blockchain.C1Jdisxn.js';
1
+ import { B as BlockchainServiceWranglerConfig } from '../shared/blockchain.CVKUvfyj.js';
2
2
 
3
3
  declare function defineBlockchainServiceWrangler(config: BlockchainServiceWranglerConfig): {
4
4
  services: {
5
5
  binding: string;
6
6
  service: string;
7
7
  }[];
8
+ triggers: {
9
+ crons: string[];
10
+ };
8
11
  d1_databases: {
9
12
  binding: string;
10
13
  database_name: string;
@@ -13,6 +13,7 @@ function defineBlockchainServiceWrangler(config) {
13
13
  service: `${project}-secrets-store`
14
14
  }
15
15
  ],
16
+ triggers: envs.local.triggers,
16
17
  d1_databases: [
17
18
  {
18
19
  binding: "BLOCKCHAIN_D1",
@@ -45,6 +46,7 @@ function defineBlockchainServiceWrangler(config) {
45
46
  vars: {
46
47
  ENVIRONMENT: envName
47
48
  },
49
+ triggers: envs.local.triggers,
48
50
  d1_databases: [
49
51
  {
50
52
  binding: "BLOCKCHAIN_D1",
@@ -1,6 +1,6 @@
1
1
  import { base } from '@develit-io/backend-sdk';
2
2
  import { sqliteTable, text, integer, blob, uniqueIndex } from 'drizzle-orm/sqlite-core';
3
- import { a as CREDENTIALS_TYPES, C as CHAIN_KEYS } from './blockchain.CKh8Fs7w.mjs';
3
+ import { a as CREDENTIALS_TYPES, C as CHAIN_KEYS } from './blockchain.c19XIse8.mjs';
4
4
 
5
5
  const address = sqliteTable("address", {
6
6
  ...base,
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { s as schema } from './blockchain.DUhjXgba.cjs';
2
+ import { s as schema } from './blockchain.CyyZn6RX.js';
3
3
 
4
4
  declare const getBlockInputSchema: z.ZodObject<{
5
5
  chain: z.ZodEnum<{
@@ -9,7 +9,12 @@ declare const getBlockInputSchema: z.ZodObject<{
9
9
  ETHEREUM: "ETHEREUM";
10
10
  GNOSIS: "GNOSIS";
11
11
  OPTIMISM: "OPTIMISM";
12
- SCROLL: "SCROLL";
12
+ ARBITRUM_SEPOLIA: "ARBITRUM_SEPOLIA";
13
+ BASE_SEPOLIA: "BASE_SEPOLIA";
14
+ CHIADO: "CHIADO";
15
+ FUJI: "FUJI";
16
+ OPTIMISM_SEPOLIA: "OPTIMISM_SEPOLIA";
17
+ SEPOLIA: "SEPOLIA";
13
18
  }>;
14
19
  blockTag: z.ZodOptional<z.ZodEnum<{
15
20
  latest: "latest";
@@ -59,6 +64,8 @@ interface GetBlockInput extends z.infer<typeof getBlockInputSchema> {
59
64
  }
60
65
  type GetBlockOutput = z.infer<typeof getBlockOutputSchema>;
61
66
 
67
+ declare const MAINNET_CHAIN_TYPE: readonly ["ARBITRUM", "AVALANCHE", "BASE", "ETHEREUM", "GNOSIS", "OPTIMISM"];
68
+ declare const TESTNET_CHAIN_TYPE: readonly ["ARBITRUM_SEPOLIA", "BASE_SEPOLIA", "CHIADO", "FUJI", "OPTIMISM_SEPOLIA", "SEPOLIA"];
62
69
  declare const chainSchema: z.ZodEnum<{
63
70
  ARBITRUM: "ARBITRUM";
64
71
  AVALANCHE: "AVALANCHE";
@@ -66,7 +73,12 @@ declare const chainSchema: z.ZodEnum<{
66
73
  ETHEREUM: "ETHEREUM";
67
74
  GNOSIS: "GNOSIS";
68
75
  OPTIMISM: "OPTIMISM";
69
- SCROLL: "SCROLL";
76
+ ARBITRUM_SEPOLIA: "ARBITRUM_SEPOLIA";
77
+ BASE_SEPOLIA: "BASE_SEPOLIA";
78
+ CHIADO: "CHIADO";
79
+ FUJI: "FUJI";
80
+ OPTIMISM_SEPOLIA: "OPTIMISM_SEPOLIA";
81
+ SEPOLIA: "SEPOLIA";
70
82
  }>;
71
83
  type Chain = z.infer<typeof chainSchema>;
72
84
  declare const getTransactionInputSchema: z.ZodObject<{
@@ -77,7 +89,12 @@ declare const getTransactionInputSchema: z.ZodObject<{
77
89
  ETHEREUM: "ETHEREUM";
78
90
  GNOSIS: "GNOSIS";
79
91
  OPTIMISM: "OPTIMISM";
80
- SCROLL: "SCROLL";
92
+ ARBITRUM_SEPOLIA: "ARBITRUM_SEPOLIA";
93
+ BASE_SEPOLIA: "BASE_SEPOLIA";
94
+ CHIADO: "CHIADO";
95
+ FUJI: "FUJI";
96
+ OPTIMISM_SEPOLIA: "OPTIMISM_SEPOLIA";
97
+ SEPOLIA: "SEPOLIA";
81
98
  }>;
82
99
  txHash: z.ZodString;
83
100
  }, z.core.$strip>;
@@ -134,5 +151,5 @@ type SyncAddressOutput = z.infer<typeof syncAddressOutputSchema>;
134
151
 
135
152
  declare const tables: typeof schema;
136
153
 
137
- export { chainSchema as e, getBlockOutputSchema as f, getBlockInputSchema as g, getTransactionInputSchema as h, getTransactionOutputSchema as i, syncAddressOutputSchema as j, syncAddressInputSchema as s, tables as t };
154
+ export { MAINNET_CHAIN_TYPE as M, TESTNET_CHAIN_TYPE as T, chainSchema as e, getBlockOutputSchema as f, getBlockInputSchema as g, getTransactionInputSchema as h, getTransactionOutputSchema as i, syncAddressOutputSchema as j, syncAddressInputSchema as s, tables as t };
138
155
  export type { Chain as C, GetTransactionInput as G, SyncAddressInput as S, SyncAddressOutput as a, GetTransactionOutput as b, GetBlockInput as c, GetBlockOutput as d };
@@ -1,4 +1,4 @@
1
- import { s as schema } from './blockchain.BKGlFbOW.mjs';
1
+ import { s as schema } from './blockchain.8YeEVniE.mjs';
2
2
  import 'drizzle-orm';
3
3
  import { useResult, createInternalError } from '@develit-io/backend-sdk';
4
4
  import { createPublicClient, http, createWalletClient, encodeFunctionData, parseUnits } from 'viem';
@@ -217,6 +217,13 @@ class EvmConnector extends IBlockchainConnector {
217
217
  }
218
218
  }
219
219
 
220
+ class ArbitrumSepoliaConnector extends EvmConnector {
221
+ constructor(config) {
222
+ super(config);
223
+ this.connectorKey = "ARBITRUM_SEPOLIA";
224
+ }
225
+ }
226
+
220
227
  class ArbitrumConnector extends EvmConnector {
221
228
  constructor(config) {
222
229
  super(config);
@@ -231,6 +238,13 @@ class AvalancheConnector extends EvmConnector {
231
238
  }
232
239
  }
233
240
 
241
+ class BaseSepoliaConnector extends EvmConnector {
242
+ constructor(config) {
243
+ super(config);
244
+ this.connectorKey = "BASE_SEPOLIA";
245
+ }
246
+ }
247
+
234
248
  class BaseConnector extends EvmConnector {
235
249
  constructor(config) {
236
250
  super(config);
@@ -238,6 +252,13 @@ class BaseConnector extends EvmConnector {
238
252
  }
239
253
  }
240
254
 
255
+ class ChiadoConnector extends EvmConnector {
256
+ constructor(config) {
257
+ super(config);
258
+ this.connectorKey = "CHIADO";
259
+ }
260
+ }
261
+
241
262
  class EthereumConnector extends EvmConnector {
242
263
  constructor(config) {
243
264
  super(config);
@@ -245,6 +266,13 @@ class EthereumConnector extends EvmConnector {
245
266
  }
246
267
  }
247
268
 
269
+ class FujiConnector extends EvmConnector {
270
+ constructor(config) {
271
+ super(config);
272
+ this.connectorKey = "FUJI";
273
+ }
274
+ }
275
+
248
276
  class GnosisConnector extends EvmConnector {
249
277
  constructor(config) {
250
278
  super(config);
@@ -252,6 +280,13 @@ class GnosisConnector extends EvmConnector {
252
280
  }
253
281
  }
254
282
 
283
+ class OptimismSepoliaConnector extends EvmConnector {
284
+ constructor(config) {
285
+ super(config);
286
+ this.connectorKey = "OPTIMISM_SEPOLIA";
287
+ }
288
+ }
289
+
255
290
  class OptimismConnector extends EvmConnector {
256
291
  constructor(config) {
257
292
  super(config);
@@ -259,10 +294,10 @@ class OptimismConnector extends EvmConnector {
259
294
  }
260
295
  }
261
296
 
262
- class ScrollConnector extends EvmConnector {
297
+ class SepoliaConnector extends EvmConnector {
263
298
  constructor(config) {
264
299
  super(config);
265
- this.connectorKey = "SCROLL";
300
+ this.connectorKey = "SEPOLIA";
266
301
  }
267
302
  }
268
303
 
@@ -275,13 +310,7 @@ const initiateConnector = async ({
275
310
  }) => {
276
311
  const getRpcUrl = async (secretName) => (await env.SECRETS_STORE.get({ secretName })).data?.secretValue || "";
277
312
  switch (chain) {
278
- case "ETHEREUM":
279
- return new EthereumConnector({
280
- RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_ETHEREUM_RPC_URL"),
281
- tokens,
282
- connectedAddresses,
283
- resolveCredentials
284
- });
313
+ // Mainnet
285
314
  case "ARBITRUM":
286
315
  return new ArbitrumConnector({
287
316
  RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_ARBITRUM_RPC_URL"),
@@ -303,6 +332,13 @@ const initiateConnector = async ({
303
332
  connectedAddresses,
304
333
  resolveCredentials
305
334
  });
335
+ case "ETHEREUM":
336
+ return new EthereumConnector({
337
+ RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_ETHEREUM_RPC_URL"),
338
+ tokens,
339
+ connectedAddresses,
340
+ resolveCredentials
341
+ });
306
342
  case "GNOSIS":
307
343
  return new GnosisConnector({
308
344
  RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_GNOSIS_RPC_URL"),
@@ -317,9 +353,45 @@ const initiateConnector = async ({
317
353
  connectedAddresses,
318
354
  resolveCredentials
319
355
  });
320
- case "SCROLL":
321
- return new ScrollConnector({
322
- RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_SCROLL_RPC_URL"),
356
+ // Testnet
357
+ case "ARBITRUM_SEPOLIA":
358
+ return new ArbitrumSepoliaConnector({
359
+ RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_ARBITRUM_SEPOLIA_RPC_URL"),
360
+ tokens,
361
+ connectedAddresses,
362
+ resolveCredentials
363
+ });
364
+ case "BASE_SEPOLIA":
365
+ return new BaseSepoliaConnector({
366
+ RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_BASE_SEPOLIA_RPC_URL"),
367
+ tokens,
368
+ connectedAddresses,
369
+ resolveCredentials
370
+ });
371
+ case "CHIADO":
372
+ return new ChiadoConnector({
373
+ RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_CHIADO_RPC_URL"),
374
+ tokens,
375
+ connectedAddresses,
376
+ resolveCredentials
377
+ });
378
+ case "FUJI":
379
+ return new FujiConnector({
380
+ RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_FUJI_RPC_URL"),
381
+ tokens,
382
+ connectedAddresses,
383
+ resolveCredentials
384
+ });
385
+ case "OPTIMISM_SEPOLIA":
386
+ return new OptimismSepoliaConnector({
387
+ RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_OPTIMISM_SEPOLIA_RPC_URL"),
388
+ tokens,
389
+ connectedAddresses,
390
+ resolveCredentials
391
+ });
392
+ case "SEPOLIA":
393
+ return new SepoliaConnector({
394
+ RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_SEPOLIA_RPC_URL"),
323
395
  tokens,
324
396
  connectedAddresses,
325
397
  resolveCredentials
@@ -14,14 +14,25 @@ const CHAIN_KEYS = [
14
14
  ];
15
15
  const CREDENTIALS_TYPES = ["PRIVATE_KEY"];
16
16
 
17
- const chainSchema = zod.z.enum([
17
+ const MAINNET_CHAIN_TYPE = [
18
18
  "ARBITRUM",
19
19
  "AVALANCHE",
20
20
  "BASE",
21
21
  "ETHEREUM",
22
22
  "GNOSIS",
23
- "OPTIMISM",
24
- "SCROLL"
23
+ "OPTIMISM"
24
+ ];
25
+ const TESTNET_CHAIN_TYPE = [
26
+ "ARBITRUM_SEPOLIA",
27
+ "BASE_SEPOLIA",
28
+ "CHIADO",
29
+ "FUJI",
30
+ "OPTIMISM_SEPOLIA",
31
+ "SEPOLIA"
32
+ ];
33
+ const chainSchema = zod.z.enum([
34
+ ...MAINNET_CHAIN_TYPE,
35
+ ...TESTNET_CHAIN_TYPE
25
36
  ]);
26
37
  const getTransactionInputSchema = zod.z.object({
27
38
  chain: chainSchema,
@@ -99,6 +110,8 @@ const syncAddressOutputSchema = zod.z.object({
99
110
 
100
111
  exports.CHAIN_KEYS = CHAIN_KEYS;
101
112
  exports.CREDENTIALS_TYPES = CREDENTIALS_TYPES;
113
+ exports.MAINNET_CHAIN_TYPE = MAINNET_CHAIN_TYPE;
114
+ exports.TESTNET_CHAIN_TYPE = TESTNET_CHAIN_TYPE;
102
115
  exports.chainSchema = chainSchema;
103
116
  exports.getBlockInputSchema = getBlockInputSchema;
104
117
  exports.getBlockOutputSchema = getBlockOutputSchema;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const database_schema = require('./blockchain.ZJPECySM.cjs');
3
+ const database_schema = require('./blockchain.CXld_MYP.cjs');
4
4
  require('drizzle-orm');
5
5
  const backendSdk = require('@develit-io/backend-sdk');
6
6
  const viem = require('viem');
@@ -219,6 +219,13 @@ class EvmConnector extends IBlockchainConnector {
219
219
  }
220
220
  }
221
221
 
222
+ class ArbitrumSepoliaConnector extends EvmConnector {
223
+ constructor(config) {
224
+ super(config);
225
+ this.connectorKey = "ARBITRUM_SEPOLIA";
226
+ }
227
+ }
228
+
222
229
  class ArbitrumConnector extends EvmConnector {
223
230
  constructor(config) {
224
231
  super(config);
@@ -233,6 +240,13 @@ class AvalancheConnector extends EvmConnector {
233
240
  }
234
241
  }
235
242
 
243
+ class BaseSepoliaConnector extends EvmConnector {
244
+ constructor(config) {
245
+ super(config);
246
+ this.connectorKey = "BASE_SEPOLIA";
247
+ }
248
+ }
249
+
236
250
  class BaseConnector extends EvmConnector {
237
251
  constructor(config) {
238
252
  super(config);
@@ -240,6 +254,13 @@ class BaseConnector extends EvmConnector {
240
254
  }
241
255
  }
242
256
 
257
+ class ChiadoConnector extends EvmConnector {
258
+ constructor(config) {
259
+ super(config);
260
+ this.connectorKey = "CHIADO";
261
+ }
262
+ }
263
+
243
264
  class EthereumConnector extends EvmConnector {
244
265
  constructor(config) {
245
266
  super(config);
@@ -247,6 +268,13 @@ class EthereumConnector extends EvmConnector {
247
268
  }
248
269
  }
249
270
 
271
+ class FujiConnector extends EvmConnector {
272
+ constructor(config) {
273
+ super(config);
274
+ this.connectorKey = "FUJI";
275
+ }
276
+ }
277
+
250
278
  class GnosisConnector extends EvmConnector {
251
279
  constructor(config) {
252
280
  super(config);
@@ -254,6 +282,13 @@ class GnosisConnector extends EvmConnector {
254
282
  }
255
283
  }
256
284
 
285
+ class OptimismSepoliaConnector extends EvmConnector {
286
+ constructor(config) {
287
+ super(config);
288
+ this.connectorKey = "OPTIMISM_SEPOLIA";
289
+ }
290
+ }
291
+
257
292
  class OptimismConnector extends EvmConnector {
258
293
  constructor(config) {
259
294
  super(config);
@@ -261,10 +296,10 @@ class OptimismConnector extends EvmConnector {
261
296
  }
262
297
  }
263
298
 
264
- class ScrollConnector extends EvmConnector {
299
+ class SepoliaConnector extends EvmConnector {
265
300
  constructor(config) {
266
301
  super(config);
267
- this.connectorKey = "SCROLL";
302
+ this.connectorKey = "SEPOLIA";
268
303
  }
269
304
  }
270
305
 
@@ -277,13 +312,7 @@ const initiateConnector = async ({
277
312
  }) => {
278
313
  const getRpcUrl = async (secretName) => (await env.SECRETS_STORE.get({ secretName })).data?.secretValue || "";
279
314
  switch (chain) {
280
- case "ETHEREUM":
281
- return new EthereumConnector({
282
- RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_ETHEREUM_RPC_URL"),
283
- tokens,
284
- connectedAddresses,
285
- resolveCredentials
286
- });
315
+ // Mainnet
287
316
  case "ARBITRUM":
288
317
  return new ArbitrumConnector({
289
318
  RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_ARBITRUM_RPC_URL"),
@@ -305,6 +334,13 @@ const initiateConnector = async ({
305
334
  connectedAddresses,
306
335
  resolveCredentials
307
336
  });
337
+ case "ETHEREUM":
338
+ return new EthereumConnector({
339
+ RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_ETHEREUM_RPC_URL"),
340
+ tokens,
341
+ connectedAddresses,
342
+ resolveCredentials
343
+ });
308
344
  case "GNOSIS":
309
345
  return new GnosisConnector({
310
346
  RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_GNOSIS_RPC_URL"),
@@ -319,9 +355,45 @@ const initiateConnector = async ({
319
355
  connectedAddresses,
320
356
  resolveCredentials
321
357
  });
322
- case "SCROLL":
323
- return new ScrollConnector({
324
- RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_SCROLL_RPC_URL"),
358
+ // Testnet
359
+ case "ARBITRUM_SEPOLIA":
360
+ return new ArbitrumSepoliaConnector({
361
+ RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_ARBITRUM_SEPOLIA_RPC_URL"),
362
+ tokens,
363
+ connectedAddresses,
364
+ resolveCredentials
365
+ });
366
+ case "BASE_SEPOLIA":
367
+ return new BaseSepoliaConnector({
368
+ RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_BASE_SEPOLIA_RPC_URL"),
369
+ tokens,
370
+ connectedAddresses,
371
+ resolveCredentials
372
+ });
373
+ case "CHIADO":
374
+ return new ChiadoConnector({
375
+ RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_CHIADO_RPC_URL"),
376
+ tokens,
377
+ connectedAddresses,
378
+ resolveCredentials
379
+ });
380
+ case "FUJI":
381
+ return new FujiConnector({
382
+ RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_FUJI_RPC_URL"),
383
+ tokens,
384
+ connectedAddresses,
385
+ resolveCredentials
386
+ });
387
+ case "OPTIMISM_SEPOLIA":
388
+ return new OptimismSepoliaConnector({
389
+ RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_OPTIMISM_SEPOLIA_RPC_URL"),
390
+ tokens,
391
+ connectedAddresses,
392
+ resolveCredentials
393
+ });
394
+ case "SEPOLIA":
395
+ return new SepoliaConnector({
396
+ RPC_URL: await getRpcUrl("BLOCKCHAIN_SERVICE_SEPOLIA_RPC_URL"),
325
397
  tokens,
326
398
  connectedAddresses,
327
399
  resolveCredentials
@@ -2,6 +2,9 @@ interface BlockchainServiceEnvironmentConfig {
2
2
  d1: {
3
3
  id: string;
4
4
  };
5
+ triggers: {
6
+ crons: string[];
7
+ };
5
8
  queues: {
6
9
  producers: {
7
10
  bus: {
@@ -2,6 +2,9 @@ interface BlockchainServiceEnvironmentConfig {
2
2
  d1: {
3
3
  id: string;
4
4
  };
5
+ triggers: {
6
+ crons: string[];
7
+ };
5
8
  queues: {
6
9
  producers: {
7
10
  bus: {
@@ -2,6 +2,9 @@ interface BlockchainServiceEnvironmentConfig {
2
2
  d1: {
3
3
  id: string;
4
4
  };
5
+ triggers: {
6
+ crons: string[];
7
+ };
5
8
  queues: {
6
9
  producers: {
7
10
  bus: {
@@ -2,7 +2,7 @@
2
2
 
3
3
  const backendSdk = require('@develit-io/backend-sdk');
4
4
  const sqliteCore = require('drizzle-orm/sqlite-core');
5
- const syncAddress = require('./blockchain.Cjq9eH7Z.cjs');
5
+ const syncAddress = require('./blockchain.C5pjxssf.cjs');
6
6
 
7
7
  const address = sqliteCore.sqliteTable("address", {
8
8
  ...backendSdk.base,
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { s as schema } from './blockchain.DUhjXgba.mjs';
2
+ import { s as schema } from './blockchain.CyyZn6RX.cjs';
3
3
 
4
4
  declare const getBlockInputSchema: z.ZodObject<{
5
5
  chain: z.ZodEnum<{
@@ -9,7 +9,12 @@ declare const getBlockInputSchema: z.ZodObject<{
9
9
  ETHEREUM: "ETHEREUM";
10
10
  GNOSIS: "GNOSIS";
11
11
  OPTIMISM: "OPTIMISM";
12
- SCROLL: "SCROLL";
12
+ ARBITRUM_SEPOLIA: "ARBITRUM_SEPOLIA";
13
+ BASE_SEPOLIA: "BASE_SEPOLIA";
14
+ CHIADO: "CHIADO";
15
+ FUJI: "FUJI";
16
+ OPTIMISM_SEPOLIA: "OPTIMISM_SEPOLIA";
17
+ SEPOLIA: "SEPOLIA";
13
18
  }>;
14
19
  blockTag: z.ZodOptional<z.ZodEnum<{
15
20
  latest: "latest";
@@ -59,6 +64,8 @@ interface GetBlockInput extends z.infer<typeof getBlockInputSchema> {
59
64
  }
60
65
  type GetBlockOutput = z.infer<typeof getBlockOutputSchema>;
61
66
 
67
+ declare const MAINNET_CHAIN_TYPE: readonly ["ARBITRUM", "AVALANCHE", "BASE", "ETHEREUM", "GNOSIS", "OPTIMISM"];
68
+ declare const TESTNET_CHAIN_TYPE: readonly ["ARBITRUM_SEPOLIA", "BASE_SEPOLIA", "CHIADO", "FUJI", "OPTIMISM_SEPOLIA", "SEPOLIA"];
62
69
  declare const chainSchema: z.ZodEnum<{
63
70
  ARBITRUM: "ARBITRUM";
64
71
  AVALANCHE: "AVALANCHE";
@@ -66,7 +73,12 @@ declare const chainSchema: z.ZodEnum<{
66
73
  ETHEREUM: "ETHEREUM";
67
74
  GNOSIS: "GNOSIS";
68
75
  OPTIMISM: "OPTIMISM";
69
- SCROLL: "SCROLL";
76
+ ARBITRUM_SEPOLIA: "ARBITRUM_SEPOLIA";
77
+ BASE_SEPOLIA: "BASE_SEPOLIA";
78
+ CHIADO: "CHIADO";
79
+ FUJI: "FUJI";
80
+ OPTIMISM_SEPOLIA: "OPTIMISM_SEPOLIA";
81
+ SEPOLIA: "SEPOLIA";
70
82
  }>;
71
83
  type Chain = z.infer<typeof chainSchema>;
72
84
  declare const getTransactionInputSchema: z.ZodObject<{
@@ -77,7 +89,12 @@ declare const getTransactionInputSchema: z.ZodObject<{
77
89
  ETHEREUM: "ETHEREUM";
78
90
  GNOSIS: "GNOSIS";
79
91
  OPTIMISM: "OPTIMISM";
80
- SCROLL: "SCROLL";
92
+ ARBITRUM_SEPOLIA: "ARBITRUM_SEPOLIA";
93
+ BASE_SEPOLIA: "BASE_SEPOLIA";
94
+ CHIADO: "CHIADO";
95
+ FUJI: "FUJI";
96
+ OPTIMISM_SEPOLIA: "OPTIMISM_SEPOLIA";
97
+ SEPOLIA: "SEPOLIA";
81
98
  }>;
82
99
  txHash: z.ZodString;
83
100
  }, z.core.$strip>;
@@ -134,5 +151,5 @@ type SyncAddressOutput = z.infer<typeof syncAddressOutputSchema>;
134
151
 
135
152
  declare const tables: typeof schema;
136
153
 
137
- export { chainSchema as e, getBlockOutputSchema as f, getBlockInputSchema as g, getTransactionInputSchema as h, getTransactionOutputSchema as i, syncAddressOutputSchema as j, syncAddressInputSchema as s, tables as t };
154
+ export { MAINNET_CHAIN_TYPE as M, TESTNET_CHAIN_TYPE as T, chainSchema as e, getBlockOutputSchema as f, getBlockInputSchema as g, getTransactionInputSchema as h, getTransactionOutputSchema as i, syncAddressOutputSchema as j, syncAddressInputSchema as s, tables as t };
138
155
  export type { Chain as C, GetTransactionInput as G, SyncAddressInput as S, SyncAddressOutput as a, GetTransactionOutput as b, GetBlockInput as c, GetBlockOutput as d };
@@ -105,7 +105,7 @@ declare const address: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
105
105
  tableName: "address";
106
106
  dataType: "string";
107
107
  columnType: "SQLiteText";
108
- data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
108
+ data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
109
109
  driverParam: string;
110
110
  notNull: false;
111
111
  hasDefault: false;
@@ -118,7 +118,7 @@ declare const address: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
118
118
  generated: undefined;
119
119
  }, {}, {
120
120
  length: number | undefined;
121
- $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
121
+ $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
122
122
  }>;
123
123
  id: drizzle_orm_sqlite_core.SQLiteColumn<{
124
124
  name: "id";
@@ -279,7 +279,7 @@ declare const addressCredentials: drizzle_orm_sqlite_core.SQLiteTableWithColumns
279
279
  tableName: "address_credentials";
280
280
  dataType: "string";
281
281
  columnType: "SQLiteText";
282
- data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
282
+ data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
283
283
  driverParam: string;
284
284
  notNull: true;
285
285
  hasDefault: false;
@@ -292,7 +292,7 @@ declare const addressCredentials: drizzle_orm_sqlite_core.SQLiteTableWithColumns
292
292
  generated: undefined;
293
293
  }, {}, {
294
294
  length: number | undefined;
295
- $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
295
+ $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
296
296
  }>;
297
297
  type: drizzle_orm_sqlite_core.SQLiteColumn<{
298
298
  name: "type";
@@ -510,7 +510,7 @@ declare const tokens: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
510
510
  tableName: "tokens";
511
511
  dataType: "string";
512
512
  columnType: "SQLiteText";
513
- data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
513
+ data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
514
514
  driverParam: string;
515
515
  notNull: false;
516
516
  hasDefault: false;
@@ -523,7 +523,7 @@ declare const tokens: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
523
523
  generated: undefined;
524
524
  }, {}, {
525
525
  length: number | undefined;
526
- $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
526
+ $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
527
527
  }>;
528
528
  ticker: drizzle_orm_sqlite_core.SQLiteColumn<{
529
529
  name: "ticker";
@@ -925,7 +925,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
925
925
  tableName: "transaction";
926
926
  dataType: "string";
927
927
  columnType: "SQLiteText";
928
- data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
928
+ data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
929
929
  driverParam: string;
930
930
  notNull: false;
931
931
  hasDefault: false;
@@ -938,7 +938,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
938
938
  generated: undefined;
939
939
  }, {}, {
940
940
  length: number | undefined;
941
- $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
941
+ $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
942
942
  }>;
943
943
  ticker: drizzle_orm_sqlite_core.SQLiteColumn<{
944
944
  name: "ticker";
@@ -105,7 +105,7 @@ declare const address: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
105
105
  tableName: "address";
106
106
  dataType: "string";
107
107
  columnType: "SQLiteText";
108
- data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
108
+ data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
109
109
  driverParam: string;
110
110
  notNull: false;
111
111
  hasDefault: false;
@@ -118,7 +118,7 @@ declare const address: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
118
118
  generated: undefined;
119
119
  }, {}, {
120
120
  length: number | undefined;
121
- $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
121
+ $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
122
122
  }>;
123
123
  id: drizzle_orm_sqlite_core.SQLiteColumn<{
124
124
  name: "id";
@@ -279,7 +279,7 @@ declare const addressCredentials: drizzle_orm_sqlite_core.SQLiteTableWithColumns
279
279
  tableName: "address_credentials";
280
280
  dataType: "string";
281
281
  columnType: "SQLiteText";
282
- data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
282
+ data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
283
283
  driverParam: string;
284
284
  notNull: true;
285
285
  hasDefault: false;
@@ -292,7 +292,7 @@ declare const addressCredentials: drizzle_orm_sqlite_core.SQLiteTableWithColumns
292
292
  generated: undefined;
293
293
  }, {}, {
294
294
  length: number | undefined;
295
- $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
295
+ $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
296
296
  }>;
297
297
  type: drizzle_orm_sqlite_core.SQLiteColumn<{
298
298
  name: "type";
@@ -510,7 +510,7 @@ declare const tokens: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
510
510
  tableName: "tokens";
511
511
  dataType: "string";
512
512
  columnType: "SQLiteText";
513
- data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
513
+ data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
514
514
  driverParam: string;
515
515
  notNull: false;
516
516
  hasDefault: false;
@@ -523,7 +523,7 @@ declare const tokens: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
523
523
  generated: undefined;
524
524
  }, {}, {
525
525
  length: number | undefined;
526
- $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
526
+ $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
527
527
  }>;
528
528
  ticker: drizzle_orm_sqlite_core.SQLiteColumn<{
529
529
  name: "ticker";
@@ -925,7 +925,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
925
925
  tableName: "transaction";
926
926
  dataType: "string";
927
927
  columnType: "SQLiteText";
928
- data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
928
+ data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
929
929
  driverParam: string;
930
930
  notNull: false;
931
931
  hasDefault: false;
@@ -938,7 +938,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
938
938
  generated: undefined;
939
939
  }, {}, {
940
940
  length: number | undefined;
941
- $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
941
+ $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
942
942
  }>;
943
943
  ticker: drizzle_orm_sqlite_core.SQLiteColumn<{
944
944
  name: "ticker";
@@ -105,7 +105,7 @@ declare const address: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
105
105
  tableName: "address";
106
106
  dataType: "string";
107
107
  columnType: "SQLiteText";
108
- data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
108
+ data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
109
109
  driverParam: string;
110
110
  notNull: false;
111
111
  hasDefault: false;
@@ -118,7 +118,7 @@ declare const address: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
118
118
  generated: undefined;
119
119
  }, {}, {
120
120
  length: number | undefined;
121
- $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
121
+ $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
122
122
  }>;
123
123
  id: drizzle_orm_sqlite_core.SQLiteColumn<{
124
124
  name: "id";
@@ -279,7 +279,7 @@ declare const addressCredentials: drizzle_orm_sqlite_core.SQLiteTableWithColumns
279
279
  tableName: "address_credentials";
280
280
  dataType: "string";
281
281
  columnType: "SQLiteText";
282
- data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
282
+ data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
283
283
  driverParam: string;
284
284
  notNull: true;
285
285
  hasDefault: false;
@@ -292,7 +292,7 @@ declare const addressCredentials: drizzle_orm_sqlite_core.SQLiteTableWithColumns
292
292
  generated: undefined;
293
293
  }, {}, {
294
294
  length: number | undefined;
295
- $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
295
+ $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
296
296
  }>;
297
297
  type: drizzle_orm_sqlite_core.SQLiteColumn<{
298
298
  name: "type";
@@ -510,7 +510,7 @@ declare const tokens: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
510
510
  tableName: "tokens";
511
511
  dataType: "string";
512
512
  columnType: "SQLiteText";
513
- data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
513
+ data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
514
514
  driverParam: string;
515
515
  notNull: false;
516
516
  hasDefault: false;
@@ -523,7 +523,7 @@ declare const tokens: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
523
523
  generated: undefined;
524
524
  }, {}, {
525
525
  length: number | undefined;
526
- $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
526
+ $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
527
527
  }>;
528
528
  ticker: drizzle_orm_sqlite_core.SQLiteColumn<{
529
529
  name: "ticker";
@@ -925,7 +925,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
925
925
  tableName: "transaction";
926
926
  dataType: "string";
927
927
  columnType: "SQLiteText";
928
- data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
928
+ data: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
929
929
  driverParam: string;
930
930
  notNull: false;
931
931
  hasDefault: false;
@@ -938,7 +938,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
938
938
  generated: undefined;
939
939
  }, {}, {
940
940
  length: number | undefined;
941
- $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "SCROLL";
941
+ $type: "ARBITRUM" | "AVALANCHE" | "BASE" | "ETHEREUM" | "GNOSIS" | "OPTIMISM" | "ARBITRUM_SEPOLIA" | "BASE_SEPOLIA" | "CHIADO" | "FUJI" | "OPTIMISM_SEPOLIA" | "SEPOLIA";
942
942
  }>;
943
943
  ticker: drizzle_orm_sqlite_core.SQLiteColumn<{
944
944
  name: "ticker";
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { s as schema } from './blockchain.DUhjXgba.js';
2
+ import { s as schema } from './blockchain.CyyZn6RX.mjs';
3
3
 
4
4
  declare const getBlockInputSchema: z.ZodObject<{
5
5
  chain: z.ZodEnum<{
@@ -9,7 +9,12 @@ declare const getBlockInputSchema: z.ZodObject<{
9
9
  ETHEREUM: "ETHEREUM";
10
10
  GNOSIS: "GNOSIS";
11
11
  OPTIMISM: "OPTIMISM";
12
- SCROLL: "SCROLL";
12
+ ARBITRUM_SEPOLIA: "ARBITRUM_SEPOLIA";
13
+ BASE_SEPOLIA: "BASE_SEPOLIA";
14
+ CHIADO: "CHIADO";
15
+ FUJI: "FUJI";
16
+ OPTIMISM_SEPOLIA: "OPTIMISM_SEPOLIA";
17
+ SEPOLIA: "SEPOLIA";
13
18
  }>;
14
19
  blockTag: z.ZodOptional<z.ZodEnum<{
15
20
  latest: "latest";
@@ -59,6 +64,8 @@ interface GetBlockInput extends z.infer<typeof getBlockInputSchema> {
59
64
  }
60
65
  type GetBlockOutput = z.infer<typeof getBlockOutputSchema>;
61
66
 
67
+ declare const MAINNET_CHAIN_TYPE: readonly ["ARBITRUM", "AVALANCHE", "BASE", "ETHEREUM", "GNOSIS", "OPTIMISM"];
68
+ declare const TESTNET_CHAIN_TYPE: readonly ["ARBITRUM_SEPOLIA", "BASE_SEPOLIA", "CHIADO", "FUJI", "OPTIMISM_SEPOLIA", "SEPOLIA"];
62
69
  declare const chainSchema: z.ZodEnum<{
63
70
  ARBITRUM: "ARBITRUM";
64
71
  AVALANCHE: "AVALANCHE";
@@ -66,7 +73,12 @@ declare const chainSchema: z.ZodEnum<{
66
73
  ETHEREUM: "ETHEREUM";
67
74
  GNOSIS: "GNOSIS";
68
75
  OPTIMISM: "OPTIMISM";
69
- SCROLL: "SCROLL";
76
+ ARBITRUM_SEPOLIA: "ARBITRUM_SEPOLIA";
77
+ BASE_SEPOLIA: "BASE_SEPOLIA";
78
+ CHIADO: "CHIADO";
79
+ FUJI: "FUJI";
80
+ OPTIMISM_SEPOLIA: "OPTIMISM_SEPOLIA";
81
+ SEPOLIA: "SEPOLIA";
70
82
  }>;
71
83
  type Chain = z.infer<typeof chainSchema>;
72
84
  declare const getTransactionInputSchema: z.ZodObject<{
@@ -77,7 +89,12 @@ declare const getTransactionInputSchema: z.ZodObject<{
77
89
  ETHEREUM: "ETHEREUM";
78
90
  GNOSIS: "GNOSIS";
79
91
  OPTIMISM: "OPTIMISM";
80
- SCROLL: "SCROLL";
92
+ ARBITRUM_SEPOLIA: "ARBITRUM_SEPOLIA";
93
+ BASE_SEPOLIA: "BASE_SEPOLIA";
94
+ CHIADO: "CHIADO";
95
+ FUJI: "FUJI";
96
+ OPTIMISM_SEPOLIA: "OPTIMISM_SEPOLIA";
97
+ SEPOLIA: "SEPOLIA";
81
98
  }>;
82
99
  txHash: z.ZodString;
83
100
  }, z.core.$strip>;
@@ -134,5 +151,5 @@ type SyncAddressOutput = z.infer<typeof syncAddressOutputSchema>;
134
151
 
135
152
  declare const tables: typeof schema;
136
153
 
137
- export { chainSchema as e, getBlockOutputSchema as f, getBlockInputSchema as g, getTransactionInputSchema as h, getTransactionOutputSchema as i, syncAddressOutputSchema as j, syncAddressInputSchema as s, tables as t };
154
+ export { MAINNET_CHAIN_TYPE as M, TESTNET_CHAIN_TYPE as T, chainSchema as e, getBlockOutputSchema as f, getBlockInputSchema as g, getTransactionInputSchema as h, getTransactionOutputSchema as i, syncAddressOutputSchema as j, syncAddressInputSchema as s, tables as t };
138
155
  export type { Chain as C, GetTransactionInput as G, SyncAddressInput as S, SyncAddressOutput as a, GetTransactionOutput as b, GetBlockInput as c, GetBlockOutput as d };
@@ -12,14 +12,25 @@ const CHAIN_KEYS = [
12
12
  ];
13
13
  const CREDENTIALS_TYPES = ["PRIVATE_KEY"];
14
14
 
15
- const chainSchema = z.enum([
15
+ const MAINNET_CHAIN_TYPE = [
16
16
  "ARBITRUM",
17
17
  "AVALANCHE",
18
18
  "BASE",
19
19
  "ETHEREUM",
20
20
  "GNOSIS",
21
- "OPTIMISM",
22
- "SCROLL"
21
+ "OPTIMISM"
22
+ ];
23
+ const TESTNET_CHAIN_TYPE = [
24
+ "ARBITRUM_SEPOLIA",
25
+ "BASE_SEPOLIA",
26
+ "CHIADO",
27
+ "FUJI",
28
+ "OPTIMISM_SEPOLIA",
29
+ "SEPOLIA"
30
+ ];
31
+ const chainSchema = z.enum([
32
+ ...MAINNET_CHAIN_TYPE,
33
+ ...TESTNET_CHAIN_TYPE
23
34
  ]);
24
35
  const getTransactionInputSchema = z.object({
25
36
  chain: chainSchema,
@@ -95,4 +106,4 @@ const syncAddressOutputSchema = z.object({
95
106
  details: workflowInstanceStatusSchema
96
107
  });
97
108
 
98
- export { CHAIN_KEYS as C, CREDENTIALS_TYPES as a, getBlockOutputSchema as b, chainSchema as c, getTransactionInputSchema as d, getTransactionOutputSchema as e, syncAddressOutputSchema as f, getBlockInputSchema as g, syncAddressInputSchema as s };
109
+ export { CHAIN_KEYS as C, MAINNET_CHAIN_TYPE as M, TESTNET_CHAIN_TYPE as T, CREDENTIALS_TYPES as a, getBlockOutputSchema as b, chainSchema as c, getTransactionInputSchema as d, getTransactionOutputSchema as e, syncAddressOutputSchema as f, getBlockInputSchema as g, syncAddressInputSchema as s };
package/dist/types.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const syncAddress = require('./shared/blockchain.Cjq9eH7Z.cjs');
3
+ const syncAddress = require('./shared/blockchain.C5pjxssf.cjs');
4
4
  require('zod');
5
5
  require('@develit-io/backend-sdk');
6
6
 
@@ -8,6 +8,8 @@ require('@develit-io/backend-sdk');
8
8
 
9
9
  exports.CHAIN_KEYS = syncAddress.CHAIN_KEYS;
10
10
  exports.CREDENTIALS_TYPES = syncAddress.CREDENTIALS_TYPES;
11
+ exports.MAINNET_CHAIN_TYPE = syncAddress.MAINNET_CHAIN_TYPE;
12
+ exports.TESTNET_CHAIN_TYPE = syncAddress.TESTNET_CHAIN_TYPE;
11
13
  exports.chainSchema = syncAddress.chainSchema;
12
14
  exports.getBlockInputSchema = syncAddress.getBlockInputSchema;
13
15
  exports.getBlockOutputSchema = syncAddress.getBlockOutputSchema;
package/dist/types.d.cts CHANGED
@@ -1,9 +1,9 @@
1
- export { C as CHAIN_KEYS, a as CREDENTIALS_TYPES, b as CredentialsType, L as LastSyncMetadata } from './shared/blockchain.DUhjXgba.cjs';
1
+ export { C as CHAIN_KEYS, a as CREDENTIALS_TYPES, b as CredentialsType, L as LastSyncMetadata } from './shared/blockchain.CyyZn6RX.cjs';
2
2
  import { BaseEvent } from '@develit-io/backend-sdk';
3
- import { t as tables } from './shared/blockchain.Br6esGv4.cjs';
4
- export { C as Chain, c as GetBlockInput, d as GetBlockOutput, G as GetTransactionInput, b as GetTransactionOutput, S as SyncAddressInput, a as SyncAddressOutput, e as chainSchema, g as getBlockInputSchema, f as getBlockOutputSchema, h as getTransactionInputSchema, i as getTransactionOutputSchema, s as syncAddressInputSchema, j as syncAddressOutputSchema } from './shared/blockchain.Br6esGv4.cjs';
3
+ import { t as tables } from './shared/blockchain.CeVkeCGH.cjs';
4
+ export { C as Chain, c as GetBlockInput, d as GetBlockOutput, G as GetTransactionInput, b as GetTransactionOutput, M as MAINNET_CHAIN_TYPE, S as SyncAddressInput, a as SyncAddressOutput, T as TESTNET_CHAIN_TYPE, e as chainSchema, g as getBlockInputSchema, f as getBlockOutputSchema, h as getTransactionInputSchema, i as getTransactionOutputSchema, s as syncAddressInputSchema, j as syncAddressOutputSchema } from './shared/blockchain.CeVkeCGH.cjs';
5
5
  import { InferInsertModel, InferSelectModel } from 'drizzle-orm';
6
- export { a as BlockchainServiceEnv, b as BlockchainServiceEnvironmentConfig, B as BlockchainServiceWranglerConfig } from './shared/blockchain.C1Jdisxn.cjs';
6
+ export { a as BlockchainServiceEnv, b as BlockchainServiceEnvironmentConfig, B as BlockchainServiceWranglerConfig } from './shared/blockchain.CVKUvfyj.cjs';
7
7
  import 'drizzle-orm/sqlite-core';
8
8
  import 'zod';
9
9
 
package/dist/types.d.mts CHANGED
@@ -1,9 +1,9 @@
1
- export { C as CHAIN_KEYS, a as CREDENTIALS_TYPES, b as CredentialsType, L as LastSyncMetadata } from './shared/blockchain.DUhjXgba.mjs';
1
+ export { C as CHAIN_KEYS, a as CREDENTIALS_TYPES, b as CredentialsType, L as LastSyncMetadata } from './shared/blockchain.CyyZn6RX.mjs';
2
2
  import { BaseEvent } from '@develit-io/backend-sdk';
3
- import { t as tables } from './shared/blockchain.DcWSUM60.mjs';
4
- export { C as Chain, c as GetBlockInput, d as GetBlockOutput, G as GetTransactionInput, b as GetTransactionOutput, S as SyncAddressInput, a as SyncAddressOutput, e as chainSchema, g as getBlockInputSchema, f as getBlockOutputSchema, h as getTransactionInputSchema, i as getTransactionOutputSchema, s as syncAddressInputSchema, j as syncAddressOutputSchema } from './shared/blockchain.DcWSUM60.mjs';
3
+ import { t as tables } from './shared/blockchain.DNPZEckN.mjs';
4
+ export { C as Chain, c as GetBlockInput, d as GetBlockOutput, G as GetTransactionInput, b as GetTransactionOutput, M as MAINNET_CHAIN_TYPE, S as SyncAddressInput, a as SyncAddressOutput, T as TESTNET_CHAIN_TYPE, e as chainSchema, g as getBlockInputSchema, f as getBlockOutputSchema, h as getTransactionInputSchema, i as getTransactionOutputSchema, s as syncAddressInputSchema, j as syncAddressOutputSchema } from './shared/blockchain.DNPZEckN.mjs';
5
5
  import { InferInsertModel, InferSelectModel } from 'drizzle-orm';
6
- export { a as BlockchainServiceEnv, b as BlockchainServiceEnvironmentConfig, B as BlockchainServiceWranglerConfig } from './shared/blockchain.C1Jdisxn.mjs';
6
+ export { a as BlockchainServiceEnv, b as BlockchainServiceEnvironmentConfig, B as BlockchainServiceWranglerConfig } from './shared/blockchain.CVKUvfyj.mjs';
7
7
  import 'drizzle-orm/sqlite-core';
8
8
  import 'zod';
9
9
 
package/dist/types.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export { C as CHAIN_KEYS, a as CREDENTIALS_TYPES, b as CredentialsType, L as LastSyncMetadata } from './shared/blockchain.DUhjXgba.js';
1
+ export { C as CHAIN_KEYS, a as CREDENTIALS_TYPES, b as CredentialsType, L as LastSyncMetadata } from './shared/blockchain.CyyZn6RX.js';
2
2
  import { BaseEvent } from '@develit-io/backend-sdk';
3
- import { t as tables } from './shared/blockchain.DurPotrN.js';
4
- export { C as Chain, c as GetBlockInput, d as GetBlockOutput, G as GetTransactionInput, b as GetTransactionOutput, S as SyncAddressInput, a as SyncAddressOutput, e as chainSchema, g as getBlockInputSchema, f as getBlockOutputSchema, h as getTransactionInputSchema, i as getTransactionOutputSchema, s as syncAddressInputSchema, j as syncAddressOutputSchema } from './shared/blockchain.DurPotrN.js';
3
+ import { t as tables } from './shared/blockchain.Bh6x4dsx.js';
4
+ export { C as Chain, c as GetBlockInput, d as GetBlockOutput, G as GetTransactionInput, b as GetTransactionOutput, M as MAINNET_CHAIN_TYPE, S as SyncAddressInput, a as SyncAddressOutput, T as TESTNET_CHAIN_TYPE, e as chainSchema, g as getBlockInputSchema, f as getBlockOutputSchema, h as getTransactionInputSchema, i as getTransactionOutputSchema, s as syncAddressInputSchema, j as syncAddressOutputSchema } from './shared/blockchain.Bh6x4dsx.js';
5
5
  import { InferInsertModel, InferSelectModel } from 'drizzle-orm';
6
- export { a as BlockchainServiceEnv, b as BlockchainServiceEnvironmentConfig, B as BlockchainServiceWranglerConfig } from './shared/blockchain.C1Jdisxn.js';
6
+ export { a as BlockchainServiceEnv, b as BlockchainServiceEnvironmentConfig, B as BlockchainServiceWranglerConfig } from './shared/blockchain.CVKUvfyj.js';
7
7
  import 'drizzle-orm/sqlite-core';
8
8
  import 'zod';
9
9
 
package/dist/types.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export { C as CHAIN_KEYS, a as CREDENTIALS_TYPES, c as chainSchema, g as getBlockInputSchema, b as getBlockOutputSchema, d as getTransactionInputSchema, e as getTransactionOutputSchema, s as syncAddressInputSchema, f as syncAddressOutputSchema } from './shared/blockchain.CKh8Fs7w.mjs';
1
+ export { C as CHAIN_KEYS, a as CREDENTIALS_TYPES, M as MAINNET_CHAIN_TYPE, T as TESTNET_CHAIN_TYPE, c as chainSchema, g as getBlockInputSchema, b as getBlockOutputSchema, d as getTransactionInputSchema, e as getTransactionOutputSchema, s as syncAddressInputSchema, f as syncAddressOutputSchema } from './shared/blockchain.c19XIse8.mjs';
2
2
  import 'zod';
3
3
  import '@develit-io/backend-sdk';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/blockchain",
3
- "version": "0.8.5",
3
+ "version": "0.11.0",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {