• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

decentraland / marketplace / 6982743061

24 Nov 2023 03:54PM UTC coverage: 43.329% (+2.5%) from 40.865%
6982743061

Pull #2042

github

juanmahidalgo
test: fix how the lib is mocked
Pull Request #2042: feat: use squid to calculate route between two chains and tokens

2621 of 7292 branches covered (0.0%)

Branch coverage included in aggregate %.

271 of 349 new or added lines in 18 files covered. (77.65%)

1 existing line in 1 file now uncovered.

4621 of 9422 relevant lines covered (49.04%)

24.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/webapp/src/lib/abis/Marketplace.ts
NEW
1
export const Marketplace = [
×
2
  {
3
    inputs: [
4
      {
5
        internalType: 'address',
6
        name: '_acceptedToken',
7
        type: 'address'
8
      },
9
      {
10
        internalType: 'uint256',
11
        name: '_ownerCutPerMillion',
12
        type: 'uint256'
13
      },
14
      {
15
        internalType: 'address',
16
        name: '_owner',
17
        type: 'address'
18
      }
19
    ],
20
    stateMutability: 'nonpayable',
21
    type: 'constructor'
22
  },
23
  {
24
    anonymous: false,
25
    inputs: [
26
      {
27
        indexed: false,
28
        internalType: 'uint256',
29
        name: 'ownerCutPerMillion',
30
        type: 'uint256'
31
      }
32
    ],
33
    name: 'ChangedOwnerCutPerMillion',
34
    type: 'event'
35
  },
36
  {
37
    anonymous: false,
38
    inputs: [
39
      {
40
        indexed: false,
41
        internalType: 'uint256',
42
        name: 'publicationFee',
43
        type: 'uint256'
44
      }
45
    ],
46
    name: 'ChangedPublicationFee',
47
    type: 'event'
48
  },
49
  {
50
    anonymous: false,
51
    inputs: [
52
      {
53
        indexed: false,
54
        internalType: 'address',
55
        name: 'userAddress',
56
        type: 'address'
57
      },
58
      {
59
        indexed: false,
60
        internalType: 'address',
61
        name: 'relayerAddress',
62
        type: 'address'
63
      },
64
      {
65
        indexed: false,
66
        internalType: 'bytes',
67
        name: 'functionSignature',
68
        type: 'bytes'
69
      }
70
    ],
71
    name: 'MetaTransactionExecuted',
72
    type: 'event'
73
  },
74
  {
75
    anonymous: false,
76
    inputs: [
77
      {
78
        indexed: false,
79
        internalType: 'bytes32',
80
        name: 'id',
81
        type: 'bytes32'
82
      },
83
      {
84
        indexed: true,
85
        internalType: 'uint256',
86
        name: 'assetId',
87
        type: 'uint256'
88
      },
89
      {
90
        indexed: true,
91
        internalType: 'address',
92
        name: 'seller',
93
        type: 'address'
94
      },
95
      {
96
        indexed: false,
97
        internalType: 'address',
98
        name: 'nftAddress',
99
        type: 'address'
100
      }
101
    ],
102
    name: 'OrderCancelled',
103
    type: 'event'
104
  },
105
  {
106
    anonymous: false,
107
    inputs: [
108
      {
109
        indexed: false,
110
        internalType: 'bytes32',
111
        name: 'id',
112
        type: 'bytes32'
113
      },
114
      {
115
        indexed: true,
116
        internalType: 'uint256',
117
        name: 'assetId',
118
        type: 'uint256'
119
      },
120
      {
121
        indexed: true,
122
        internalType: 'address',
123
        name: 'seller',
124
        type: 'address'
125
      },
126
      {
127
        indexed: false,
128
        internalType: 'address',
129
        name: 'nftAddress',
130
        type: 'address'
131
      },
132
      {
133
        indexed: false,
134
        internalType: 'uint256',
135
        name: 'priceInWei',
136
        type: 'uint256'
137
      },
138
      {
139
        indexed: false,
140
        internalType: 'uint256',
141
        name: 'expiresAt',
142
        type: 'uint256'
143
      }
144
    ],
145
    name: 'OrderCreated',
146
    type: 'event'
147
  },
148
  {
149
    anonymous: false,
150
    inputs: [
151
      {
152
        indexed: false,
153
        internalType: 'bytes32',
154
        name: 'id',
155
        type: 'bytes32'
156
      },
157
      {
158
        indexed: true,
159
        internalType: 'uint256',
160
        name: 'assetId',
161
        type: 'uint256'
162
      },
163
      {
164
        indexed: true,
165
        internalType: 'address',
166
        name: 'seller',
167
        type: 'address'
168
      },
169
      {
170
        indexed: false,
171
        internalType: 'address',
172
        name: 'nftAddress',
173
        type: 'address'
174
      },
175
      {
176
        indexed: false,
177
        internalType: 'uint256',
178
        name: 'totalPrice',
179
        type: 'uint256'
180
      },
181
      {
182
        indexed: true,
183
        internalType: 'address',
184
        name: 'buyer',
185
        type: 'address'
186
      }
187
    ],
188
    name: 'OrderSuccessful',
189
    type: 'event'
190
  },
191
  {
192
    anonymous: false,
193
    inputs: [
194
      {
195
        indexed: true,
196
        internalType: 'address',
197
        name: 'previousOwner',
198
        type: 'address'
199
      },
200
      {
201
        indexed: true,
202
        internalType: 'address',
203
        name: 'newOwner',
204
        type: 'address'
205
      }
206
    ],
207
    name: 'OwnershipTransferred',
208
    type: 'event'
209
  },
210
  {
211
    anonymous: false,
212
    inputs: [
213
      {
214
        indexed: false,
215
        internalType: 'address',
216
        name: 'account',
217
        type: 'address'
218
      }
219
    ],
220
    name: 'Paused',
221
    type: 'event'
222
  },
223
  {
224
    anonymous: false,
225
    inputs: [
226
      {
227
        indexed: false,
228
        internalType: 'address',
229
        name: 'account',
230
        type: 'address'
231
      }
232
    ],
233
    name: 'Unpaused',
234
    type: 'event'
235
  },
236
  {
237
    inputs: [],
238
    name: 'ERC721_Interface',
239
    outputs: [
240
      {
241
        internalType: 'bytes4',
242
        name: '',
243
        type: 'bytes4'
244
      }
245
    ],
246
    stateMutability: 'view',
247
    type: 'function'
248
  },
249
  {
250
    inputs: [],
251
    name: 'InterfaceId_ValidateFingerprint',
252
    outputs: [
253
      {
254
        internalType: 'bytes4',
255
        name: '',
256
        type: 'bytes4'
257
      }
258
    ],
259
    stateMutability: 'view',
260
    type: 'function'
261
  },
262
  {
263
    inputs: [],
264
    name: 'acceptedToken',
265
    outputs: [
266
      {
267
        internalType: 'contract ERC20Interface',
268
        name: '',
269
        type: 'address'
270
      }
271
    ],
272
    stateMutability: 'view',
273
    type: 'function'
274
  },
275
  {
276
    inputs: [
277
      {
278
        internalType: 'address',
279
        name: 'nftAddress',
280
        type: 'address'
281
      },
282
      {
283
        internalType: 'uint256',
284
        name: 'assetId',
285
        type: 'uint256'
286
      }
287
    ],
288
    name: 'cancelOrder',
289
    outputs: [],
290
    stateMutability: 'nonpayable',
291
    type: 'function'
292
  },
293
  {
294
    inputs: [
295
      {
296
        internalType: 'address',
297
        name: 'nftAddress',
298
        type: 'address'
299
      },
300
      {
301
        internalType: 'uint256',
302
        name: 'assetId',
303
        type: 'uint256'
304
      },
305
      {
306
        internalType: 'uint256',
307
        name: 'priceInWei',
308
        type: 'uint256'
309
      },
310
      {
311
        internalType: 'uint256',
312
        name: 'expiresAt',
313
        type: 'uint256'
314
      }
315
    ],
316
    name: 'createOrder',
317
    outputs: [],
318
    stateMutability: 'nonpayable',
319
    type: 'function'
320
  },
321
  {
322
    inputs: [],
323
    name: 'domainSeparator',
324
    outputs: [
325
      {
326
        internalType: 'bytes32',
327
        name: '',
328
        type: 'bytes32'
329
      }
330
    ],
331
    stateMutability: 'view',
332
    type: 'function'
333
  },
334
  {
335
    inputs: [
336
      {
337
        internalType: 'address',
338
        name: 'userAddress',
339
        type: 'address'
340
      },
341
      {
342
        internalType: 'bytes',
343
        name: 'functionSignature',
344
        type: 'bytes'
345
      },
346
      {
347
        internalType: 'bytes32',
348
        name: 'sigR',
349
        type: 'bytes32'
350
      },
351
      {
352
        internalType: 'bytes32',
353
        name: 'sigS',
354
        type: 'bytes32'
355
      },
356
      {
357
        internalType: 'uint8',
358
        name: 'sigV',
359
        type: 'uint8'
360
      }
361
    ],
362
    name: 'executeMetaTransaction',
363
    outputs: [
364
      {
365
        internalType: 'bytes',
366
        name: '',
367
        type: 'bytes'
368
      }
369
    ],
370
    stateMutability: 'payable',
371
    type: 'function'
372
  },
373
  {
374
    inputs: [
375
      {
376
        internalType: 'address',
377
        name: 'nftAddress',
378
        type: 'address'
379
      },
380
      {
381
        internalType: 'uint256',
382
        name: 'assetId',
383
        type: 'uint256'
384
      },
385
      {
386
        internalType: 'uint256',
387
        name: 'price',
388
        type: 'uint256'
389
      }
390
    ],
391
    name: 'executeOrder',
392
    outputs: [],
393
    stateMutability: 'nonpayable',
394
    type: 'function'
395
  },
396
  {
397
    inputs: [],
398
    name: 'getChainId',
399
    outputs: [
400
      {
401
        internalType: 'uint256',
402
        name: '',
403
        type: 'uint256'
404
      }
405
    ],
406
    stateMutability: 'view',
407
    type: 'function'
408
  },
409
  {
410
    inputs: [
411
      {
412
        internalType: 'address',
413
        name: 'user',
414
        type: 'address'
415
      }
416
    ],
417
    name: 'getNonce',
418
    outputs: [
419
      {
420
        internalType: 'uint256',
421
        name: 'nonce',
422
        type: 'uint256'
423
      }
424
    ],
425
    stateMutability: 'view',
426
    type: 'function'
427
  },
428
  {
429
    inputs: [
430
      {
431
        internalType: 'address',
432
        name: '',
433
        type: 'address'
434
      },
435
      {
436
        internalType: 'uint256',
437
        name: '',
438
        type: 'uint256'
439
      }
440
    ],
441
    name: 'orderByAssetId',
442
    outputs: [
443
      {
444
        internalType: 'bytes32',
445
        name: 'id',
446
        type: 'bytes32'
447
      },
448
      {
449
        internalType: 'address',
450
        name: 'seller',
451
        type: 'address'
452
      },
453
      {
454
        internalType: 'address',
455
        name: 'nftAddress',
456
        type: 'address'
457
      },
458
      {
459
        internalType: 'uint256',
460
        name: 'price',
461
        type: 'uint256'
462
      },
463
      {
464
        internalType: 'uint256',
465
        name: 'expiresAt',
466
        type: 'uint256'
467
      }
468
    ],
469
    stateMutability: 'view',
470
    type: 'function'
471
  },
472
  {
473
    inputs: [],
474
    name: 'owner',
475
    outputs: [
476
      {
477
        internalType: 'address',
478
        name: '',
479
        type: 'address'
480
      }
481
    ],
482
    stateMutability: 'view',
483
    type: 'function'
484
  },
485
  {
486
    inputs: [],
487
    name: 'ownerCutPerMillion',
488
    outputs: [
489
      {
490
        internalType: 'uint256',
491
        name: '',
492
        type: 'uint256'
493
      }
494
    ],
495
    stateMutability: 'view',
496
    type: 'function'
497
  },
498
  {
499
    inputs: [],
500
    name: 'paused',
501
    outputs: [
502
      {
503
        internalType: 'bool',
504
        name: '',
505
        type: 'bool'
506
      }
507
    ],
508
    stateMutability: 'view',
509
    type: 'function'
510
  },
511
  {
512
    inputs: [],
513
    name: 'publicationFeeInWei',
514
    outputs: [
515
      {
516
        internalType: 'uint256',
517
        name: '',
518
        type: 'uint256'
519
      }
520
    ],
521
    stateMutability: 'view',
522
    type: 'function'
523
  },
524
  {
525
    inputs: [],
526
    name: 'renounceOwnership',
527
    outputs: [],
528
    stateMutability: 'nonpayable',
529
    type: 'function'
530
  },
531
  {
532
    inputs: [
533
      {
534
        internalType: 'address',
535
        name: 'nftAddress',
536
        type: 'address'
537
      },
538
      {
539
        internalType: 'uint256',
540
        name: 'assetId',
541
        type: 'uint256'
542
      },
543
      {
544
        internalType: 'uint256',
545
        name: 'price',
546
        type: 'uint256'
547
      },
548
      {
549
        internalType: 'bytes',
550
        name: 'fingerprint',
551
        type: 'bytes'
552
      }
553
    ],
554
    name: 'safeExecuteOrder',
555
    outputs: [],
556
    stateMutability: 'nonpayable',
557
    type: 'function'
558
  },
559
  {
560
    inputs: [
561
      {
562
        internalType: 'uint256',
563
        name: '_ownerCutPerMillion',
564
        type: 'uint256'
565
      }
566
    ],
567
    name: 'setOwnerCutPerMillion',
568
    outputs: [],
569
    stateMutability: 'nonpayable',
570
    type: 'function'
571
  },
572
  {
573
    inputs: [
574
      {
575
        internalType: 'uint256',
576
        name: '_publicationFee',
577
        type: 'uint256'
578
      }
579
    ],
580
    name: 'setPublicationFee',
581
    outputs: [],
582
    stateMutability: 'nonpayable',
583
    type: 'function'
584
  },
585
  {
586
    inputs: [
587
      {
588
        internalType: 'address',
589
        name: 'newOwner',
590
        type: 'address'
591
      }
592
    ],
593
    name: 'transferOwnership',
594
    outputs: [],
595
    stateMutability: 'nonpayable',
596
    type: 'function'
597
  }
598
]
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc