Socket
Socket
Sign inDemoInstall

@bitgo/public-types

Package Overview
Dependencies
Maintainers
15
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitgo/public-types - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

2

dist/src/index.d.ts

@@ -1,2 +0,2 @@

export * from './schema';
export * from "./schema";
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,3 @@

export * from './transactions';
export * from './webhook';
export * from "./transactions";
export * from "./webhook";
//# sourceMappingURL=index.d.ts.map

@@ -1,2 +0,2 @@

import * as t from 'io-ts';
import * as t from "io-ts";
export declare const TransactionRequestState: t.KeyofC<{

@@ -3,0 +3,0 @@ pendingApproval: number;

@@ -42,3 +42,3 @@ "use strict";

failed: 1,
}, 'TransactionRequestState');
}, "TransactionRequestState");
//# sourceMappingURL=transactionRequestState.js.map

@@ -1,2 +0,2 @@

import * as t from 'io-ts';
import * as t from "io-ts";
export declare const TransactionState: t.KeyofC<{

@@ -3,0 +3,0 @@ initialized: number;

@@ -40,3 +40,3 @@ "use strict";

rejected: 1,
}, 'TransactionState');
}, "TransactionState");
//# sourceMappingURL=transactionState.js.map

@@ -1,2 +0,2 @@

