@distilled.cloud/coinbase 0.8.0 → 0.9.0
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/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +2 -2
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +51 -51
- package/lib/retry.d.ts +2 -2
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +2 -2
- package/lib/retry.js.map +1 -1
- package/package.json +4 -4
- package/src/credentials.ts +2 -2
- package/src/retry.ts +2 -4
package/lib/credentials.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Layer from "effect/Layer";
|
|
2
2
|
import * as Redacted from "effect/Redacted";
|
|
3
|
-
import * as
|
|
3
|
+
import * as Context from "effect/Context";
|
|
4
4
|
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
5
5
|
export declare const DEFAULT_API_BASE_URL = "https://api.cdp.coinbase.com/platform";
|
|
6
6
|
export interface Config {
|
|
@@ -25,7 +25,7 @@ export interface Config {
|
|
|
25
25
|
*/
|
|
26
26
|
readonly apiBaseUrl: string;
|
|
27
27
|
}
|
|
28
|
-
declare const Credentials_base:
|
|
28
|
+
declare const Credentials_base: Context.ServiceClass<Credentials, "CoinbaseCredentials", Config>;
|
|
29
29
|
export declare class Credentials extends Credentials_base {
|
|
30
30
|
}
|
|
31
31
|
export declare const CredentialsFromEnv: Layer.Layer<Credentials, ConfigError, never>;
|
package/lib/credentials.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,eAAO,MAAM,oBAAoB,0CAA0C,CAAC;AAE5E,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAEjD;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAE9D;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;;AAED,qBAAa,WAAY,SAAQ,gBAEhC;CAAG;AAEJ,eAAO,MAAM,kBAAkB,8CA2B9B,CAAC"}
|
package/lib/credentials.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect";
|
|
2
2
|
import * as Layer from "effect/Layer";
|
|
3
3
|
import * as Redacted from "effect/Redacted";
|
|
4
|
-
import * as
|
|
4
|
+
import * as Context from "effect/Context";
|
|
5
5
|
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
6
6
|
export const DEFAULT_API_BASE_URL = "https://api.cdp.coinbase.com/platform";
|
|
7
|
-
export class Credentials extends
|
|
7
|
+
export class Credentials extends Context.Service()("CoinbaseCredentials") {
|
|
8
8
|
}
|
|
9
9
|
export const CredentialsFromEnv = Layer.effect(Credentials, Effect.gen(function* () {
|
|
10
10
|
const apiKeyId = process.env.CDP_API_KEY_ID ?? process.env.CDP_API_KEY_NAME;
|
package/lib/credentials.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,MAAM,CAAC,MAAM,oBAAoB,GAAG,uCAAuC,CAAC;AA4B5E,MAAM,OAAO,WAAY,SAAQ,OAAO,CAAC,OAAO,EAAuB,CACrE,qBAAqB,CACtB;CAAG;AAEJ,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAC5C,WAAW,EACX,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;IAC5E,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC;IACpD,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;IAEnD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,KAAK,CAAC,CAAC,IAAI,WAAW,CAAC;YAC5B,OAAO,EACL,uEAAuE;SAC1E,CAAC,CAAC;IACL,CAAC;IAED,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,OAAO,KAAK,CAAC,CAAC,IAAI,WAAW,CAAC;YAC5B,OAAO,EAAE,qDAAqD;SAC/D,CAAC,CAAC;IACL,CAAC;IAED,OAAO;QACL,QAAQ;QACR,YAAY,EAAE,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC;QACzC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,SAAS;QACpE,UAAU,EAAE,oBAAoB;KACjC,CAAC;AACJ,CAAC,CAAC,CACH,CAAC"}
|
package/lib/errors.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export { BadGateway, BadRequest, Conflict, ConfigError, Forbidden, GatewayTimeou
|
|
|
18
18
|
export type { DefaultErrors } from "@distilled.cloud/core/errors";
|
|
19
19
|
import * as Schema from "effect/Schema";
|
|
20
20
|
import * as Category from "@distilled.cloud/core/category";
|
|
21
|
-
declare const PaymentRequired_base: Schema.
|
|
21
|
+
declare const PaymentRequired_base: Schema.Class<PaymentRequired, Schema.TaggedStruct<"PaymentRequired", {
|
|
22
22
|
errorType: Schema.optional<Schema.String>;
|
|
23
23
|
errorMessage: Schema.optional<Schema.String>;
|
|
24
24
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -34,7 +34,7 @@ declare const PaymentRequired_base: Schema.ErrorClass<PaymentRequired, Schema.Ta
|
|
|
34
34
|
*/
|
|
35
35
|
export declare class PaymentRequired extends PaymentRequired_base {
|
|
36
36
|
}
|
|
37
|
-
declare const IdempotencyError_base: Schema.
|
|
37
|
+
declare const IdempotencyError_base: Schema.Class<IdempotencyError, Schema.TaggedStruct<"IdempotencyError", {
|
|
38
38
|
errorType: Schema.optional<Schema.String>;
|
|
39
39
|
errorMessage: Schema.optional<Schema.String>;
|
|
40
40
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -50,7 +50,7 @@ declare const IdempotencyError_base: Schema.ErrorClass<IdempotencyError, Schema.
|
|
|
50
50
|
*/
|
|
51
51
|
export declare class IdempotencyError extends IdempotencyError_base {
|
|
52
52
|
}
|
|
53
|
-
declare const AlreadyExists_base: Schema.
|
|
53
|
+
declare const AlreadyExists_base: Schema.Class<AlreadyExists, Schema.TaggedStruct<"AlreadyExists", {
|
|
54
54
|
errorType: Schema.optional<Schema.String>;
|
|
55
55
|
errorMessage: Schema.optional<Schema.String>;
|
|
56
56
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -66,7 +66,7 @@ declare const AlreadyExists_base: Schema.ErrorClass<AlreadyExists, Schema.Tagged
|
|
|
66
66
|
*/
|
|
67
67
|
export declare class AlreadyExists extends AlreadyExists_base {
|
|
68
68
|
}
|
|
69
|
-
declare const FaucetLimitExceeded_base: Schema.
|
|
69
|
+
declare const FaucetLimitExceeded_base: Schema.Class<FaucetLimitExceeded, Schema.TaggedStruct<"FaucetLimitExceeded", {
|
|
70
70
|
errorType: Schema.optional<Schema.String>;
|
|
71
71
|
errorMessage: Schema.optional<Schema.String>;
|
|
72
72
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -82,7 +82,7 @@ declare const FaucetLimitExceeded_base: Schema.ErrorClass<FaucetLimitExceeded, S
|
|
|
82
82
|
*/
|
|
83
83
|
export declare class FaucetLimitExceeded extends FaucetLimitExceeded_base {
|
|
84
84
|
}
|
|
85
|
-
declare const InvalidSqlQuery_base: Schema.
|
|
85
|
+
declare const InvalidSqlQuery_base: Schema.Class<InvalidSqlQuery, Schema.TaggedStruct<"InvalidSqlQuery", {
|
|
86
86
|
errorType: Schema.optional<Schema.String>;
|
|
87
87
|
errorMessage: Schema.optional<Schema.String>;
|
|
88
88
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -98,7 +98,7 @@ declare const InvalidSqlQuery_base: Schema.ErrorClass<InvalidSqlQuery, Schema.Ta
|
|
|
98
98
|
*/
|
|
99
99
|
export declare class InvalidSqlQuery extends InvalidSqlQuery_base {
|
|
100
100
|
}
|
|
101
|
-
declare const InvalidSignature_base: Schema.
|
|
101
|
+
declare const InvalidSignature_base: Schema.Class<InvalidSignature, Schema.TaggedStruct<"InvalidSignature", {
|
|
102
102
|
errorType: Schema.optional<Schema.String>;
|
|
103
103
|
errorMessage: Schema.optional<Schema.String>;
|
|
104
104
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -114,7 +114,7 @@ declare const InvalidSignature_base: Schema.ErrorClass<InvalidSignature, Schema.
|
|
|
114
114
|
*/
|
|
115
115
|
export declare class InvalidSignature extends InvalidSignature_base {
|
|
116
116
|
}
|
|
117
|
-
declare const MalformedTransaction_base: Schema.
|
|
117
|
+
declare const MalformedTransaction_base: Schema.Class<MalformedTransaction, Schema.TaggedStruct<"MalformedTransaction", {
|
|
118
118
|
errorType: Schema.optional<Schema.String>;
|
|
119
119
|
errorMessage: Schema.optional<Schema.String>;
|
|
120
120
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -130,7 +130,7 @@ declare const MalformedTransaction_base: Schema.ErrorClass<MalformedTransaction,
|
|
|
130
130
|
*/
|
|
131
131
|
export declare class MalformedTransaction extends MalformedTransaction_base {
|
|
132
132
|
}
|
|
133
|
-
declare const SettlementFailed_base: Schema.
|
|
133
|
+
declare const SettlementFailed_base: Schema.Class<SettlementFailed, Schema.TaggedStruct<"SettlementFailed", {
|
|
134
134
|
errorType: Schema.optional<Schema.String>;
|
|
135
135
|
errorMessage: Schema.optional<Schema.String>;
|
|
136
136
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -146,7 +146,7 @@ declare const SettlementFailed_base: Schema.ErrorClass<SettlementFailed, Schema.
|
|
|
146
146
|
*/
|
|
147
147
|
export declare class SettlementFailed extends SettlementFailed_base {
|
|
148
148
|
}
|
|
149
|
-
declare const TimedOut_base: Schema.
|
|
149
|
+
declare const TimedOut_base: Schema.Class<TimedOut, Schema.TaggedStruct<"TimedOut", {
|
|
150
150
|
errorType: Schema.optional<Schema.String>;
|
|
151
151
|
errorMessage: Schema.optional<Schema.String>;
|
|
152
152
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -164,7 +164,7 @@ declare const TimedOut_base: Schema.ErrorClass<TimedOut, Schema.TaggedStruct<"Ti
|
|
|
164
164
|
*/
|
|
165
165
|
export declare class TimedOut extends TimedOut_base {
|
|
166
166
|
}
|
|
167
|
-
declare const ClientClosedRequest_base: Schema.
|
|
167
|
+
declare const ClientClosedRequest_base: Schema.Class<ClientClosedRequest, Schema.TaggedStruct<"ClientClosedRequest", {
|
|
168
168
|
errorType: Schema.optional<Schema.String>;
|
|
169
169
|
errorMessage: Schema.optional<Schema.String>;
|
|
170
170
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -180,7 +180,7 @@ declare const ClientClosedRequest_base: Schema.ErrorClass<ClientClosedRequest, S
|
|
|
180
180
|
*/
|
|
181
181
|
export declare class ClientClosedRequest extends ClientClosedRequest_base {
|
|
182
182
|
}
|
|
183
|
-
declare const RequestCanceled_base: Schema.
|
|
183
|
+
declare const RequestCanceled_base: Schema.Class<RequestCanceled, Schema.TaggedStruct<"RequestCanceled", {
|
|
184
184
|
errorType: Schema.optional<Schema.String>;
|
|
185
185
|
errorMessage: Schema.optional<Schema.String>;
|
|
186
186
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -196,7 +196,7 @@ declare const RequestCanceled_base: Schema.ErrorClass<RequestCanceled, Schema.Ta
|
|
|
196
196
|
*/
|
|
197
197
|
export declare class RequestCanceled extends RequestCanceled_base {
|
|
198
198
|
}
|
|
199
|
-
declare const PolicyViolation_base: Schema.
|
|
199
|
+
declare const PolicyViolation_base: Schema.Class<PolicyViolation, Schema.TaggedStruct<"PolicyViolation", {
|
|
200
200
|
errorType: Schema.optional<Schema.String>;
|
|
201
201
|
errorMessage: Schema.optional<Schema.String>;
|
|
202
202
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -212,7 +212,7 @@ declare const PolicyViolation_base: Schema.ErrorClass<PolicyViolation, Schema.Ta
|
|
|
212
212
|
*/
|
|
213
213
|
export declare class PolicyViolation extends PolicyViolation_base {
|
|
214
214
|
}
|
|
215
|
-
declare const PolicyInUse_base: Schema.
|
|
215
|
+
declare const PolicyInUse_base: Schema.Class<PolicyInUse, Schema.TaggedStruct<"PolicyInUse", {
|
|
216
216
|
errorType: Schema.optional<Schema.String>;
|
|
217
217
|
errorMessage: Schema.optional<Schema.String>;
|
|
218
218
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -228,7 +228,7 @@ declare const PolicyInUse_base: Schema.ErrorClass<PolicyInUse, Schema.TaggedStru
|
|
|
228
228
|
*/
|
|
229
229
|
export declare class PolicyInUse extends PolicyInUse_base {
|
|
230
230
|
}
|
|
231
|
-
declare const AccountLimitExceeded_base: Schema.
|
|
231
|
+
declare const AccountLimitExceeded_base: Schema.Class<AccountLimitExceeded, Schema.TaggedStruct<"AccountLimitExceeded", {
|
|
232
232
|
errorType: Schema.optional<Schema.String>;
|
|
233
233
|
errorMessage: Schema.optional<Schema.String>;
|
|
234
234
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -244,7 +244,7 @@ declare const AccountLimitExceeded_base: Schema.ErrorClass<AccountLimitExceeded,
|
|
|
244
244
|
*/
|
|
245
245
|
export declare class AccountLimitExceeded extends AccountLimitExceeded_base {
|
|
246
246
|
}
|
|
247
|
-
declare const InsufficientBalance_base: Schema.
|
|
247
|
+
declare const InsufficientBalance_base: Schema.Class<InsufficientBalance, Schema.TaggedStruct<"InsufficientBalance", {
|
|
248
248
|
errorType: Schema.optional<Schema.String>;
|
|
249
249
|
errorMessage: Schema.optional<Schema.String>;
|
|
250
250
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -260,7 +260,7 @@ declare const InsufficientBalance_base: Schema.ErrorClass<InsufficientBalance, S
|
|
|
260
260
|
*/
|
|
261
261
|
export declare class InsufficientBalance extends InsufficientBalance_base {
|
|
262
262
|
}
|
|
263
|
-
declare const AccountNotReady_base: Schema.
|
|
263
|
+
declare const AccountNotReady_base: Schema.Class<AccountNotReady, Schema.TaggedStruct<"AccountNotReady", {
|
|
264
264
|
errorType: Schema.optional<Schema.String>;
|
|
265
265
|
errorMessage: Schema.optional<Schema.String>;
|
|
266
266
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -278,7 +278,7 @@ declare const AccountNotReady_base: Schema.ErrorClass<AccountNotReady, Schema.Ta
|
|
|
278
278
|
*/
|
|
279
279
|
export declare class AccountNotReady extends AccountNotReady_base {
|
|
280
280
|
}
|
|
281
|
-
declare const MfaRequired_base: Schema.
|
|
281
|
+
declare const MfaRequired_base: Schema.Class<MfaRequired, Schema.TaggedStruct<"MfaRequired", {
|
|
282
282
|
errorType: Schema.optional<Schema.String>;
|
|
283
283
|
errorMessage: Schema.optional<Schema.String>;
|
|
284
284
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -294,7 +294,7 @@ declare const MfaRequired_base: Schema.ErrorClass<MfaRequired, Schema.TaggedStru
|
|
|
294
294
|
*/
|
|
295
295
|
export declare class MfaRequired extends MfaRequired_base {
|
|
296
296
|
}
|
|
297
|
-
declare const MfaAlreadyEnrolled_base: Schema.
|
|
297
|
+
declare const MfaAlreadyEnrolled_base: Schema.Class<MfaAlreadyEnrolled, Schema.TaggedStruct<"MfaAlreadyEnrolled", {
|
|
298
298
|
errorType: Schema.optional<Schema.String>;
|
|
299
299
|
errorMessage: Schema.optional<Schema.String>;
|
|
300
300
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -310,7 +310,7 @@ declare const MfaAlreadyEnrolled_base: Schema.ErrorClass<MfaAlreadyEnrolled, Sch
|
|
|
310
310
|
*/
|
|
311
311
|
export declare class MfaAlreadyEnrolled extends MfaAlreadyEnrolled_base {
|
|
312
312
|
}
|
|
313
|
-
declare const MfaInvalidCode_base: Schema.
|
|
313
|
+
declare const MfaInvalidCode_base: Schema.Class<MfaInvalidCode, Schema.TaggedStruct<"MfaInvalidCode", {
|
|
314
314
|
errorType: Schema.optional<Schema.String>;
|
|
315
315
|
errorMessage: Schema.optional<Schema.String>;
|
|
316
316
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -326,7 +326,7 @@ declare const MfaInvalidCode_base: Schema.ErrorClass<MfaInvalidCode, Schema.Tagg
|
|
|
326
326
|
*/
|
|
327
327
|
export declare class MfaInvalidCode extends MfaInvalidCode_base {
|
|
328
328
|
}
|
|
329
|
-
declare const MfaFlowExpired_base: Schema.
|
|
329
|
+
declare const MfaFlowExpired_base: Schema.Class<MfaFlowExpired, Schema.TaggedStruct<"MfaFlowExpired", {
|
|
330
330
|
errorType: Schema.optional<Schema.String>;
|
|
331
331
|
errorMessage: Schema.optional<Schema.String>;
|
|
332
332
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -342,7 +342,7 @@ declare const MfaFlowExpired_base: Schema.ErrorClass<MfaFlowExpired, Schema.Tagg
|
|
|
342
342
|
*/
|
|
343
343
|
export declare class MfaFlowExpired extends MfaFlowExpired_base {
|
|
344
344
|
}
|
|
345
|
-
declare const MfaNotEnrolled_base: Schema.
|
|
345
|
+
declare const MfaNotEnrolled_base: Schema.Class<MfaNotEnrolled, Schema.TaggedStruct<"MfaNotEnrolled", {
|
|
346
346
|
errorType: Schema.optional<Schema.String>;
|
|
347
347
|
errorMessage: Schema.optional<Schema.String>;
|
|
348
348
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -358,7 +358,7 @@ declare const MfaNotEnrolled_base: Schema.ErrorClass<MfaNotEnrolled, Schema.Tagg
|
|
|
358
358
|
*/
|
|
359
359
|
export declare class MfaNotEnrolled extends MfaNotEnrolled_base {
|
|
360
360
|
}
|
|
361
|
-
declare const NetworkNotTradable_base: Schema.
|
|
361
|
+
declare const NetworkNotTradable_base: Schema.Class<NetworkNotTradable, Schema.TaggedStruct<"NetworkNotTradable", {
|
|
362
362
|
errorType: Schema.optional<Schema.String>;
|
|
363
363
|
errorMessage: Schema.optional<Schema.String>;
|
|
364
364
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -374,7 +374,7 @@ declare const NetworkNotTradable_base: Schema.ErrorClass<NetworkNotTradable, Sch
|
|
|
374
374
|
*/
|
|
375
375
|
export declare class NetworkNotTradable extends NetworkNotTradable_base {
|
|
376
376
|
}
|
|
377
|
-
declare const GuestPermissionDenied_base: Schema.
|
|
377
|
+
declare const GuestPermissionDenied_base: Schema.Class<GuestPermissionDenied, Schema.TaggedStruct<"GuestPermissionDenied", {
|
|
378
378
|
errorType: Schema.optional<Schema.String>;
|
|
379
379
|
errorMessage: Schema.optional<Schema.String>;
|
|
380
380
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -390,7 +390,7 @@ declare const GuestPermissionDenied_base: Schema.ErrorClass<GuestPermissionDenie
|
|
|
390
390
|
*/
|
|
391
391
|
export declare class GuestPermissionDenied extends GuestPermissionDenied_base {
|
|
392
392
|
}
|
|
393
|
-
declare const GuestRegionForbidden_base: Schema.
|
|
393
|
+
declare const GuestRegionForbidden_base: Schema.Class<GuestRegionForbidden, Schema.TaggedStruct<"GuestRegionForbidden", {
|
|
394
394
|
errorType: Schema.optional<Schema.String>;
|
|
395
395
|
errorMessage: Schema.optional<Schema.String>;
|
|
396
396
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -406,7 +406,7 @@ declare const GuestRegionForbidden_base: Schema.ErrorClass<GuestRegionForbidden,
|
|
|
406
406
|
*/
|
|
407
407
|
export declare class GuestRegionForbidden extends GuestRegionForbidden_base {
|
|
408
408
|
}
|
|
409
|
-
declare const GuestTransactionLimit_base: Schema.
|
|
409
|
+
declare const GuestTransactionLimit_base: Schema.Class<GuestTransactionLimit, Schema.TaggedStruct<"GuestTransactionLimit", {
|
|
410
410
|
errorType: Schema.optional<Schema.String>;
|
|
411
411
|
errorMessage: Schema.optional<Schema.String>;
|
|
412
412
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -422,7 +422,7 @@ declare const GuestTransactionLimit_base: Schema.ErrorClass<GuestTransactionLimi
|
|
|
422
422
|
*/
|
|
423
423
|
export declare class GuestTransactionLimit extends GuestTransactionLimit_base {
|
|
424
424
|
}
|
|
425
|
-
declare const GuestTransactionCount_base: Schema.
|
|
425
|
+
declare const GuestTransactionCount_base: Schema.Class<GuestTransactionCount, Schema.TaggedStruct<"GuestTransactionCount", {
|
|
426
426
|
errorType: Schema.optional<Schema.String>;
|
|
427
427
|
errorMessage: Schema.optional<Schema.String>;
|
|
428
428
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -438,7 +438,7 @@ declare const GuestTransactionCount_base: Schema.ErrorClass<GuestTransactionCoun
|
|
|
438
438
|
*/
|
|
439
439
|
export declare class GuestTransactionCount extends GuestTransactionCount_base {
|
|
440
440
|
}
|
|
441
|
-
declare const PhoneNumberVerificationExpired_base: Schema.
|
|
441
|
+
declare const PhoneNumberVerificationExpired_base: Schema.Class<PhoneNumberVerificationExpired, Schema.TaggedStruct<"PhoneNumberVerificationExpired", {
|
|
442
442
|
errorType: Schema.optional<Schema.String>;
|
|
443
443
|
errorMessage: Schema.optional<Schema.String>;
|
|
444
444
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -454,7 +454,7 @@ declare const PhoneNumberVerificationExpired_base: Schema.ErrorClass<PhoneNumber
|
|
|
454
454
|
*/
|
|
455
455
|
export declare class PhoneNumberVerificationExpired extends PhoneNumberVerificationExpired_base {
|
|
456
456
|
}
|
|
457
|
-
declare const DocumentVerificationFailed_base: Schema.
|
|
457
|
+
declare const DocumentVerificationFailed_base: Schema.Class<DocumentVerificationFailed, Schema.TaggedStruct<"DocumentVerificationFailed", {
|
|
458
458
|
errorType: Schema.optional<Schema.String>;
|
|
459
459
|
errorMessage: Schema.optional<Schema.String>;
|
|
460
460
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -470,7 +470,7 @@ declare const DocumentVerificationFailed_base: Schema.ErrorClass<DocumentVerific
|
|
|
470
470
|
*/
|
|
471
471
|
export declare class DocumentVerificationFailed extends DocumentVerificationFailed_base {
|
|
472
472
|
}
|
|
473
|
-
declare const RecipientAllowlistViolation_base: Schema.
|
|
473
|
+
declare const RecipientAllowlistViolation_base: Schema.Class<RecipientAllowlistViolation, Schema.TaggedStruct<"RecipientAllowlistViolation", {
|
|
474
474
|
errorType: Schema.optional<Schema.String>;
|
|
475
475
|
errorMessage: Schema.optional<Schema.String>;
|
|
476
476
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -486,7 +486,7 @@ declare const RecipientAllowlistViolation_base: Schema.ErrorClass<RecipientAllow
|
|
|
486
486
|
*/
|
|
487
487
|
export declare class RecipientAllowlistViolation extends RecipientAllowlistViolation_base {
|
|
488
488
|
}
|
|
489
|
-
declare const RecipientAllowlistPending_base: Schema.
|
|
489
|
+
declare const RecipientAllowlistPending_base: Schema.Class<RecipientAllowlistPending, Schema.TaggedStruct<"RecipientAllowlistPending", {
|
|
490
490
|
errorType: Schema.optional<Schema.String>;
|
|
491
491
|
errorMessage: Schema.optional<Schema.String>;
|
|
492
492
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -502,7 +502,7 @@ declare const RecipientAllowlistPending_base: Schema.ErrorClass<RecipientAllowli
|
|
|
502
502
|
*/
|
|
503
503
|
export declare class RecipientAllowlistPending extends RecipientAllowlistPending_base {
|
|
504
504
|
}
|
|
505
|
-
declare const TravelRulesRecipientViolation_base: Schema.
|
|
505
|
+
declare const TravelRulesRecipientViolation_base: Schema.Class<TravelRulesRecipientViolation, Schema.TaggedStruct<"TravelRulesRecipientViolation", {
|
|
506
506
|
errorType: Schema.optional<Schema.String>;
|
|
507
507
|
errorMessage: Schema.optional<Schema.String>;
|
|
508
508
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -518,7 +518,7 @@ declare const TravelRulesRecipientViolation_base: Schema.ErrorClass<TravelRulesR
|
|
|
518
518
|
*/
|
|
519
519
|
export declare class TravelRulesRecipientViolation extends TravelRulesRecipientViolation_base {
|
|
520
520
|
}
|
|
521
|
-
declare const TravelRulesFieldMissing_base: Schema.
|
|
521
|
+
declare const TravelRulesFieldMissing_base: Schema.Class<TravelRulesFieldMissing, Schema.TaggedStruct<"TravelRulesFieldMissing", {
|
|
522
522
|
errorType: Schema.optional<Schema.String>;
|
|
523
523
|
errorMessage: Schema.optional<Schema.String>;
|
|
524
524
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -534,7 +534,7 @@ declare const TravelRulesFieldMissing_base: Schema.ErrorClass<TravelRulesFieldMi
|
|
|
534
534
|
*/
|
|
535
535
|
export declare class TravelRulesFieldMissing extends TravelRulesFieldMissing_base {
|
|
536
536
|
}
|
|
537
|
-
declare const SourceAccountInvalid_base: Schema.
|
|
537
|
+
declare const SourceAccountInvalid_base: Schema.Class<SourceAccountInvalid, Schema.TaggedStruct<"SourceAccountInvalid", {
|
|
538
538
|
errorType: Schema.optional<Schema.String>;
|
|
539
539
|
errorMessage: Schema.optional<Schema.String>;
|
|
540
540
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -550,7 +550,7 @@ declare const SourceAccountInvalid_base: Schema.ErrorClass<SourceAccountInvalid,
|
|
|
550
550
|
*/
|
|
551
551
|
export declare class SourceAccountInvalid extends SourceAccountInvalid_base {
|
|
552
552
|
}
|
|
553
|
-
declare const TargetAccountInvalid_base: Schema.
|
|
553
|
+
declare const TargetAccountInvalid_base: Schema.Class<TargetAccountInvalid, Schema.TaggedStruct<"TargetAccountInvalid", {
|
|
554
554
|
errorType: Schema.optional<Schema.String>;
|
|
555
555
|
errorMessage: Schema.optional<Schema.String>;
|
|
556
556
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -566,7 +566,7 @@ declare const TargetAccountInvalid_base: Schema.ErrorClass<TargetAccountInvalid,
|
|
|
566
566
|
*/
|
|
567
567
|
export declare class TargetAccountInvalid extends TargetAccountInvalid_base {
|
|
568
568
|
}
|
|
569
|
-
declare const SourceAccountNotFound_base: Schema.
|
|
569
|
+
declare const SourceAccountNotFound_base: Schema.Class<SourceAccountNotFound, Schema.TaggedStruct<"SourceAccountNotFound", {
|
|
570
570
|
errorType: Schema.optional<Schema.String>;
|
|
571
571
|
errorMessage: Schema.optional<Schema.String>;
|
|
572
572
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -582,7 +582,7 @@ declare const SourceAccountNotFound_base: Schema.ErrorClass<SourceAccountNotFoun
|
|
|
582
582
|
*/
|
|
583
583
|
export declare class SourceAccountNotFound extends SourceAccountNotFound_base {
|
|
584
584
|
}
|
|
585
|
-
declare const TargetAccountNotFound_base: Schema.
|
|
585
|
+
declare const TargetAccountNotFound_base: Schema.Class<TargetAccountNotFound, Schema.TaggedStruct<"TargetAccountNotFound", {
|
|
586
586
|
errorType: Schema.optional<Schema.String>;
|
|
587
587
|
errorMessage: Schema.optional<Schema.String>;
|
|
588
588
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -598,7 +598,7 @@ declare const TargetAccountNotFound_base: Schema.ErrorClass<TargetAccountNotFoun
|
|
|
598
598
|
*/
|
|
599
599
|
export declare class TargetAccountNotFound extends TargetAccountNotFound_base {
|
|
600
600
|
}
|
|
601
|
-
declare const SourceAssetNotSupported_base: Schema.
|
|
601
|
+
declare const SourceAssetNotSupported_base: Schema.Class<SourceAssetNotSupported, Schema.TaggedStruct<"SourceAssetNotSupported", {
|
|
602
602
|
errorType: Schema.optional<Schema.String>;
|
|
603
603
|
errorMessage: Schema.optional<Schema.String>;
|
|
604
604
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -614,7 +614,7 @@ declare const SourceAssetNotSupported_base: Schema.ErrorClass<SourceAssetNotSupp
|
|
|
614
614
|
*/
|
|
615
615
|
export declare class SourceAssetNotSupported extends SourceAssetNotSupported_base {
|
|
616
616
|
}
|
|
617
|
-
declare const TargetAssetNotSupported_base: Schema.
|
|
617
|
+
declare const TargetAssetNotSupported_base: Schema.Class<TargetAssetNotSupported, Schema.TaggedStruct<"TargetAssetNotSupported", {
|
|
618
618
|
errorType: Schema.optional<Schema.String>;
|
|
619
619
|
errorMessage: Schema.optional<Schema.String>;
|
|
620
620
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -630,7 +630,7 @@ declare const TargetAssetNotSupported_base: Schema.ErrorClass<TargetAssetNotSupp
|
|
|
630
630
|
*/
|
|
631
631
|
export declare class TargetAssetNotSupported extends TargetAssetNotSupported_base {
|
|
632
632
|
}
|
|
633
|
-
declare const TransferAssetNotSupported_base: Schema.
|
|
633
|
+
declare const TransferAssetNotSupported_base: Schema.Class<TransferAssetNotSupported, Schema.TaggedStruct<"TransferAssetNotSupported", {
|
|
634
634
|
errorType: Schema.optional<Schema.String>;
|
|
635
635
|
errorMessage: Schema.optional<Schema.String>;
|
|
636
636
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -646,7 +646,7 @@ declare const TransferAssetNotSupported_base: Schema.ErrorClass<TransferAssetNot
|
|
|
646
646
|
*/
|
|
647
647
|
export declare class TransferAssetNotSupported extends TransferAssetNotSupported_base {
|
|
648
648
|
}
|
|
649
|
-
declare const AssetMismatch_base: Schema.
|
|
649
|
+
declare const AssetMismatch_base: Schema.Class<AssetMismatch, Schema.TaggedStruct<"AssetMismatch", {
|
|
650
650
|
errorType: Schema.optional<Schema.String>;
|
|
651
651
|
errorMessage: Schema.optional<Schema.String>;
|
|
652
652
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -662,7 +662,7 @@ declare const AssetMismatch_base: Schema.ErrorClass<AssetMismatch, Schema.Tagged
|
|
|
662
662
|
*/
|
|
663
663
|
export declare class AssetMismatch extends AssetMismatch_base {
|
|
664
664
|
}
|
|
665
|
-
declare const TargetEmailInvalid_base: Schema.
|
|
665
|
+
declare const TargetEmailInvalid_base: Schema.Class<TargetEmailInvalid, Schema.TaggedStruct<"TargetEmailInvalid", {
|
|
666
666
|
errorType: Schema.optional<Schema.String>;
|
|
667
667
|
errorMessage: Schema.optional<Schema.String>;
|
|
668
668
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -678,7 +678,7 @@ declare const TargetEmailInvalid_base: Schema.ErrorClass<TargetEmailInvalid, Sch
|
|
|
678
678
|
*/
|
|
679
679
|
export declare class TargetEmailInvalid extends TargetEmailInvalid_base {
|
|
680
680
|
}
|
|
681
|
-
declare const TargetOnchainAddressInvalid_base: Schema.
|
|
681
|
+
declare const TargetOnchainAddressInvalid_base: Schema.Class<TargetOnchainAddressInvalid, Schema.TaggedStruct<"TargetOnchainAddressInvalid", {
|
|
682
682
|
errorType: Schema.optional<Schema.String>;
|
|
683
683
|
errorMessage: Schema.optional<Schema.String>;
|
|
684
684
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -694,7 +694,7 @@ declare const TargetOnchainAddressInvalid_base: Schema.ErrorClass<TargetOnchainA
|
|
|
694
694
|
*/
|
|
695
695
|
export declare class TargetOnchainAddressInvalid extends TargetOnchainAddressInvalid_base {
|
|
696
696
|
}
|
|
697
|
-
declare const TransferAmountInvalid_base: Schema.
|
|
697
|
+
declare const TransferAmountInvalid_base: Schema.Class<TransferAmountInvalid, Schema.TaggedStruct<"TransferAmountInvalid", {
|
|
698
698
|
errorType: Schema.optional<Schema.String>;
|
|
699
699
|
errorMessage: Schema.optional<Schema.String>;
|
|
700
700
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -710,7 +710,7 @@ declare const TransferAmountInvalid_base: Schema.ErrorClass<TransferAmountInvali
|
|
|
710
710
|
*/
|
|
711
711
|
export declare class TransferAmountInvalid extends TransferAmountInvalid_base {
|
|
712
712
|
}
|
|
713
|
-
declare const MetadataTooManyEntries_base: Schema.
|
|
713
|
+
declare const MetadataTooManyEntries_base: Schema.Class<MetadataTooManyEntries, Schema.TaggedStruct<"MetadataTooManyEntries", {
|
|
714
714
|
errorType: Schema.optional<Schema.String>;
|
|
715
715
|
errorMessage: Schema.optional<Schema.String>;
|
|
716
716
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -726,7 +726,7 @@ declare const MetadataTooManyEntries_base: Schema.ErrorClass<MetadataTooManyEntr
|
|
|
726
726
|
*/
|
|
727
727
|
export declare class MetadataTooManyEntries extends MetadataTooManyEntries_base {
|
|
728
728
|
}
|
|
729
|
-
declare const MetadataKeyTooLong_base: Schema.
|
|
729
|
+
declare const MetadataKeyTooLong_base: Schema.Class<MetadataKeyTooLong, Schema.TaggedStruct<"MetadataKeyTooLong", {
|
|
730
730
|
errorType: Schema.optional<Schema.String>;
|
|
731
731
|
errorMessage: Schema.optional<Schema.String>;
|
|
732
732
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -742,7 +742,7 @@ declare const MetadataKeyTooLong_base: Schema.ErrorClass<MetadataKeyTooLong, Sch
|
|
|
742
742
|
*/
|
|
743
743
|
export declare class MetadataKeyTooLong extends MetadataKeyTooLong_base {
|
|
744
744
|
}
|
|
745
|
-
declare const MetadataValueTooLong_base: Schema.
|
|
745
|
+
declare const MetadataValueTooLong_base: Schema.Class<MetadataValueTooLong, Schema.TaggedStruct<"MetadataValueTooLong", {
|
|
746
746
|
errorType: Schema.optional<Schema.String>;
|
|
747
747
|
errorMessage: Schema.optional<Schema.String>;
|
|
748
748
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -758,7 +758,7 @@ declare const MetadataValueTooLong_base: Schema.ErrorClass<MetadataValueTooLong,
|
|
|
758
758
|
*/
|
|
759
759
|
export declare class MetadataValueTooLong extends MetadataValueTooLong_base {
|
|
760
760
|
}
|
|
761
|
-
declare const OrderQuoteExpired_base: Schema.
|
|
761
|
+
declare const OrderQuoteExpired_base: Schema.Class<OrderQuoteExpired, Schema.TaggedStruct<"OrderQuoteExpired", {
|
|
762
762
|
errorType: Schema.optional<Schema.String>;
|
|
763
763
|
errorMessage: Schema.optional<Schema.String>;
|
|
764
764
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -774,7 +774,7 @@ declare const OrderQuoteExpired_base: Schema.ErrorClass<OrderQuoteExpired, Schem
|
|
|
774
774
|
*/
|
|
775
775
|
export declare class OrderQuoteExpired extends OrderQuoteExpired_base {
|
|
776
776
|
}
|
|
777
|
-
declare const OrderAlreadyFilled_base: Schema.
|
|
777
|
+
declare const OrderAlreadyFilled_base: Schema.Class<OrderAlreadyFilled, Schema.TaggedStruct<"OrderAlreadyFilled", {
|
|
778
778
|
errorType: Schema.optional<Schema.String>;
|
|
779
779
|
errorMessage: Schema.optional<Schema.String>;
|
|
780
780
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -790,7 +790,7 @@ declare const OrderAlreadyFilled_base: Schema.ErrorClass<OrderAlreadyFilled, Sch
|
|
|
790
790
|
*/
|
|
791
791
|
export declare class OrderAlreadyFilled extends OrderAlreadyFilled_base {
|
|
792
792
|
}
|
|
793
|
-
declare const OrderAlreadyCanceled_base: Schema.
|
|
793
|
+
declare const OrderAlreadyCanceled_base: Schema.Class<OrderAlreadyCanceled, Schema.TaggedStruct<"OrderAlreadyCanceled", {
|
|
794
794
|
errorType: Schema.optional<Schema.String>;
|
|
795
795
|
errorMessage: Schema.optional<Schema.String>;
|
|
796
796
|
correlationId: Schema.optional<Schema.String>;
|
|
@@ -823,7 +823,7 @@ export declare const STANDARD_ERROR_TYPE_MAP: Record<string, new (props: any) =>
|
|
|
823
823
|
* Used by the client's matchError function for type-based error dispatching.
|
|
824
824
|
*/
|
|
825
825
|
export declare const ERROR_TYPE_MAP: Record<string, new (props: any) => unknown>;
|
|
826
|
-
declare const UnknownCoinbaseError_base: Schema.
|
|
826
|
+
declare const UnknownCoinbaseError_base: Schema.Class<UnknownCoinbaseError, Schema.TaggedStruct<"UnknownCoinbaseError", {
|
|
827
827
|
readonly errorType: Schema.optional<Schema.String>;
|
|
828
828
|
readonly errorMessage: Schema.optional<Schema.String>;
|
|
829
829
|
readonly correlationId: Schema.optional<Schema.String>;
|
|
@@ -839,7 +839,7 @@ declare const UnknownCoinbaseError_base: Schema.ErrorClass<UnknownCoinbaseError,
|
|
|
839
839
|
*/
|
|
840
840
|
export declare class UnknownCoinbaseError extends UnknownCoinbaseError_base {
|
|
841
841
|
}
|
|
842
|
-
declare const CoinbaseParseError_base: Schema.
|
|
842
|
+
declare const CoinbaseParseError_base: Schema.Class<CoinbaseParseError, Schema.TaggedStruct<"CoinbaseParseError", {
|
|
843
843
|
readonly body: Schema.Unknown;
|
|
844
844
|
readonly cause: Schema.Unknown;
|
|
845
845
|
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
package/lib/retry.d.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Coinbase retry configuration.
|
|
3
3
|
*/
|
|
4
4
|
import * as Effect from "effect/Effect";
|
|
5
|
-
import * as
|
|
5
|
+
import * as Context from "effect/Context";
|
|
6
6
|
export { type Options, type Factory, type Policy, makeDefault, jittered, capped, throttlingOptions, transientOptions, } from "@distilled.cloud/core/retry";
|
|
7
7
|
import type { Policy } from "@distilled.cloud/core/retry";
|
|
8
|
-
declare const Retry_base:
|
|
8
|
+
declare const Retry_base: Context.ServiceClass<Retry, "CoinbaseRetry", Policy>;
|
|
9
9
|
/**
|
|
10
10
|
* Context tag for configuring retry behavior of Coinbase API calls.
|
|
11
11
|
*/
|
package/lib/retry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,WAAW,EACX,QAAQ,EACR,MAAM,EACN,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;;AAE1D;;GAEG;AACH,qBAAa,KAAM,SAAQ,UAAiD;CAAG;AAE/E;;GAEG;AACH,eAAO,MAAM,MAAM,qBAAsB,MAAM,sFACS,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,IAAI,mFAEhB,CAAC"}
|
package/lib/retry.js
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Effect from "effect/Effect";
|
|
5
5
|
import * as Layer from "effect/Layer";
|
|
6
|
-
import * as
|
|
6
|
+
import * as Context from "effect/Context";
|
|
7
7
|
export { makeDefault, jittered, capped, throttlingOptions, transientOptions, } from "@distilled.cloud/core/retry";
|
|
8
8
|
/**
|
|
9
9
|
* Context tag for configuring retry behavior of Coinbase API calls.
|
|
10
10
|
*/
|
|
11
|
-
export class Retry extends
|
|
11
|
+
export class Retry extends Context.Service()("CoinbaseRetry") {
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Provides a custom retry policy to all Coinbase API calls.
|
package/lib/retry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retry.js","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"retry.js","sourceRoot":"","sources":["../src/retry.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAIL,WAAW,EACX,QAAQ,EACR,MAAM,EACN,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AAGrC;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,OAAO,CAAC,OAAO,EAAiB,CAAC,eAAe,CAAC;CAAG;AAE/E;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,gBAAwB,EAAE,EAAE,CACjD,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC;AAEzD;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,CAC7C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/coinbase",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/alchemy-run/distilled",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"specs:update": "git -C specs/cdp-sdk fetch && git -C specs/cdp-sdk checkout main && git -C specs/cdp-sdk pull"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@distilled.cloud/core": "0.
|
|
77
|
-
"effect": "4.0.0-beta.
|
|
76
|
+
"@distilled.cloud/core": "0.9.0",
|
|
77
|
+
"effect": "4.0.0-beta.46"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@types/bun": "^1.3.0",
|
|
@@ -84,6 +84,6 @@
|
|
|
84
84
|
"yaml": "^2.8.2"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"effect": "4.0.0-beta.
|
|
87
|
+
"effect": "4.0.0-beta.46"
|
|
88
88
|
}
|
|
89
89
|
}
|
package/src/credentials.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect";
|
|
2
2
|
import * as Layer from "effect/Layer";
|
|
3
3
|
import * as Redacted from "effect/Redacted";
|
|
4
|
-
import * as
|
|
4
|
+
import * as Context from "effect/Context";
|
|
5
5
|
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
6
6
|
|
|
7
7
|
export const DEFAULT_API_BASE_URL = "https://api.cdp.coinbase.com/platform";
|
|
@@ -32,7 +32,7 @@ export interface Config {
|
|
|
32
32
|
readonly apiBaseUrl: string;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export class Credentials extends
|
|
35
|
+
export class Credentials extends Context.Service<Credentials, Config>()(
|
|
36
36
|
"CoinbaseCredentials",
|
|
37
37
|
) {}
|
|
38
38
|
|
package/src/retry.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Effect from "effect/Effect";
|
|
5
5
|
import * as Layer from "effect/Layer";
|
|
6
|
-
import * as
|
|
6
|
+
import * as Context from "effect/Context";
|
|
7
7
|
export {
|
|
8
8
|
type Options,
|
|
9
9
|
type Factory,
|
|
@@ -19,9 +19,7 @@ import type { Policy } from "@distilled.cloud/core/retry";
|
|
|
19
19
|
/**
|
|
20
20
|
* Context tag for configuring retry behavior of Coinbase API calls.
|
|
21
21
|
*/
|
|
22
|
-
export class Retry extends
|
|
23
|
-
"CoinbaseRetry",
|
|
24
|
-
) {}
|
|
22
|
+
export class Retry extends Context.Service<Retry, Policy>()("CoinbaseRetry") {}
|
|
25
23
|
|
|
26
24
|
/**
|
|
27
25
|
* Provides a custom retry policy to all Coinbase API calls.
|