This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "tasks": [ | |
| { | |
| "comparisonTask": { | |
| "op": "OPERATION_GT", | |
| "lhs": { | |
| "tasks": [ | |
| { | |
| "valueTask": { | |
| "big": "100" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "tasks": [ | |
| { | |
| "cacheTask": { | |
| "cacheItems": [ | |
| { | |
| "variableName": "JOB_OUTPUT", | |
| "job": { | |
| "tasks": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [pod/solana-permissioned-oracle-idx-1-855dbbbcf5-dz426/solana-oracle] (node:1) UnhandledPromiseRejectionWarning: FetchError: request to https://switchboard-devnet-test.rpcpool.com:7899/f6fb9f02-0777-498b-b8f5-67cbb1fc0d14 failed, reason: socket hang up | |
| [pod/solana-permissioned-oracle-idx-1-855dbbbcf5-dz426/solana-oracle] at ClientRequest.<anonymous> (/home/node_modules/@solana/web3.js/node_modules/node-fetch/lib/index.js:1491:11) | |
| [pod/solana-permissioned-oracle-idx-1-855dbbbcf5-dz426/solana-oracle] at ClientRequest.emit (node:events:513:28) | |
| [pod/solana-permissioned-oracle-idx-1-855dbbbcf5-dz426/solana-oracle] at TLSSocket.socketOnEnd (node:_http_client:512:9) | |
| [pod/solana-permissioned-oracle-idx-1-855dbbbcf5-dz426/solana-oracle] at TLSSocket.emit (node:events:525:35) | |
| [pod/solana-permissioned-oracle-idx-1-855dbbbcf5-dz426/solana-oracle] at endReadableNT (node:internal/streams/readable:1359:12) | |
| [pod/solana-permissioned-oracle-idx-1-855dbbbcf5-dz426/solana-oracle] at process.processTicksAn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [pod/solana-permissionless-oracle-idx-2-57857f5f64-2jtb4/solana-oracle] (node:1) UnhandledPromiseRejectionWarning: FetchError: request to https://switchbo-switchbo-6225.devnet.rpcpool.com/f6fb9f02-0777-498b-b8f5-67cbb1fc0d14 failed, reason: socket hang up | |
| [pod/solana-permissionless-oracle-idx-2-57857f5f64-2jtb4/solana-oracle] at ClientRequest.<anonymous> (/home/node_modules/node-fetch/lib/index.js:1491:11) | |
| [pod/solana-permissionless-oracle-idx-2-57857f5f64-2jtb4/solana-oracle] at ClientRequest.emit (node:events:513:28) | |
| [pod/solana-permissionless-oracle-idx-2-57857f5f64-2jtb4/solana-oracle] at TLSSocket.socketOnEnd (node:_http_client:518:9) | |
| [pod/solana-permissionless-oracle-idx-2-57857f5f64-2jtb4/solana-oracle] at TLSSocket.emit (node:events:525:35) | |
| [pod/solana-permissionless-oracle-idx-2-57857f5f64-2jtb4/solana-oracle] at endReadableNT (node:internal/streams/readable:1358:12) | |
| [pod/solana-permissionless-oracle-idx-2-57857f5f64-2jtb4/solana-oracle] at processTicksAndRejections (node:inte |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| Connection, | |
| ConfirmOptions, | |
| PublicKey, | |
| Keypair, | |
| } from "@solana/web3.js"; | |
| import { OracleJob } from "@switchboard-xyz/common"; | |
| import * as bs58 from "bs58"; | |
| const { createHash } = require("crypto"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const aggregatorAccount = new sbv2.AggregatorAccount({ | |
| program, | |
| publicKey: pubkey, | |
| }); | |
| const queueAccount = new sbv2.OracleQueueAccount({ | |
| program, | |
| publicKey: new PublicKey( | |
| "3HBb2DQqDfuMdzWxNk1Eo9RTMkFYmuEAd32RiLKn9pAn" | |
| ), | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let to = aggregatorAccount.setQueueInstruction(walletKeypair.publicKey, { | |
| queueAccount, | |
| authority: walletKeypair, | |
| }); | |
| to.combine( | |
| await crankAccount.pushInstruction(walletKeypair.publicKey, { | |
| aggregatorAccount, | |
| }) | |
| ); | |
| const transaction = to.toTxn({ blockhash, lastValidBlockHeight }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as spl from "@solana/spl-token"; | |
| import { | |
| Connection, | |
| ConfirmOptions, | |
| PublicKey, | |
| Keypair, | |
| Transaction, | |
| } from "@solana/web3.js"; | |
| var resolve = require("resolve-dir"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as spl from "@solana/spl-token"; | |
| import { | |
| Connection, | |
| ConfirmOptions, | |
| PublicKey, | |
| Keypair, | |
| Transaction, | |
| } from "@solana/web3.js"; | |
| var resolve = require("resolve-dir"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Error: write EFAULT | |
| at afterWriteDispatched (node:internal/stream_base_commons:164:15) | |
| at writeGeneric (node:internal/stream_base_commons:155:3) | |
| at Socket._writeGeneric (node:net:795:11) | |
| at Socket._write (node:net:807:8) | |
| at writeOrBuffer (node:internal/streams/writable:389:12) | |
| at _write (node:internal/streams/writable:330:10) | |
| at Socket.Writable.write (node:internal/streams/writable:334:10) | |
| at execSync (node:child_process:898:20) | |
| at dGe (/home/node/sbv2-oracle/dist/index.js:496:2033) |