@drift-labs/sdk 2.42.0-beta.2 → 2.42.0-beta.4
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.
- package/VERSION +1 -1
- package/lib/types.d.ts +6 -0
- package/lib/types.js +2 -0
- package/package.json +1 -1
- package/src/types.ts +2 -0
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.42.0-beta.
|
|
1
|
+
2.42.0-beta.4
|
package/lib/types.d.ts
CHANGED
|
@@ -316,6 +316,12 @@ export declare class StakeAction {
|
|
|
316
316
|
static readonly UNSTAKE: {
|
|
317
317
|
unstake: {};
|
|
318
318
|
};
|
|
319
|
+
static readonly UNSTAKE_TRANSFER: {
|
|
320
|
+
UnstakeTransfer: {};
|
|
321
|
+
};
|
|
322
|
+
static readonly STAKE_TRANSFER: {
|
|
323
|
+
StakeTransfer: {};
|
|
324
|
+
};
|
|
319
325
|
}
|
|
320
326
|
export declare function isVariant(object: unknown, type: string): boolean;
|
|
321
327
|
export declare function isOneOfVariant(object: unknown, types: string[]): boolean;
|
package/lib/types.js
CHANGED
|
@@ -201,6 +201,8 @@ StakeAction.STAKE = { stake: {} };
|
|
|
201
201
|
StakeAction.UNSTAKE_REQUEST = { unstakeRequest: {} };
|
|
202
202
|
StakeAction.UNSTAKE_CANCEL_REQUEST = { unstakeCancelRequest: {} };
|
|
203
203
|
StakeAction.UNSTAKE = { unstake: {} };
|
|
204
|
+
StakeAction.UNSTAKE_TRANSFER = { UnstakeTransfer: {} };
|
|
205
|
+
StakeAction.STAKE_TRANSFER = { StakeTransfer: {} };
|
|
204
206
|
function isVariant(object, type) {
|
|
205
207
|
return object.hasOwnProperty(type);
|
|
206
208
|
}
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -200,6 +200,8 @@ export class StakeAction {
|
|
|
200
200
|
static readonly UNSTAKE_REQUEST = { unstakeRequest: {} };
|
|
201
201
|
static readonly UNSTAKE_CANCEL_REQUEST = { unstakeCancelRequest: {} };
|
|
202
202
|
static readonly UNSTAKE = { unstake: {} };
|
|
203
|
+
static readonly UNSTAKE_TRANSFER = { UnstakeTransfer: {} };
|
|
204
|
+
static readonly STAKE_TRANSFER = { StakeTransfer: {} };
|
|
203
205
|
}
|
|
204
206
|
|
|
205
207
|
export function isVariant(object: unknown, type: string) {
|