@develit-services/blockchain 0.11.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) 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 +6 -6
  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 +3 -3
  12. package/dist/export/workflows.mjs +3 -3
  13. package/dist/shared/{blockchain.C5pjxssf.cjs → blockchain.B1DsOJYY.cjs} +6 -11
  14. package/dist/shared/{blockchain.DNPZEckN.d.mts → blockchain.BJwCN-zk.d.mts} +3 -3
  15. package/dist/shared/{blockchain.CyyZn6RX.d.cts → blockchain.BioJdfy8.d.cts} +2 -2
  16. package/dist/shared/{blockchain.CyyZn6RX.d.mts → blockchain.BioJdfy8.d.mts} +2 -2
  17. package/dist/shared/{blockchain.CyyZn6RX.d.ts → blockchain.BioJdfy8.d.ts} +2 -2
  18. package/dist/shared/{blockchain.CXld_MYP.cjs → blockchain.ByoXNMWP.cjs} +3 -3
  19. package/dist/shared/{blockchain.8YeEVniE.mjs → blockchain.C1YDFhjP.mjs} +1 -1
  20. package/dist/shared/{blockchain.c19XIse8.mjs → blockchain.CBJdSboV.mjs} +6 -11
  21. package/dist/shared/{blockchain.CRWCUwHr.cjs → blockchain.CPHf4-ak.cjs} +1 -1
  22. package/dist/shared/{blockchain.CeVkeCGH.d.cts → blockchain.CQMtSOse.d.cts} +3 -3
  23. package/dist/shared/{blockchain.ByhE_RaE.mjs → blockchain.Djm2P0EG.mjs} +1 -1
  24. package/dist/shared/{blockchain.Bh6x4dsx.d.ts → blockchain.jMmU_icc.d.ts} +3 -3
  25. package/dist/types.cjs +12 -12
  26. package/dist/types.d.cts +3 -3
  27. package/dist/types.d.mts +3 -3
  28. package/dist/types.d.ts +3 -3
  29. package/dist/types.mjs +1 -1
  30. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const database_schema = require('../shared/blockchain.CXld_MYP.cjs');
3
+ const database_schema = require('../shared/blockchain.ByoXNMWP.cjs');
4
4
  require('@develit-io/backend-sdk');
5
5
  require('drizzle-orm/sqlite-core');
6
- require('../shared/blockchain.C5pjxssf.cjs');
6
+ require('../shared/blockchain.B1DsOJYY.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.CyyZn6RX.cjs';
1
+ export { c as address, d as addressCredentials, t as tokens, e as transaction } from '../shared/blockchain.BioJdfy8.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.CyyZn6RX.mjs';
1
+ export { c as address, d as addressCredentials, t as tokens, e as transaction } from '../shared/blockchain.BioJdfy8.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.CyyZn6RX.js';
1
+ export { c as address, d as addressCredentials, t as tokens, e as transaction } from '../shared/blockchain.BioJdfy8.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.8YeEVniE.mjs';
1
+ export { a as address, b as addressCredentials, t as tokens, c as transaction } from '../shared/blockchain.C1YDFhjP.mjs';
2
2
  import '@develit-io/backend-sdk';
3
3
  import 'drizzle-orm/sqlite-core';
4
- import '../shared/blockchain.c19XIse8.mjs';
4
+ import '../shared/blockchain.CBJdSboV.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.CRWCUwHr.cjs');
7
- const syncAddress = require('../shared/blockchain.C5pjxssf.cjs');
6
+ const blockchain = require('../shared/blockchain.CPHf4-ak.cjs');
7
+ const address = require('../shared/blockchain.B1DsOJYY.cjs');
8
8
  const cloudflare_workers = require('cloudflare:workers');
9
9
  const d1 = require('drizzle-orm/d1');
10
- require('../shared/blockchain.CXld_MYP.cjs');
10
+ require('../shared/blockchain.ByoXNMWP.cjs');
11
11
  require('drizzle-orm/sqlite-core');
