@hypercerts-org/marketplace-sdk 0.0.5 → 0.0.6

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.
@@ -134,10 +134,10 @@ export declare class LooksRare {
134
134
  taker: Taker;
135
135
  signature: string;
136
136
  merkleTree?: MerkleTree;
137
- }[], isAtomic: boolean, affiliate?: string, overrides?: Overrides): {
138
- call: (additionalOverrides?: import("./typechain/common").PayableOverrides | undefined) => Promise<ContractTransactionResponse>;
139
- estimateGas: (additionalOverrides?: import("./typechain/common").PayableOverrides | undefined) => Promise<bigint>;
140
- callStatic: (additionalOverrides?: import("./typechain/common").PayableOverrides | undefined) => Promise<void>;
137
+ }[], isAtomic: boolean, overrides?: Overrides): {
138
+ call: (additionalOverrides?: import("./typechain/common").PayableOverrides | undefined) => any;
139
+ estimateGas: (additionalOverrides?: import("./typechain/common").PayableOverrides | undefined) => any;
140
+ callStatic: (additionalOverrides?: import("./typechain/common").PayableOverrides | undefined) => any;
141
141
  };
142
142
  /**
143
143
  * Cancell all maker bid and/or ask orders for the current user
@@ -101,6 +101,11 @@
101
101
  "name": "NotAContract",
102
102
  "type": "error"
103
103
  },
104
+ {
105
+ "inputs": [],
106
+ "name": "NotAffiliateController",
107
+ "type": "error"
108
+ },
104
109
  {
105
110
  "inputs": [],
106
111
  "name": "NotOwner",
@@ -121,6 +126,11 @@
121
126
  "name": "OutsideOfTimeRange",
122
127
  "type": "error"
123
128
  },
129
+ {
130
+ "inputs": [],
131
+ "name": "PercentageTooHigh",
132
+ "type": "error"
133
+ },
124
134
  {
125
135
  "inputs": [],
126
136
  "name": "QuoteTypeInvalid",
@@ -216,13 +226,33 @@
216
226
  },
217
227
  {
218
228
  "inputs": [],
219
- "name": "UnsupportedCollectionType",
229
+ "name": "WrongPotentialOwner",
220
230
  "type": "error"
221
231
  },
222
232
  {
223
- "inputs": [],
224
- "name": "WrongPotentialOwner",
225
- "type": "error"
233
+ "anonymous": false,
234
+ "inputs": [
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"
226
256
  },
227
257
  {
228
258
  "anonymous": false,
@@ -274,6 +304,51 @@
274
304
  "name": "InitiateOwnershipTransfer",
275
305
  "type": "event"
276
306
  },
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
+ },
277
352
  {
278
353
  "anonymous": false,
279
354
  "inputs": [
@@ -720,6 +795,38 @@
720
795
  "stateMutability": "nonpayable",
721
796
  "type": "function"
722
797
  },
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
+ },
723
830
  {
724
831
  "inputs": [
725
832
  {
@@ -941,6 +1048,11 @@
941
1048
  "name": "merkleTrees",
942
1049
  "type": "tuple[]"
943
1050
  },
1051
+ {
1052
+ "internalType": "address",
1053
+ "name": "affiliate",
1054
+ "type": "address"
1055
+ },
944
1056
  {
945
1057
  "internalType": "bool",
946
1058
  "name": "isAtomic",
@@ -1086,6 +1198,11 @@
1086
1198
  "internalType": "struct OrderStructs.MerkleTree",
1087
1199
  "name": "merkleTree",
1088
1200
  "type": "tuple"
1201
+ },
1202
+ {
1203
+ "internalType": "address",
1204
+ "name": "affiliate",
1205
+ "type": "address"
1089
1206
  }
1090
1207
  ],
1091
1208
  "name": "executeTakerAsk",
@@ -1227,6 +1344,11 @@
1227
1344
  "internalType": "struct OrderStructs.MerkleTree",
1228
1345
  "name": "merkleTree",
1229
1346
  "type": "tuple"
1347
+ },
1348
+ {
1349
+ "internalType": "address",
1350
+ "name": "affiliate",
1351
+ "type": "address"
1230
1352
  }
1231
1353
  ],
1232
1354
  "name": "executeTakerBid",
@@ -1296,6 +1418,19 @@
1296
1418
  "stateMutability": "nonpayable",
1297
1419
  "type": "function"
1298
1420
  },
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
+ },
1299
1434
  {
1300
1435
  "inputs": [
1301
1436
  {
@@ -1565,6 +1700,50 @@
1565
1700
  "stateMutability": "view",
1566
1701
  "type": "function"
1567
1702
  },
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
+ },
1568
1747
  {
1569
1748
  "inputs": [
1570
1749
  {
@@ -1742,4 +1921,4 @@
1742
1921
  "stateMutability": "view",
1743
1922
  "type": "function"
1744
1923
  }
1745
- ]
1924
+ ]