Skip to content

Commit

Permalink
npm run build
Browse files Browse the repository at this point in the history
  • Loading branch information
ripply committed Apr 4, 2023
1 parent 77611b1 commit dd6520a
Show file tree
Hide file tree
Showing 14 changed files with 203 additions and 87 deletions.
8 changes: 1 addition & 7 deletions build/main/lib/helpers/IntermediateWallet.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Provider, TransactionRequest, TransactionResponse } from "@ethersproject/abstract-provider";
import { ExternallyOwnedAccount, Signer, TypedDataDomain, TypedDataField, TypedDataSigner } from "@ethersproject/abstract-signer";
import { Bytes, BytesLike, SignatureLike } from "@ethersproject/bytes";
import { Bytes, BytesLike } from "@ethersproject/bytes";
import { Mnemonic } from "@ethersproject/hdnode";
import { Deferrable } from "@ethersproject/properties";
import { SigningKey } from "@ethersproject/signing-key";
Expand All @@ -9,8 +9,6 @@ import { Wordlist } from "@ethersproject/wordlists";
import { InputNonces } from "../QtumWallet";
import { Transaction } from "bitcoinjs-lib";
export declare const version = "wallet/5.1.0";
export declare const messagePrefix = "\u0015Qtum Signed Message:\n";
export declare function hashMessage(message: Bytes | string): string;
/**
* Idempotency in Bitcoin forks requires spending the same Bitcoin inputs
* As long as one of the inputs has already been spent, then the request will fail
Expand Down Expand Up @@ -68,7 +66,3 @@ export declare class IntermediateWallet extends Signer implements ExternallyOwne
static fromEncryptedJsonSync(json: string, password: Bytes | string): IntermediateWallet;
static fromMnemonic(mnemonic: string, path?: string, wordlist?: Wordlist): IntermediateWallet;
}
export declare function verifyMessage(message: Bytes | string, signature: SignatureLike): string;
export declare function verifyHash(message: Bytes | string, signature: SignatureLike): string;
export declare function recoverAddress(digest: BytesLike, signature: SignatureLike): string;
export declare function verifyTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, value: Record<string, any>, signature: SignatureLike): string;
34 changes: 3 additions & 31 deletions build/main/lib/helpers/IntermediateWallet.js

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion build/main/lib/helpers/utils.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/// <reference types="node" />
import { HDNode } from "@ethersproject/hdnode";
import { BytesLike } from "ethers/lib/utils";
import { Bytes, BytesLike } from "ethers/lib/utils";
import { SignatureLike } from "@ethersproject/bytes";
import { TypedDataDomain, TypedDataField } from "@ethersproject/abstract-signer";
import { Transaction } from "@ethersproject/transactions";
import { BigNumberish } from "ethers";
import { TransactionRequest } from "@ethersproject/abstract-provider";
Expand Down Expand Up @@ -90,3 +92,9 @@ export declare function serializeTransaction(utxos: Array<any>, fetchUtxos: Func
export declare function serializeTransactionWith(utxos: Array<any>, fetchUtxos: Function, neededAmount: string, tx: QtumTransactionRequest, transactionType: number, signer: Function, publicKey: string, opts?: SerializeOptions): Promise<string>;
export declare function getTxIdFromHash(hash: string): string;
export declare function reverseBuffer(buffer: Buffer): Buffer;
export declare const messagePrefix = "\u0015Qtum Signed Message:\n";
export declare function hashMessage(message: Bytes | string): string;
export declare function verifyMessage(message: Bytes | string, signature: SignatureLike): string;
export declare function verifyHash(message: Bytes | string, signature: SignatureLike): string;
export declare function recoverAddress(digest: BytesLike, signature: SignatureLike): string;
export declare function verifyTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, value: Record<string, any>, signature: SignatureLike): string;
41 changes: 37 additions & 4 deletions build/main/lib/helpers/utils.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions build/main/tests/Utils.tests.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
declare const expect: any;
declare const QtumWallet: any;
declare const QtumProvider: any;
declare const recoverAddress: any, hashMessage: any, verifyMessage: any;
declare const provider: any;
declare const arrayify: any;
declare const keccak256: any;
declare const signer: any;
30 changes: 30 additions & 0 deletions build/main/tests/Utils.tests.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions build/module/lib/helpers/IntermediateWallet.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Provider, TransactionRequest, TransactionResponse } from "@ethersproject/abstract-provider";
import { ExternallyOwnedAccount, Signer, TypedDataDomain, TypedDataField, TypedDataSigner } from "@ethersproject/abstract-signer";
import { Bytes, BytesLike, SignatureLike } from "@ethersproject/bytes";
import { Bytes, BytesLike } from "@ethersproject/bytes";
import { Mnemonic } from "@ethersproject/hdnode";
import { Deferrable } from "@ethersproject/properties";
import { SigningKey } from "@ethersproject/signing-key";
Expand All @@ -9,8 +9,6 @@ import { Wordlist } from "@ethersproject/wordlists";
import { InputNonces } from "../QtumWallet";
import { Transaction } from "bitcoinjs-lib";
export declare const version = "wallet/5.1.0";
export declare const messagePrefix = "\u0015Qtum Signed Message:\n";
export declare function hashMessage(message: Bytes | string): string;
/**
* Idempotency in Bitcoin forks requires spending the same Bitcoin inputs
* As long as one of the inputs has already been spent, then the request will fail
Expand Down Expand Up @@ -68,7 +66,3 @@ export declare class IntermediateWallet extends Signer implements ExternallyOwne
static fromEncryptedJsonSync(json: string, password: Bytes | string): IntermediateWallet;
static fromMnemonic(mnemonic: string, path?: string, wordlist?: Wordlist): IntermediateWallet;
}
export declare function verifyMessage(message: Bytes | string, signature: SignatureLike): string;
export declare function verifyHash(message: Bytes | string, signature: SignatureLike): string;
export declare function recoverAddress(digest: BytesLike, signature: SignatureLike): string;
export declare function verifyTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, value: Record<string, any>, signature: SignatureLike): string;

0 comments on commit dd6520a

Please sign in to comment.