@develit-services/blockchain 0.8.4 → 0.10.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/export/workflows.cjs +3 -3
- package/dist/export/workflows.d.cts +2 -2
- package/dist/export/workflows.d.mts +2 -2
- package/dist/export/workflows.d.ts +2 -2
- package/dist/export/workflows.mjs +3 -3
- package/dist/export/wrangler.cjs +3 -1
- package/dist/export/wrangler.d.cts +4 -1
- package/dist/export/wrangler.d.mts +4 -1
- package/dist/export/wrangler.d.ts +4 -1
- package/dist/export/wrangler.mjs +3 -1
- package/dist/shared/{blockchain.C1Jdisxn.d.cts → blockchain.CVKUvfyj.d.cts} +3 -0
- package/dist/shared/{blockchain.C1Jdisxn.d.mts → blockchain.CVKUvfyj.d.mts} +3 -0
- package/dist/shared/{blockchain.C1Jdisxn.d.ts → blockchain.CVKUvfyj.d.ts} +3 -0
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -64,12 +64,12 @@ function pushToQueue(queue, message) {
|
|
|
64
64
|
}))
|
|
65
65
|
);
|
|
66
66
|
}
|
|
67
|
-
class
|
|
67
|
+
class BlockchainSyncAddressTxs extends cloudflare_workers.WorkflowEntrypoint {
|
|
68
68
|
async run(event, step) {
|
|
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(`
|
|
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();
|
|
@@ -200,4 +200,4 @@ class BlockchainSyncAddressTransactions extends cloudflare_workers.WorkflowEntry
|
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
exports.
|
|
203
|
+
exports.BlockchainSyncAddressTxs = BlockchainSyncAddressTxs;
|
|
@@ -3,8 +3,8 @@ import { WorkflowEntrypoint, WorkflowEvent, WorkflowStep } from 'cloudflare:work
|
|
|
3
3
|
type Params = {
|
|
4
4
|
addressId: string;
|
|
5
5
|
};
|
|
6
|
-
declare class
|
|
6
|
+
declare class BlockchainSyncAddressTxs extends WorkflowEntrypoint<BlockchainEnv, Params> {
|
|
7
7
|
run(event: WorkflowEvent<Params>, step: WorkflowStep): Promise<void>;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export {
|
|
10
|
+
export { BlockchainSyncAddressTxs };
|
|
@@ -3,8 +3,8 @@ import { WorkflowEntrypoint, WorkflowEvent, WorkflowStep } from 'cloudflare:work
|
|
|
3
3
|
type Params = {
|
|
4
4
|
addressId: string;
|
|
5
5
|
};
|
|
6
|
-
declare class
|
|
6
|
+
declare class BlockchainSyncAddressTxs extends WorkflowEntrypoint<BlockchainEnv, Params> {
|
|
7
7
|
run(event: WorkflowEvent<Params>, step: WorkflowStep): Promise<void>;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export {
|
|
10
|
+
export { BlockchainSyncAddressTxs };
|
|
@@ -3,8 +3,8 @@ import { WorkflowEntrypoint, WorkflowEvent, WorkflowStep } from 'cloudflare:work
|
|
|
3
3
|
type Params = {
|
|
4
4
|
addressId: string;
|
|
5
5
|
};
|
|
6
|
-
declare class
|
|
6
|
+
declare class BlockchainSyncAddressTxs extends WorkflowEntrypoint<BlockchainEnv, Params> {
|
|
7
7
|
run(event: WorkflowEvent<Params>, step: WorkflowStep): Promise<void>;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export {
|
|
10
|
+
export { BlockchainSyncAddressTxs };
|
|
@@ -62,12 +62,12 @@ function pushToQueue(queue, message) {
|
|
|
62
62
|
}))
|
|
63
63
|
);
|
|
64
64
|
}
|
|
65
|
-
class
|
|
65
|
+
class BlockchainSyncAddressTxs extends WorkflowEntrypoint {
|
|
66
66
|
async run(event, step) {
|
|
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(`
|
|
70
|
+
throw new NonRetryableError(`Have not obtained addressId to load.`);
|
|
71
71
|
}
|
|
72
72
|
while (true) {
|
|
73
73
|
const now = /* @__PURE__ */ new Date();
|
|
@@ -198,4 +198,4 @@ class BlockchainSyncAddressTransactions extends WorkflowEntrypoint {
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
export {
|
|
201
|
+
export { BlockchainSyncAddressTxs };
|
package/dist/export/wrangler.cjs
CHANGED
|
@@ -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",
|
|
@@ -27,7 +28,7 @@ function defineBlockchainServiceWrangler(config) {
|
|
|
27
28
|
{
|
|
28
29
|
binding: "SYNC_ADDRESS_TRANSACTIONS_WORKFLOW",
|
|
29
30
|
name: `${project}-blockchain-sync-address-transactions`,
|
|
30
|
-
class_name: "
|
|
31
|
+
class_name: "BlockchainSyncAddressTxs"
|
|
31
32
|
}
|
|
32
33
|
],
|
|
33
34
|
queues: {
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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;
|
package/dist/export/wrangler.mjs
CHANGED
|
@@ -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",
|
|
@@ -25,7 +26,7 @@ function defineBlockchainServiceWrangler(config) {
|
|
|
25
26
|
{
|
|
26
27
|
binding: "SYNC_ADDRESS_TRANSACTIONS_WORKFLOW",
|
|
27
28
|
name: `${project}-blockchain-sync-address-transactions`,
|
|
28
|
-
class_name: "
|
|
29
|
+
class_name: "BlockchainSyncAddressTxs"
|
|
29
30
|
}
|
|
30
31
|
],
|
|
31
32
|
queues: {
|
|
@@ -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",
|
package/dist/types.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import { BaseEvent } from '@develit-io/backend-sdk';
|
|
|
3
3
|
import { t as tables } from './shared/blockchain.Br6esGv4.cjs';
|
|
4
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';
|
|
5
5
|
import { InferInsertModel, InferSelectModel } from 'drizzle-orm';
|
|
6
|
-
export { a as BlockchainServiceEnv, b as BlockchainServiceEnvironmentConfig, B as BlockchainServiceWranglerConfig } from './shared/blockchain.
|
|
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
|
@@ -3,7 +3,7 @@ import { BaseEvent } from '@develit-io/backend-sdk';
|
|
|
3
3
|
import { t as tables } from './shared/blockchain.DcWSUM60.mjs';
|
|
4
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';
|
|
5
5
|
import { InferInsertModel, InferSelectModel } from 'drizzle-orm';
|
|
6
|
-
export { a as BlockchainServiceEnv, b as BlockchainServiceEnvironmentConfig, B as BlockchainServiceWranglerConfig } from './shared/blockchain.
|
|
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
|
@@ -3,7 +3,7 @@ import { BaseEvent } from '@develit-io/backend-sdk';
|
|
|
3
3
|
import { t as tables } from './shared/blockchain.DurPotrN.js';
|
|
4
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';
|
|
5
5
|
import { InferInsertModel, InferSelectModel } from 'drizzle-orm';
|
|
6
|
-
export { a as BlockchainServiceEnv, b as BlockchainServiceEnvironmentConfig, B as BlockchainServiceWranglerConfig } from './shared/blockchain.
|
|
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
|
|