import * as t from 'io-ts';
import * as t from "io-ts";
export declare const CoinSpecificBuildParams: {

@@ -3,0 +3,0 @@ avaxp: {

@@ -1,2 +0,2 @@

export * from './sendTransactions';
export * from "./sendTransactions";
//# sourceMappingURL=index.d.ts.map

@@ -1,2 +0,2 @@

import * as t from 'io-ts';
import * as t from "io-ts";
declare const recipient: t.PartialC<{

@@ -260,2 +260,3 @@ address: t.StringC;

isReplaceableByFee: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
rbfTxIds: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
};

@@ -450,2 +451,3 @@ export declare const TxSendBody: t.ExactC<t.IntersectionC<[t.PartialC<{

isReplaceableByFee: t.UnionC<[t.Type<boolean, boolean, unknown>, t.UndefinedC]>;
rbfTxIds: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;
}>, t.PartialC<{

@@ -452,0 +454,0 @@ locktime: t.UnionC<[t.Type<number, number, unknown>, t.UndefinedC]>;

@@ -73,10 +73,10 @@ "use strict";

amount: utils_1.optionalStringOrNumber,
unit: (0, utils_1.Optional)(t.union([t.literal('baseUnit'), t.literal('cpu'), t.literal('ram')])),
unit: (0, utils_1.Optional)(t.union([t.literal("baseUnit"), t.literal("cpu"), t.literal("ram")])),
formula: (0, utils_1.Optional)(t.union([
t.literal('fixed'),
t.literal('feeRate'),
t.literal('perKB'),
t.literal('custom'),
t.literal("fixed"),
t.literal("feeRate"),
t.literal("perKB"),
t.literal("custom"),
])),
type: (0, utils_1.Optional)(t.union([t.literal('base'), t.literal('max'), t.literal('tip')])),
type: (0, utils_1.Optional)(t.union([t.literal("base"), t.literal("max"), t.literal("tip")])),
};

@@ -179,5 +179,6 @@ exports.txSendBody = {

isReplaceableByFee: utils_1.optionalBoolean,
rbfTxIds: (0, utils_1.Optional)(t.array(t.string)),
};
exports.TxSendBody = t.exact(t.intersection([
t.partial(exports.txSendBody, 'TxSendBody'),
t.partial(exports.txSendBody, "TxSendBody"),
t.partial(coinSpecific_1.CoinSpecificBuildParams.avaxp),

@@ -184,0 +185,0 @@ t.partial(coinSpecific_1.CoinSpecificBuildParams.dot),

@@ -1,2 +0,2 @@

import * as t from 'io-ts';
import * as t from "io-ts";
export declare const AddWalletWebhookRequestBody: {

@@ -3,0 +3,0 @@ type: t.KeyofC<typeof import("./webhookType").WalletWebhookTypeEnum>;

@@ -1,5 +0,5 @@

export * from './addWalletWebhookRequest';
export * from './webhook';
export * from './webhookState';
export * from './webhookType';
export * from "./addWalletWebhookRequest";
export * from "./webhook";
export * from "./webhookState";
export * from "./webhookType";
//# sourceMappingURL=index.d.ts.map

@@ -1,2 +0,2 @@

import * as t from 'io-ts';
import * as t from "io-ts";
export declare const Webhook: t.IntersectionC<[t.TypeC<{

@@ -3,0 +3,0 @@ id: t.StringC;

@@ -1,5 +0,5 @@

import * as t from 'io-ts';
import * as t from "io-ts";
export declare enum WebhookStateEnum {
'active' = "active",
'suspended' = "suspended"
"active" = "active",
"suspended" = "suspended"
}

@@ -6,0 +6,0 @@ export declare const WebhookState: t.KeyofC<typeof WebhookStateEnum>;

@@ -33,3 +33,3 @@ "use strict";

})(WebhookStateEnum || (exports.WebhookStateEnum = WebhookStateEnum = {}));
exports.WebhookState = t.keyof(WebhookStateEnum, 'WebhookState');
exports.WebhookState = t.keyof(WebhookStateEnum, "WebhookState");
//# sourceMappingURL=webhookState.js.map

@@ -1,15 +0,15 @@

import * as t from 'io-ts';
import * as t from "io-ts";
export declare enum WebhookTypeEnum {
'txRequest' = "txRequest",
'txRequestTransaction' = "txRequestTransaction",
'transfer' = "transfer",
'transaction' = "transaction",
'transactionRemoved' = "transactionRemoved",
'transactionExpire' = "transactionExpire",
'pendingapproval' = "pendingapproval",
'block' = "block",
'admin' = "admin",
'address_confirmation' = "address_confirmation",
'lowFee' = "lowFee",
'wallet_confirmation' = "wallet_confirmation"
"txRequest" = "txRequest",
"txRequestTransaction" = "txRequestTransaction",
"transfer" = "transfer",
"transaction" = "transaction",
"transactionRemoved" = "transactionRemoved",
"transactionExpire" = "transactionExpire",
"pendingapproval" = "pendingapproval",
"block" = "block",
"admin" = "admin",
"address_confirmation" = "address_confirmation",
"lowFee" = "lowFee",
"wallet_confirmation" = "wallet_confirmation"
}

@@ -19,13 +19,13 @@ export declare const WebhookType: t.KeyofC<typeof WebhookTypeEnum>;

export declare enum WalletWebhookTypeEnum {
'txRequest' = "txRequest",
'txRequestTransaction' = "txRequestTransaction",
'transfer' = "transfer",
'transaction' = "transaction",
'transactionRemoved' = "transactionRemoved",
'transactionExpire' = "transactionExpire",
'pendingapproval' = "pendingapproval",
'block' = "block",
'admin' = "admin",
'address_confirmation' = "address_confirmation",
'lowFee' = "lowFee"
"txRequest" = "txRequest",
"txRequestTransaction" = "txRequestTransaction",
"transfer" = "transfer",
"transaction" = "transaction",
"transactionRemoved" = "transactionRemoved",
"transactionExpire" = "transactionExpire",
"pendingapproval" = "pendingapproval",
"block" = "block",
"admin" = "admin",
"address_confirmation" = "address_confirmation",
"lowFee" = "lowFee"
}

@@ -32,0 +32,0 @@ export declare const WalletWebhookType: t.KeyofC<typeof WalletWebhookTypeEnum>;

@@ -43,3 +43,3 @@ "use strict";

})(WebhookTypeEnum || (exports.WebhookTypeEnum = WebhookTypeEnum = {}));
exports.WebhookType = t.keyof(WebhookTypeEnum, 'WebhookType');
exports.WebhookType = t.keyof(WebhookTypeEnum, "WebhookType");
var WalletWebhookTypeEnum;

@@ -59,3 +59,3 @@ (function (WalletWebhookTypeEnum) {

})(WalletWebhookTypeEnum || (exports.WalletWebhookTypeEnum = WalletWebhookTypeEnum = {}));
exports.WalletWebhookType = t.keyof(WalletWebhookTypeEnum, 'WalletWebhookType');
exports.WalletWebhookType = t.keyof(WalletWebhookTypeEnum, "WalletWebhookType");
//# sourceMappingURL=webhookType.js.map

@@ -1,3 +0,3 @@

export * from './optional';
export * from './primitives';
export * from "./optional";
export * from "./primitives";
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,3 @@

import * as t from 'io-ts';
import * as t from "io-ts";
export declare function Optional<T>(type: t.Type<T>): t.UnionC<[t.Type<T, T, unknown>, t.UndefinedC]>;
//# sourceMappingURL=optional.d.ts.map

@@ -1,2 +0,2 @@

import * as t from 'io-ts';
import * as t from "io-ts";
export declare const optionalString: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;

@@ -3,0 +3,0 @@ export declare const optionalStringArray: t.UnionC<[t.Type<string[], string[], unknown>, t.UndefinedC]>;

{
"name": "@bitgo/public-types",
"version": "2.0.1",
"version": "2.1.0",
"description": "Collection of types exposed externally as part of the BitGo public API",

@@ -19,3 +19,5 @@ "license": "UNLICENSED",

"clean": "rm -rf -- dist",
"test": "vitest --coverage --run --dir test"
"test": "vitest --coverage --run --dir test",
"prettier-check": "prettier --check .",
"prettier-format": "prettier --write ."
},

@@ -36,4 +38,5 @@ "dependencies": {

"typescript": "5.3",
"vitest": "1.2.0"
"vitest": "1.2.0",
"prettier": "^3.2.4"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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