@develit-services/blockchain 0.10.0 → 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.
- package/dist/database/schema.cjs +2 -2
- package/dist/database/schema.d.cts +1 -1
- package/dist/database/schema.d.mts +1 -1
- package/dist/database/schema.d.ts +1 -1
- package/dist/database/schema.mjs +2 -2
- package/dist/export/worker.cjs +3 -3
- package/dist/export/worker.d.cts +2 -2
- package/dist/export/worker.d.mts +2 -2
- package/dist/export/worker.d.ts +2 -2
- package/dist/export/worker.mjs +3 -3
- package/dist/export/workflows.cjs +3 -3
- package/dist/export/workflows.mjs +3 -3
- package/dist/shared/{blockchain.BKGlFbOW.mjs → blockchain.8YeEVniE.mjs} +1 -1
- package/dist/shared/{blockchain.DcWSUM60.d.mts → blockchain.Bh6x4dsx.d.ts} +22 -5
- package/dist/shared/{blockchain.wsLSmIaf.mjs → blockchain.ByhE_RaE.mjs} +85 -13
- package/dist/shared/{blockchain.Cjq9eH7Z.cjs → blockchain.C5pjxssf.cjs} +16 -3
- package/dist/shared/{blockchain.JBv4ipVR.cjs → blockchain.CRWCUwHr.cjs} +85 -13
- package/dist/shared/{blockchain.ZJPECySM.cjs → blockchain.CXld_MYP.cjs} +1 -1
- package/dist/shared/{blockchain.Br6esGv4.d.cts → blockchain.CeVkeCGH.d.cts} +22 -5
- package/dist/shared/{blockchain.DUhjXgba.d.cts → blockchain.CyyZn6RX.d.cts} +8 -8
- package/dist/shared/{blockchain.DUhjXgba.d.mts → blockchain.CyyZn6RX.d.mts} +8 -8
- package/dist/shared/{blockchain.DUhjXgba.d.ts → blockchain.CyyZn6RX.d.ts} +8 -8
- package/dist/shared/{blockchain.DurPotrN.d.ts → blockchain.DNPZEckN.d.mts} +22 -5
- package/dist/shared/{blockchain.CKh8Fs7w.mjs → blockchain.c19XIse8.mjs} +15 -4
- package/dist/types.cjs +3 -1
- package/dist/types.d.cts +3 -3
- package/dist/types.d.mts +3 -3
- package/dist/types.d.ts +3 -3
- package/dist/types.mjs +1 -1
- package/package.json +1 -1
package/dist/database/schema.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const database_schema = require('../shared/blockchain.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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';
|
package/dist/database/schema.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { a as address, b as addressCredentials, t as tokens, c as transaction } from '../shared/blockchain.
|
|
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.
|
|
4
|
+
import '../shared/blockchain.c19XIse8.mjs';
|
|
5
5
|
import 'zod';
|
package/dist/export/worker.cjs
CHANGED
|
@@ -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.
|
|
7
|
-
const syncAddress = require('../shared/blockchain.
|
|
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.
|
|
10
|
+
require('../shared/blockchain.CXld_MYP.cjs');
|
|
11
11
|
require('drizzle-orm/sqlite-core');
|
|
12
12
|
require('drizzle-orm');
|
|
13
13
|
require('viem');
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -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.
|
|
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.
|
|
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);
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -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.
|
|
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.
|
|
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);
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
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);
|
package/dist/export/worker.mjs
CHANGED
|
@@ -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.
|
|
3
|
-
import { s as syncAddressInputSchema, d as getTransactionInputSchema, g as getBlockInputSchema } from '../shared/blockchain.
|
|
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.
|
|
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.
|
|
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.
|
|
9
|
+
require('../shared/blockchain.CXld_MYP.cjs');
|
|
10
10
|
require('drizzle-orm/sqlite-core');
|
|
11
|
-
require('../shared/blockchain.
|
|
11
|
+
require('../shared/blockchain.C5pjxssf.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.
|
|
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.
|
|
7
|
+
import '../shared/blockchain.8YeEVniE.mjs';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
|
-
import '../shared/blockchain.
|
|
9
|
+
import '../shared/blockchain.c19XIse8.mjs';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import 'viem';
|
|
12
12
|
import 'viem/accounts';
|
|
@@ -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.
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
|
297
|
+
class SepoliaConnector extends EvmConnector {
|
|
263
298
|
constructor(config) {
|
|
264
299
|
super(config);
|
|
265
|
-
this.connectorKey = "
|
|
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
|
-
|
|
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
|
-
|
|
321
|
-
|
|
322
|
-
|
|
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
|
|
17
|
+
const MAINNET_CHAIN_TYPE = [
|
|
18
18
|
"ARBITRUM",
|
|
19
19
|
"AVALANCHE",
|
|
20
20
|
"BASE",
|
|
21
21
|
"ETHEREUM",
|
|
22
22
|
"GNOSIS",
|
|
23
|
-
"OPTIMISM"
|
|
24
|
-
|
|
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.
|
|
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
|
|
299
|
+
class SepoliaConnector extends EvmConnector {
|
|
265
300
|
constructor(config) {
|
|
266
301
|
super(config);
|
|
267
|
-
this.connectorKey = "
|
|
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
|
-
|
|
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
|
-
|
|
323
|
-
|
|
324
|
-
|
|
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,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.
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
15
|
+
const MAINNET_CHAIN_TYPE = [
|
|
16
16
|
"ARBITRUM",
|
|
17
17
|
"AVALANCHE",
|
|
18
18
|
"BASE",
|
|
19
19
|
"ETHEREUM",
|
|
20
20
|
"GNOSIS",
|
|
21
|
-
"OPTIMISM"
|
|
22
|
-
|
|
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.
|
|
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,7 +1,7 @@
|
|
|
1
|
-
export { C as CHAIN_KEYS, a as CREDENTIALS_TYPES, b as CredentialsType, L as LastSyncMetadata } from './shared/blockchain.
|
|
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.
|
|
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.
|
|
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
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.
|
|
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.
|
|
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.
|
|
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
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.
|
|
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.
|
|
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.
|
|
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
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, c as chainSchema, g as getBlockInputSchema, b as getBlockOutputSchema, d as getTransactionInputSchema, e as getTransactionOutputSchema, s as syncAddressInputSchema, f as syncAddressOutputSchema } from './shared/blockchain.
|
|
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';
|