Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@minka/ledger-sdk

Package Overview
Dependencies
Maintainers
6
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@minka/ledger-sdk - npm Package Compare versions

Comparing version 2.5.0 to 2.6.0

errors/src/lib/core/core.manual-abort-requested.error.d.ts

1

errors/src/lib/common/types/ledger-error-reason.d.ts

@@ -54,2 +54,3 @@ /**

CoreBridgeUnreachable = "core.bridge-unreachable",
CoreManualAbortRequested = "core.manual-abort-requested",
CoreUnexpectedError = "core.unexpected-error",

@@ -56,0 +57,0 @@ CoreRoutingFailed = "core.routing-failed",

@@ -65,2 +65,3 @@ "use strict";

LedgerErrorReason["CoreBridgeUnreachable"] = "core.bridge-unreachable";
LedgerErrorReason["CoreManualAbortRequested"] = "core.manual-abort-requested";
LedgerErrorReason["CoreUnexpectedError"] = "core.unexpected-error";

@@ -67,0 +68,0 @@ LedgerErrorReason["CoreRoutingFailed"] = "core.routing-failed";

@@ -6,2 +6,3 @@ export * from './core.bridge-prepare-failed.error';

export * from './core.intent-expired.error';
export * from './core.manual-abort-requested.error';
export * from './core.routing-failed.error';

@@ -8,0 +9,0 @@ export * from './core.source-invalid.error';

@@ -22,2 +22,3 @@ "use strict";

__exportStar(require("./core.intent-expired.error"), exports);
__exportStar(require("./core.manual-abort-requested.error"), exports);
__exportStar(require("./core.routing-failed.error"), exports);

@@ -24,0 +25,0 @@ __exportStar(require("./core.source-invalid.error"), exports);

2

package.json
{
"name": "@minka/ledger-sdk",
"version": "2.5.0",
"version": "2.6.0",
"description": "SDK for Minka Ledger",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -15,4 +15,5 @@ export { AdviceAliasResolveResponse, AdviceName, } from './lib/clients/advice-client';

export { LedgerListParams, LedgerPaginationParams, } from './lib/types/list-params';
export { BaseRecordResponse } from './lib/types/record-response';
export * as crypto from "../crypto/src";
export * as errors from "../errors/src";
export * as types from "../types/src";

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.types = exports.errors = exports.crypto = exports.LedgerSdkError = exports.LedgerSdk = exports.WalletsResponse = exports.WalletResponse = exports.WalletAnchorsLookupResponse = exports.SymbolsResponse = exports.SymbolResponse = exports.StatusResponse = exports.SignersResponse = exports.SignerResponse = exports.RequestsResponse = exports.RequestResponse = exports.LedgersResponse = exports.LedgerResponse = exports.IntentsResponse = exports.IntentResponse = exports.BridgesResponse = exports.BridgeResponse = exports.AnchorsResponse = exports.AnchorResponse = exports.AdviceName = exports.AdviceAliasResolveResponse = void 0;
exports.types = exports.errors = exports.crypto = exports.BaseRecordResponse = exports.LedgerSdkError = exports.LedgerSdk = exports.WalletsResponse = exports.WalletResponse = exports.WalletAnchorsLookupResponse = exports.SymbolsResponse = exports.SymbolResponse = exports.StatusResponse = exports.SignersResponse = exports.SignerResponse = exports.RequestsResponse = exports.RequestResponse = exports.LedgersResponse = exports.LedgerResponse = exports.IntentsResponse = exports.IntentResponse = exports.BridgesResponse = exports.BridgeResponse = exports.AnchorsResponse = exports.AnchorResponse = exports.AdviceName = exports.AdviceAliasResolveResponse = void 0;
var advice_client_1 = require("./lib/clients/advice-client");

@@ -63,2 +63,4 @@ Object.defineProperty(exports, "AdviceAliasResolveResponse", { enumerable: true, get: function () { return advice_client_1.AdviceAliasResolveResponse; } });

Object.defineProperty(exports, "LedgerSdkError", { enumerable: true, get: function () { return ledger_sdk_error_1.LedgerSdkError; } });
var record_response_1 = require("./lib/types/record-response");
Object.defineProperty(exports, "BaseRecordResponse", { enumerable: true, get: function () { return record_response_1.BaseRecordResponse; } });
exports.crypto = __importStar(require("../crypto/src"));

@@ -65,0 +67,0 @@ exports.errors = __importStar(require("../errors/src"));

@@ -62,2 +62,7 @@ import { JwtConfig, LedgerHandle, LedgerPublic } from "../../types/src";

/**
* Active ledger
* @see {Ledger}
*/
private activeLedger;
/**
* Allows querying the ledger status.

@@ -178,2 +183,8 @@ *

/**
* Gets active ledger
*
* @returns active ledger handle
*/
getActiveLedger(): string;
/**
* Returns the basic info about a ledger instance. This request

@@ -180,0 +191,0 @@ * can be used to validate ledger URLs and to check if an instance

@@ -168,2 +168,3 @@ "use strict";

setActiveLedger(handle) {
this.activeLedger = handle;
for (const client of this.multitenantClients) {

@@ -174,2 +175,10 @@ client.setActiveLedger(handle);

/**
* Gets active ledger
*
* @returns active ledger handle
*/
getActiveLedger() {
return this.activeLedger;
}
/**
* Returns the basic info about a ledger instance. This request

@@ -176,0 +185,0 @@ * can be used to validate ledger URLs and to check if an instance

@@ -136,3 +136,3 @@ import { LedgerKeyPair } from '../records/ledger-signer';

Intent = "intent",
IntentSignature = "intent-signature",
IntentProof = "intent-proof",
Effect = "effect",

@@ -165,2 +165,4 @@ Bridge = "bridge",

Spend = "spend",
Abort = "abort",
Commit = "commit",
Update = "update",

@@ -167,0 +169,0 @@ Lookup = "lookup",

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

AccessRecord["Intent"] = "intent";
AccessRecord["IntentSignature"] = "intent-signature";
AccessRecord["IntentProof"] = "intent-proof";
AccessRecord["Effect"] = "effect";

@@ -55,2 +55,4 @@ AccessRecord["Bridge"] = "bridge";

AccessAction["Spend"] = "spend";
AccessAction["Abort"] = "abort";
AccessAction["Commit"] = "commit";
AccessAction["Update"] = "update";

@@ -57,0 +59,0 @@ AccessAction["Lookup"] = "lookup";

@@ -79,6 +79,18 @@ import { LedgerAccess } from '../common/ledger-access';

Credits = "credits",
/**
* Can receive intent status calls
*/
Statuses = "statuses",
Anchors = "anchors",
Domains = "domains",
Events = "events"
Effects = "effects"
}
/**
* Legacy bridge features mapped to their newest versions.
* If a bridge has a legacy trait enabled, its corresponding
* non-legacy trait is also considered to be enabled.
*/
export declare const LegacyBridgeTrait: {
effects: string;
};
export declare const BridgeTraits: BridgeTrait[];
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BridgeTraits = exports.BridgeTrait = void 0;
exports.BridgeTraits = exports.LegacyBridgeTrait = exports.BridgeTrait = void 0;
/**

@@ -11,7 +11,19 @@ * Features of a bridge.

BridgeTrait["Credits"] = "credits";
/**
* Can receive intent status calls
*/
BridgeTrait["Statuses"] = "statuses";
BridgeTrait["Anchors"] = "anchors";
BridgeTrait["Domains"] = "domains";
BridgeTrait["Events"] = "events";
BridgeTrait["Effects"] = "effects";
})(BridgeTrait = exports.BridgeTrait || (exports.BridgeTrait = {}));
/**
* Legacy bridge features mapped to their newest versions.
* If a bridge has a legacy trait enabled, its corresponding
* non-legacy trait is also considered to be enabled.
*/
exports.LegacyBridgeTrait = {
[BridgeTrait.Effects]: 'events',
};
exports.BridgeTraits = Object.values(BridgeTrait);
//# sourceMappingURL=ledger-bridge.js.map

@@ -70,2 +70,4 @@ import { LedgerRecord } from '../base/ledger-record';

[key in RecordName]?: LedgerRecord<T>;
} & {
parent?: LedgerRecord<T>;
};

@@ -72,0 +74,0 @@ /**

@@ -274,3 +274,3 @@ import { LedgerErrorReason } from "../../../../errors/src";

*/
status?: 'prepared' | 'failed' | 'committed' | 'aborted' | 'created' | 'error' | 'expired';
status?: 'prepared' | 'requested' | 'failed' | 'committed' | 'aborted' | 'created' | 'error' | 'expired';
/**

@@ -277,0 +277,0 @@ * Core ID is an unique external reference in a signature. This property

@@ -68,3 +68,3 @@ import { LedgerAccess } from '../common/ledger-access';

Intent = "intent",
IntentSignature = "intent-signature",
IntentProof = "intent-proof",
Effect = "effect",

@@ -71,0 +71,0 @@ Bridge = "bridge",

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

RequestRecord["Intent"] = "intent";
RequestRecord["IntentSignature"] = "intent-signature";
RequestRecord["IntentProof"] = "intent-proof";
RequestRecord["Effect"] = "effect";

@@ -40,0 +40,0 @@ RequestRecord["Bridge"] = "bridge";

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

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