-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsdk-fixtures.json
More file actions
202 lines (202 loc) · 5.93 KB
/
sdk-fixtures.json
File metadata and controls
202 lines (202 loc) · 5.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
[
{
"name": "Coinbase: ResourceExhausted (rate limit)",
"platform": "coinbase",
"errorClass": "ResourceExhaustedError",
"rawError": {
"name": "ResourceExhaustedError",
"apiCode": "resource_exhausted",
"apiMessage": "Rate limit exceeded: too many requests",
"httpCode": 429
},
"helixInput": "Rate limit exceeded: too many requests",
"expectedStrategy": "backoff_retry"
},
{
"name": "Coinbase: Unauthorized",
"platform": "coinbase",
"errorClass": "UnauthorizedError",
"rawError": {
"name": "UnauthorizedError",
"apiCode": "unauthorized",
"apiMessage": "Unauthorized: invalid API key or expired token",
"httpCode": 401
},
"helixInput": "Unauthorized: invalid API key or expired token",
"expectedStrategy": "backoff_retry"
},
{
"name": "Coinbase: NotFound",
"platform": "coinbase",
"errorClass": "NotFoundError",
"rawError": {
"name": "NotFoundError",
"apiCode": "not_found",
"apiMessage": "Not found: wallet not found",
"httpCode": 404
},
"helixInput": "Not found: wallet not found",
"expectedStrategy": "retry"
},
{
"name": "Coinbase: InvalidAmount (insufficient)",
"platform": "coinbase",
"errorClass": "InvalidAmountError",
"rawError": {
"name": "InvalidAmountError",
"apiCode": "invalid_amount",
"apiMessage": "Invalid amount: exceeds available balance",
"httpCode": 400
},
"helixInput": "Invalid amount: exceeds available balance",
"expectedStrategy": "reduce_request"
},
{
"name": "Coinbase: MalformedRequest",
"platform": "coinbase",
"errorClass": "MalformedRequestError",
"rawError": {
"name": "MalformedRequestError",
"apiCode": "malformed_request",
"apiMessage": "Malformed request: invalid nonce format",
"httpCode": 400
},
"helixInput": "Malformed request: invalid nonce format",
"expectedStrategy": "refresh_nonce"
},
{
"name": "Coinbase: InvalidNetworkID",
"platform": "coinbase",
"errorClass": "InvalidNetworkIDError",
"rawError": {
"name": "InvalidNetworkIDError",
"apiCode": "invalid_network_id",
"apiMessage": "Invalid network: expected base-mainnet, got base-sepolia",
"httpCode": 400
},
"helixInput": "Invalid network: expected base-mainnet, got base-sepolia",
"expectedStrategy": "switch_network"
},
{
"name": "Coinbase: InternalError (gas est)",
"platform": "coinbase",
"errorClass": "InternalError",
"rawError": {
"name": "InternalError",
"apiCode": "internal",
"apiMessage": "Internal error: gas estimation failed",
"httpCode": 500
},
"helixInput": "Internal error: gas estimation failed",
"expectedStrategy": "speed_up_transaction"
},
{
"name": "Coinbase: FaucetLimitReached",
"platform": "coinbase",
"errorClass": "FaucetLimitReachedError",
"rawError": {
"name": "FaucetLimitReachedError",
"apiCode": "faucet_limit_reached",
"apiMessage": "Faucet limit reached for this address",
"httpCode": 429
},
"helixInput": "Faucet limit reached for this address",
"expectedStrategy": "backoff_retry"
},
{
"name": "Privy: RateLimitError",
"platform": "privy",
"errorClass": "RateLimitError",
"rawError": {
"name": "Error",
"message": "429 Rate limit exceeded",
"status": 429
},
"helixInput": "429 Rate limit exceeded",
"expectedStrategy": "backoff_retry"
},
{
"name": "Privy: AuthenticationError",
"platform": "privy",
"errorClass": "AuthenticationError",
"rawError": {
"name": "Error",
"message": "401 Authentication failed: invalid token",
"status": 401
},
"helixInput": "401 Authentication failed: invalid token",
"expectedStrategy": "retry"
},
{
"name": "Privy: NotFoundError",
"platform": "privy",
"errorClass": "NotFoundError",
"rawError": {
"name": "Error",
"message": "404 Not found: user wallet not found",
"status": 404
},
"helixInput": "404 Not found: user wallet not found",
"expectedStrategy": "retry"
},
{
"name": "Privy: BadRequestError (insufficient)",
"platform": "privy",
"errorClass": "BadRequestError",
"rawError": {
"name": "Error",
"message": "400 Bad request: insufficient funds for transaction",
"status": 400
},
"helixInput": "400 Bad request: insufficient funds for transaction",
"expectedStrategy": "reduce_request"
},
{
"name": "Privy: PermissionDeniedError (policy)",
"platform": "privy",
"errorClass": "PermissionDeniedError",
"rawError": {
"name": "Error",
"message": "403 Permission denied: policy violation AMOUNT_EXCEEDS_LIMIT",
"status": 403
},
"helixInput": "403 Permission denied: policy violation AMOUNT_EXCEEDS_LIMIT",
"expectedStrategy": "split_transaction"
},
{
"name": "Privy: InternalServerError",
"platform": "privy",
"errorClass": "InternalServerError",
"rawError": {
"name": "Error",
"message": "500 Internal server error",
"status": 500
},
"helixInput": "500 Internal server error",
"expectedStrategy": "retry"
},
{
"name": "Privy: UnprocessableEntityError (gas)",
"platform": "privy",
"errorClass": "UnprocessableEntityError",
"rawError": {
"name": "Error",
"message": "422 Unprocessable entity: gas limit exceeded",
"status": 422
},
"helixInput": "422 Unprocessable entity: gas limit exceeded",
"expectedStrategy": "speed_up_transaction"
},
{
"name": "Privy: ConflictError (nonce)",
"platform": "privy",
"errorClass": "ConflictError",
"rawError": {
"name": "Error",
"message": "409 Conflict: nonce mismatch in wallet internal state",
"status": 409
},
"helixInput": "409 Conflict: nonce mismatch in wallet internal state",
"expectedStrategy": "refresh_nonce"
}
]