@develit-services/blockchain 0.8.5 → 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.
@@ -69,7 +69,7 @@ class BlockchainSyncAddressTxs extends cloudflare_workers.WorkflowEntrypoint {
69
69
  const { addressId } = event.payload;
70
70
  const db = d1.drizzle(this.env.BLOCKCHAIN_D1, { schema: blockchain.tables });
71
71
  if (!addressId) {
72
- throw new cloudflare_workflows.NonRetryableError(`Haven't obtained addressId to load.`);
72
+ throw new cloudflare_workflows.NonRetryableError(`Have not obtained addressId to load.`);
73
73
  }
74
74
  while (true) {
75
75
  const now = /* @__PURE__ */ new Date();
@@ -67,7 +67,7 @@ class BlockchainSyncAddressTxs extends WorkflowEntrypoint {
67
67
  const { addressId } = event.payload;
68
68
  const db = drizzle(this.env.BLOCKCHAIN_D1, { schema: tables });
69
69
  if (!addressId) {
70
- throw new NonRetryableError(`Haven't obtained addressId to load.`);
70
+ throw new NonRetryableError(`Have not obtained addressId to load.`);
71
71
  }
72
72
  while (true) {
73
73
  const now = /* @__PURE__ */ new Date();
@@ -15,6 +15,7 @@ function defineBlockchainServiceWrangler(config) {
15
15
  service: `${project}-secrets-store`
16
16
  }
17
17
  ],
18
+ triggers: envs.local.triggers,
18
19
  d1_databases: [
19
20
  {
20
21
  binding: "BLOCKCHAIN_D1",
@@ -47,6 +48,7 @@ function defineBlockchainServiceWrangler(config) {
47
48
  vars: {
48
49
  ENVIRONMENT: envName
49
50
  },
51
+ triggers: envs.local.triggers,
50
52
  d1_databases: [
51
53
  {
52
54
  binding: "BLOCKCHAIN_D1",
@@ -1,10 +1,13 @@
1
- import { B as BlockchainServiceWranglerConfig } from '../shared/blockchain.C1Jdisxn.cjs';
1
+ import { B as BlockchainServiceWranglerConfig } from '../shared/blockchain.CVKUvfyj.cjs';
2
2
 
3
3
  declare function defineBlockchainServiceWrangler(config: BlockchainServiceWranglerConfig): {
4
4
  services: {
5
5
  binding: string;
6
6
  service: string;
7
7
  }[];
8
+ triggers: {
9
+ crons: string[];
10
+ };
8
11
  d1_databases: {
9
12
  binding: string;
10
13
  database_name: string;
@@ -1,10 +1,13 @@
1
- import { B as BlockchainServiceWranglerConfig } from '../shared/blockchain.C1Jdisxn.mjs';
1
+ import { B as BlockchainServiceWranglerConfig } from '../shared/blockchain.CVKUvfyj.mjs';
2
2
 
3
3
  declare function defineBlockchainServiceWrangler(config: BlockchainServiceWranglerConfig): {
4
4
  services: {
5
5
  binding: string;
6
6
  service: string;
7
7
  }[];
8
+ triggers: {
9
+ crons: string[];
10
+ };
8
11
  d1_databases: {
9
12
  binding: string;
10
13
  database_name: string;
@@ -1,10 +1,13 @@
1
- import { B as BlockchainServiceWranglerConfig } from '../shared/blockchain.C1Jdisxn.js';
1
+ import { B as BlockchainServiceWranglerConfig } from '../shared/blockchain.CVKUvfyj.js';
2
2
 
3
3
  declare function defineBlockchainServiceWrangler(config: BlockchainServiceWranglerConfig): {
4
4
  services: {
5
5
  binding: string;
6
6
  service: string;
7
7
  }[];
8
+ triggers: {
9
+ crons: string[];
10
+ };
8
11
  d1_databases: {
9
12
  binding: string;
10
13
  database_name: string;
@@ -13,6 +13,7 @@ function defineBlockchainServiceWrangler(config) {
13
13
  service: `${project}-secrets-store`
14
14
  }
15
15
  ],
16
+ triggers: envs.local.triggers,
16
17
  d1_databases: [
17
18
  {
18
19
  binding: "BLOCKCHAIN_D1",
@@ -45,6 +46,7 @@ function defineBlockchainServiceWrangler(config) {
45
46
  vars: {
46
47
  ENVIRONMENT: envName
47
48
  },
49
+ triggers: envs.local.triggers,
48
50
  d1_databases: [
49
51
  {
50
52
  binding: "BLOCKCHAIN_D1",
@@ -2,6 +2,9 @@ interface BlockchainServiceEnvironmentConfig {
2
2
  d1: {
3
3
  id: string;
4
4
  };
5
+ triggers: {
6
+ crons: string[];
7
+ };
5
8
  queues: {
6
9
  producers: {
7
10
  bus: {
@@ -2,6 +2,9 @@ interface BlockchainServiceEnvironmentConfig {
2
2
  d1: {
3
3
  id: string;
4
4
  };
5
+ triggers: {
6
+ crons: string[];
7
+ };
5
8
  queues: {
6
9
  producers: {
7
10
  bus: {
@@ -2,6 +2,9 @@ interface BlockchainServiceEnvironmentConfig {
2
2
  d1: {
3
3
  id: string;
4
4
  };
5
+ triggers: {
6
+ crons: string[];
7
+ };
5
8
  queues: {
6
9
  producers: {
7
10
  bus: {
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.C1Jdisxn.cjs';
6
+ export { a as BlockchainServiceEnv, b as BlockchainServiceEnvironmentConfig, B as BlockchainServiceWranglerConfig } from './shared/blockchain.CVKUvfyj.cjs';
7
7
  import 'drizzle-orm/sqlite-core';
8
8
  import 'zod';
9
9
 
package/dist/types.d.mts CHANGED
@@ -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.C1Jdisxn.mjs';
6
+ export { a as BlockchainServiceEnv, b as BlockchainServiceEnvironmentConfig, B as BlockchainServiceWranglerConfig } from './shared/blockchain.CVKUvfyj.mjs';
7
7
  import 'drizzle-orm/sqlite-core';
8
8
  import 'zod';
9
9
 
package/dist/types.d.ts CHANGED
@@ -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.C1Jdisxn.js';
6
+ export { a as BlockchainServiceEnv, b as BlockchainServiceEnvironmentConfig, B as BlockchainServiceWranglerConfig } from './shared/blockchain.CVKUvfyj.js';
7
7
  import 'drizzle-orm/sqlite-core';
8
8
  import 'zod';
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/blockchain",
3
- "version": "0.8.5",
3
+ "version": "0.10.0",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {