@reflectmoney/oracle.ts 2.2.0 → 2.2.2

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 (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +1 -2
package/dist/index.js CHANGED
@@ -29,6 +29,7 @@ const COMPUTE_BUDGET_UNIT_LIMIT_SIZE = 5;
29
29
  const COMPUTE_BUDGET_DATA_LIMIT_SIZE = 5;
30
30
  const COMPUTE_BUDGET_PROGRAM_SIZE = 22;
31
31
  const ORACLE_PROGRAM_SIZE = 36;
32
+ const READ_CLOCK_CU = 11;
32
33
  /**
33
34
  * Built-in serializer for [u8; 8] payloads (used for price feeds)
34
35
  * The payload is simply 8 bytes representing data in little-endian format
@@ -94,7 +95,7 @@ class TransactionBuilder {
94
95
  ADMIN_VERIFICATION_CU +
95
96
  PAYLOAD_WRITE_CU +
96
97
  Math.floor(oracleSize / 4) +
97
- 500;
98
+ READ_CLOCK_CU;
98
99
  this.loadedAccountDataSize += oracleSize * 2;
99
100
  this.oracleUpdateInstructions.push(instruction);
100
101
  return this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reflectmoney/oracle.ts",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "type": "commonjs",
5
5
  "author": "L0STE, stablecoinjesus @ Palindrome Engineering",
6
6
  "repository": {
@@ -8,7 +8,6 @@
8
8
  "url": "https://github.com/palindrome-eng/doppler.git"
9
9
  },
10
10
  "scripts": {
11
- "cli": "tsx src/cli.ts",
12
11
  "build": "tsc"
13
12
  },
14
13
  "dependencies": {