@@ -16,7 +16,7 @@ import {
1616 PINClientRequest , Turn ,
1717 SnapshotClientRequest , Snapshot ,
1818 TransferClientRequest , TransferInput , Payment , GhostInput , GhostKeys , WithdrawInput , RawTransaction ,
19- UserClientRequest , User , UserRelationship , Keystore
19+ UserClientRequest , User , UserRelationship , Keystore , AssetClientRequest , Asset , ExchangeRate
2020} from '../types'
2121import { AppClient } from './app'
2222import { AssetClient } from './asset'
@@ -31,6 +31,7 @@ import { TransferClient } from './transfer'
3131export class Client implements
3232 AddressClientRequest ,
3333 AppClientRequest ,
34+ AssetClientRequest ,
3435 AttachmentClientRequest ,
3536 ConversationClientRequest ,
3637 MessageClientRequest ,
@@ -60,13 +61,19 @@ export class Client implements
6061 favoriteApp ! : ( appID : string ) => Promise < FavoriteApp >
6162 unfavoriteApp ! : ( appID : string ) => Promise < void >
6263
63- //Attachment...
64+ // Asset...
65+ readAsset ! : ( asset_id : string ) => Promise < Asset >
66+ readAssets ! : ( ) => Promise < Asset [ ] >
67+ readAssetFee ! : ( asset_id : string ) => Promise < number >
6468
69+ readExchangeRates ! : ( ) => Promise < ExchangeRate [ ] >
70+
71+ // Attachment...
6572 createAttachment ! : ( ) => Promise < Attachment >
6673 showAttachment ! : ( attachment_id : string ) => Promise < Attachment >
6774 uploadFile ! : ( file : File ) => Promise < Attachment >
6875
69- //Conversation...
76+ // Conversation...
7077 createConversation ! : ( params : ConversationCreateParmas ) => Promise < Conversation >
7178 updateConversation ! : ( conversationID : string , params : ConversationUpdateParams ) => Promise < Conversation >
7279 createContactConversation ! : ( userID : string ) => Promise < Conversation >
@@ -79,7 +86,6 @@ export class Client implements
7986 rotateConversation ! : ( conversationID : string ) => Promise < Conversation >
8087
8188 // Message...
82-
8389 sendAcknowledgements ! : ( messages : AcknowledgementRequest [ ] ) => Promise < void >
8490 sendAcknowledgement ! : ( message : AcknowledgementRequest ) => Promise < void >
8591 sendMessage ! : ( message : MessageRequest ) => Promise < { } >
@@ -88,7 +94,6 @@ export class Client implements
8894 sendMessagePost ! : ( userID : string , text : string ) => Promise < { } >
8995
9096 // Multisigs...
91-
9297 readMultisigs ! : ( offset : string , limit : number ) => Promise < MultisigUTXO [ ] >
9398 readMultisigOutputs ! : ( members : string [ ] , threshold : number , offset : string , limit : number ) => Promise < MultisigUTXO [ ] >
9499 createMultisig ! : ( action : string , raw : string ) => Promise < MultisigRequest >
@@ -97,7 +102,6 @@ export class Client implements
97102 unlockMultisig ! : ( request_id : string , pin : string ) => Promise < void >
98103
99104 // Pin...
100-
101105 verifyPin ! : ( pin : string ) => Promise < void >
102106 modifyPin ! : ( pin : string , newPin : string ) => Promise < void >
103107 readTurnServers ! : ( ) => Promise < Turn [ ] >
0 commit comments