@@ -16,7 +16,7 @@ import {
16
16
PINClientRequest , Turn ,
17
17
SnapshotClientRequest , Snapshot ,
18
18
TransferClientRequest , TransferInput , Payment , GhostInput , GhostKeys , WithdrawInput , RawTransaction ,
19
- UserClientRequest , User , UserRelationship , Keystore
19
+ UserClientRequest , User , UserRelationship , Keystore , AssetClientRequest , Asset , ExchangeRate
20
20
} from '../types'
21
21
import { AppClient } from './app'
22
22
import { AssetClient } from './asset'
@@ -31,6 +31,7 @@ import { TransferClient } from './transfer'
31
31
export class Client implements
32
32
AddressClientRequest ,
33
33
AppClientRequest ,
34
+ AssetClientRequest ,
34
35
AttachmentClientRequest ,
35
36
ConversationClientRequest ,
36
37
MessageClientRequest ,
@@ -60,13 +61,19 @@ export class Client implements
60
61
favoriteApp ! : ( appID : string ) => Promise < FavoriteApp >
61
62
unfavoriteApp ! : ( appID : string ) => Promise < void >
62
63
63
- //Attachment...
64
+ // Asset...
65
+ readAsset ! : ( asset_id : string ) => Promise < Asset >
66
+ readAssets ! : ( ) => Promise < Asset [ ] >
67
+ readAssetFee ! : ( asset_id : string ) => Promise < number >
64
68
69
+ readExchangeRates ! : ( ) => Promise < ExchangeRate [ ] >
70
+
71
+ // Attachment...
65
72
createAttachment ! : ( ) => Promise < Attachment >
66
73
showAttachment ! : ( attachment_id : string ) => Promise < Attachment >
67
74
uploadFile ! : ( file : File ) => Promise < Attachment >
68
75
69
- //Conversation...
76
+ // Conversation...
70
77
createConversation ! : ( params : ConversationCreateParmas ) => Promise < Conversation >
71
78
updateConversation ! : ( conversationID : string , params : ConversationUpdateParams ) => Promise < Conversation >
72
79
createContactConversation ! : ( userID : string ) => Promise < Conversation >
@@ -79,7 +86,6 @@ export class Client implements
79
86
rotateConversation ! : ( conversationID : string ) => Promise < Conversation >
80
87
81
88
// Message...
82
-
83
89
sendAcknowledgements ! : ( messages : AcknowledgementRequest [ ] ) => Promise < void >
84
90
sendAcknowledgement ! : ( message : AcknowledgementRequest ) => Promise < void >
85
91
sendMessage ! : ( message : MessageRequest ) => Promise < { } >
@@ -88,7 +94,6 @@ export class Client implements
88
94
sendMessagePost ! : ( userID : string , text : string ) => Promise < { } >
89
95
90
96
// Multisigs...
91
-
92
97
readMultisigs ! : ( offset : string , limit : number ) => Promise < MultisigUTXO [ ] >
93
98
readMultisigOutputs ! : ( members : string [ ] , threshold : number , offset : string , limit : number ) => Promise < MultisigUTXO [ ] >
94
99
createMultisig ! : ( action : string , raw : string ) => Promise < MultisigRequest >
@@ -97,7 +102,6 @@ export class Client implements
97
102
unlockMultisig ! : ( request_id : string , pin : string ) => Promise < void >
98
103
99
104
// Pin...
100
-
101
105
verifyPin ! : ( pin : string ) => Promise < void >
102
106
modifyPin ! : ( pin : string , newPin : string ) => Promise < void >
103
107
readTurnServers ! : ( ) => Promise < Turn [ ] >
0 commit comments