@hypercerts-org/marketplace-sdk 0.0.3 → 0.0.5
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/dist/LooksRare.d.ts +1 -6
- package/dist/abis/LooksRareProtocol.json +5 -184
- package/dist/index.cjs.js +25 -229
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +25 -229
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/LooksRareProtocol.d.ts +45 -219
- package/dist/types.d.ts +0 -9
- package/dist/utils/calls/exchange.d.ts +3 -3
- package/package.json +2 -2
- package/LICENSE-APACHE +0 -10
- package/LICENSE-MIT +0 -21
package/dist/LooksRare.d.ts
CHANGED
@@ -120,7 +120,7 @@ export declare class LooksRare {
|
|
120
120
|
* @param affiliate Affiliate address if applicable
|
121
121
|
* @returns ContractMethods
|
122
122
|
*/
|
123
|
-
executeOrder(maker: Maker, taker: Taker, signature: string, merkleTree?: MerkleTree,
|
123
|
+
executeOrder(maker: Maker, taker: Taker, signature: string, merkleTree?: MerkleTree, overrides?: Overrides): ContractMethods;
|
124
124
|
/**
|
125
125
|
* Execute several orders
|
126
126
|
* @param orders List of orders data
|
@@ -135,11 +135,6 @@ export declare class LooksRare {
|
|
135
135
|
signature: string;
|
136
136
|
merkleTree?: MerkleTree;
|
137
137
|
}[], isAtomic: boolean, affiliate?: string, overrides?: Overrides): {
|
138
|
-
/**
|
139
|
-
* Validate a timestamp format (seconds)
|
140
|
-
* @param timestamp
|
141
|
-
* @returns boolean
|
142
|
-
*/
|
143
138
|
call: (additionalOverrides?: import("./typechain/common").PayableOverrides | undefined) => Promise<ContractTransactionResponse>;
|
144
139
|
estimateGas: (additionalOverrides?: import("./typechain/common").PayableOverrides | undefined) => Promise<bigint>;
|
145
140
|
callStatic: (additionalOverrides?: import("./typechain/common").PayableOverrides | undefined) => Promise<void>;
|
@@ -101,11 +101,6 @@
|
|
101
101
|
"name": "NotAContract",
|
102
102
|
"type": "error"
|
103
103
|
},
|
104
|
-
{
|
105
|
-
"inputs": [],
|
106
|
-
"name": "NotAffiliateController",
|
107
|
-
"type": "error"
|
108
|
-
},
|
109
104
|
{
|
110
105
|
"inputs": [],
|
111
106
|
"name": "NotOwner",
|
@@ -126,11 +121,6 @@
|
|
126
121
|
"name": "OutsideOfTimeRange",
|
127
122
|
"type": "error"
|
128
123
|
},
|
129
|
-
{
|
130
|
-
"inputs": [],
|
131
|
-
"name": "PercentageTooHigh",
|
132
|
-
"type": "error"
|
133
|
-
},
|
134
124
|
{
|
135
125
|
"inputs": [],
|
136
126
|
"name": "QuoteTypeInvalid",
|
@@ -226,33 +216,13 @@
|
|
226
216
|
},
|
227
217
|
{
|
228
218
|
"inputs": [],
|
229
|
-
"name": "
|
219
|
+
"name": "UnsupportedCollectionType",
|
230
220
|
"type": "error"
|
231
221
|
},
|
232
222
|
{
|
233
|
-
"
|
234
|
-
"
|
235
|
-
|
236
|
-
"indexed": false,
|
237
|
-
"internalType": "address",
|
238
|
-
"name": "affiliate",
|
239
|
-
"type": "address"
|
240
|
-
},
|
241
|
-
{
|
242
|
-
"indexed": false,
|
243
|
-
"internalType": "address",
|
244
|
-
"name": "currency",
|
245
|
-
"type": "address"
|
246
|
-
},
|
247
|
-
{
|
248
|
-
"indexed": false,
|
249
|
-
"internalType": "uint256",
|
250
|
-
"name": "affiliateFee",
|
251
|
-
"type": "uint256"
|
252
|
-
}
|
253
|
-
],
|
254
|
-
"name": "AffiliatePayment",
|
255
|
-
"type": "event"
|
223
|
+
"inputs": [],
|
224
|
+
"name": "WrongPotentialOwner",
|
225
|
+
"type": "error"
|
256
226
|
},
|
257
227
|
{
|
258
228
|
"anonymous": false,
|
@@ -304,51 +274,6 @@
|
|
304
274
|
"name": "InitiateOwnershipTransfer",
|
305
275
|
"type": "event"
|
306
276
|
},
|
307
|
-
{
|
308
|
-
"anonymous": false,
|
309
|
-
"inputs": [
|
310
|
-
{
|
311
|
-
"indexed": false,
|
312
|
-
"internalType": "address",
|
313
|
-
"name": "affiliateController",
|
314
|
-
"type": "address"
|
315
|
-
}
|
316
|
-
],
|
317
|
-
"name": "NewAffiliateController",
|
318
|
-
"type": "event"
|
319
|
-
},
|
320
|
-
{
|
321
|
-
"anonymous": false,
|
322
|
-
"inputs": [
|
323
|
-
{
|
324
|
-
"indexed": false,
|
325
|
-
"internalType": "bool",
|
326
|
-
"name": "isActive",
|
327
|
-
"type": "bool"
|
328
|
-
}
|
329
|
-
],
|
330
|
-
"name": "NewAffiliateProgramStatus",
|
331
|
-
"type": "event"
|
332
|
-
},
|
333
|
-
{
|
334
|
-
"anonymous": false,
|
335
|
-
"inputs": [
|
336
|
-
{
|
337
|
-
"indexed": false,
|
338
|
-
"internalType": "address",
|
339
|
-
"name": "affiliate",
|
340
|
-
"type": "address"
|
341
|
-
},
|
342
|
-
{
|
343
|
-
"indexed": false,
|
344
|
-
"internalType": "uint256",
|
345
|
-
"name": "rate",
|
346
|
-
"type": "uint256"
|
347
|
-
}
|
348
|
-
],
|
349
|
-
"name": "NewAffiliateRate",
|
350
|
-
"type": "event"
|
351
|
-
},
|
352
277
|
{
|
353
278
|
"anonymous": false,
|
354
279
|
"inputs": [
|
@@ -795,38 +720,6 @@
|
|
795
720
|
"stateMutability": "nonpayable",
|
796
721
|
"type": "function"
|
797
722
|
},
|
798
|
-
{
|
799
|
-
"inputs": [],
|
800
|
-
"name": "affiliateController",
|
801
|
-
"outputs": [
|
802
|
-
{
|
803
|
-
"internalType": "address",
|
804
|
-
"name": "",
|
805
|
-
"type": "address"
|
806
|
-
}
|
807
|
-
],
|
808
|
-
"stateMutability": "view",
|
809
|
-
"type": "function"
|
810
|
-
},
|
811
|
-
{
|
812
|
-
"inputs": [
|
813
|
-
{
|
814
|
-
"internalType": "address",
|
815
|
-
"name": "",
|
816
|
-
"type": "address"
|
817
|
-
}
|
818
|
-
],
|
819
|
-
"name": "affiliateRates",
|
820
|
-
"outputs": [
|
821
|
-
{
|
822
|
-
"internalType": "uint256",
|
823
|
-
"name": "",
|
824
|
-
"type": "uint256"
|
825
|
-
}
|
826
|
-
],
|
827
|
-
"stateMutability": "view",
|
828
|
-
"type": "function"
|
829
|
-
},
|
830
723
|
{
|
831
724
|
"inputs": [
|
832
725
|
{
|
@@ -1048,11 +941,6 @@
|
|
1048
941
|
"name": "merkleTrees",
|
1049
942
|
"type": "tuple[]"
|
1050
943
|
},
|
1051
|
-
{
|
1052
|
-
"internalType": "address",
|
1053
|
-
"name": "affiliate",
|
1054
|
-
"type": "address"
|
1055
|
-
},
|
1056
944
|
{
|
1057
945
|
"internalType": "bool",
|
1058
946
|
"name": "isAtomic",
|
@@ -1198,11 +1086,6 @@
|
|
1198
1086
|
"internalType": "struct OrderStructs.MerkleTree",
|
1199
1087
|
"name": "merkleTree",
|
1200
1088
|
"type": "tuple"
|
1201
|
-
},
|
1202
|
-
{
|
1203
|
-
"internalType": "address",
|
1204
|
-
"name": "affiliate",
|
1205
|
-
"type": "address"
|
1206
1089
|
}
|
1207
1090
|
],
|
1208
1091
|
"name": "executeTakerAsk",
|
@@ -1344,11 +1227,6 @@
|
|
1344
1227
|
"internalType": "struct OrderStructs.MerkleTree",
|
1345
1228
|
"name": "merkleTree",
|
1346
1229
|
"type": "tuple"
|
1347
|
-
},
|
1348
|
-
{
|
1349
|
-
"internalType": "address",
|
1350
|
-
"name": "affiliate",
|
1351
|
-
"type": "address"
|
1352
1230
|
}
|
1353
1231
|
],
|
1354
1232
|
"name": "executeTakerBid",
|
@@ -1418,19 +1296,6 @@
|
|
1418
1296
|
"stateMutability": "nonpayable",
|
1419
1297
|
"type": "function"
|
1420
1298
|
},
|
1421
|
-
{
|
1422
|
-
"inputs": [],
|
1423
|
-
"name": "isAffiliateProgramActive",
|
1424
|
-
"outputs": [
|
1425
|
-
{
|
1426
|
-
"internalType": "bool",
|
1427
|
-
"name": "",
|
1428
|
-
"type": "bool"
|
1429
|
-
}
|
1430
|
-
],
|
1431
|
-
"stateMutability": "view",
|
1432
|
-
"type": "function"
|
1433
|
-
},
|
1434
1299
|
{
|
1435
1300
|
"inputs": [
|
1436
1301
|
{
|
@@ -1700,50 +1565,6 @@
|
|
1700
1565
|
"stateMutability": "view",
|
1701
1566
|
"type": "function"
|
1702
1567
|
},
|
1703
|
-
{
|
1704
|
-
"inputs": [
|
1705
|
-
{
|
1706
|
-
"internalType": "address",
|
1707
|
-
"name": "newAffiliateController",
|
1708
|
-
"type": "address"
|
1709
|
-
}
|
1710
|
-
],
|
1711
|
-
"name": "updateAffiliateController",
|
1712
|
-
"outputs": [],
|
1713
|
-
"stateMutability": "nonpayable",
|
1714
|
-
"type": "function"
|
1715
|
-
},
|
1716
|
-
{
|
1717
|
-
"inputs": [
|
1718
|
-
{
|
1719
|
-
"internalType": "bool",
|
1720
|
-
"name": "isActive",
|
1721
|
-
"type": "bool"
|
1722
|
-
}
|
1723
|
-
],
|
1724
|
-
"name": "updateAffiliateProgramStatus",
|
1725
|
-
"outputs": [],
|
1726
|
-
"stateMutability": "nonpayable",
|
1727
|
-
"type": "function"
|
1728
|
-
},
|
1729
|
-
{
|
1730
|
-
"inputs": [
|
1731
|
-
{
|
1732
|
-
"internalType": "address",
|
1733
|
-
"name": "affiliate",
|
1734
|
-
"type": "address"
|
1735
|
-
},
|
1736
|
-
{
|
1737
|
-
"internalType": "uint256",
|
1738
|
-
"name": "bp",
|
1739
|
-
"type": "uint256"
|
1740
|
-
}
|
1741
|
-
],
|
1742
|
-
"name": "updateAffiliateRate",
|
1743
|
-
"outputs": [],
|
1744
|
-
"stateMutability": "nonpayable",
|
1745
|
-
"type": "function"
|
1746
|
-
},
|
1747
1568
|
{
|
1748
1569
|
"inputs": [
|
1749
1570
|
{
|
@@ -1921,4 +1742,4 @@
|
|
1921
1742
|
"stateMutability": "view",
|
1922
1743
|
"type": "function"
|
1923
1744
|
}
|
1924
|
-
]
|
1745
|
+
]
|