Skip to content

Commit 9d52902

Browse files
committed
chore: add CIP103 namespace to WalletApi
1 parent f76e258 commit 9d52902

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/types/global.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export type WalletApi = {
44
getBalance: () => Promise<string>;
55
getUtxos: (
66
_amount?: string,
7-
_paginate?: { page: number; limit: number },
7+
_paginate?: { page: number; limit: number }
88
) => Promise<string[]>;
99
getCollateral: () => Promise<string[] | null>;
1010
getUsedAddresses: () => Promise<string[]>;
@@ -15,12 +15,16 @@ export type WalletApi = {
1515
getNetworkId: () => Promise<number>;
1616
signData(
1717
address: string,
18-
payload: string,
18+
payload: string
1919
): Promise<{ signature: string; key: string }>;
2020
signTx: (_tx: string, _partialSign?: boolean) => Promise<string>;
2121
signTxs?: (txs: string[]) => Promise<string[]>;
2222
submitTx: (_cbor: string) => Promise<string>;
23+
// deno-lint-ignore no-explicit-any
2324
experimental: any;
25+
cip103?: {
26+
signTxs?: (txs: string[]) => Promise<string[]>;
27+
};
2428
};
2529

2630
export type Cardano = Omit<WalletApi, "experimental"> & {
@@ -35,6 +39,7 @@ export type Cardano = Omit<WalletApi, "experimental"> & {
3539
isEnabled(): Promise<boolean>;
3640
onAccountChange?: (cb: (newAddresses?: string[]) => void) => void;
3741
onNetworkChange?: (cb: (newNetwork?: string) => void) => void;
42+
// deno-lint-ignore no-explicit-any
3843
experimental: any;
3944
};
4045
};

0 commit comments

Comments
 (0)