@keplr-wallet/types 0.12.247 → 0.12.248
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/wallet/bitcoin.d.ts +19 -1
- package/package.json +2 -2
- package/src/wallet/bitcoin.ts +23 -1
@@ -36,6 +36,21 @@ export type SignPsbtOptions = {
|
|
36
36
|
useTweakedSigner?: boolean;
|
37
37
|
}>;
|
38
38
|
};
|
39
|
+
export interface Inscription {
|
40
|
+
id: string;
|
41
|
+
inscriptionId: string;
|
42
|
+
content: string;
|
43
|
+
number: number;
|
44
|
+
address: string;
|
45
|
+
contentType: string;
|
46
|
+
output: string;
|
47
|
+
location: string;
|
48
|
+
genesisTransaction: string;
|
49
|
+
height: number;
|
50
|
+
preview: string;
|
51
|
+
outputValue: number;
|
52
|
+
offset?: number;
|
53
|
+
}
|
39
54
|
export interface IBitcoinProvider extends EventEmitter {
|
40
55
|
getAccounts: () => Promise<string[]>;
|
41
56
|
requestAccounts: () => Promise<string[]>;
|
@@ -54,7 +69,10 @@ export interface IBitcoinProvider extends EventEmitter {
|
|
54
69
|
unconfirmed: number;
|
55
70
|
total: number;
|
56
71
|
}>;
|
57
|
-
getInscriptions: () => Promise<
|
72
|
+
getInscriptions: (offset?: number, limit?: number) => Promise<{
|
73
|
+
total: number;
|
74
|
+
list: Inscription[];
|
75
|
+
}>;
|
58
76
|
signMessage: (message: string, type?: BitcoinSignMessageType) => Promise<string>;
|
59
77
|
sendBitcoin: (to: string, amount: number) => Promise<string>;
|
60
78
|
pushTx: (rawTxHex: string) => Promise<string>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@keplr-wallet/types",
|
3
|
-
"version": "0.12.
|
3
|
+
"version": "0.12.248",
|
4
4
|
"main": "build/index.js",
|
5
5
|
"author": "chainapsis",
|
6
6
|
"license": "Apache-2.0",
|
@@ -21,5 +21,5 @@
|
|
21
21
|
"peerDependencies": {
|
22
22
|
"starknet": "^7"
|
23
23
|
},
|
24
|
-
"gitHead": "
|
24
|
+
"gitHead": "05bf4741db3cc88ff343d6abfd319b7c237ed6f1"
|
25
25
|
}
|
package/src/wallet/bitcoin.ts
CHANGED
@@ -63,6 +63,22 @@ export type SignPsbtOptions = {
|
|
63
63
|
}>;
|
64
64
|
};
|
65
65
|
|
66
|
+
export interface Inscription {
|
67
|
+
id: string; // Unique identifier
|
68
|
+
inscriptionId: string; // Ordinal inscription ID
|
69
|
+
content: string; // Content data
|
70
|
+
number: number; // Inscription number
|
71
|
+
address: string; // Current owner address
|
72
|
+
contentType: string; // MIME type of content
|
73
|
+
output: string; // UTXO containing the inscription
|
74
|
+
location: string; // Location within the UTXO
|
75
|
+
genesisTransaction: string; // Transaction where inscription was created
|
76
|
+
height: number; // Block height of inscription
|
77
|
+
preview: string; // Preview URL if available
|
78
|
+
outputValue: number; // Value of the UTXO
|
79
|
+
offset?: number; // Offset within the UTXO
|
80
|
+
}
|
81
|
+
|
66
82
|
export interface IBitcoinProvider extends EventEmitter {
|
67
83
|
getAccounts: () => Promise<string[]>;
|
68
84
|
requestAccounts: () => Promise<string[]>;
|
@@ -81,7 +97,13 @@ export interface IBitcoinProvider extends EventEmitter {
|
|
81
97
|
unconfirmed: number;
|
82
98
|
total: number;
|
83
99
|
}>;
|
84
|
-
getInscriptions: (
|
100
|
+
getInscriptions: (
|
101
|
+
offset?: number,
|
102
|
+
limit?: number
|
103
|
+
) => Promise<{
|
104
|
+
total: number;
|
105
|
+
list: Inscription[];
|
106
|
+
}>;
|
85
107
|
signMessage: (
|
86
108
|
message: string,
|
87
109
|
type?: BitcoinSignMessageType
|