@chainlink/cre-sdk 0.0.4-alpha → 0.0.5-alpha

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.
@@ -4,6 +4,7 @@ import { BalanceAtReplySchema, BalanceAtRequestSchema, CallContractReplySchema,
4
4
  import { ReportResponseSchema, } from '../../../../../generated/sdk/v1alpha/sdk_pb';
5
5
  import {} from '../../../../../sdk';
6
6
  import { Report } from '../../../../../sdk/report';
7
+ import { hexToBytes } from '../../../../../sdk/utils/hex-utils';
7
8
  import {} from '../../../../../sdk/utils/triggers/trigger-interface';
8
9
  export function x_generatedCodeOnly_wrap_WriteCreReportRequest(input) {
9
10
  return {
@@ -15,7 +16,7 @@ export function x_generatedCodeOnly_wrap_WriteCreReportRequest(input) {
15
16
  }
16
17
  export function createWriteCreReportRequest(input) {
17
18
  return {
18
- receiver: new Uint8Array(Buffer.from(input.receiver, 'base64')),
19
+ receiver: hexToBytes(input.receiver),
19
20
  report: input.report,
20
21
  gasConfig: input.gasConfig !== undefined ? fromJson(GasConfigSchema, input.gasConfig) : undefined,
21
22
  $report: true,
@@ -3,6 +3,7 @@ import { ReportRequestSchema, ReportResponseSchema, SimpleConsensusInputsSchema,
3
3
  import { ValueSchema } from '../../../../../generated/values/v1/values_pb';
4
4
  import {} from '../../../../../sdk';
5
5
  import { Report } from '../../../../../sdk/report';
6
+ import { hexToBytes } from '../../../../../sdk/utils/hex-utils';
6
7
  /**
7
8
  * Consensus Capability
8
9
  *
@@ -3,6 +3,7 @@ import { AnySchema, anyPack } from '@bufbuild/protobuf/wkt';
3
3
  import { ConfigSchema, PayloadSchema, } from '../../../../../generated/capabilities/networking/http/v1alpha/trigger_pb';
4
4
  import {} from '../../../../../sdk';
5
5
  import { Report } from '../../../../../sdk/report';
6
+ import { hexToBytes } from '../../../../../sdk/utils/hex-utils';
6
7
  import {} from '../../../../../sdk/utils/triggers/trigger-interface';
7
8
  /**
8
9
  * HTTP Capability
@@ -3,6 +3,7 @@ import { AnySchema, anyPack } from '@bufbuild/protobuf/wkt';
3
3
  import { ConfigSchema, LegacyPayloadSchema, PayloadSchema, } from '../../../../../generated/capabilities/scheduler/cron/v1/trigger_pb';
4
4
  import {} from '../../../../../sdk';
5
5
  import { Report } from '../../../../../sdk/report';
6
+ import { hexToBytes } from '../../../../../sdk/utils/hex-utils';
6
7
  import {} from '../../../../../sdk/utils/triggers/trigger-interface';
7
8
  /**
8
9
  * Cron Capability
@@ -5,7 +5,7 @@ import { ClientCapability as EVMClient } from '../../generated-sdk/capabilities/
5
5
  import { ClientCapability as HTTPClient, type SendRequester as HTTPSendRequester } from '../../generated-sdk/capabilities/networking/http/v1alpha/client_sdk_gen';
6
6
  import { HTTPCapability } from '../../generated-sdk/capabilities/networking/http/v1alpha/http_sdk_gen';
7
7
  import { CronCapability } from '../../generated-sdk/capabilities/scheduler/cron/v1/cron_sdk_gen';
8
- export type { Log as EVMLog } from '../../generated/capabilities/blockchain/evm/v1alpha/client_pb';
8
+ export { type Log as EVMLog, TxStatus, } from '../../generated/capabilities/blockchain/evm/v1alpha/client_pb';
9
9
  export type { Payload as HTTPPayload } from '../../generated/capabilities/networking/http/v1alpha/trigger_pb';
10
10
  export type { Payload as CronPayload } from '../../generated/capabilities/scheduler/cron/v1/trigger_pb';
11
11
  export type { NodeRuntime, Runtime } from '../runtime';
@@ -7,6 +7,7 @@ import { HTTPCapability } from '../../generated-sdk/capabilities/networking/http
7
7
  import { CronCapability } from '../../generated-sdk/capabilities/scheduler/cron/v1/cron_sdk_gen';
8
8
  import { prepareRuntime } from '../utils/prepare-runtime';
9
9
  import { handler } from '../workflow';
10
+ export { TxStatus, } from '../../generated/capabilities/blockchain/evm/v1alpha/client_pb';
10
11
  prepareRuntime();
11
12
  export const cre = {
12
13
  capabilities: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainlink/cre-sdk",
3
- "version": "0.0.4-alpha",
3
+ "version": "0.0.5-alpha",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",