-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathAccount.java
More file actions
59 lines (51 loc) · 1.33 KB
/
Account.java
File metadata and controls
59 lines (51 loc) · 1.33 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package com.casper.sdk.model.account;
import com.casper.sdk.model.contract.NamedKey;
import com.casper.sdk.model.key.AccountHashKey;
import com.casper.sdk.model.uref.URef;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.util.List;
/**
* Structure representing a user's account, stored in global state.
*
* @author Alexandre Carvalho
* @author Andre Bertolace
* @since 0.0.1
*/
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Account {
/**
* account_hash(String) Hex-encoded account hash.
*/
@JsonProperty("account_hash")
private AccountHashKey hash;
/**
* {@link ActionThresholds} that have to be met
* when executing an action of a certain type.
*/
@JsonProperty("action_thresholds")
private ActionThresholds deployment;
/**
* a list of {@link AssociatedKey}
*/
@JsonProperty("associated_keys")
private List<AssociatedKey> associatedKeys;
/**
* main_purse(String) Hex-encoded, formatted URef.
*/
@JsonProperty("main_purse")
private URef mainPurse;
/**
* named_keys (@link NamedKey)
*/
@JsonProperty("named_keys")
private List<NamedKey> namedKeys;
}