New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dfns/blockchain-integration

Package Overview
Dependencies
Maintainers
2
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dfns/blockchain-integration - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

2

lib/index.d.ts
import { Signer, createSigningGroup } from "./signer";
import { createLambdaHandler } from "./lambda-handler";
export { Signer, createLambdaHandler, createSigningGroup };
export { Wallet } from "./types/wallet";
export { WalletInterface } from "./types/wallet";
export { SignerAsync } from "./types/signer";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Wallet = exports.createSigningGroup = exports.createLambdaHandler = exports.Signer = void 0;
exports.createSigningGroup = exports.createLambdaHandler = exports.Signer = void 0;
const signer_1 = require("./signer");

@@ -9,3 +9,1 @@ Object.defineProperty(exports, "Signer", { enumerable: true, get: function () { return signer_1.Signer; } });

Object.defineProperty(exports, "createLambdaHandler", { enumerable: true, get: function () { return lambda_handler_1.createLambdaHandler; } });
var wallet_1 = require("./types/wallet");
Object.defineProperty(exports, "Wallet", { enumerable: true, get: function () { return wallet_1.Wallet; } });

@@ -1,7 +0,7 @@

import { Wallet } from "../types/wallet";
import { WalletInterface } from "../types/wallet";
import { SignerAsync } from "../types/signer";
interface WalletClass extends Wallet {
new (signer: SignerAsync): Wallet;
interface WalletImpl extends WalletInterface {
new (signer: SignerAsync): WalletInterface;
}
export declare function createLambdaHandler(walletImplementation: WalletClass, prefix: string): (lambdaEvent: any, context: any) => Promise<any>;
export declare function createLambdaHandler(walletImplementation: WalletImpl, prefix: string): (lambdaEvent: any, context: any) => Promise<any>;
export {};
import { TransactionResponse } from "./responses";
import { SendPaymentTxParams } from "./requests";
import { SignerAsync } from "../types/signer";
export declare abstract class Wallet {
signer: SignerAsync;
constructor(signer: SignerAsync);
abstract getAddress(): Promise<string>;
abstract getBalance(): Promise<string>;
abstract getTransactions(): Promise<TransactionResponse>;
abstract sendTransaction(paymentTxParams: SendPaymentTxParams): Promise<string>;
export interface WalletInterface {
getAddress(): Promise<string>;
getBalance(): Promise<string>;
getTransactions(): Promise<TransactionResponse>;
sendTransaction(paymentTxParams: SendPaymentTxParams): Promise<string>;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Wallet = void 0;
class Wallet {
constructor(signer) {
this.signer = signer;
}
}
exports.Wallet = Wallet;
class EthWallet extends Wallet {
async getAddress() {
return "1";
}
async getBalance() {
return "1";
}
async getTransactions() {
return { status: 1, data: { tx_hash: "1" } };
}
async sendTransaction() {
return "1";
}
}
{
"name": "@dfns/blockchain-integration",
"version": "1.0.7",
"version": "1.0.8",
"description": "Blockchain integration Kit for DFNS",

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

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