Skip to content

Commit

Permalink
Update job specs examples #2
Browse files Browse the repository at this point in the history
  • Loading branch information
krebernisak committed Jan 25, 2022
1 parent acd9b8f commit ee0ff59
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
8 changes: 6 additions & 2 deletions examples/spec/ocr2-bootstrap.spec.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ relay = "solana"
name = "<insert job name here>"
contractID = "<insert solana ocr2 state account>"
isBootstrapPeer = true
p2pPeerID = "<optional, overrides P2P_PEER_ID>"
ocrKeyBundleID = "<optional, overrides OCR2_KEY_BUNDLE_ID (solana)>"
p2pPeerID = "<insert p2p id>" # overrides P2P_PEER_ID
ocrKeyBundleID = "<insert ocr2 key bundle id>" # overrides OCR2_KEY_BUNDLE_ID (solana)
transmitterID = "<insert solana transmitter key id>"

[relayConfig]
nodeEndpointHTTP = "http:..."
ocr2ProgramID = "<insert solana ocr2 program ID>"
transmissionsID = "<insert solana ocr2 transmissions account>"
storeProgramID = "<insert solana ocr2 store account>"
commitment = "confirmed" # optional, defaults to "confirmed"
pollingInterval = "1s" # optional, defaults to "1s"
pollingCtxTimeout = "2s" # optional, defaults to `2x ${pollingInterval}`
staleTimeout = "1m" # optional, defaults to "1m"
16 changes: 8 additions & 8 deletions examples/spec/ocr2-oracle-simple.spec.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ relay = "solana"
name = "<insert job name here>"
contractID = "<insert solana ocr2 state account>"
isBootstrapPeer = false
p2pBootstrapPeers = ["<optional, overrides P2PV2_BOOTSTRAPPERS>"]
p2pPeerID = "<optional, overrides P2P_PEER_ID>"
ocrKeyBundleID = "<optional, overrides OCR2_KEY_BUNDLE_ID (solana)>"
p2pBootstrapPeers = ["somep2pkey@localhost-tcp:port"] # overrides P2PV2_BOOTSTRAPPERS
p2pPeerID = "<insert p2p id>" # overrides P2P_PEER_ID
ocrKeyBundleID = "<insert ocr2 key bundle id>" # overrides OCR2_KEY_BUNDLE_ID (solana)
transmitterID = "<insert solana transmitter key id>"
observationSource = """
// data source 1
Expand Down Expand Up @@ -39,8 +39,8 @@ nodeEndpointHTTP = "http:..."
ocr2ProgramID = "<insert solana ocr2 program ID>"
transmissionsID = "<insert solana ocr2 transmissions account>"
storeProgramID = "<insert solana ocr2 store account>"
usePreflight = false
commitment = "confirmed"
pollingInterval = "1s"
pollingCtxTimeout = "2s"
staleTimeout = "1m"
usePreflight = false # optional, defaults to false
commitment = "confirmed" # optional, defaults to "confirmed"
pollingInterval = "1s" # optional, defaults to "1s"
pollingCtxTimeout = "2s" # optional, defaults to `2x ${pollingInterval}`
staleTimeout = "1m" # optional, defaults to "1m"
16 changes: 8 additions & 8 deletions examples/spec/ocr2-oracle.spec.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ relay = "solana"
name = "<insert job name here>"
contractID = "<insert solana ocr2 state account>"
isBootstrapPeer = false
p2pBootstrapPeers = ["<optional, overrides P2PV2_BOOTSTRAPPERS>"]
p2pPeerID = "<optional, overrides P2P_PEER_ID>"
ocrKeyBundleID = "<optional, overrides OCR2_KEY_BUNDLE_ID (solana)>"
p2pBootstrapPeers = ["somep2pkey@localhost-tcp:port"] # overrides P2PV2_BOOTSTRAPPERS
p2pPeerID = "<insert p2p id>" # overrides P2P_PEER_ID
ocrKeyBundleID = "<insert ocr2 key bundle id>" # overrides OCR2_KEY_BUNDLE_ID (solana)
transmitterID = "<insert solana transmitter key id>"
observationSource = """
// data source 1
Expand Down Expand Up @@ -73,8 +73,8 @@ nodeEndpointHTTP = "http:..."
ocr2ProgramID = "<insert solana ocr2 program ID>"
transmissionsID = "<insert solana ocr2 transmissions account>"
storeProgramID = "<insert solana ocr2 store account>"
usePreflight = false
commitment = "confirmed"
pollingInterval = "1s"
pollingCtxTimeout = "2s"
staleTimeout = "1m"
usePreflight = false # optional, defaults to false
commitment = "confirmed" # optional, defaults to "confirmed"
pollingInterval = "1s" # optional, defaults to "1s"
pollingCtxTimeout = "2s" # optional, defaults to `2x ${pollingInterval}`
staleTimeout = "1m" # optional, defaults to "1m"

0 comments on commit ee0ff59

Please sign in to comment.