-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtypings.d.ts
51 lines (48 loc) · 1.3 KB
/
typings.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
declare module '*.png'
declare module '*.svg'
declare module 'cardano-crypto.js'
declare module 'borc'
declare module '@thetalabs/theta-js'
declare module 'tronweb'
declare module 'nuls-sdk-js'
declare module 'nerve-sdk-js'
declare module 'neblio-lib'
declare module 'bitcore-lib-cash'
declare module 'bsv'
declare module '@fioprotocol/fiosdk'
declare module '@fioprotocol/fiosdk/lib/transactions/Transactions'
declare module '@cityofzion/neon-js'
declare module 'tonweb'
declare module 'tonweb-mnemonic'
declare module 'digibyte-lib'
interface BitcoinLikeProvider {
generateWallet: () => TGenerateAddress
importPrivateKey: (privateKey: string) => string
toSat: (value: number) => number
fromSat: (value: number) => number
createTransaction: (
outputs: UnspentOutput[],
to: string,
amount: number,
fee: number,
changeAddress: string,
privateKey: string
) => TCreatedTransaction
getFee: (
outputs: UnspentOutput[],
to: string,
amount: number,
changeAddress: string,
feePerByte: number
) => number
isAddressValid: (address: string) => boolean
createUnsignedTx: (
outputs: UnspentOutput[],
to: string,
amount: number,
fee: number,
changeAddress: string
) => string
}
declare const ravencoin: BitcoinLikeProvider
declare const ravencore: any