-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(blockchain-utils-validation): Make TS strict
- Loading branch information
Showing
5 changed files
with
44 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
declare module '@smontero/eosio-signing-tools' { | ||
type VerifySignatureArgs = { | ||
chainId: string | ||
account: string | ||
signature: string | ||
data: string | ||
} | ||
|
||
export class SigningTools { | ||
static verifySignature(args: VerifySignatureArgs): Promise<boolean> | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/// <reference types="node" /> | ||
declare module '@zondax/filecoin-signing-tools' { | ||
export type MessageParams = { | ||
From: string | ||
To: string | ||
Value: string | ||
Method: 0 | ||
GasPrice: string | ||
GasLimit: 1000 | ||
Nonce: 0 | ||
Params: string | ||
GasFeeCap: string | ||
GasPremium: string | ||
} | ||
|
||
export function transactionSerialize(message: MessageParams): string | ||
export function verifySignature( | ||
signature: string | Buffer, | ||
message: MessageParams | string | ||
): boolean | ||
} |