@otoplo/wallet-common 0.1.12 → 0.1.13
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/dist/index.d.ts +42 -15
- package/dist/index.js +202 -199
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -177,20 +177,47 @@ export declare interface BlockTip {
|
|
|
177
177
|
|
|
178
178
|
export declare function capitalizeFirstLetter(str: string): string;
|
|
179
179
|
|
|
180
|
-
export declare const
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
readonly
|
|
186
|
-
readonly
|
|
187
|
-
readonly
|
|
188
|
-
|
|
189
|
-
readonly
|
|
190
|
-
readonly
|
|
191
|
-
readonly
|
|
192
|
-
|
|
193
|
-
|
|
180
|
+
export declare const CURRENCIES: readonly [{
|
|
181
|
+
readonly code: "usd";
|
|
182
|
+
readonly symbol: "$";
|
|
183
|
+
readonly name: "US Dollar";
|
|
184
|
+
}, {
|
|
185
|
+
readonly code: "eur";
|
|
186
|
+
readonly symbol: "€";
|
|
187
|
+
readonly name: "Euro";
|
|
188
|
+
}, {
|
|
189
|
+
readonly code: "gbp";
|
|
190
|
+
readonly symbol: "£";
|
|
191
|
+
readonly name: "British Pound";
|
|
192
|
+
}, {
|
|
193
|
+
readonly code: "cny";
|
|
194
|
+
readonly symbol: "¥";
|
|
195
|
+
readonly name: "Chinese Yuan";
|
|
196
|
+
}, {
|
|
197
|
+
readonly code: "jpy";
|
|
198
|
+
readonly symbol: "¥";
|
|
199
|
+
readonly name: "Japanese Yen";
|
|
200
|
+
}, {
|
|
201
|
+
readonly code: "aud";
|
|
202
|
+
readonly symbol: "A$";
|
|
203
|
+
readonly name: "Australian Dollar";
|
|
204
|
+
}, {
|
|
205
|
+
readonly code: "cad";
|
|
206
|
+
readonly symbol: "C$";
|
|
207
|
+
readonly name: "Canadian Dollar";
|
|
208
|
+
}, {
|
|
209
|
+
readonly code: "chf";
|
|
210
|
+
readonly symbol: "Fr";
|
|
211
|
+
readonly name: "Swiss Franc";
|
|
212
|
+
}];
|
|
213
|
+
|
|
214
|
+
export declare type CurrencyCode = typeof CURRENCIES[number]['code'];
|
|
215
|
+
|
|
216
|
+
export declare const currencyCodes: ("usd" | "eur" | "gbp" | "cny" | "jpy" | "aud" | "cad" | "chf")[];
|
|
217
|
+
|
|
218
|
+
export declare type CurrencySymbol = typeof CURRENCIES[number]['symbol'];
|
|
219
|
+
|
|
220
|
+
export declare const currencySymbols: Record<CurrencyCode, CurrencySymbol>;
|
|
194
221
|
|
|
195
222
|
export declare function currentTimestamp(): number;
|
|
196
223
|
|
|
@@ -308,7 +335,7 @@ export declare function generateVaultVisibleArgs(args: number[]): ScriptElement[
|
|
|
308
335
|
|
|
309
336
|
export declare function getAddressBuffer(address: string): Uint8Array;
|
|
310
337
|
|
|
311
|
-
export declare function getCurrencySymbol(currency:
|
|
338
|
+
export declare function getCurrencySymbol(currency: CurrencyCode): string;
|
|
312
339
|
|
|
313
340
|
export declare function getExplorerUrl(): string;
|
|
314
341
|
|