@hypercerts-org/marketplace-sdk 0.0.4 → 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 +22 -205
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +22 -205
- package/dist/typechain/@looksrare/contracts-exchange-v2/contracts/LooksRareProtocol.d.ts +45 -219
- package/dist/utils/calls/exchange.d.ts +3 -3
- package/package.json +1 -2
- package/LICENSE-APACHE +0 -10
- package/LICENSE-MIT +0 -21
@@ -21,10 +21,7 @@ export declare namespace OrderStructs {
|
|
21
21
|
recipient: AddressLike;
|
22
22
|
additionalParameters: BytesLike;
|
23
23
|
};
|
24
|
-
type TakerStructOutput = [
|
25
|
-
recipient: string,
|
26
|
-
additionalParameters: string
|
27
|
-
] & {
|
24
|
+
type TakerStructOutput = [recipient: string, additionalParameters: string] & {
|
28
25
|
recipient: string;
|
29
26
|
additionalParameters: string;
|
30
27
|
};
|
@@ -90,10 +87,7 @@ export declare namespace OrderStructs {
|
|
90
87
|
root: BytesLike;
|
91
88
|
proof: OrderStructs.MerkleTreeNodeStruct[];
|
92
89
|
};
|
93
|
-
type MerkleTreeStructOutput = [
|
94
|
-
root: string,
|
95
|
-
proof: OrderStructs.MerkleTreeNodeStructOutput[]
|
96
|
-
] & {
|
90
|
+
type MerkleTreeStructOutput = [root: string, proof: OrderStructs.MerkleTreeNodeStructOutput[]] & {
|
97
91
|
root: string;
|
98
92
|
proof: OrderStructs.MerkleTreeNodeStructOutput[];
|
99
93
|
};
|
@@ -103,14 +97,7 @@ export interface LooksRareProtocolInterface extends Interface {
|
|
103
97
|
getEvent(nameOrSignatureOrTopic: "AffiliatePayment" | "CancelOwnershipTransfer" | "CurrencyStatusUpdated" | "InitiateOwnershipRenouncement" | "InitiateOwnershipTransfer" | "NewAffiliateController" | "NewAffiliateProgramStatus" | "NewAffiliateRate" | "NewBidAskNonces" | "NewCreatorFeeManager" | "NewDomainSeparator" | "NewGasLimitETHTransfer" | "NewMaxCreatorFeeBp" | "NewOwner" | "NewProtocolFeeRecipient" | "NewStrategy" | "OrderNoncesCancelled" | "StrategyUpdated" | "SubsetNoncesCancelled" | "TakerAsk" | "TakerBid"): EventFragment;
|
104
98
|
encodeFunctionData(functionFragment: "MAGIC_VALUE_ORDER_NONCE_EXECUTED", values?: undefined): string;
|
105
99
|
encodeFunctionData(functionFragment: "WETH", values?: undefined): string;
|
106
|
-
encodeFunctionData(functionFragment: "addStrategy", values: [
|
107
|
-
BigNumberish,
|
108
|
-
BigNumberish,
|
109
|
-
BigNumberish,
|
110
|
-
BytesLike,
|
111
|
-
boolean,
|
112
|
-
AddressLike
|
113
|
-
]): string;
|
100
|
+
encodeFunctionData(functionFragment: "addStrategy", values: [BigNumberish, BigNumberish, BigNumberish, BytesLike, boolean, AddressLike]): string;
|
114
101
|
encodeFunctionData(functionFragment: "affiliateController", values?: undefined): string;
|
115
102
|
encodeFunctionData(functionFragment: "affiliateRates", values: [AddressLike]): string;
|
116
103
|
encodeFunctionData(functionFragment: "cancelOrderNonces", values: [BigNumberish[]]): string;
|
@@ -129,20 +116,8 @@ export interface LooksRareProtocolInterface extends Interface {
|
|
129
116
|
AddressLike,
|
130
117
|
boolean
|
131
118
|
]): string;
|
132
|
-
encodeFunctionData(functionFragment: "executeTakerAsk", values: [
|
133
|
-
|
134
|
-
OrderStructs.MakerStruct,
|
135
|
-
BytesLike,
|
136
|
-
OrderStructs.MerkleTreeStruct,
|
137
|
-
AddressLike
|
138
|
-
]): string;
|
139
|
-
encodeFunctionData(functionFragment: "executeTakerBid", values: [
|
140
|
-
OrderStructs.TakerStruct,
|
141
|
-
OrderStructs.MakerStruct,
|
142
|
-
BytesLike,
|
143
|
-
OrderStructs.MerkleTreeStruct,
|
144
|
-
AddressLike
|
145
|
-
]): string;
|
119
|
+
encodeFunctionData(functionFragment: "executeTakerAsk", values: [OrderStructs.TakerStruct, OrderStructs.MakerStruct, BytesLike, OrderStructs.MerkleTreeStruct, AddressLike]): string;
|
120
|
+
encodeFunctionData(functionFragment: "executeTakerBid", values: [OrderStructs.TakerStruct, OrderStructs.MakerStruct, BytesLike, OrderStructs.MerkleTreeStruct, AddressLike]): string;
|
146
121
|
encodeFunctionData(functionFragment: "hashBatchOrder", values: [BytesLike, BigNumberish]): string;
|
147
122
|
encodeFunctionData(functionFragment: "incrementBidAskNonces", values: [boolean, boolean]): string;
|
148
123
|
encodeFunctionData(functionFragment: "initiateOwnershipRenouncement", values?: undefined): string;
|
@@ -154,12 +129,7 @@ export interface LooksRareProtocolInterface extends Interface {
|
|
154
129
|
encodeFunctionData(functionFragment: "ownershipStatus", values?: undefined): string;
|
155
130
|
encodeFunctionData(functionFragment: "potentialOwner", values?: undefined): string;
|
156
131
|
encodeFunctionData(functionFragment: "protocolFeeRecipient", values?: undefined): string;
|
157
|
-
encodeFunctionData(functionFragment: "restrictedExecuteTakerBid", values: [
|
158
|
-
OrderStructs.TakerStruct,
|
159
|
-
OrderStructs.MakerStruct,
|
160
|
-
AddressLike,
|
161
|
-
BytesLike
|
162
|
-
]): string;
|
132
|
+
encodeFunctionData(functionFragment: "restrictedExecuteTakerBid", values: [OrderStructs.TakerStruct, OrderStructs.MakerStruct, AddressLike, BytesLike]): string;
|
163
133
|
encodeFunctionData(functionFragment: "strategyInfo", values: [BigNumberish]): string;
|
164
134
|
encodeFunctionData(functionFragment: "transferManager", values?: undefined): string;
|
165
135
|
encodeFunctionData(functionFragment: "updateAffiliateController", values: [AddressLike]): string;
|
@@ -220,16 +190,8 @@ export interface LooksRareProtocolInterface extends Interface {
|
|
220
190
|
decodeFunctionResult(functionFragment: "userSubsetNonce", data: BytesLike): Result;
|
221
191
|
}
|
222
192
|
export declare namespace AffiliatePaymentEvent {
|
223
|
-
type InputTuple = [
|
224
|
-
|
225
|
-
currency: AddressLike,
|
226
|
-
affiliateFee: BigNumberish
|
227
|
-
];
|
228
|
-
type OutputTuple = [
|
229
|
-
affiliate: string,
|
230
|
-
currency: string,
|
231
|
-
affiliateFee: bigint
|
232
|
-
];
|
193
|
+
type InputTuple = [affiliate: AddressLike, currency: AddressLike, affiliateFee: BigNumberish];
|
194
|
+
type OutputTuple = [affiliate: string, currency: string, affiliateFee: bigint];
|
233
195
|
interface OutputObject {
|
234
196
|
affiliate: string;
|
235
197
|
currency: string;
|
@@ -273,10 +235,7 @@ export declare namespace InitiateOwnershipRenouncementEvent {
|
|
273
235
|
type LogDescription = TypedLogDescription<Event>;
|
274
236
|
}
|
275
237
|
export declare namespace InitiateOwnershipTransferEvent {
|
276
|
-
type InputTuple = [
|
277
|
-
previousOwner: AddressLike,
|
278
|
-
potentialOwner: AddressLike
|
279
|
-
];
|
238
|
+
type InputTuple = [previousOwner: AddressLike, potentialOwner: AddressLike];
|
280
239
|
type OutputTuple = [previousOwner: string, potentialOwner: string];
|
281
240
|
interface OutputObject {
|
282
241
|
previousOwner: string;
|
@@ -322,11 +281,7 @@ export declare namespace NewAffiliateRateEvent {
|
|
322
281
|
type LogDescription = TypedLogDescription<Event>;
|
323
282
|
}
|
324
283
|
export declare namespace NewBidAskNoncesEvent {
|
325
|
-
type InputTuple = [
|
326
|
-
user: AddressLike,
|
327
|
-
bidNonce: BigNumberish,
|
328
|
-
askNonce: BigNumberish
|
329
|
-
];
|
284
|
+
type InputTuple = [user: AddressLike, bidNonce: BigNumberish, askNonce: BigNumberish];
|
330
285
|
type OutputTuple = [user: string, bidNonce: bigint, askNonce: bigint];
|
331
286
|
interface OutputObject {
|
332
287
|
user: string;
|
@@ -595,17 +550,9 @@ export interface LooksRareProtocol extends BaseContract {
|
|
595
550
|
], "nonpayable">;
|
596
551
|
affiliateController: TypedContractMethod<[], [string], "view">;
|
597
552
|
affiliateRates: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
598
|
-
cancelOrderNonces: TypedContractMethod<[
|
599
|
-
orderNonces: BigNumberish[]
|
600
|
-
], [
|
601
|
-
void
|
602
|
-
], "nonpayable">;
|
553
|
+
cancelOrderNonces: TypedContractMethod<[orderNonces: BigNumberish[]], [void], "nonpayable">;
|
603
554
|
cancelOwnershipTransfer: TypedContractMethod<[], [void], "nonpayable">;
|
604
|
-
cancelSubsetNonces: TypedContractMethod<[
|
605
|
-
subsetNonces: BigNumberish[]
|
606
|
-
], [
|
607
|
-
void
|
608
|
-
], "nonpayable">;
|
555
|
+
cancelSubsetNonces: TypedContractMethod<[subsetNonces: BigNumberish[]], [void], "nonpayable">;
|
609
556
|
chainId: TypedContractMethod<[], [bigint], "view">;
|
610
557
|
confirmOwnershipRenouncement: TypedContractMethod<[], [void], "nonpayable">;
|
611
558
|
confirmOwnershipTransfer: TypedContractMethod<[], [void], "nonpayable">;
|
@@ -616,7 +563,6 @@ export interface LooksRareProtocol extends BaseContract {
|
|
616
563
|
makerAsks: OrderStructs.MakerStruct[],
|
617
564
|
makerSignatures: BytesLike[],
|
618
565
|
merkleTrees: OrderStructs.MerkleTreeStruct[],
|
619
|
-
affiliate: AddressLike,
|
620
566
|
isAtomic: boolean
|
621
567
|
], [
|
622
568
|
void
|
@@ -625,8 +571,7 @@ export interface LooksRareProtocol extends BaseContract {
|
|
625
571
|
takerAsk: OrderStructs.TakerStruct,
|
626
572
|
makerBid: OrderStructs.MakerStruct,
|
627
573
|
makerSignature: BytesLike,
|
628
|
-
merkleTree: OrderStructs.MerkleTreeStruct
|
629
|
-
affiliate: AddressLike
|
574
|
+
merkleTree: OrderStructs.MerkleTreeStruct
|
630
575
|
], [
|
631
576
|
void
|
632
577
|
], "nonpayable">;
|
@@ -634,35 +579,16 @@ export interface LooksRareProtocol extends BaseContract {
|
|
634
579
|
takerBid: OrderStructs.TakerStruct,
|
635
580
|
makerAsk: OrderStructs.MakerStruct,
|
636
581
|
makerSignature: BytesLike,
|
637
|
-
merkleTree: OrderStructs.MerkleTreeStruct
|
638
|
-
affiliate: AddressLike
|
582
|
+
merkleTree: OrderStructs.MerkleTreeStruct
|
639
583
|
], [
|
640
584
|
void
|
641
585
|
], "payable">;
|
642
|
-
hashBatchOrder: TypedContractMethod<[
|
643
|
-
|
644
|
-
proofLength: BigNumberish
|
645
|
-
], [
|
646
|
-
string
|
647
|
-
], "view">;
|
648
|
-
incrementBidAskNonces: TypedContractMethod<[
|
649
|
-
bid: boolean,
|
650
|
-
ask: boolean
|
651
|
-
], [
|
652
|
-
void
|
653
|
-
], "nonpayable">;
|
586
|
+
hashBatchOrder: TypedContractMethod<[root: BytesLike, proofLength: BigNumberish], [string], "view">;
|
587
|
+
incrementBidAskNonces: TypedContractMethod<[bid: boolean, ask: boolean], [void], "nonpayable">;
|
654
588
|
initiateOwnershipRenouncement: TypedContractMethod<[], [void], "nonpayable">;
|
655
|
-
initiateOwnershipTransfer: TypedContractMethod<[
|
656
|
-
newPotentialOwner: AddressLike
|
657
|
-
], [
|
658
|
-
void
|
659
|
-
], "nonpayable">;
|
589
|
+
initiateOwnershipTransfer: TypedContractMethod<[newPotentialOwner: AddressLike], [void], "nonpayable">;
|
660
590
|
isAffiliateProgramActive: TypedContractMethod<[], [boolean], "view">;
|
661
|
-
isCurrencyAllowed: TypedContractMethod<[
|
662
|
-
arg0: AddressLike
|
663
|
-
], [
|
664
|
-
boolean
|
665
|
-
], "view">;
|
591
|
+
isCurrencyAllowed: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
666
592
|
maxCreatorFeeBp: TypedContractMethod<[], [bigint], "view">;
|
667
593
|
owner: TypedContractMethod<[], [string], "view">;
|
668
594
|
ownershipStatus: TypedContractMethod<[], [bigint], "view">;
|
@@ -698,49 +624,15 @@ export interface LooksRareProtocol extends BaseContract {
|
|
698
624
|
}
|
699
625
|
], "view">;
|
700
626
|
transferManager: TypedContractMethod<[], [string], "view">;
|
701
|
-
updateAffiliateController: TypedContractMethod<[
|
702
|
-
|
703
|
-
], [
|
704
|
-
|
705
|
-
], "nonpayable">;
|
706
|
-
updateAffiliateProgramStatus: TypedContractMethod<[
|
707
|
-
isActive: boolean
|
708
|
-
], [
|
709
|
-
void
|
710
|
-
], "nonpayable">;
|
711
|
-
updateAffiliateRate: TypedContractMethod<[
|
712
|
-
affiliate: AddressLike,
|
713
|
-
bp: BigNumberish
|
714
|
-
], [
|
715
|
-
void
|
716
|
-
], "nonpayable">;
|
717
|
-
updateCreatorFeeManager: TypedContractMethod<[
|
718
|
-
newCreatorFeeManager: AddressLike
|
719
|
-
], [
|
720
|
-
void
|
721
|
-
], "nonpayable">;
|
722
|
-
updateCurrencyStatus: TypedContractMethod<[
|
723
|
-
currency: AddressLike,
|
724
|
-
isAllowed: boolean
|
725
|
-
], [
|
726
|
-
void
|
727
|
-
], "nonpayable">;
|
627
|
+
updateAffiliateController: TypedContractMethod<[newAffiliateController: AddressLike], [void], "nonpayable">;
|
628
|
+
updateAffiliateProgramStatus: TypedContractMethod<[isActive: boolean], [void], "nonpayable">;
|
629
|
+
updateAffiliateRate: TypedContractMethod<[affiliate: AddressLike, bp: BigNumberish], [void], "nonpayable">;
|
630
|
+
updateCreatorFeeManager: TypedContractMethod<[newCreatorFeeManager: AddressLike], [void], "nonpayable">;
|
631
|
+
updateCurrencyStatus: TypedContractMethod<[currency: AddressLike, isAllowed: boolean], [void], "nonpayable">;
|
728
632
|
updateDomainSeparator: TypedContractMethod<[], [void], "nonpayable">;
|
729
|
-
updateETHGasLimitForTransfer: TypedContractMethod<[
|
730
|
-
|
731
|
-
], [
|
732
|
-
void
|
733
|
-
], "nonpayable">;
|
734
|
-
updateMaxCreatorFeeBp: TypedContractMethod<[
|
735
|
-
newMaxCreatorFeeBp: BigNumberish
|
736
|
-
], [
|
737
|
-
void
|
738
|
-
], "nonpayable">;
|
739
|
-
updateProtocolFeeRecipient: TypedContractMethod<[
|
740
|
-
newProtocolFeeRecipient: AddressLike
|
741
|
-
], [
|
742
|
-
void
|
743
|
-
], "nonpayable">;
|
633
|
+
updateETHGasLimitForTransfer: TypedContractMethod<[newGasLimitETHTransfer: BigNumberish], [void], "nonpayable">;
|
634
|
+
updateMaxCreatorFeeBp: TypedContractMethod<[newMaxCreatorFeeBp: BigNumberish], [void], "nonpayable">;
|
635
|
+
updateProtocolFeeRecipient: TypedContractMethod<[newProtocolFeeRecipient: AddressLike], [void], "nonpayable">;
|
744
636
|
updateStrategy: TypedContractMethod<[
|
745
637
|
strategyId: BigNumberish,
|
746
638
|
isActive: boolean,
|
@@ -757,18 +649,8 @@ export interface LooksRareProtocol extends BaseContract {
|
|
757
649
|
askNonce: bigint;
|
758
650
|
}
|
759
651
|
], "view">;
|
760
|
-
userOrderNonce: TypedContractMethod<[
|
761
|
-
|
762
|
-
arg1: BigNumberish
|
763
|
-
], [
|
764
|
-
string
|
765
|
-
], "view">;
|
766
|
-
userSubsetNonce: TypedContractMethod<[
|
767
|
-
arg0: AddressLike,
|
768
|
-
arg1: BigNumberish
|
769
|
-
], [
|
770
|
-
boolean
|
771
|
-
], "view">;
|
652
|
+
userOrderNonce: TypedContractMethod<[arg0: AddressLike, arg1: BigNumberish], [string], "view">;
|
653
|
+
userSubsetNonce: TypedContractMethod<[arg0: AddressLike, arg1: BigNumberish], [boolean], "view">;
|
772
654
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
773
655
|
getFunction(nameOrSignature: "MAGIC_VALUE_ORDER_NONCE_EXECUTED"): TypedContractMethod<[], [string], "view">;
|
774
656
|
getFunction(nameOrSignature: "WETH"): TypedContractMethod<[], [string], "view">;
|
@@ -797,7 +679,6 @@ export interface LooksRareProtocol extends BaseContract {
|
|
797
679
|
makerAsks: OrderStructs.MakerStruct[],
|
798
680
|
makerSignatures: BytesLike[],
|
799
681
|
merkleTrees: OrderStructs.MerkleTreeStruct[],
|
800
|
-
affiliate: AddressLike,
|
801
682
|
isAtomic: boolean
|
802
683
|
], [
|
803
684
|
void
|
@@ -806,8 +687,7 @@ export interface LooksRareProtocol extends BaseContract {
|
|
806
687
|
takerAsk: OrderStructs.TakerStruct,
|
807
688
|
makerBid: OrderStructs.MakerStruct,
|
808
689
|
makerSignature: BytesLike,
|
809
|
-
merkleTree: OrderStructs.MerkleTreeStruct
|
810
|
-
affiliate: AddressLike
|
690
|
+
merkleTree: OrderStructs.MerkleTreeStruct
|
811
691
|
], [
|
812
692
|
void
|
813
693
|
], "nonpayable">;
|
@@ -815,24 +695,14 @@ export interface LooksRareProtocol extends BaseContract {
|
|
815
695
|
takerBid: OrderStructs.TakerStruct,
|
816
696
|
makerAsk: OrderStructs.MakerStruct,
|
817
697
|
makerSignature: BytesLike,
|
818
|
-
merkleTree: OrderStructs.MerkleTreeStruct
|
819
|
-
affiliate: AddressLike
|
698
|
+
merkleTree: OrderStructs.MerkleTreeStruct
|
820
699
|
], [
|
821
700
|
void
|
822
701
|
], "payable">;
|
823
|
-
getFunction(nameOrSignature: "hashBatchOrder"): TypedContractMethod<[
|
824
|
-
root: BytesLike,
|
825
|
-
proofLength: BigNumberish
|
826
|
-
], [
|
827
|
-
string
|
828
|
-
], "view">;
|
702
|
+
getFunction(nameOrSignature: "hashBatchOrder"): TypedContractMethod<[root: BytesLike, proofLength: BigNumberish], [string], "view">;
|
829
703
|
getFunction(nameOrSignature: "incrementBidAskNonces"): TypedContractMethod<[bid: boolean, ask: boolean], [void], "nonpayable">;
|
830
704
|
getFunction(nameOrSignature: "initiateOwnershipRenouncement"): TypedContractMethod<[], [void], "nonpayable">;
|
831
|
-
getFunction(nameOrSignature: "initiateOwnershipTransfer"): TypedContractMethod<[
|
832
|
-
newPotentialOwner: AddressLike
|
833
|
-
], [
|
834
|
-
void
|
835
|
-
], "nonpayable">;
|
705
|
+
getFunction(nameOrSignature: "initiateOwnershipTransfer"): TypedContractMethod<[newPotentialOwner: AddressLike], [void], "nonpayable">;
|
836
706
|
getFunction(nameOrSignature: "isAffiliateProgramActive"): TypedContractMethod<[], [boolean], "view">;
|
837
707
|
getFunction(nameOrSignature: "isCurrencyAllowed"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
|
838
708
|
getFunction(nameOrSignature: "maxCreatorFeeBp"): TypedContractMethod<[], [bigint], "view">;
|
@@ -870,45 +740,15 @@ export interface LooksRareProtocol extends BaseContract {
|
|
870
740
|
}
|
871
741
|
], "view">;
|
872
742
|
getFunction(nameOrSignature: "transferManager"): TypedContractMethod<[], [string], "view">;
|
873
|
-
getFunction(nameOrSignature: "updateAffiliateController"): TypedContractMethod<[
|
874
|
-
newAffiliateController: AddressLike
|
875
|
-
], [
|
876
|
-
void
|
877
|
-
], "nonpayable">;
|
743
|
+
getFunction(nameOrSignature: "updateAffiliateController"): TypedContractMethod<[newAffiliateController: AddressLike], [void], "nonpayable">;
|
878
744
|
getFunction(nameOrSignature: "updateAffiliateProgramStatus"): TypedContractMethod<[isActive: boolean], [void], "nonpayable">;
|
879
|
-
getFunction(nameOrSignature: "updateAffiliateRate"): TypedContractMethod<[
|
880
|
-
|
881
|
-
|
882
|
-
], [
|
883
|
-
void
|
884
|
-
], "nonpayable">;
|
885
|
-
getFunction(nameOrSignature: "updateCreatorFeeManager"): TypedContractMethod<[
|
886
|
-
newCreatorFeeManager: AddressLike
|
887
|
-
], [
|
888
|
-
void
|
889
|
-
], "nonpayable">;
|
890
|
-
getFunction(nameOrSignature: "updateCurrencyStatus"): TypedContractMethod<[
|
891
|
-
currency: AddressLike,
|
892
|
-
isAllowed: boolean
|
893
|
-
], [
|
894
|
-
void
|
895
|
-
], "nonpayable">;
|
745
|
+
getFunction(nameOrSignature: "updateAffiliateRate"): TypedContractMethod<[affiliate: AddressLike, bp: BigNumberish], [void], "nonpayable">;
|
746
|
+
getFunction(nameOrSignature: "updateCreatorFeeManager"): TypedContractMethod<[newCreatorFeeManager: AddressLike], [void], "nonpayable">;
|
747
|
+
getFunction(nameOrSignature: "updateCurrencyStatus"): TypedContractMethod<[currency: AddressLike, isAllowed: boolean], [void], "nonpayable">;
|
896
748
|
getFunction(nameOrSignature: "updateDomainSeparator"): TypedContractMethod<[], [void], "nonpayable">;
|
897
|
-
getFunction(nameOrSignature: "updateETHGasLimitForTransfer"): TypedContractMethod<[
|
898
|
-
|
899
|
-
], [
|
900
|
-
void
|
901
|
-
], "nonpayable">;
|
902
|
-
getFunction(nameOrSignature: "updateMaxCreatorFeeBp"): TypedContractMethod<[
|
903
|
-
newMaxCreatorFeeBp: BigNumberish
|
904
|
-
], [
|
905
|
-
void
|
906
|
-
], "nonpayable">;
|
907
|
-
getFunction(nameOrSignature: "updateProtocolFeeRecipient"): TypedContractMethod<[
|
908
|
-
newProtocolFeeRecipient: AddressLike
|
909
|
-
], [
|
910
|
-
void
|
911
|
-
], "nonpayable">;
|
749
|
+
getFunction(nameOrSignature: "updateETHGasLimitForTransfer"): TypedContractMethod<[newGasLimitETHTransfer: BigNumberish], [void], "nonpayable">;
|
750
|
+
getFunction(nameOrSignature: "updateMaxCreatorFeeBp"): TypedContractMethod<[newMaxCreatorFeeBp: BigNumberish], [void], "nonpayable">;
|
751
|
+
getFunction(nameOrSignature: "updateProtocolFeeRecipient"): TypedContractMethod<[newProtocolFeeRecipient: AddressLike], [void], "nonpayable">;
|
912
752
|
getFunction(nameOrSignature: "updateStrategy"): TypedContractMethod<[
|
913
753
|
strategyId: BigNumberish,
|
914
754
|
isActive: boolean,
|
@@ -917,26 +757,12 @@ export interface LooksRareProtocol extends BaseContract {
|
|
917
757
|
], [
|
918
758
|
void
|
919
759
|
], "nonpayable">;
|
920
|
-
getFunction(nameOrSignature: "userBidAskNonces"): TypedContractMethod<[
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
}
|
927
|
-
], "view">;
|
928
|
-
getFunction(nameOrSignature: "userOrderNonce"): TypedContractMethod<[
|
929
|
-
arg0: AddressLike,
|
930
|
-
arg1: BigNumberish
|
931
|
-
], [
|
932
|
-
string
|
933
|
-
], "view">;
|
934
|
-
getFunction(nameOrSignature: "userSubsetNonce"): TypedContractMethod<[
|
935
|
-
arg0: AddressLike,
|
936
|
-
arg1: BigNumberish
|
937
|
-
], [
|
938
|
-
boolean
|
939
|
-
], "view">;
|
760
|
+
getFunction(nameOrSignature: "userBidAskNonces"): TypedContractMethod<[arg0: AddressLike], [[bigint, bigint] & {
|
761
|
+
bidNonce: bigint;
|
762
|
+
askNonce: bigint;
|
763
|
+
}], "view">;
|
764
|
+
getFunction(nameOrSignature: "userOrderNonce"): TypedContractMethod<[arg0: AddressLike, arg1: BigNumberish], [string], "view">;
|
765
|
+
getFunction(nameOrSignature: "userSubsetNonce"): TypedContractMethod<[arg0: AddressLike, arg1: BigNumberish], [boolean], "view">;
|
940
766
|
getEvent(key: "AffiliatePayment"): TypedContractEvent<AffiliatePaymentEvent.InputTuple, AffiliatePaymentEvent.OutputTuple, AffiliatePaymentEvent.OutputObject>;
|
941
767
|
getEvent(key: "CancelOwnershipTransfer"): TypedContractEvent<CancelOwnershipTransferEvent.InputTuple, CancelOwnershipTransferEvent.OutputTuple, CancelOwnershipTransferEvent.OutputObject>;
|
942
768
|
getEvent(key: "CurrencyStatusUpdated"): TypedContractEvent<CurrencyStatusUpdatedEvent.InputTuple, CurrencyStatusUpdatedEvent.OutputTuple, CurrencyStatusUpdatedEvent.OutputObject>;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { Signer } from "ethers";
|
2
2
|
import { Maker, MerkleTree, Taker, ContractMethods } from "../../types";
|
3
3
|
import { PayableOverrides } from "../../typechain/common";
|
4
|
-
export declare const executeTakerBid: (signer: Signer, address: string, taker: Taker, maker: Maker, makerSignature: string, merkleTree: MerkleTree,
|
5
|
-
export declare const executeTakerAsk: (signer: Signer, address: string, taker: Taker, maker: Maker, makerSignature: string, merkleTree: MerkleTree,
|
6
|
-
export declare const executeMultipleTakerBids: (signer: Signer, address: string, taker: Taker[], maker: Maker[], makerSignature: string[], isAtomic: boolean, merkleTree: MerkleTree[],
|
4
|
+
export declare const executeTakerBid: (signer: Signer, address: string, taker: Taker, maker: Maker, makerSignature: string, merkleTree: MerkleTree, overrides?: PayableOverrides) => ContractMethods;
|
5
|
+
export declare const executeTakerAsk: (signer: Signer, address: string, taker: Taker, maker: Maker, makerSignature: string, merkleTree: MerkleTree, overrides?: PayableOverrides) => ContractMethods;
|
6
|
+
export declare const executeMultipleTakerBids: (signer: Signer, address: string, taker: Taker[], maker: Maker[], makerSignature: string[], isAtomic: boolean, merkleTree: MerkleTree[], overrides?: PayableOverrides) => {
|
7
7
|
call: (additionalOverrides?: PayableOverrides) => Promise<import("ethers").ContractTransactionResponse>;
|
8
8
|
estimateGas: (additionalOverrides?: PayableOverrides) => Promise<bigint>;
|
9
9
|
callStatic: (additionalOverrides?: PayableOverrides) => Promise<void>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hypercerts-org/marketplace-sdk",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.5",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.esm.js",
|
@@ -26,7 +26,6 @@
|
|
26
26
|
},
|
27
27
|
"scripts": {
|
28
28
|
"prebuild": "rm -rf ./src/typechain ./src/artifacts cache dist",
|
29
|
-
"prepublishOnly": "yarn build",
|
30
29
|
"dev": "rollup -c --bundleConfigAsCjs -w",
|
31
30
|
"build:ts": "rollup -c --bundleConfigAsCjs",
|
32
31
|
"build:sc": "hardhat compile",
|
package/LICENSE-APACHE
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
Copyright 2023 Hypercerts Foundation
|
2
|
-
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
|
4
|
-
License. You may obtain a copy of the License at
|
5
|
-
|
6
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
7
|
-
|
8
|
-
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
|
9
|
-
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
10
|
-
language governing permissions and limitations under the License.
|
package/LICENSE-MIT
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) 2023 Hypercerts Foundation
|
4
|
-
|
5
|
-
Copyright (c) 2022 LooksRare for portions of marketplace: https://github.com/LooksRare/contracts-exchange-v2 commit:
|
6
|
-
7fca565
|
7
|
-
|
8
|
-
Copyright (c) 2022 Paul Razvan Berg for inital template: https://github.com/paulrberg/foundry-template
|
9
|
-
|
10
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
11
|
-
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
12
|
-
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
13
|
-
persons to whom the Software is furnished to do so, subject to the following conditions:
|
14
|
-
|
15
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
|
16
|
-
Software.
|
17
|
-
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
19
|
-
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
20
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
21
|
-
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|