@dfns/sdk 0.5.5 → 0.5.6-alpha.2
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/dfnsApiClient.d.ts +2 -0
- package/dfnsApiClient.js +4 -0
- package/dfnsDelegatedApiClient.d.ts +2 -0
- package/dfnsDelegatedApiClient.js +4 -0
- package/generated/exchanges/client.d.ts +14 -0
- package/generated/exchanges/client.js +103 -0
- package/generated/exchanges/delegatedClient.d.ts +19 -0
- package/generated/exchanges/delegatedClient.js +164 -0
- package/generated/exchanges/index.d.ts +3 -0
- package/generated/exchanges/index.js +19 -0
- package/generated/exchanges/types.d.ts +466 -0
- package/generated/exchanges/types.js +2 -0
- package/generated/permissions/types.d.ts +2 -2
- package/package.json +1 -1
- package/types/exchanges.d.ts +1 -0
- package/types/exchanges.js +17 -0
package/dfnsApiClient.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DfnsBaseApiOptions } from './baseAuthApi';
|
|
2
2
|
import { AuthClient } from './generated/auth';
|
|
3
|
+
import { ExchangesClient } from './generated/exchanges';
|
|
3
4
|
import { NetworksClient } from './generated/networks';
|
|
4
5
|
import { PermissionsClient } from './generated/permissions';
|
|
5
6
|
import { PoliciesClient } from './generated/policies';
|
|
@@ -15,6 +16,7 @@ export declare class DfnsApiClient {
|
|
|
15
16
|
private apiOptions;
|
|
16
17
|
constructor(apiOptions: DfnsApiClientOptions);
|
|
17
18
|
get auth(): AuthClient;
|
|
19
|
+
get exchanges(): ExchangesClient;
|
|
18
20
|
get networks(): NetworksClient;
|
|
19
21
|
get permissions(): PermissionsClient;
|
|
20
22
|
get policies(): PoliciesClient;
|
package/dfnsApiClient.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DfnsApiClient = void 0;
|
|
4
4
|
const auth_1 = require("./generated/auth");
|
|
5
|
+
const exchanges_1 = require("./generated/exchanges");
|
|
5
6
|
const networks_1 = require("./generated/networks");
|
|
6
7
|
const permissions_1 = require("./generated/permissions");
|
|
7
8
|
const policies_1 = require("./generated/policies");
|
|
@@ -15,6 +16,9 @@ class DfnsApiClient {
|
|
|
15
16
|
get auth() {
|
|
16
17
|
return new auth_1.AuthClient(this.apiOptions);
|
|
17
18
|
}
|
|
19
|
+
get exchanges() {
|
|
20
|
+
return new exchanges_1.ExchangesClient(this.apiOptions);
|
|
21
|
+
}
|
|
18
22
|
get networks() {
|
|
19
23
|
return new networks_1.NetworksClient(this.apiOptions);
|
|
20
24
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DfnsBaseApiOptions } from './baseAuthApi';
|
|
2
2
|
import { DelegatedAuthClient } from './generated/auth';
|
|
3
|
+
import { DelegatedExchangesClient } from './generated/exchanges';
|
|
3
4
|
import { DelegatedNetworksClient } from './generated/networks';
|
|
4
5
|
import { DelegatedPermissionsClient } from './generated/permissions';
|
|
5
6
|
import { DelegatedPoliciesClient } from './generated/policies';
|
|
@@ -11,6 +12,7 @@ export declare class DfnsDelegatedApiClient {
|
|
|
11
12
|
private apiOptions;
|
|
12
13
|
constructor(apiOptions: DfnsDelegatedApiClientOptions);
|
|
13
14
|
get auth(): DelegatedAuthClient;
|
|
15
|
+
get exchanges(): DelegatedExchangesClient;
|
|
14
16
|
get networks(): DelegatedNetworksClient;
|
|
15
17
|
get permissions(): DelegatedPermissionsClient;
|
|
16
18
|
get policies(): DelegatedPoliciesClient;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DfnsDelegatedApiClient = void 0;
|
|
4
4
|
const auth_1 = require("./generated/auth");
|
|
5
|
+
const exchanges_1 = require("./generated/exchanges");
|
|
5
6
|
const networks_1 = require("./generated/networks");
|
|
6
7
|
const permissions_1 = require("./generated/permissions");
|
|
7
8
|
const policies_1 = require("./generated/policies");
|
|
@@ -15,6 +16,9 @@ class DfnsDelegatedApiClient {
|
|
|
15
16
|
get auth() {
|
|
16
17
|
return new auth_1.DelegatedAuthClient(this.apiOptions);
|
|
17
18
|
}
|
|
19
|
+
get exchanges() {
|
|
20
|
+
return new exchanges_1.DelegatedExchangesClient(this.apiOptions);
|
|
21
|
+
}
|
|
18
22
|
get networks() {
|
|
19
23
|
return new networks_1.DelegatedNetworksClient(this.apiOptions);
|
|
20
24
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DfnsApiClientOptions } from '../../dfnsApiClient';
|
|
2
|
+
import * as T from './types';
|
|
3
|
+
export declare class ExchangesClient {
|
|
4
|
+
private apiOptions;
|
|
5
|
+
constructor(apiOptions: DfnsApiClientOptions);
|
|
6
|
+
createDeposit(request: T.CreateDepositRequest): Promise<T.CreateDepositResponse>;
|
|
7
|
+
createExchange(request: T.CreateExchangeRequest): Promise<T.CreateExchangeResponse>;
|
|
8
|
+
createWithdrawal(request: T.CreateWithdrawalRequest): Promise<T.CreateWithdrawalResponse>;
|
|
9
|
+
deleteExchange(request: T.DeleteExchangeRequest): Promise<T.DeleteExchangeResponse>;
|
|
10
|
+
getExchange(request: T.GetExchangeRequest): Promise<T.GetExchangeResponse>;
|
|
11
|
+
listAccountAssets(request: T.ListAccountAssetsRequest): Promise<T.ListAccountAssetsResponse>;
|
|
12
|
+
listAccounts(request: T.ListAccountsRequest): Promise<T.ListAccountsResponse>;
|
|
13
|
+
listExchanges(request?: T.ListExchangesRequest): Promise<T.ListExchangesResponse>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExchangesClient = void 0;
|
|
4
|
+
const fetch_1 = require("../../utils/fetch");
|
|
5
|
+
const url_1 = require("../../utils/url");
|
|
6
|
+
class ExchangesClient {
|
|
7
|
+
constructor(apiOptions) {
|
|
8
|
+
this.apiOptions = apiOptions;
|
|
9
|
+
}
|
|
10
|
+
async createDeposit(request) {
|
|
11
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges/:exchangeId/accounts/:accountId/deposits', {
|
|
12
|
+
path: request ?? {},
|
|
13
|
+
query: {},
|
|
14
|
+
});
|
|
15
|
+
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
16
|
+
method: 'POST',
|
|
17
|
+
body: request.body,
|
|
18
|
+
apiOptions: this.apiOptions,
|
|
19
|
+
});
|
|
20
|
+
return response.json();
|
|
21
|
+
}
|
|
22
|
+
async createExchange(request) {
|
|
23
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges', {
|
|
24
|
+
path: request ?? {},
|
|
25
|
+
query: {},
|
|
26
|
+
});
|
|
27
|
+
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
28
|
+
method: 'POST',
|
|
29
|
+
body: request.body,
|
|
30
|
+
apiOptions: this.apiOptions,
|
|
31
|
+
});
|
|
32
|
+
return response.json();
|
|
33
|
+
}
|
|
34
|
+
async createWithdrawal(request) {
|
|
35
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges/:exchangeId/accounts/:accountId/withdrawals', {
|
|
36
|
+
path: request ?? {},
|
|
37
|
+
query: {},
|
|
38
|
+
});
|
|
39
|
+
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
40
|
+
method: 'POST',
|
|
41
|
+
body: request.body,
|
|
42
|
+
apiOptions: this.apiOptions,
|
|
43
|
+
});
|
|
44
|
+
return response.json();
|
|
45
|
+
}
|
|
46
|
+
async deleteExchange(request) {
|
|
47
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges/:exchangeId', {
|
|
48
|
+
path: request ?? {},
|
|
49
|
+
query: {},
|
|
50
|
+
});
|
|
51
|
+
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
52
|
+
method: 'DELETE',
|
|
53
|
+
body: {},
|
|
54
|
+
apiOptions: this.apiOptions,
|
|
55
|
+
});
|
|
56
|
+
return response.json();
|
|
57
|
+
}
|
|
58
|
+
async getExchange(request) {
|
|
59
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges/:exchangeId', {
|
|
60
|
+
path: request ?? {},
|
|
61
|
+
query: {},
|
|
62
|
+
});
|
|
63
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
64
|
+
method: 'GET',
|
|
65
|
+
apiOptions: this.apiOptions,
|
|
66
|
+
});
|
|
67
|
+
return response.json();
|
|
68
|
+
}
|
|
69
|
+
async listAccountAssets(request) {
|
|
70
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges/:exchangeId/accounts/:accountId/assets', {
|
|
71
|
+
path: request ?? {},
|
|
72
|
+
query: request.query ?? {},
|
|
73
|
+
});
|
|
74
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
75
|
+
method: 'GET',
|
|
76
|
+
apiOptions: this.apiOptions,
|
|
77
|
+
});
|
|
78
|
+
return response.json();
|
|
79
|
+
}
|
|
80
|
+
async listAccounts(request) {
|
|
81
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges/:exchangeId/accounts', {
|
|
82
|
+
path: request ?? {},
|
|
83
|
+
query: request.query ?? {},
|
|
84
|
+
});
|
|
85
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
86
|
+
method: 'GET',
|
|
87
|
+
apiOptions: this.apiOptions,
|
|
88
|
+
});
|
|
89
|
+
return response.json();
|
|
90
|
+
}
|
|
91
|
+
async listExchanges(request) {
|
|
92
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges', {
|
|
93
|
+
path: request ?? {},
|
|
94
|
+
query: request?.query ?? {},
|
|
95
|
+
});
|
|
96
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
97
|
+
method: 'GET',
|
|
98
|
+
apiOptions: this.apiOptions,
|
|
99
|
+
});
|
|
100
|
+
return response.json();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
exports.ExchangesClient = ExchangesClient;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SignUserActionChallengeRequest, UserActionChallengeResponse } from '../../baseAuthApi';
|
|
2
|
+
import { DfnsDelegatedApiClientOptions } from '../../dfnsDelegatedApiClient';
|
|
3
|
+
import * as T from './types';
|
|
4
|
+
export declare class DelegatedExchangesClient {
|
|
5
|
+
private apiOptions;
|
|
6
|
+
constructor(apiOptions: DfnsDelegatedApiClientOptions);
|
|
7
|
+
createDepositInit(request: T.CreateDepositRequest): Promise<UserActionChallengeResponse>;
|
|
8
|
+
createDepositComplete(request: T.CreateDepositRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateDepositResponse>;
|
|
9
|
+
createExchangeInit(request: T.CreateExchangeRequest): Promise<UserActionChallengeResponse>;
|
|
10
|
+
createExchangeComplete(request: T.CreateExchangeRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateExchangeResponse>;
|
|
11
|
+
createWithdrawalInit(request: T.CreateWithdrawalRequest): Promise<UserActionChallengeResponse>;
|
|
12
|
+
createWithdrawalComplete(request: T.CreateWithdrawalRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateWithdrawalResponse>;
|
|
13
|
+
deleteExchangeInit(request: T.DeleteExchangeRequest): Promise<UserActionChallengeResponse>;
|
|
14
|
+
deleteExchangeComplete(request: T.DeleteExchangeRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.DeleteExchangeResponse>;
|
|
15
|
+
getExchange(request: T.GetExchangeRequest): Promise<T.GetExchangeResponse>;
|
|
16
|
+
listAccountAssets(request: T.ListAccountAssetsRequest): Promise<T.ListAccountAssetsResponse>;
|
|
17
|
+
listAccounts(request: T.ListAccountsRequest): Promise<T.ListAccountsResponse>;
|
|
18
|
+
listExchanges(request?: T.ListExchangesRequest): Promise<T.ListExchangesResponse>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DelegatedExchangesClient = void 0;
|
|
4
|
+
const baseAuthApi_1 = require("../../baseAuthApi");
|
|
5
|
+
const fetch_1 = require("../../utils/fetch");
|
|
6
|
+
const url_1 = require("../../utils/url");
|
|
7
|
+
class DelegatedExchangesClient {
|
|
8
|
+
constructor(apiOptions) {
|
|
9
|
+
this.apiOptions = apiOptions;
|
|
10
|
+
}
|
|
11
|
+
async createDepositInit(request) {
|
|
12
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges/:exchangeId/accounts/:accountId/deposits', {
|
|
13
|
+
path: request ?? {},
|
|
14
|
+
query: {},
|
|
15
|
+
});
|
|
16
|
+
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
17
|
+
userActionHttpMethod: 'POST',
|
|
18
|
+
userActionHttpPath: path,
|
|
19
|
+
userActionPayload: JSON.stringify(request.body),
|
|
20
|
+
userActionServerKind: 'Api',
|
|
21
|
+
}, this.apiOptions);
|
|
22
|
+
return challenge;
|
|
23
|
+
}
|
|
24
|
+
async createDepositComplete(request, signedChallenge) {
|
|
25
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges/:exchangeId/accounts/:accountId/deposits', {
|
|
26
|
+
path: request ?? {},
|
|
27
|
+
query: {},
|
|
28
|
+
});
|
|
29
|
+
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
30
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
31
|
+
method: 'POST',
|
|
32
|
+
body: request.body,
|
|
33
|
+
headers: { 'x-dfns-useraction': userAction },
|
|
34
|
+
apiOptions: this.apiOptions,
|
|
35
|
+
});
|
|
36
|
+
return response.json();
|
|
37
|
+
}
|
|
38
|
+
async createExchangeInit(request) {
|
|
39
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges', {
|
|
40
|
+
path: request ?? {},
|
|
41
|
+
query: {},
|
|
42
|
+
});
|
|
43
|
+
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
44
|
+
userActionHttpMethod: 'POST',
|
|
45
|
+
userActionHttpPath: path,
|
|
46
|
+
userActionPayload: JSON.stringify(request.body),
|
|
47
|
+
userActionServerKind: 'Api',
|
|
48
|
+
}, this.apiOptions);
|
|
49
|
+
return challenge;
|
|
50
|
+
}
|
|
51
|
+
async createExchangeComplete(request, signedChallenge) {
|
|
52
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges', {
|
|
53
|
+
path: request ?? {},
|
|
54
|
+
query: {},
|
|
55
|
+
});
|
|
56
|
+
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
57
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
58
|
+
method: 'POST',
|
|
59
|
+
body: request.body,
|
|
60
|
+
headers: { 'x-dfns-useraction': userAction },
|
|
61
|
+
apiOptions: this.apiOptions,
|
|
62
|
+
});
|
|
63
|
+
return response.json();
|
|
64
|
+
}
|
|
65
|
+
async createWithdrawalInit(request) {
|
|
66
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges/:exchangeId/accounts/:accountId/withdrawals', {
|
|
67
|
+
path: request ?? {},
|
|
68
|
+
query: {},
|
|
69
|
+
});
|
|
70
|
+
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
71
|
+
userActionHttpMethod: 'POST',
|
|
72
|
+
userActionHttpPath: path,
|
|
73
|
+
userActionPayload: JSON.stringify(request.body),
|
|
74
|
+
userActionServerKind: 'Api',
|
|
75
|
+
}, this.apiOptions);
|
|
76
|
+
return challenge;
|
|
77
|
+
}
|
|
78
|
+
async createWithdrawalComplete(request, signedChallenge) {
|
|
79
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges/:exchangeId/accounts/:accountId/withdrawals', {
|
|
80
|
+
path: request ?? {},
|
|
81
|
+
query: {},
|
|
82
|
+
});
|
|
83
|
+
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
84
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
85
|
+
method: 'POST',
|
|
86
|
+
body: request.body,
|
|
87
|
+
headers: { 'x-dfns-useraction': userAction },
|
|
88
|
+
apiOptions: this.apiOptions,
|
|
89
|
+
});
|
|
90
|
+
return response.json();
|
|
91
|
+
}
|
|
92
|
+
async deleteExchangeInit(request) {
|
|
93
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges/:exchangeId', {
|
|
94
|
+
path: request ?? {},
|
|
95
|
+
query: {},
|
|
96
|
+
});
|
|
97
|
+
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
98
|
+
userActionHttpMethod: 'DELETE',
|
|
99
|
+
userActionHttpPath: path,
|
|
100
|
+
userActionPayload: JSON.stringify({}),
|
|
101
|
+
userActionServerKind: 'Api',
|
|
102
|
+
}, this.apiOptions);
|
|
103
|
+
return challenge;
|
|
104
|
+
}
|
|
105
|
+
async deleteExchangeComplete(request, signedChallenge) {
|
|
106
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges/:exchangeId', {
|
|
107
|
+
path: request ?? {},
|
|
108
|
+
query: {},
|
|
109
|
+
});
|
|
110
|
+
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
111
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
112
|
+
method: 'DELETE',
|
|
113
|
+
body: {},
|
|
114
|
+
headers: { 'x-dfns-useraction': userAction },
|
|
115
|
+
apiOptions: this.apiOptions,
|
|
116
|
+
});
|
|
117
|
+
return response.json();
|
|
118
|
+
}
|
|
119
|
+
async getExchange(request) {
|
|
120
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges/:exchangeId', {
|
|
121
|
+
path: request ?? {},
|
|
122
|
+
query: {},
|
|
123
|
+
});
|
|
124
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
125
|
+
method: 'GET',
|
|
126
|
+
apiOptions: this.apiOptions,
|
|
127
|
+
});
|
|
128
|
+
return response.json();
|
|
129
|
+
}
|
|
130
|
+
async listAccountAssets(request) {
|
|
131
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges/:exchangeId/accounts/:accountId/assets', {
|
|
132
|
+
path: request ?? {},
|
|
133
|
+
query: request.query ?? {},
|
|
134
|
+
});
|
|
135
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
136
|
+
method: 'GET',
|
|
137
|
+
apiOptions: this.apiOptions,
|
|
138
|
+
});
|
|
139
|
+
return response.json();
|
|
140
|
+
}
|
|
141
|
+
async listAccounts(request) {
|
|
142
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges/:exchangeId/accounts', {
|
|
143
|
+
path: request ?? {},
|
|
144
|
+
query: request.query ?? {},
|
|
145
|
+
});
|
|
146
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
147
|
+
method: 'GET',
|
|
148
|
+
apiOptions: this.apiOptions,
|
|
149
|
+
});
|
|
150
|
+
return response.json();
|
|
151
|
+
}
|
|
152
|
+
async listExchanges(request) {
|
|
153
|
+
const path = (0, url_1.buildPathAndQuery)('/exchanges', {
|
|
154
|
+
path: request ?? {},
|
|
155
|
+
query: request?.query ?? {},
|
|
156
|
+
});
|
|
157
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
158
|
+
method: 'GET',
|
|
159
|
+
apiOptions: this.apiOptions,
|
|
160
|
+
});
|
|
161
|
+
return response.json();
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
exports.DelegatedExchangesClient = DelegatedExchangesClient;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
19
|
+
__exportStar(require("./delegatedClient"), exports);
|
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
export type CreateDepositBody = {
|
|
2
|
+
kind: "Native";
|
|
3
|
+
amount: string;
|
|
4
|
+
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
5
|
+
from: string | string | string | string | string | string | string | string | string | string | string | string | string;
|
|
6
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
7
|
+
} | {
|
|
8
|
+
kind: "Erc20";
|
|
9
|
+
contract: string;
|
|
10
|
+
amount: string;
|
|
11
|
+
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
12
|
+
from: string;
|
|
13
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
14
|
+
} | {
|
|
15
|
+
kind: "Erc721";
|
|
16
|
+
contract: string;
|
|
17
|
+
tokenId: string;
|
|
18
|
+
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
19
|
+
from: string;
|
|
20
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
21
|
+
} | {
|
|
22
|
+
kind: "Trc10";
|
|
23
|
+
tokenId: string;
|
|
24
|
+
amount: string;
|
|
25
|
+
from: string;
|
|
26
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
27
|
+
} | {
|
|
28
|
+
kind: "Trc20";
|
|
29
|
+
contract: string;
|
|
30
|
+
amount: string;
|
|
31
|
+
from: string;
|
|
32
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
33
|
+
} | {
|
|
34
|
+
kind: "Trc721";
|
|
35
|
+
contract: string;
|
|
36
|
+
tokenId: string;
|
|
37
|
+
from: string;
|
|
38
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
39
|
+
} | {
|
|
40
|
+
kind: "Asa";
|
|
41
|
+
assetId: string;
|
|
42
|
+
amount: string;
|
|
43
|
+
from: string;
|
|
44
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
45
|
+
} | {
|
|
46
|
+
kind: "Sep41";
|
|
47
|
+
issuer: string;
|
|
48
|
+
assetCode: string;
|
|
49
|
+
amount: string;
|
|
50
|
+
from: string;
|
|
51
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
52
|
+
} | {
|
|
53
|
+
kind: "Spl" | "Spl2022";
|
|
54
|
+
amount: string;
|
|
55
|
+
mint: string;
|
|
56
|
+
createDestinationAccount?: boolean | undefined;
|
|
57
|
+
from: string;
|
|
58
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
59
|
+
} | {
|
|
60
|
+
kind: "Tep74";
|
|
61
|
+
master: string;
|
|
62
|
+
amount: string;
|
|
63
|
+
from: string;
|
|
64
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
65
|
+
};
|
|
66
|
+
export type CreateDepositParams = {
|
|
67
|
+
exchangeId: string;
|
|
68
|
+
accountId: string;
|
|
69
|
+
};
|
|
70
|
+
export type CreateDepositResponse = {
|
|
71
|
+
id: string;
|
|
72
|
+
walletId: string;
|
|
73
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "Ton" | "TonTestnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
74
|
+
requester: {
|
|
75
|
+
userId: string;
|
|
76
|
+
tokenId?: string | undefined;
|
|
77
|
+
appId?: string | undefined;
|
|
78
|
+
};
|
|
79
|
+
requestBody: {
|
|
80
|
+
kind: "Native";
|
|
81
|
+
to: string | string | string | string | string | string | string | string | string | string | string | string | string;
|
|
82
|
+
amount: string;
|
|
83
|
+
memo?: string | undefined;
|
|
84
|
+
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
85
|
+
} | {
|
|
86
|
+
kind: "Erc20";
|
|
87
|
+
contract: string;
|
|
88
|
+
to: string;
|
|
89
|
+
amount: string;
|
|
90
|
+
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
91
|
+
} | {
|
|
92
|
+
kind: "Erc721";
|
|
93
|
+
contract: string;
|
|
94
|
+
to: string;
|
|
95
|
+
tokenId: string;
|
|
96
|
+
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
97
|
+
} | {
|
|
98
|
+
kind: "Trc10";
|
|
99
|
+
tokenId: string;
|
|
100
|
+
to: string;
|
|
101
|
+
amount: string;
|
|
102
|
+
} | {
|
|
103
|
+
kind: "Trc20";
|
|
104
|
+
contract: string;
|
|
105
|
+
to: string;
|
|
106
|
+
amount: string;
|
|
107
|
+
} | {
|
|
108
|
+
kind: "Trc721";
|
|
109
|
+
contract: string;
|
|
110
|
+
to: string;
|
|
111
|
+
tokenId: string;
|
|
112
|
+
} | {
|
|
113
|
+
kind: "Asa";
|
|
114
|
+
assetId: string;
|
|
115
|
+
to: string;
|
|
116
|
+
amount: string;
|
|
117
|
+
} | {
|
|
118
|
+
kind: "Sep41";
|
|
119
|
+
issuer: string;
|
|
120
|
+
assetCode: string;
|
|
121
|
+
to: string;
|
|
122
|
+
amount: string;
|
|
123
|
+
memo?: string | undefined;
|
|
124
|
+
} | {
|
|
125
|
+
kind: "Spl" | "Spl2022";
|
|
126
|
+
to: string;
|
|
127
|
+
amount: string;
|
|
128
|
+
mint: string;
|
|
129
|
+
createDestinationAccount?: boolean | undefined;
|
|
130
|
+
} | {
|
|
131
|
+
kind: "Tep74";
|
|
132
|
+
to: string;
|
|
133
|
+
master: string;
|
|
134
|
+
amount: string;
|
|
135
|
+
memo?: string | undefined;
|
|
136
|
+
};
|
|
137
|
+
metadata: {
|
|
138
|
+
asset: {
|
|
139
|
+
symbol?: string | undefined;
|
|
140
|
+
decimals?: number | undefined;
|
|
141
|
+
verified?: boolean | undefined;
|
|
142
|
+
quotes?: {
|
|
143
|
+
[x: string]: number;
|
|
144
|
+
} | undefined;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
status: "Pending" | "Executing" | "Broadcasted" | "Confirmed" | "Failed" | "Rejected";
|
|
148
|
+
reason?: string | undefined;
|
|
149
|
+
txHash?: string | undefined;
|
|
150
|
+
fee?: string | undefined;
|
|
151
|
+
dateRequested: string;
|
|
152
|
+
datePolicyResolved?: string | undefined;
|
|
153
|
+
dateBroadcasted?: string | undefined;
|
|
154
|
+
dateConfirmed?: string | undefined;
|
|
155
|
+
approvalId?: string | undefined;
|
|
156
|
+
};
|
|
157
|
+
export type CreateDepositRequest = CreateDepositParams & {
|
|
158
|
+
body: CreateDepositBody;
|
|
159
|
+
};
|
|
160
|
+
export type CreateExchangeBody = {
|
|
161
|
+
name?: string | undefined;
|
|
162
|
+
kind: "Binance" | "Kraken" | "Coinbase" | "OKX" | "Bitstamp";
|
|
163
|
+
readConfiguration: {
|
|
164
|
+
publicApiKey: string;
|
|
165
|
+
privateApiKey: string;
|
|
166
|
+
password?: string | undefined;
|
|
167
|
+
};
|
|
168
|
+
writeConfiguration: {
|
|
169
|
+
publicApiKey: string;
|
|
170
|
+
privateApiKey: string;
|
|
171
|
+
password?: string | undefined;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
export type CreateExchangeResponse = {
|
|
175
|
+
id: string;
|
|
176
|
+
name?: string | undefined;
|
|
177
|
+
kind: "Binance" | "Kraken" | "Coinbase" | "OKX" | "Bitstamp";
|
|
178
|
+
dateCreated: string;
|
|
179
|
+
};
|
|
180
|
+
export type CreateExchangeRequest = {
|
|
181
|
+
body: CreateExchangeBody;
|
|
182
|
+
};
|
|
183
|
+
export type CreateWithdrawalBody = {
|
|
184
|
+
kind: "Native";
|
|
185
|
+
to: string | string | string | string | string | string | string | string | string | string | string | string | string;
|
|
186
|
+
amount: string;
|
|
187
|
+
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
188
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
189
|
+
} | {
|
|
190
|
+
kind: "Erc20";
|
|
191
|
+
contract: string;
|
|
192
|
+
to: string;
|
|
193
|
+
amount: string;
|
|
194
|
+
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
195
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
196
|
+
} | {
|
|
197
|
+
kind: "Erc721";
|
|
198
|
+
contract: string;
|
|
199
|
+
to: string;
|
|
200
|
+
tokenId: string;
|
|
201
|
+
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
202
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
203
|
+
} | {
|
|
204
|
+
kind: "Trc10";
|
|
205
|
+
tokenId: string;
|
|
206
|
+
to: string;
|
|
207
|
+
amount: string;
|
|
208
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
209
|
+
} | {
|
|
210
|
+
kind: "Trc20";
|
|
211
|
+
contract: string;
|
|
212
|
+
to: string;
|
|
213
|
+
amount: string;
|
|
214
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
215
|
+
} | {
|
|
216
|
+
kind: "Trc721";
|
|
217
|
+
contract: string;
|
|
218
|
+
to: string;
|
|
219
|
+
tokenId: string;
|
|
220
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
221
|
+
} | {
|
|
222
|
+
kind: "Asa";
|
|
223
|
+
assetId: string;
|
|
224
|
+
to: string;
|
|
225
|
+
amount: string;
|
|
226
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
227
|
+
} | {
|
|
228
|
+
kind: "Sep41";
|
|
229
|
+
issuer: string;
|
|
230
|
+
assetCode: string;
|
|
231
|
+
to: string;
|
|
232
|
+
amount: string;
|
|
233
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
234
|
+
} | {
|
|
235
|
+
kind: "Spl" | "Spl2022";
|
|
236
|
+
to: string;
|
|
237
|
+
amount: string;
|
|
238
|
+
mint: string;
|
|
239
|
+
createDestinationAccount?: boolean | undefined;
|
|
240
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
241
|
+
} | {
|
|
242
|
+
kind: "Tep74";
|
|
243
|
+
to: string;
|
|
244
|
+
master: string;
|
|
245
|
+
amount: string;
|
|
246
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
247
|
+
};
|
|
248
|
+
export type CreateWithdrawalParams = {
|
|
249
|
+
exchangeId: string;
|
|
250
|
+
accountId: string;
|
|
251
|
+
};
|
|
252
|
+
export type CreateWithdrawalResponse = {
|
|
253
|
+
id: string;
|
|
254
|
+
walletId: string;
|
|
255
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "Ton" | "TonTestnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
256
|
+
requester: {
|
|
257
|
+
userId: string;
|
|
258
|
+
tokenId?: string | undefined;
|
|
259
|
+
appId?: string | undefined;
|
|
260
|
+
};
|
|
261
|
+
requestBody: {
|
|
262
|
+
kind: "Native";
|
|
263
|
+
to: string | string | string | string | string | string | string | string | string | string | string | string | string;
|
|
264
|
+
amount: string;
|
|
265
|
+
memo?: string | undefined;
|
|
266
|
+
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
267
|
+
} | {
|
|
268
|
+
kind: "Erc20";
|
|
269
|
+
contract: string;
|
|
270
|
+
to: string;
|
|
271
|
+
amount: string;
|
|
272
|
+
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
273
|
+
} | {
|
|
274
|
+
kind: "Erc721";
|
|
275
|
+
contract: string;
|
|
276
|
+
to: string;
|
|
277
|
+
tokenId: string;
|
|
278
|
+
priority?: ("Slow" | "Standard" | "Fast") | undefined;
|
|
279
|
+
} | {
|
|
280
|
+
kind: "Trc10";
|
|
281
|
+
tokenId: string;
|
|
282
|
+
to: string;
|
|
283
|
+
amount: string;
|
|
284
|
+
} | {
|
|
285
|
+
kind: "Trc20";
|
|
286
|
+
contract: string;
|
|
287
|
+
to: string;
|
|
288
|
+
amount: string;
|
|
289
|
+
} | {
|
|
290
|
+
kind: "Trc721";
|
|
291
|
+
contract: string;
|
|
292
|
+
to: string;
|
|
293
|
+
tokenId: string;
|
|
294
|
+
} | {
|
|
295
|
+
kind: "Asa";
|
|
296
|
+
assetId: string;
|
|
297
|
+
to: string;
|
|
298
|
+
amount: string;
|
|
299
|
+
} | {
|
|
300
|
+
kind: "Sep41";
|
|
301
|
+
issuer: string;
|
|
302
|
+
assetCode: string;
|
|
303
|
+
to: string;
|
|
304
|
+
amount: string;
|
|
305
|
+
memo?: string | undefined;
|
|
306
|
+
} | {
|
|
307
|
+
kind: "Spl" | "Spl2022";
|
|
308
|
+
to: string;
|
|
309
|
+
amount: string;
|
|
310
|
+
mint: string;
|
|
311
|
+
createDestinationAccount?: boolean | undefined;
|
|
312
|
+
} | {
|
|
313
|
+
kind: "Tep74";
|
|
314
|
+
to: string;
|
|
315
|
+
master: string;
|
|
316
|
+
amount: string;
|
|
317
|
+
memo?: string | undefined;
|
|
318
|
+
};
|
|
319
|
+
metadata: {
|
|
320
|
+
asset: {
|
|
321
|
+
symbol?: string | undefined;
|
|
322
|
+
decimals?: number | undefined;
|
|
323
|
+
verified?: boolean | undefined;
|
|
324
|
+
quotes?: {
|
|
325
|
+
[x: string]: number;
|
|
326
|
+
} | undefined;
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
status: "Pending" | "Executing" | "Broadcasted" | "Confirmed" | "Failed" | "Rejected";
|
|
330
|
+
reason?: string | undefined;
|
|
331
|
+
txHash?: string | undefined;
|
|
332
|
+
fee?: string | undefined;
|
|
333
|
+
dateRequested: string;
|
|
334
|
+
datePolicyResolved?: string | undefined;
|
|
335
|
+
dateBroadcasted?: string | undefined;
|
|
336
|
+
dateConfirmed?: string | undefined;
|
|
337
|
+
approvalId?: string | undefined;
|
|
338
|
+
};
|
|
339
|
+
export type CreateWithdrawalRequest = CreateWithdrawalParams & {
|
|
340
|
+
body: CreateWithdrawalBody;
|
|
341
|
+
};
|
|
342
|
+
export type DeleteExchangeParams = {
|
|
343
|
+
exchangeId: string;
|
|
344
|
+
};
|
|
345
|
+
export type DeleteExchangeResponse = {
|
|
346
|
+
deleted: true;
|
|
347
|
+
};
|
|
348
|
+
export type DeleteExchangeRequest = DeleteExchangeParams;
|
|
349
|
+
export type GetExchangeParams = {
|
|
350
|
+
exchangeId: string;
|
|
351
|
+
};
|
|
352
|
+
export type GetExchangeResponse = {
|
|
353
|
+
id: string;
|
|
354
|
+
name?: string | undefined;
|
|
355
|
+
kind: "Binance" | "Kraken" | "Coinbase" | "OKX" | "Bitstamp";
|
|
356
|
+
dateCreated: string;
|
|
357
|
+
};
|
|
358
|
+
export type GetExchangeRequest = GetExchangeParams;
|
|
359
|
+
export type ListAccountAssetsParams = {
|
|
360
|
+
exchangeId: string;
|
|
361
|
+
accountId: string;
|
|
362
|
+
};
|
|
363
|
+
export type ListAccountAssetsQuery = {
|
|
364
|
+
limit?: number | undefined;
|
|
365
|
+
paginationToken?: string | undefined;
|
|
366
|
+
};
|
|
367
|
+
export type ListAccountAssetsResponse = {
|
|
368
|
+
items: {
|
|
369
|
+
symbol: string;
|
|
370
|
+
balance: string;
|
|
371
|
+
decimals: number;
|
|
372
|
+
networks: (({
|
|
373
|
+
kind: "Native";
|
|
374
|
+
symbol?: string | undefined;
|
|
375
|
+
decimals: number;
|
|
376
|
+
verified?: boolean | undefined;
|
|
377
|
+
balance: string;
|
|
378
|
+
} | {
|
|
379
|
+
kind: "Asa";
|
|
380
|
+
assetId: string;
|
|
381
|
+
symbol?: string | undefined;
|
|
382
|
+
decimals: number;
|
|
383
|
+
verified?: boolean | undefined;
|
|
384
|
+
balance: string;
|
|
385
|
+
} | {
|
|
386
|
+
kind: "Erc20" | "Trc20";
|
|
387
|
+
contract: string;
|
|
388
|
+
symbol?: string | undefined;
|
|
389
|
+
decimals: number;
|
|
390
|
+
verified?: boolean | undefined;
|
|
391
|
+
balance: string;
|
|
392
|
+
} | {
|
|
393
|
+
kind: "Sep41";
|
|
394
|
+
issuer: string;
|
|
395
|
+
assetCode: string;
|
|
396
|
+
symbol?: string | undefined;
|
|
397
|
+
decimals: number;
|
|
398
|
+
verified?: boolean | undefined;
|
|
399
|
+
balance: string;
|
|
400
|
+
} | {
|
|
401
|
+
kind: "Trc10";
|
|
402
|
+
tokenId: string;
|
|
403
|
+
symbol?: string | undefined;
|
|
404
|
+
decimals: number;
|
|
405
|
+
verified?: boolean | undefined;
|
|
406
|
+
balance: string;
|
|
407
|
+
} | {
|
|
408
|
+
kind: "Spl" | "Spl2022";
|
|
409
|
+
mint: string;
|
|
410
|
+
symbol?: string | undefined;
|
|
411
|
+
decimals: number;
|
|
412
|
+
verified?: boolean | undefined;
|
|
413
|
+
balance: string;
|
|
414
|
+
} | {
|
|
415
|
+
kind: "Tep74";
|
|
416
|
+
master: string;
|
|
417
|
+
symbol?: string | undefined;
|
|
418
|
+
decimals: number;
|
|
419
|
+
verified?: boolean | undefined;
|
|
420
|
+
balance: string;
|
|
421
|
+
}) & {
|
|
422
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Origyn" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
423
|
+
})[];
|
|
424
|
+
}[];
|
|
425
|
+
nextPageToken?: string | undefined;
|
|
426
|
+
};
|
|
427
|
+
export type ListAccountAssetsRequest = ListAccountAssetsParams & {
|
|
428
|
+
query?: ListAccountAssetsQuery;
|
|
429
|
+
};
|
|
430
|
+
export type ListAccountsParams = {
|
|
431
|
+
exchangeId: string;
|
|
432
|
+
};
|
|
433
|
+
export type ListAccountsQuery = {
|
|
434
|
+
limit?: number | undefined;
|
|
435
|
+
paginationToken?: string | undefined;
|
|
436
|
+
symbol?: string | undefined;
|
|
437
|
+
network?: ("Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "Ton" | "TonTestnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA") | undefined;
|
|
438
|
+
};
|
|
439
|
+
export type ListAccountsResponse = {
|
|
440
|
+
items: {
|
|
441
|
+
id: string;
|
|
442
|
+
name?: string | undefined;
|
|
443
|
+
exchangeId: string;
|
|
444
|
+
exchangeName?: string | undefined;
|
|
445
|
+
}[];
|
|
446
|
+
nextPageToken?: string | undefined;
|
|
447
|
+
};
|
|
448
|
+
export type ListAccountsRequest = ListAccountsParams & {
|
|
449
|
+
query?: ListAccountsQuery;
|
|
450
|
+
};
|
|
451
|
+
export type ListExchangesQuery = {
|
|
452
|
+
limit?: number | undefined;
|
|
453
|
+
paginationToken?: string | undefined;
|
|
454
|
+
};
|
|
455
|
+
export type ListExchangesResponse = {
|
|
456
|
+
items: {
|
|
457
|
+
id: string;
|
|
458
|
+
name?: string | undefined;
|
|
459
|
+
kind: "Binance" | "Kraken" | "Coinbase" | "OKX" | "Bitstamp";
|
|
460
|
+
dateCreated: string;
|
|
461
|
+
}[];
|
|
462
|
+
nextPageToken?: string | undefined;
|
|
463
|
+
};
|
|
464
|
+
export type ListExchangesRequest = {
|
|
465
|
+
query?: ListExchangesQuery;
|
|
466
|
+
};
|
|
@@ -36,7 +36,7 @@ export type CreateAssignmentRequest = CreateAssignmentParams & {
|
|
|
36
36
|
};
|
|
37
37
|
export type CreatePermissionBody = {
|
|
38
38
|
name: string;
|
|
39
|
-
operations: ("Auth:Action:Sign" | "Auth:Apps:Create" | "Auth:Apps:Read" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Auth:Users:Create" | "Auth:Users:Delegate" | "Auth:Users:Read" | "Auth:Users:Update" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke" | "PermissionPredicates:Archive" | "PermissionPredicates:Create" | "PermissionPredicates:Read" | "PermissionPredicates:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Wallets:BroadcastTransaction" | "Wallets:Create" | "Wallets:Delegate" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:Import" | "Wallets:Read" | "Wallets:ReadSignature" | "Wallets:ReadTransaction" | "Wallets:ReadTransfer" | "Wallets:TransferAsset" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read")[];
|
|
39
|
+
operations: ("Auth:Action:Sign" | "Auth:Apps:Create" | "Auth:Apps:Read" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Auth:Users:Create" | "Auth:Users:Delegate" | "Auth:Users:Read" | "Auth:Users:Update" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke" | "PermissionPredicates:Archive" | "PermissionPredicates:Create" | "PermissionPredicates:Read" | "PermissionPredicates:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Wallets:BroadcastTransaction" | "Wallets:Create" | "Wallets:Delegate" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:Import" | "Wallets:Read" | "Wallets:ReadSignature" | "Wallets:ReadTransaction" | "Wallets:ReadTransfer" | "Wallets:TransferAsset" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read")[];
|
|
40
40
|
};
|
|
41
41
|
export type CreatePermissionResponse = {
|
|
42
42
|
id: string;
|
|
@@ -178,7 +178,7 @@ export type ListPermissionsRequest = {
|
|
|
178
178
|
};
|
|
179
179
|
export type UpdatePermissionBody = {
|
|
180
180
|
name?: string | undefined;
|
|
181
|
-
operations?: ("Auth:Action:Sign" | "Auth:Apps:Create" | "Auth:Apps:Read" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Auth:Users:Create" | "Auth:Users:Delegate" | "Auth:Users:Read" | "Auth:Users:Update" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke" | "PermissionPredicates:Archive" | "PermissionPredicates:Create" | "PermissionPredicates:Read" | "PermissionPredicates:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Wallets:BroadcastTransaction" | "Wallets:Create" | "Wallets:Delegate" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:Import" | "Wallets:Read" | "Wallets:ReadSignature" | "Wallets:ReadTransaction" | "Wallets:ReadTransfer" | "Wallets:TransferAsset" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read")[] | undefined;
|
|
181
|
+
operations?: ("Auth:Action:Sign" | "Auth:Apps:Create" | "Auth:Apps:Read" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Auth:Users:Create" | "Auth:Users:Delegate" | "Auth:Users:Read" | "Auth:Users:Update" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke" | "PermissionPredicates:Archive" | "PermissionPredicates:Create" | "PermissionPredicates:Read" | "PermissionPredicates:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Wallets:BroadcastTransaction" | "Wallets:Create" | "Wallets:Delegate" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:Import" | "Wallets:Read" | "Wallets:ReadSignature" | "Wallets:ReadTransaction" | "Wallets:ReadTransfer" | "Wallets:TransferAsset" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read")[] | undefined;
|
|
182
182
|
};
|
|
183
183
|
export type UpdatePermissionParams = {
|
|
184
184
|
permissionId: string;
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../generated/exchanges/types';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("../generated/exchanges/types"), exports);
|