forked from trustwallet/wallet-core
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTWIOSTAccount.h
More file actions
40 lines (29 loc) · 1.14 KB
/
TWIOSTAccount.h
File metadata and controls
40 lines (29 loc) · 1.14 KB
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
// Copyright © 2017-2019 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#pragma once
#include "TWBase.h"
#include "TWData.h"
#include "TWString.h"
TW_EXTERN_C_BEGIN
struct TWPublicKey;
/// Represents an IOST Account.
TW_EXPORT_CLASS
struct TWIOSTAccount;
/// Compares two Accountes for equality.
TW_EXPORT_STATIC_METHOD
bool TWIOSTAccountEqual(struct TWIOSTAccount *_Nonnull lhs, struct TWIOSTAccount *_Nonnull rhs);
/// Determines if the string is a valid Account.
TW_EXPORT_STATIC_METHOD
bool TWIOSTAccountIsValidString(TWString *_Nonnull string);
/// Creates an Account from a string representaion.
TW_EXPORT_STATIC_METHOD
struct TWIOSTAccount *_Nullable TWIOSTAccountCreateWithString(TWString *_Nonnull string);
TW_EXPORT_METHOD
void TWIOSTAccountDelete(struct TWIOSTAccount *_Nonnull Account);
/// Returns the Account string representation.
TW_EXPORT_PROPERTY
TWString *_Nonnull TWIOSTAccountDescription(struct TWIOSTAccount *_Nonnull Account);
TW_EXTERN_C_END