@dfns/sdk 0.6.2-rc.2 → 0.6.2-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/staking/types.d.ts +38 -26
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@ export type CreateStakeBody = {
|
|
|
3
3
|
amount: string;
|
|
4
4
|
walletId: string;
|
|
5
5
|
provider: "Figment";
|
|
6
|
-
protocol: "Babylon";
|
|
7
|
-
duration
|
|
6
|
+
protocol: "Babylon" | "Ethereum";
|
|
7
|
+
duration?: number | undefined;
|
|
8
8
|
};
|
|
9
9
|
export type CreateStakeResponse = {
|
|
10
10
|
stake: {
|
|
@@ -12,8 +12,8 @@ export type CreateStakeResponse = {
|
|
|
12
12
|
provider: "Figment";
|
|
13
13
|
providerStakeId: string;
|
|
14
14
|
walletId: string;
|
|
15
|
-
protocol: "Babylon";
|
|
16
|
-
status: "Active" | "Withdrawn";
|
|
15
|
+
protocol: "Babylon" | "Ethereum";
|
|
16
|
+
status: "Creating" | "Active" | "Withdrawing" | "Withdrawn";
|
|
17
17
|
requester: {
|
|
18
18
|
userId: string;
|
|
19
19
|
tokenId?: string | undefined;
|
|
@@ -24,8 +24,8 @@ export type CreateStakeResponse = {
|
|
|
24
24
|
amount: string;
|
|
25
25
|
walletId: string;
|
|
26
26
|
provider: "Figment";
|
|
27
|
-
protocol: "Babylon";
|
|
28
|
-
duration
|
|
27
|
+
protocol: "Babylon" | "Ethereum";
|
|
28
|
+
duration?: number | undefined;
|
|
29
29
|
};
|
|
30
30
|
dateCreated: string;
|
|
31
31
|
};
|
|
@@ -44,12 +44,15 @@ export type CreateStakeResponse = {
|
|
|
44
44
|
amount: string;
|
|
45
45
|
walletId: string;
|
|
46
46
|
provider: "Figment";
|
|
47
|
-
protocol: "Babylon";
|
|
48
|
-
duration
|
|
49
|
-
}) | {
|
|
47
|
+
protocol: "Babylon" | "Ethereum";
|
|
48
|
+
duration?: number | undefined;
|
|
49
|
+
}) | ({
|
|
50
50
|
protocol: "Babylon";
|
|
51
51
|
kind: "StakeWithdrawal";
|
|
52
|
-
}
|
|
52
|
+
} | {
|
|
53
|
+
protocol: "Ethereum";
|
|
54
|
+
kind: "StakeWithdrawal";
|
|
55
|
+
});
|
|
53
56
|
dateCreated: string;
|
|
54
57
|
};
|
|
55
58
|
};
|
|
@@ -59,6 +62,9 @@ export type CreateStakeRequest = {
|
|
|
59
62
|
export type CreateStakeActionBody = {
|
|
60
63
|
protocol: "Babylon";
|
|
61
64
|
kind: "StakeWithdrawal";
|
|
65
|
+
} | {
|
|
66
|
+
protocol: "Ethereum";
|
|
67
|
+
kind: "StakeWithdrawal";
|
|
62
68
|
};
|
|
63
69
|
export type CreateStakeActionResponse = {
|
|
64
70
|
stake: {
|
|
@@ -66,8 +72,8 @@ export type CreateStakeActionResponse = {
|
|
|
66
72
|
provider: "Figment";
|
|
67
73
|
providerStakeId: string;
|
|
68
74
|
walletId: string;
|
|
69
|
-
protocol: "Babylon";
|
|
70
|
-
status: "Active" | "Withdrawn";
|
|
75
|
+
protocol: "Babylon" | "Ethereum";
|
|
76
|
+
status: "Creating" | "Active" | "Withdrawing" | "Withdrawn";
|
|
71
77
|
requester: {
|
|
72
78
|
userId: string;
|
|
73
79
|
tokenId?: string | undefined;
|
|
@@ -78,8 +84,8 @@ export type CreateStakeActionResponse = {
|
|
|
78
84
|
amount: string;
|
|
79
85
|
walletId: string;
|
|
80
86
|
provider: "Figment";
|
|
81
|
-
protocol: "Babylon";
|
|
82
|
-
duration
|
|
87
|
+
protocol: "Babylon" | "Ethereum";
|
|
88
|
+
duration?: number | undefined;
|
|
83
89
|
};
|
|
84
90
|
dateCreated: string;
|
|
85
91
|
};
|
|
@@ -98,12 +104,15 @@ export type CreateStakeActionResponse = {
|
|
|
98
104
|
amount: string;
|
|
99
105
|
walletId: string;
|
|
100
106
|
provider: "Figment";
|
|
101
|
-
protocol: "Babylon";
|
|
102
|
-
duration
|
|
103
|
-
}) | {
|
|
107
|
+
protocol: "Babylon" | "Ethereum";
|
|
108
|
+
duration?: number | undefined;
|
|
109
|
+
}) | ({
|
|
104
110
|
protocol: "Babylon";
|
|
105
111
|
kind: "StakeWithdrawal";
|
|
106
|
-
}
|
|
112
|
+
} | {
|
|
113
|
+
protocol: "Ethereum";
|
|
114
|
+
kind: "StakeWithdrawal";
|
|
115
|
+
});
|
|
107
116
|
dateCreated: string;
|
|
108
117
|
};
|
|
109
118
|
};
|
|
@@ -130,12 +139,15 @@ export type ListStakeActionsResponse = {
|
|
|
130
139
|
amount: string;
|
|
131
140
|
walletId: string;
|
|
132
141
|
provider: "Figment";
|
|
133
|
-
protocol: "Babylon";
|
|
134
|
-
duration
|
|
135
|
-
}) | {
|
|
142
|
+
protocol: "Babylon" | "Ethereum";
|
|
143
|
+
duration?: number | undefined;
|
|
144
|
+
}) | ({
|
|
136
145
|
protocol: "Babylon";
|
|
137
146
|
kind: "StakeWithdrawal";
|
|
138
|
-
}
|
|
147
|
+
} | {
|
|
148
|
+
protocol: "Ethereum";
|
|
149
|
+
kind: "StakeWithdrawal";
|
|
150
|
+
});
|
|
139
151
|
dateCreated: string;
|
|
140
152
|
}[];
|
|
141
153
|
nextPageToken?: string | undefined;
|
|
@@ -153,8 +165,8 @@ export type ListStakesResponse = {
|
|
|
153
165
|
provider: "Figment";
|
|
154
166
|
providerStakeId: string;
|
|
155
167
|
walletId: string;
|
|
156
|
-
protocol: "Babylon";
|
|
157
|
-
status: "Active" | "Withdrawn";
|
|
168
|
+
protocol: "Babylon" | "Ethereum";
|
|
169
|
+
status: "Creating" | "Active" | "Withdrawing" | "Withdrawn";
|
|
158
170
|
requester: {
|
|
159
171
|
userId: string;
|
|
160
172
|
tokenId?: string | undefined;
|
|
@@ -165,8 +177,8 @@ export type ListStakesResponse = {
|
|
|
165
177
|
amount: string;
|
|
166
178
|
walletId: string;
|
|
167
179
|
provider: "Figment";
|
|
168
|
-
protocol: "Babylon";
|
|
169
|
-
duration
|
|
180
|
+
protocol: "Babylon" | "Ethereum";
|
|
181
|
+
duration?: number | undefined;
|
|
170
182
|
};
|
|
171
183
|
dateCreated: string;
|
|
172
184
|
}[];
|