Skip to content

Commit

Permalink
feat: modified xrpl signing function return values (#35)
Browse files Browse the repository at this point in the history
* feat: modify xrpl signature return values
  • Loading branch information
Polybius93 authored Nov 1, 2024
1 parent ff059c0 commit 78e8480
Show file tree
Hide file tree
Showing 3 changed files with 243 additions and 116 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "dlc-btc-lib",
"version": "2.4.9",
"version": "2.4.10",
"description": "This library provides a comprehensive set of interfaces and functions for minting dlcBTC tokens on supported blockchains.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
19 changes: 19 additions & 0 deletions src/models/ripple.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,22 @@ export interface SignResponse {
tx_blob: string;
hash: string;
}

export interface AutoFillValues {
signatureType: SignatureType;
LastLedgerSequence: number;
Sequence: number;
Fee: string;
}

export type SignatureType = 'cashCheck' | 'burnNFT' | 'mintNFT' | 'mintToken';

export interface XRPLSignatures {
signatureType: SignatureType;
signatures: string[];
}

export interface MultisignatureTransactionResponse {
tx_blob: string;
autoFillValues: AutoFillValues;
}
Loading

0 comments on commit 78e8480

Please sign in to comment.