marina-provider
Advanced tools
Comparing version 1.6.0 to 1.7.0
@@ -1,2 +0,2 @@ | ||
import { AccountID, AddressInterface, Balance, DescriptorTemplate, EventListenerID, MarinaEventType, NetworkString, PsetBase64, RawHex, Recipient, SentTransaction, SignedMessage, Transaction, Utxo } from './types'; | ||
import { AccountID, AccountInfo, AddressInterface, Balance, Template, EventListenerID, MarinaEventType, NetworkString, PsetBase64, RawHex, Recipient, SentTransaction, SignedMessage, Transaction, Utxo } from './types'; | ||
/** | ||
@@ -17,2 +17,3 @@ * Define the Marina provider methods. | ||
getAccountsIDs(): Promise<AccountID[]>; | ||
getAccountInfo(accountID: AccountID): Promise<AccountInfo>; | ||
createAccount(accountID: AccountID): Promise<void>; | ||
@@ -30,3 +31,3 @@ getBalances(accountIDs?: AccountID[]): Promise<Balance[]>; | ||
/** all the methods above apply to the selected account **/ | ||
importTemplate(template: DescriptorTemplate, changeTemplate?: DescriptorTemplate): Promise<void>; | ||
importTemplate(template: Template, changeTemplate?: Template): Promise<void>; | ||
getNextAddress(): Promise<AddressInterface>; | ||
@@ -33,0 +34,0 @@ getNextChangeAddress(): Promise<AddressInterface>; |
@@ -83,7 +83,14 @@ /// <reference types="node" /> | ||
} | ||
export interface DescriptorTemplate { | ||
type: 'marina-descriptors'; | ||
template: string; | ||
export declare type TemplateType = 'marina-descriptors' | 'ionio-artifact'; | ||
export interface Template<T = any> { | ||
type: TemplateType; | ||
template: T; | ||
} | ||
export declare type AccountID = string; | ||
export interface AccountInfo { | ||
accountID: AccountID; | ||
masterXPub: string; | ||
isReady: boolean; | ||
[key: string]: any; | ||
} | ||
export {}; |
{ | ||
"name": "marina-provider", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"description": "Marina injected API", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:vulpemventures/marina-provider.git", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
223849
1850