12
12
  require('drizzle-orm');
13
13
  require('viem');
@@ -33,7 +33,7 @@ let BlockchainServiceBase = class extends backendSdk.develitWorker(
33
33
  }
34
34
  async syncAddress(input) {
35
35
  return this.handleAction(
36
- { data: input, schema: syncAddress.syncAddressInputSchema },
36
+ { data: input, schema: address.syncAddressInputSchema },
37
37
  { successMessage: "Address sync workflow started" },
38
38
  async ({ addressId }) => {
39
39
  const instance = await this.env.SYNC_ADDRESS_TRANSACTIONS_WORKFLOW.create({
@@ -51,7 +51,7 @@ let BlockchainServiceBase = class extends backendSdk.develitWorker(
51
51
  }
52
52
  async getTransaction(input) {
53
53
  return this.handleAction(
54
- { data: input, schema: syncAddress.getTransactionInputSchema },
54
+ { data: input, schema: address.getTransactionInputSchema },
55
55
  { successMessage: "Transaction retrieved successfully." },
56
56
  async ({ chain, txHash }) => {
57
57
  const connector = await blockchain.initiateConnector({
@@ -66,7 +66,7 @@ let BlockchainServiceBase = class extends backendSdk.develitWorker(
66
66
  }
67
67
  async getBlock(input) {
68
68
  return this.handleAction(
69
- { data: input, schema: syncAddress.getBlockInputSchema },
69
+ { data: input, schema: address.getBlockInputSchema },
70
70
  { successMessage: "Block retrieved successfully." },
71
71
  async ({ chain, blockHash, blockNumber, blockTag }) => {
72
72
  const connector = await blockchain.initiateConnector({
@@ -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.CeVkeCGH.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.CQMtSOse.cjs';
4
4
  import { WorkerEntrypoint } from 'cloudflare:workers';
5
5
  import { DrizzleD1Database } from 'drizzle-orm/d1';
6
6
  import 'zod';
7
- import '../shared/blockchain.CyyZn6RX.cjs';
7
+ import '../shared/blockchain.BioJdfy8.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.DNPZEckN.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.BJwCN-zk.mjs';
4
4
  import { WorkerEntrypoint } from 'cloudflare:workers';
5
5
  import { DrizzleD1Database } from 'drizzle-orm/d1';
6
6
  import 'zod';
7
- import '../shared/blockchain.CyyZn6RX.mjs';
7
+ import '../shared/blockchain.BioJdfy8.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.Bh6x4dsx.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.jMmU_icc.js';
4
4
  import { WorkerEntrypoint } from 'cloudflare:workers';
5
5
  import { DrizzleD1Database } from 'drizzle-orm/d1';
6
6
  import 'zod';
7
- import '../shared/blockchain.CyyZn6RX.js';
7
+ import '../shared/blockchain.BioJdfy8.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.ByhE_RaE.mjs';
3
- import { s as syncAddressInputSchema, d as getTransactionInputSchema, g as getBlockInputSchema } from '../shared/blockchain.c19XIse8.mjs';
2
+ import { t as tables, i as initiateConnector } from '../shared/blockchain.Djm2P0EG.mjs';
3
+ import { s as syncAddressInputSchema, d as getTransactionInputSchema, g as getBlockInputSchema } from '../shared/blockchain.CBJdSboV.mjs';
4
4
  import { WorkerEntrypoint } from 'cloudflare:workers';
5
5
  import { drizzle } from 'drizzle-orm/d1';
6
- import '../shared/blockchain.8YeEVniE.mjs';
6
+ import '../shared/blockchain.C1YDFhjP.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.CRWCUwHr.cjs');
4
+ const blockchain = require('../shared/blockchain.CPHf4-ak.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.CXld_MYP.cjs');
9
+ require('../shared/blockchain.ByoXNMWP.cjs');
10
10
  require('drizzle-orm/sqlite-core');
11
- require('../shared/blockchain.C5pjxssf.cjs');
11
+ require('../shared/blockchain.B1DsOJYY.cjs');
12
12
  require('zod');
13
13
  require('viem');
14
14
  require('viem/accounts');
@@ -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.ByhE_RaE.mjs';
2
+ import { t as tables, i as initiateConnector } from '../shared/blockchain.Djm2P0EG.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.8YeEVniE.mjs';
7
+ import '../shared/blockchain.C1YDFhjP.mjs';
8
8
  import 'drizzle-orm/sqlite-core';
9
- import '../shared/blockchain.c19XIse8.mjs';
9
+ import '../shared/blockchain.CBJdSboV.mjs';
10
10
  import 'zod';
11
11
  import 'viem';
12
12
  import 'viem/accounts';
@@ -3,17 +3,6 @@
3
3
  const zod = require('zod');
4
4
  const backendSdk = require('@develit-io/backend-sdk');
5
5
 
6
- const CHAIN_KEYS = [
7
- "ARBITRUM",
8
- "AVALANCHE",
9
- "BASE",
10
- "ETHEREUM",
11
- "GNOSIS",
12
- "OPTIMISM",
13
- "SCROLL"
14
- ];
15
- const CREDENTIALS_TYPES = ["PRIVATE_KEY"];
16
-
17
6
  const MAINNET_CHAIN_TYPE = [
18
7
  "ARBITRUM",
19
8
  "AVALANCHE",
@@ -108,6 +97,12 @@ const syncAddressOutputSchema = zod.z.object({
108
97
  details: backendSdk.workflowInstanceStatusSchema
109
98
  });
110
99
 
100
+ const CHAIN_KEYS = [
101
+ ...MAINNET_CHAIN_TYPE,
102
+ ...TESTNET_CHAIN_TYPE
103
+ ];
104
+ const CREDENTIALS_TYPES = ["PRIVATE_KEY"];
105
+
111
106
  exports.CHAIN_KEYS = CHAIN_KEYS;
112
107
  exports.CREDENTIALS_TYPES = CREDENTIALS_TYPES;
113
108
  exports.MAINNET_CHAIN_TYPE = MAINNET_CHAIN_TYPE;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { s as schema } from './blockchain.CyyZn6RX.mjs';
2
+ import { s as schema } from './blockchain.BioJdfy8.mjs';
3
3
 
4
4
  declare const getBlockInputSchema: z.ZodObject<{
5
5
  chain: z.ZodEnum<{
@@ -17,9 +17,9 @@ declare const getBlockInputSchema: z.ZodObject<{
17
17
  SEPOLIA: "SEPOLIA";
18
18
  }>;
19
19
  blockTag: z.ZodOptional<z.ZodEnum<{
20
+ pending: "pending";
20
21
  latest: "latest";
21
22
  earliest: "earliest";
22
- pending: "pending";
23
23
  safe: "safe";
24
24
  finalized: "finalized";
25
25
  }>>;
@@ -110,9 +110,9 @@ declare const getTransactionOutputSchema: z.ZodObject<{
110
110
  nonce: z.ZodNumber;
111
111
  transactionIndex: z.ZodNullable<z.ZodNumber>;
112
112
  status: z.ZodEnum<{
113
- pending: "pending";
114
113
  success: "success";
115
114
  reverted: "reverted";
115
+ pending: "pending";
116
116
  }>;
117
117
  gasUsed: z.ZodNullable<z.ZodString>;
118
118
  timestamp: z.ZodNullable<z.ZodNumber>;
@@ -3,7 +3,7 @@ import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
3
3
  interface LastSyncMetadata {
4
4
  eventsEmitted: number;
5
5
  }
6
- declare const CHAIN_KEYS: readonly ["ARBITRUM", "AVALANCHE", "BASE", "ETHEREUM", "GNOSIS", "OPTIMISM", "SCROLL"];
6
+ declare const CHAIN_KEYS: readonly ["ARBITRUM", "AVALANCHE", "BASE", "ETHEREUM", "GNOSIS", "OPTIMISM", "ARBITRUM_SEPOLIA", "BASE_SEPOLIA", "CHIADO", "FUJI", "OPTIMISM_SEPOLIA", "SEPOLIA"];
7
7
  declare const CREDENTIALS_TYPES: readonly ["PRIVATE_KEY"];
8
8
  type CredentialsType = (typeof CREDENTIALS_TYPES)[number];
9
9
 
@@ -286,7 +286,7 @@ declare const addressCredentials: drizzle_orm_sqlite_core.SQLiteTableWithColumns
286
286
  isPrimaryKey: false;
287
287
  isAutoincrement: false;
288
288
  hasRuntimeDefault: false;
289
- enumValues: ["ARBITRUM", "AVALANCHE", "BASE", "ETHEREUM", "GNOSIS", "OPTIMISM", "SCROLL"];
289
+ enumValues: ["ARBITRUM", "AVALANCHE", "BASE", "ETHEREUM", "GNOSIS", "OPTIMISM", "ARBITRUM_SEPOLIA", "BASE_SEPOLIA", "CHIADO", "FUJI", "OPTIMISM_SEPOLIA", "SEPOLIA"];
290
290
  baseColumn: never;
291
291
  identity: undefined;
292
292
  generated: undefined;
@@ -3,7 +3,7 @@ import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
3
3
  interface LastSyncMetadata {
4
4
  eventsEmitted: number;
5
5
  }
6
- declare const CHAIN_KEYS: readonly ["ARBITRUM", "AVALANCHE", "BASE", "ETHEREUM", "GNOSIS", "OPTIMISM", "SCROLL"];
6
+ declare const CHAIN_KEYS: readonly ["ARBITRUM", "AVALANCHE", "BASE", "ETHEREUM", "GNOSIS", "OPTIMISM", "ARBITRUM_SEPOLIA", "BASE_SEPOLIA", "CHIADO", "FUJI", "OPTIMISM_SEPOLIA", "SEPOLIA"];
7
7
  declare const CREDENTIALS_TYPES: readonly ["PRIVATE_KEY"];
8
8
  type CredentialsType = (typeof CREDENTIALS_TYPES)[number];
9
9
 
@@ -286,7 +286,7 @@ declare const addressCredentials: drizzle_orm_sqlite_core.SQLiteTableWithColumns
286
286
  isPrimaryKey: false;
287
287
  isAutoincrement: false;
288
288
  hasRuntimeDefault: false;
289
- enumValues: ["ARBITRUM", "AVALANCHE", "BASE", "ETHEREUM", "GNOSIS", "OPTIMISM", "SCROLL"];
289
+ enumValues: ["ARBITRUM", "AVALANCHE", "BASE", "ETHEREUM", "GNOSIS", "OPTIMISM", "ARBITRUM_SEPOLIA", "BASE_SEPOLIA", "CHIADO", "FUJI", "OPTIMISM_SEPOLIA", "SEPOLIA"];
290
290
  baseColumn: never;
291
291
  identity: undefined;
292
292
  generated: undefined;
@@ -3,7 +3,7 @@ import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
3
3
  interface LastSyncMetadata {
4
4
  eventsEmitted: number;
5
5
  }
6
- declare const CHAIN_KEYS: readonly ["ARBITRUM", "AVALANCHE", "BASE", "ETHEREUM", "GNOSIS", "OPTIMISM", "SCROLL"];
6
+ declare const CHAIN_KEYS: readonly ["ARBITRUM", "AVALANCHE", "BASE", "ETHEREUM", "GNOSIS", "OPTIMISM", "ARBITRUM_SEPOLIA", "BASE_SEPOLIA", "CHIADO", "FUJI", "OPTIMISM_SEPOLIA", "SEPOLIA"];
7
7
  declare const CREDENTIALS_TYPES: readonly ["PRIVATE_KEY"];
8
8
  type CredentialsType = (typeof CREDENTIALS_TYPES)[number];
9
9
 
@@ -286,7 +286,7 @@ declare const addressCredentials: drizzle_orm_sqlite_core.SQLiteTableWithColumns
286
286
  isPrimaryKey: false;
287
287
  isAutoincrement: false;
288
288
  hasRuntimeDefault: false;
289
- enumValues: ["ARBITRUM", "AVALANCHE", "BASE", "ETHEREUM", "GNOSIS", "OPTIMISM", "SCROLL"];
289
+ enumValues: ["ARBITRUM", "AVALANCHE", "BASE", "ETHEREUM", "GNOSIS", "OPTIMISM", "ARBITRUM_SEPOLIA", "BASE_SEPOLIA", "CHIADO", "FUJI", "OPTIMISM_SEPOLIA", "SEPOLIA"];
290
290
  baseColumn: never;
291
291
  identity: undefined;
292
292
  generated: undefined;
@@ -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.C5pjxssf.cjs');
5
+ const address$1 = require('./blockchain.B1DsOJYY.cjs');
6
6
 
7
7
  const address = sqliteCore.sqliteTable("address", {
8
8
  ...backendSdk.base,
@@ -20,10 +20,10 @@ const addressCredentials = sqliteCore.sqliteTable("address_credentials", {
20
20
  ...backendSdk.base,
21
21
  addressId: sqliteCore.text("address_id").references(() => address.id, { onDelete: "restrict", onUpdate: "cascade" }).notNull(),
22
22
  connector: sqliteCore.text("connector", {
23
- enum: syncAddress.CHAIN_KEYS
23
+ enum: address$1.CHAIN_KEYS
24
24
  }).$type().notNull(),
25
25
  type: sqliteCore.text("type", {
26
- enum: syncAddress.CREDENTIALS_TYPES
26
+ enum: address$1.CREDENTIALS_TYPES
27
27
  }).$type().notNull(),
28
28
  value: sqliteCore.text("value").notNull(),
29
29
  expiresAt: sqliteCore.integer("expires_at", { mode: "timestamp_ms" })
@@ -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.c19XIse8.mjs';
3
+ import { a as CREDENTIALS_TYPES, C as CHAIN_KEYS } from './blockchain.CBJdSboV.mjs';
4
4
 
5
5
  const address = sqliteTable("address", {
6
6
  ...base,
@@ -1,17 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { workflowInstanceStatusSchema } from '@develit-io/backend-sdk';
3
3
 
4
- const CHAIN_KEYS = [
5
- "ARBITRUM",
6
- "AVALANCHE",
7
- "BASE",
8
- "ETHEREUM",
9
- "GNOSIS",
10
- "OPTIMISM",
11
- "SCROLL"
12
- ];
13
- const CREDENTIALS_TYPES = ["PRIVATE_KEY"];
14
-
15
4
  const MAINNET_CHAIN_TYPE = [
16
5
  "ARBITRUM",
17
6
  "AVALANCHE",
@@ -106,4 +95,10 @@ const syncAddressOutputSchema = z.object({
106
95
  details: workflowInstanceStatusSchema
107
96
  });
108
97
 
98
+ const CHAIN_KEYS = [
99
+ ...MAINNET_CHAIN_TYPE,
100
+ ...TESTNET_CHAIN_TYPE
101
+ ];
102
+ const CREDENTIALS_TYPES = ["PRIVATE_KEY"];
103
+
109
104
  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 };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const database_schema = require('./blockchain.CXld_MYP.cjs');
3
+ const database_schema = require('./blockchain.ByoXNMWP.cjs');
4
4
  require('drizzle-orm');
5
5
  const backendSdk = require('@develit-io/backend-sdk');
6
6
  const viem = require('viem');
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { s as schema } from './blockchain.CyyZn6RX.cjs';
2
+ import { s as schema } from './blockchain.BioJdfy8.cjs';
3
3
 
4
4
  declare const getBlockInputSchema: z.ZodObject<{
5
5
  chain: z.ZodEnum<{
@@ -17,9 +17,9 @@ declare const getBlockInputSchema: z.ZodObject<{
17
17
  SEPOLIA: "SEPOLIA";
18
18
  }>;
19
19
  blockTag: z.ZodOptional<z.ZodEnum<{
20
+ pending: "pending";
20
21
  latest: "latest";
21
22
  earliest: "earliest";
22
- pending: "pending";
23
23
  safe: "safe";
24
24
  finalized: "finalized";
25
25
  }>>;
@@ -110,9 +110,9 @@ declare const getTransactionOutputSchema: z.ZodObject<{
110
110
  nonce: z.ZodNumber;
111
111
  transactionIndex: z.ZodNullable<z.ZodNumber>;
112
112
  status: z.ZodEnum<{
113
- pending: "pending";
114
113
  success: "success";
115
114
  reverted: "reverted";
115
+ pending: "pending";
116
116
  }>;
117
117
  gasUsed: z.ZodNullable<z.ZodString>;
118
118
  timestamp: z.ZodNullable<z.ZodNumber>;
@@ -1,4 +1,4 @@
1
- import { s as schema } from './blockchain.8YeEVniE.mjs';
1
+ import { s as schema } from './blockchain.C1YDFhjP.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';
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { s as schema } from './blockchain.CyyZn6RX.js';
2
+ import { s as schema } from './blockchain.BioJdfy8.js';
3
3
 
4
4
  declare const getBlockInputSchema: z.ZodObject<{
5
5
  chain: z.ZodEnum<{
@@ -17,9 +17,9 @@ declare const getBlockInputSchema: z.ZodObject<{
17
17
  SEPOLIA: "SEPOLIA";
18
18
  }>;
19
19
  blockTag: z.ZodOptional<z.ZodEnum<{
20
+ pending: "pending";
20
21
  latest: "latest";
21
22
  earliest: "earliest";
22
- pending: "pending";
23
23
  safe: "safe";
24
24
  finalized: "finalized";
25
25
  }>>;
@@ -110,9 +110,9 @@ declare const getTransactionOutputSchema: z.ZodObject<{
110
110
  nonce: z.ZodNumber;
111
111
  transactionIndex: z.ZodNullable<z.ZodNumber>;
112
112
  status: z.ZodEnum<{
113
- pending: "pending";
114
113
  success: "success";
115
114
  reverted: "reverted";
115
+ pending: "pending";
116
116
  }>;
117
117
  gasUsed: z.ZodNullable<z.ZodString>;
118
118
  timestamp: z.ZodNullable<z.ZodNumber>;
package/dist/types.cjs CHANGED
@@ -1,19 +1,19 @@
1
1
  'use strict';
2
2
 
3
- const syncAddress = require('./shared/blockchain.C5pjxssf.cjs');
3
+ const address = require('./shared/blockchain.B1DsOJYY.cjs');
4
4
  require('zod');
5
5
  require('@develit-io/backend-sdk');
6
6
 
7
7
 
8
8
 
9
- exports.CHAIN_KEYS = syncAddress.CHAIN_KEYS;
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;
13
- exports.chainSchema = syncAddress.chainSchema;
14
- exports.getBlockInputSchema = syncAddress.getBlockInputSchema;
15
- exports.getBlockOutputSchema = syncAddress.getBlockOutputSchema;
16
- exports.getTransactionInputSchema = syncAddress.getTransactionInputSchema;
17
- exports.getTransactionOutputSchema = syncAddress.getTransactionOutputSchema;
18
- exports.syncAddressInputSchema = syncAddress.syncAddressInputSchema;
19
- exports.syncAddressOutputSchema = syncAddress.syncAddressOutputSchema;
9
+ exports.CHAIN_KEYS = address.CHAIN_KEYS;
10
+ exports.CREDENTIALS_TYPES = address.CREDENTIALS_TYPES;
11
+ exports.MAINNET_CHAIN_TYPE = address.MAINNET_CHAIN_TYPE;
12
+ exports.TESTNET_CHAIN_TYPE = address.TESTNET_CHAIN_TYPE;
13
+ exports.chainSchema = address.chainSchema;
14
+ exports.getBlockInputSchema = address.getBlockInputSchema;
15
+ exports.getBlockOutputSchema = address.getBlockOutputSchema;
16
+ exports.getTransactionInputSchema = address.getTransactionInputSchema;
17
+ exports.getTransactionOutputSchema = address.getTransactionOutputSchema;
18
+ exports.syncAddressInputSchema = address.syncAddressInputSchema;
19
+ exports.syncAddressOutputSchema = address.syncAddressOutputSchema;
package/dist/types.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- export { C as CHAIN_KEYS, a as CREDENTIALS_TYPES, b as CredentialsType, L as LastSyncMetadata } from './shared/blockchain.CyyZn6RX.cjs';
1
+ export { C as CHAIN_KEYS, a as CREDENTIALS_TYPES, b as CredentialsType, L as LastSyncMetadata } from './shared/blockchain.BioJdfy8.cjs';
2
2
  import { BaseEvent } from '@develit-io/backend-sdk';
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';
3
+ import { t as tables } from './shared/blockchain.CQMtSOse.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.CQMtSOse.cjs';
5
5
  import { InferInsertModel, InferSelectModel } from 'drizzle-orm';
6
6
  export { a as BlockchainServiceEnv, b as BlockchainServiceEnvironmentConfig, B as BlockchainServiceWranglerConfig } from './shared/blockchain.CVKUvfyj.cjs';
7
7
  import 'drizzle-orm/sqlite-core';
package/dist/types.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- export { C as CHAIN_KEYS, a as CREDENTIALS_TYPES, b as CredentialsType, L as LastSyncMetadata } from './shared/blockchain.CyyZn6RX.mjs';
1
+ export { C as CHAIN_KEYS, a as CREDENTIALS_TYPES, b as CredentialsType, L as LastSyncMetadata } from './shared/blockchain.BioJdfy8.mjs';
2
2
  import { BaseEvent } from '@develit-io/backend-sdk';
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';
3
+ import { t as tables } from './shared/blockchain.BJwCN-zk.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.BJwCN-zk.mjs';
5
5
  import { InferInsertModel, InferSelectModel } from 'drizzle-orm';
6
6
  export { a as BlockchainServiceEnv, b as BlockchainServiceEnvironmentConfig, B as BlockchainServiceWranglerConfig } from './shared/blockchain.CVKUvfyj.mjs';
7
7
  import 'drizzle-orm/sqlite-core';
package/dist/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { C as CHAIN_KEYS, a as CREDENTIALS_TYPES, b as CredentialsType, L as LastSyncMetadata } from './shared/blockchain.CyyZn6RX.js';
1
+ export { C as CHAIN_KEYS, a as CREDENTIALS_TYPES, b as CredentialsType, L as LastSyncMetadata } from './shared/blockchain.BioJdfy8.js';
2
2
  import { BaseEvent } from '@develit-io/backend-sdk';
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';
3
+ import { t as tables } from './shared/blockchain.jMmU_icc.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.jMmU_icc.js';
5
5
  import { InferInsertModel, InferSelectModel } from 'drizzle-orm';
6
6
  export { a as BlockchainServiceEnv, b as BlockchainServiceEnvironmentConfig, B as BlockchainServiceWranglerConfig } from './shared/blockchain.CVKUvfyj.js';
7
7
  import 'drizzle-orm/sqlite-core';
package/dist/types.mjs CHANGED
@@ -1,3 +1,3 @@
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';
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.CBJdSboV.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.11.0",
3
+ "version": "0.11.1",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {