-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathtest_list_on_test.go
More file actions
358 lines (352 loc) · 7.35 KB
/
Copy pathtest_list_on_test.go
File metadata and controls
358 lines (352 loc) · 7.35 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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
//go:build itest
package itest
import "github.com/lightninglabs/taproot-assets/proof"
var testCases = []*testCase{
{
name: "mint assets",
test: testMintAssets,
},
{
name: "mint batch resume",
test: testMintBatchResume,
},
{
name: "mint batch and transfer",
test: testMintBatchAndTransfer,
},
{
name: "asset balances",
test: testAssetBalances,
},
{
name: "asset meta validation",
test: testAssetMeta,
},
{
name: "asset name collision raises mint error",
test: testMintAssetNameCollisionError,
},
{
name: "mint assets with tap sibling",
test: testMintAssetsWithTapscriptSibling,
},
{
name: "mint fund seal assets",
test: testMintFundSealAssets,
},
{
name: "mint external group key chantools",
test: testMintExternalGroupKeyChantools,
},
{
name: "mint asset decimal display",
test: testMintAssetWithDecimalDisplayMetaField,
},
{
name: "addresses",
test: testAddresses,
},
{
name: "multi address",
test: testMultiAddress,
},
{
name: "unknown TLV type",
test: testUnknownTlvType,
},
{
name: "address syncer",
test: testAddressAssetSyncer,
},
// For some (yet unknown) reason, the Postgres itest is much more flaky
// if the re-org tests run last. So we run them toward the beginning to
// reduce the flakiness of the Postgres itest.
{
name: "re-org mint",
test: testReOrgMint,
},
{
name: "re-org send",
test: testReOrgSend,
},
{
name: "re-org mint and send",
test: testReOrgMintAndSend,
},
{
name: "basic send unidirectional hashmail courier",
test: testBasicSendUnidirectional,
proofCourierType: proof.HashmailCourierType,
},
{
name: "basic send unidirectional",
test: testBasicSendUnidirectional,
},
{
name: "min relay fee bump",
test: testMinRelayFeeBump,
},
{
name: "restart receiver check balance",
test: testRestartReceiverCheckBalance,
},
{
name: "resume pending package send hashmail " +
"courier",
test: testResumePendingPackageSend,
proofCourierType: proof.HashmailCourierType,
},
{
name: "reattempt failed send hashmail courier",
test: testReattemptFailedSendHashmailCourier,
proofCourierType: proof.HashmailCourierType,
},
{
name: "reattempt failed send uni courier",
test: testReattemptFailedSendUniCourier,
},
{
name: "reattempt proof transfer on tapd restart",
test: testReattemptProofTransferOnTapdRestart,
},
{
name: "spend change output when proof transfer fail",
test: testSpendChangeOutputWhenProofTransferFail,
},
{
name: "reattempt failed receive uni courier",
test: testReattemptFailedReceiveUniCourier,
},
{
name: "offline receiver eventually receives " +
"hashmail courier",
test: testOfflineReceiverEventuallyReceives,
proofCourierType: proof.HashmailCourierType,
},
{
name: "addr send no proof courier with local universe import",
test: testSendNoCourierUniverseImport,
},
{
name: "basic send passive asset hashmail courier",
test: testBasicSendPassiveAsset,
proofCourierType: proof.HashmailCourierType,
},
{
name: "send multiple coins",
test: testSendMultipleCoins,
},
{
name: "multi input send non-interactive single ID",
test: testMultiInputSendNonInteractiveSingleID,
},
{
name: "round trip send",
test: testRoundTripSend,
},
{
name: "full value send",
test: testFullValueSend,
},
{
name: "collectible send hashmail courier",
test: testCollectibleSend,
proofCourierType: proof.HashmailCourierType,
},
{
name: "collectible send",
test: testCollectibleSend,
},
{
name: "collectible group send",
test: testCollectibleGroupSend,
},
{
name: "re-issuance",
test: testReIssuance,
},
{
name: "minting multi asset groups",
test: testMintMultiAssetGroups,
},
{
name: "sending multi asset groups hashmail courier",
test: testMultiAssetGroupSend,
proofCourierType: proof.HashmailCourierType,
},
{
name: "re-issuance amount overflow",
test: testReIssuanceAmountOverflow,
},
{
name: "minting multi asset groups errors",
test: testMintMultiAssetGroupErrors,
},
{
name: "mint with group key errors",
test: testMintWithGroupKeyErrors,
},
{
name: "psbt script hash lock send",
test: testPsbtScriptHashLockSend,
},
{
name: "psbt script check sig send",
test: testPsbtScriptCheckSigSend,
},
{
name: "psbt normal interactive full value send",
test: testPsbtNormalInteractiveFullValueSend,
},
{
name: "psbt multi version send",
test: testPsbtMultiVersionSend,
},
{
name: "psbt grouped interactive full value send",
test: testPsbtGroupedInteractiveFullValueSend,
},
{
name: "psbt relative lock time send",
test: testPsbtRelativeLockTimeSend,
},
{
name: "psbt lock time send",
test: testPsbtLockTimeSend,
},
{
name: "psbt relative lock time send with proof failure",
test: testPsbtRelativeLockTimeSendProofFail,
},
{
name: "psbt normal interactive split send",
test: testPsbtNormalInteractiveSplitSend,
},
{
name: "psbt grouped interactive split send",
test: testPsbtGroupedInteractiveSplitSend,
},
{
name: "psbt interactive tapscript sibling",
test: testPsbtInteractiveTapscriptSibling,
},
{
name: "psbt multi send",
test: testPsbtMultiSend,
},
{
name: "psbt sighash none",
test: testPsbtSighashNone,
},
{
name: "psbt sighash none invalid",
test: testPsbtSighashNoneInvalid,
},
{
name: "psbt trustless swap",
test: testPsbtTrustlessSwap,
},
{
name: "psbt external commit",
test: testPsbtExternalCommit,
},
{
name: "multi input psbt single asset id",
test: testMultiInputPsbtSingleAssetID,
},
{
name: "psbt alt leaf anchoring",
test: testPsbtInteractiveAltLeafAnchoring,
},
{
name: "universe REST API",
test: testUniverseREST,
},
{
name: "universe sync",
test: testUniverseSync,
},
{
name: "universe sync manual insert",
test: testUniverseManualSync,
},
{
name: "universe federation",
test: testUniverseFederation,
},
{
name: "fee estimation",
test: testFeeEstimation,
},
{
name: "get info",
test: testGetInfo,
},
{
name: "burn test",
test: testBurnAssets,
},
{
name: "burn grouped assets",
test: testBurnGroupedAssets,
},
{
name: "federation sync config",
test: testFederationSyncConfig,
},
{
name: "universe pagination simple",
test: testUniversePaginationSimple,
},
{
name: "mint proof repeat fed sync attempt",
test: testMintProofRepeatFedSyncAttempt,
},
// Request for quote (RFQ) tests.
{
name: "rfq asset buy htlc intercept",
test: testRfqAssetBuyHtlcIntercept,
},
{
name: "rfq asset sell htlc intercept",
test: testRfqAssetSellHtlcIntercept,
},
{
name: "multi signature on all levels",
test: testMultiSignature,
},
{
name: "anchor multiple virtual transactions",
test: testAnchorMultipleVirtualTransactions,
},
{
name: "channel RPCs",
test: testChannelRPCs,
},
{
name: "ownership verification",
test: testOwnershipVerification,
},
{
name: "asset signing after lnd restore from seed",
test: testRestoreLndFromSeed,
},
{
name: "price oracle proxy",
test: testPriceOracleProxy,
},
}
var optionalTestCases = []*testCase{
{
name: "mint batch 100 stress test",
test: testMintBatch100StressTest,
},
{
name: "mint batch 1k stress test",
test: testMintBatch1kStressTest,
},
{
name: "mint batch 10k stress test",
test: testMintBatch10kStressTest,
},
}