Socket
Socket
Sign inDemoInstall

@clockwork-xyz/sdk

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clockwork-xyz/sdk - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

2

lib/ClockworkProvider.js

@@ -94,2 +94,4 @@ "use strict";

authority: authority,
payer: authority,
systemProgram: anchor.web3.SystemProgram.programId,
thread: threadPubkey,

@@ -96,0 +98,0 @@ })

2

lib/models/Trigger.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc