@clockwork-xyz/sdk
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -94,2 +94,4 @@ "use strict"; | ||
authority: authority, | ||
payer: authority, | ||
systemProgram: anchor.web3.SystemProgram.programId, | ||
thread: threadPubkey, | ||
@@ -96,0 +98,0 @@ }) |
@@ -35,3 +35,3 @@ import { BN } from "@coral-xyz/anchor"; | ||
}; | ||
type Trigger = Account | Cron | Now | Slot | Epoch; | ||
type Trigger = Account | Cron | Now | Slot | Epoch | Timestamp | Pyth; | ||
type TriggerInput = { | ||
@@ -38,0 +38,0 @@ account: Account; |
@@ -15,3 +15,9 @@ import { BN } from "@coral-xyz/anchor"; | ||
}; | ||
type TriggerContext = AccountTriggerContext | CronTriggerContext | NowTriggerContext | SlotTriggerContext | EpochTriggerContext; | ||
type TimestampTriggerContext = { | ||
startedAt: BN; | ||
}; | ||
type PythTriggerContext = { | ||
price: BN; | ||
}; | ||
type TriggerContext = AccountTriggerContext | CronTriggerContext | NowTriggerContext | SlotTriggerContext | EpochTriggerContext | TimestampTriggerContext | PythTriggerContext; | ||
export default TriggerContext; |
@@ -519,3 +519,3 @@ { | ||
"name": "price_feed", | ||
"docs": ["Price feed"], | ||
"docs": ["The address of the price feed to monitor."], | ||
"type": "publicKey" | ||
@@ -525,3 +525,3 @@ }, | ||
"name": "equality", | ||
"docs": ["Equality"], | ||
"docs": ["The equality operator (gte or lte) used to compare prices."], | ||
"type": { | ||
@@ -533,3 +533,3 @@ "defined": "Equality" | ||
"name": "limit", | ||
"docs": ["Limit"], | ||
"docs": ["The limit price to compare the Pyth feed to."], | ||
"type": "i64" | ||
@@ -536,0 +536,0 @@ } |
@@ -519,3 +519,3 @@ export type ThreadProgram = { | ||
name: "price_feed"; | ||
docs: ["Price feed"]; | ||
docs: ["The address of the price feed to monitor."]; | ||
type: "publicKey"; | ||
@@ -525,3 +525,3 @@ }, | ||
name: "equality"; | ||
docs: ["Equality"]; | ||
docs: ["The equality operator (gte or lte) used to compare prices."]; | ||
type: { | ||
@@ -533,3 +533,3 @@ defined: "Equality"; | ||
name: "limit"; | ||
docs: ["Limit"]; | ||
docs: ["The limit price to compare the Pyth feed to."]; | ||
type: "i64"; | ||
@@ -536,0 +536,0 @@ } |
@@ -522,3 +522,3 @@ "use strict"; | ||
name: "price_feed", | ||
docs: ["Price feed"], | ||
docs: ["The address of the price feed to monitor."], | ||
type: "publicKey", | ||
@@ -528,3 +528,3 @@ }, | ||
name: "equality", | ||
docs: ["Equality"], | ||
docs: ["The equality operator (gte or lte) used to compare prices."], | ||
type: { defined: "Equality" } | ||
@@ -534,3 +534,3 @@ }, | ||
name: "limit", | ||
docs: ["Limit"], | ||
docs: ["The limit price to compare the Pyth feed to."], | ||
type: "i64", | ||
@@ -537,0 +537,0 @@ }, |
{ | ||
"name": "@clockwork-xyz/sdk", | ||
"author": "Clockwork", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "Clockwork Typescript SDK", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
117212
3191