@cardano-sdk/cip30
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -7,4 +7,4 @@ "use strict"; | ||
exports.sendMessage = void 0; | ||
const ts_log_1 = require("ts-log"); | ||
const webextension_polyfill_1 = __importDefault(require("webextension-polyfill")); | ||
const ts_log_1 = require("ts-log"); | ||
const sendMessage = (msg, logger = ts_log_1.dummyLogger) => { | ||
@@ -11,0 +11,0 @@ logger.debug('sendMessage', msg); |
@@ -0,4 +1,4 @@ | ||
import { Logger } from 'ts-log'; | ||
import { WalletApi } from '..'; | ||
import { Logger } from 'ts-log'; | ||
export declare const createUiWallet: (logger?: Logger) => WalletApi; | ||
//# sourceMappingURL=uiWallet.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
method, | ||
(...args) => sendMessage_1.sendMessage({ method, arguments: args }, logger) | ||
(...args) => sendMessage_1.sendMessage({ arguments: args, method }, logger) | ||
]))); | ||
@@ -23,0 +23,0 @@ }; |
@@ -0,3 +1,3 @@ | ||
import { Logger } from 'ts-log'; | ||
import { Wallet, WalletPublic } from './Wallet'; | ||
import { Logger } from 'ts-log'; | ||
export declare type WindowMaybeWithCardano = Window & { | ||
@@ -4,0 +4,0 @@ cardano?: { |
@@ -0,3 +1,3 @@ | ||
import { Bytes, Cbor, Paginate } from '../types'; | ||
import { Cardano } from '@cardano-sdk/core'; | ||
import { Bytes, Cbor, Paginate } from '../types'; | ||
export declare type GetUtxos = (amount?: Cbor, paginate?: Paginate) => Promise<Cardano.Utxo[] | undefined>; | ||
@@ -4,0 +4,0 @@ export declare type GetBalance = () => Promise<Cbor>; |
@@ -0,3 +1,3 @@ | ||
import { Logger } from 'ts-log'; | ||
import { WalletApi } from './types'; | ||
import { Logger } from 'ts-log'; | ||
import { WindowMaybeWithCardano } from '../injectWindow'; | ||
@@ -26,6 +26,6 @@ export declare type SpecificationVersion = string; | ||
getPublicApi(window: WindowMaybeWithCardano): { | ||
enable: () => Promise<WalletApi>; | ||
isEnabled: () => Promise<Boolean>; | ||
name: string; | ||
version: string; | ||
enable: () => Promise<WalletApi>; | ||
isEnabled: () => Promise<Boolean>; | ||
}; | ||
@@ -32,0 +32,0 @@ private getAllowList; |
@@ -23,6 +23,6 @@ "use strict"; | ||
return { | ||
enable: this.enable.bind(this, window), | ||
isEnabled: this.isEnabled.bind(this, window), | ||
name: this.name, | ||
version: this.version, | ||
enable: this.enable.bind(this, window), | ||
isEnabled: this.isEnabled.bind(this, window) | ||
version: this.version | ||
}; | ||
@@ -39,5 +39,5 @@ } | ||
this.logger.debug({ | ||
allowList: this.getAllowList(), | ||
module: 'Wallet', | ||
walletName: this.name, | ||
allowList: this.getAllowList() | ||
walletName: this.name | ||
}, 'Allow list persisted'); | ||
@@ -44,0 +44,0 @@ } |
{ | ||
"name": "@cardano-sdk/cip30", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "TypeScript definitions for the dApp Connector standard CIP30", | ||
@@ -20,2 +20,3 @@ "engines": { | ||
"lint": "eslint --ignore-path ../../.eslintignore \"**/*.ts\"", | ||
"lint:fix": "eslint --fix --ignore-path ../../.eslintignore \"**/*.ts\"", | ||
"test": "jest -c ./jest.config.js", | ||
@@ -22,0 +23,0 @@ "coverage": "shx echo No coverage report for this package", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
46556
0