@bosonprotocol/core-sdk 1.30.0-alpha.2 → 1.30.0-alpha.21

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.
Files changed (153) hide show
  1. package/dist/cjs/accounts/interface.d.ts.map +1 -1
  2. package/dist/cjs/accounts/interface.js +9 -4
  3. package/dist/cjs/accounts/interface.js.map +1 -1
  4. package/dist/cjs/accounts/mixin.d.ts +0 -7
  5. package/dist/cjs/accounts/mixin.d.ts.map +1 -1
  6. package/dist/cjs/accounts/mixin.js +2 -16
  7. package/dist/cjs/accounts/mixin.js.map +1 -1
  8. package/dist/cjs/accounts/subgraph.d.ts +0 -1
  9. package/dist/cjs/accounts/subgraph.d.ts.map +1 -1
  10. package/dist/cjs/accounts/subgraph.js +4 -12
  11. package/dist/cjs/accounts/subgraph.js.map +1 -1
  12. package/dist/cjs/accounts/types.d.ts +0 -1
  13. package/dist/cjs/accounts/types.d.ts.map +1 -1
  14. package/dist/cjs/exchanges/handler.d.ts +5 -0
  15. package/dist/cjs/exchanges/handler.d.ts.map +1 -1
  16. package/dist/cjs/exchanges/handler.js +46 -15
  17. package/dist/cjs/exchanges/handler.js.map +1 -1
  18. package/dist/cjs/exchanges/interface.d.ts +1 -0
  19. package/dist/cjs/exchanges/interface.d.ts.map +1 -1
  20. package/dist/cjs/exchanges/interface.js +5 -1
  21. package/dist/cjs/exchanges/interface.js.map +1 -1
  22. package/dist/cjs/exchanges/mixin.d.ts +11 -0
  23. package/dist/cjs/exchanges/mixin.d.ts.map +1 -1
  24. package/dist/cjs/exchanges/mixin.js +21 -0
  25. package/dist/cjs/exchanges/mixin.js.map +1 -1
  26. package/dist/cjs/forwarder/mock-interface.d.ts +20 -0
  27. package/dist/cjs/forwarder/mock-interface.d.ts.map +1 -1
  28. package/dist/cjs/groups/interface.d.ts +6 -1
  29. package/dist/cjs/groups/interface.d.ts.map +1 -1
  30. package/dist/cjs/groups/interface.js +15 -9
  31. package/dist/cjs/groups/interface.js.map +1 -1
  32. package/dist/cjs/meta-tx/biconomy.d.ts.map +1 -1
  33. package/dist/cjs/meta-tx/biconomy.js +0 -1
  34. package/dist/cjs/meta-tx/biconomy.js.map +1 -1
  35. package/dist/cjs/meta-tx/handler.d.ts +4 -0
  36. package/dist/cjs/meta-tx/handler.d.ts.map +1 -1
  37. package/dist/cjs/meta-tx/handler.js +42 -7
  38. package/dist/cjs/meta-tx/handler.js.map +1 -1
  39. package/dist/cjs/meta-tx/mixin.d.ts +6 -0
  40. package/dist/cjs/meta-tx/mixin.d.ts.map +1 -1
  41. package/dist/cjs/meta-tx/mixin.js +17 -5
  42. package/dist/cjs/meta-tx/mixin.js.map +1 -1
  43. package/dist/cjs/offers/mixin.d.ts.map +1 -1
  44. package/dist/cjs/offers/mixin.js +1 -1
  45. package/dist/cjs/offers/mixin.js.map +1 -1
  46. package/dist/cjs/offers/renderContractualAgreement.d.ts.map +1 -1
  47. package/dist/cjs/offers/renderContractualAgreement.js.map +1 -1
  48. package/dist/cjs/orchestration/interface.d.ts.map +1 -1
  49. package/dist/cjs/orchestration/interface.js +5 -4
  50. package/dist/cjs/orchestration/interface.js.map +1 -1
  51. package/dist/cjs/subgraph.d.ts +156 -39
  52. package/dist/cjs/subgraph.d.ts.map +1 -1
  53. package/dist/cjs/subgraph.js +11 -4
  54. package/dist/cjs/subgraph.js.map +1 -1
  55. package/dist/cjs/voucher/handler.d.ts +1 -0
  56. package/dist/cjs/voucher/handler.d.ts.map +1 -1
  57. package/dist/cjs/voucher/handler.js +1 -1
  58. package/dist/cjs/voucher/handler.js.map +1 -1
  59. package/dist/cjs/voucher/interface.d.ts +1 -1
  60. package/dist/cjs/voucher/interface.d.ts.map +1 -1
  61. package/dist/cjs/voucher/interface.js +3 -2
  62. package/dist/cjs/voucher/interface.js.map +1 -1
  63. package/dist/cjs/voucher/mixin.d.ts +1 -1
  64. package/dist/cjs/voucher/mixin.d.ts.map +1 -1
  65. package/dist/cjs/voucher/mixin.js +2 -1
  66. package/dist/cjs/voucher/mixin.js.map +1 -1
  67. package/dist/esm/accounts/interface.d.ts.map +1 -1
  68. package/dist/esm/accounts/interface.js +9 -2
  69. package/dist/esm/accounts/interface.js.map +1 -1
  70. package/dist/esm/accounts/mixin.d.ts +0 -7
  71. package/dist/esm/accounts/mixin.d.ts.map +1 -1
  72. package/dist/esm/accounts/mixin.js +0 -12
  73. package/dist/esm/accounts/mixin.js.map +1 -1
  74. package/dist/esm/accounts/subgraph.d.ts +0 -1
  75. package/dist/esm/accounts/subgraph.d.ts.map +1 -1
  76. package/dist/esm/accounts/subgraph.js +3 -14
  77. package/dist/esm/accounts/subgraph.js.map +1 -1
  78. package/dist/esm/accounts/types.d.ts +0 -1
  79. package/dist/esm/accounts/types.d.ts.map +1 -1
  80. package/dist/esm/exchanges/handler.d.ts +5 -0
  81. package/dist/esm/exchanges/handler.d.ts.map +1 -1
  82. package/dist/esm/exchanges/handler.js +39 -8
  83. package/dist/esm/exchanges/handler.js.map +1 -1
  84. package/dist/esm/exchanges/interface.d.ts +1 -0
  85. package/dist/esm/exchanges/interface.d.ts.map +1 -1
  86. package/dist/esm/exchanges/interface.js +3 -0
  87. package/dist/esm/exchanges/interface.js.map +1 -1
  88. package/dist/esm/exchanges/mixin.d.ts +11 -0
  89. package/dist/esm/exchanges/mixin.d.ts.map +1 -1
  90. package/dist/esm/exchanges/mixin.js +20 -1
  91. package/dist/esm/exchanges/mixin.js.map +1 -1
  92. package/dist/esm/forwarder/mock-interface.d.ts +20 -0
  93. package/dist/esm/forwarder/mock-interface.d.ts.map +1 -1
  94. package/dist/esm/groups/interface.d.ts +6 -1
  95. package/dist/esm/groups/interface.d.ts.map +1 -1
  96. package/dist/esm/groups/interface.js +13 -8
  97. package/dist/esm/groups/interface.js.map +1 -1
  98. package/dist/esm/meta-tx/biconomy.d.ts.map +1 -1
  99. package/dist/esm/meta-tx/biconomy.js +0 -1
  100. package/dist/esm/meta-tx/biconomy.js.map +1 -1
  101. package/dist/esm/meta-tx/handler.d.ts +4 -0
  102. package/dist/esm/meta-tx/handler.d.ts.map +1 -1
  103. package/dist/esm/meta-tx/handler.js +48 -6
  104. package/dist/esm/meta-tx/handler.js.map +1 -1
  105. package/dist/esm/meta-tx/mixin.d.ts +6 -0
  106. package/dist/esm/meta-tx/mixin.d.ts.map +1 -1
  107. package/dist/esm/meta-tx/mixin.js +21 -3
  108. package/dist/esm/meta-tx/mixin.js.map +1 -1
  109. package/dist/esm/offers/mixin.d.ts.map +1 -1
  110. package/dist/esm/offers/mixin.js +1 -1
  111. package/dist/esm/offers/mixin.js.map +1 -1
  112. package/dist/esm/offers/renderContractualAgreement.d.ts.map +1 -1
  113. package/dist/esm/offers/renderContractualAgreement.js.map +1 -1
  114. package/dist/esm/orchestration/interface.d.ts.map +1 -1
  115. package/dist/esm/orchestration/interface.js +5 -4
  116. package/dist/esm/orchestration/interface.js.map +1 -1
  117. package/dist/esm/subgraph.d.ts +156 -39
  118. package/dist/esm/subgraph.d.ts.map +1 -1
  119. package/dist/esm/subgraph.js +9 -3
  120. package/dist/esm/subgraph.js.map +1 -1
  121. package/dist/esm/voucher/handler.d.ts +1 -0
  122. package/dist/esm/voucher/handler.d.ts.map +1 -1
  123. package/dist/esm/voucher/handler.js +1 -1
  124. package/dist/esm/voucher/handler.js.map +1 -1
  125. package/dist/esm/voucher/interface.d.ts +1 -1
  126. package/dist/esm/voucher/interface.d.ts.map +1 -1
  127. package/dist/esm/voucher/interface.js +3 -2
  128. package/dist/esm/voucher/interface.js.map +1 -1
  129. package/dist/esm/voucher/mixin.d.ts +1 -1
  130. package/dist/esm/voucher/mixin.d.ts.map +1 -1
  131. package/dist/esm/voucher/mixin.js +2 -1
  132. package/dist/esm/voucher/mixin.js.map +1 -1
  133. package/package.json +4 -3
  134. package/src/accounts/interface.ts +9 -2
  135. package/src/accounts/mixin.ts +0 -20
  136. package/src/accounts/subgraph.ts +3 -19
  137. package/src/accounts/types.ts +0 -1
  138. package/src/exchanges/handler.ts +70 -15
  139. package/src/exchanges/interface.ts +11 -0
  140. package/src/exchanges/mixin.ts +28 -1
  141. package/src/groups/interface.ts +17 -9
  142. package/src/groups/queries.graphql +3 -1
  143. package/src/meta-tx/biconomy.ts +0 -1
  144. package/src/meta-tx/handler.ts +64 -6
  145. package/src/meta-tx/mixin.ts +29 -3
  146. package/src/offers/mixin.ts +7 -2
  147. package/src/offers/queries.graphql +1 -0
  148. package/src/offers/renderContractualAgreement.ts +0 -1
  149. package/src/orchestration/interface.ts +5 -4
  150. package/src/subgraph.ts +160 -41
  151. package/src/voucher/handler.ts +2 -1
  152. package/src/voucher/interface.ts +6 -2
  153. package/src/voucher/mixin.ts +2 -0
package/src/subgraph.ts CHANGED
@@ -708,18 +708,28 @@ export enum Buyer_OrderBy {
708
708
  */
709
709
  export type ConditionEntity = {
710
710
  __typename?: "ConditionEntity";
711
+ gatingType: Scalars["Int"];
711
712
  id: Scalars["ID"];
712
713
  maxCommits: Scalars["BigInt"];
714
+ maxTokenId: Scalars["BigInt"];
713
715
  method: Scalars["Int"];
716
+ minTokenId: Scalars["BigInt"];
714
717
  threshold: Scalars["BigInt"];
715
718
  tokenAddress: Scalars["Bytes"];
716
- tokenId: Scalars["BigInt"];
717
719
  tokenType: Scalars["Int"];
718
720
  };
719
721
 
720
722
  export type ConditionEntity_Filter = {
721
723
  /** Filter for the block changed event. */
722
724
  _change_block?: InputMaybe<BlockChangedFilter>;
725
+ gatingType?: InputMaybe<Scalars["Int"]>;
726
+ gatingType_gt?: InputMaybe<Scalars["Int"]>;
727
+ gatingType_gte?: InputMaybe<Scalars["Int"]>;
728
+ gatingType_in?: InputMaybe<Array<Scalars["Int"]>>;
729
+ gatingType_lt?: InputMaybe<Scalars["Int"]>;
730
+ gatingType_lte?: InputMaybe<Scalars["Int"]>;
731
+ gatingType_not?: InputMaybe<Scalars["Int"]>;
732
+ gatingType_not_in?: InputMaybe<Array<Scalars["Int"]>>;
723
733
  id?: InputMaybe<Scalars["ID"]>;
724
734
  id_gt?: InputMaybe<Scalars["ID"]>;
725
735
  id_gte?: InputMaybe<Scalars["ID"]>;
@@ -736,6 +746,14 @@ export type ConditionEntity_Filter = {
736
746
  maxCommits_lte?: InputMaybe<Scalars["BigInt"]>;
737
747
  maxCommits_not?: InputMaybe<Scalars["BigInt"]>;
738
748
  maxCommits_not_in?: InputMaybe<Array<Scalars["BigInt"]>>;
749
+ maxTokenId?: InputMaybe<Scalars["BigInt"]>;
750
+ maxTokenId_gt?: InputMaybe<Scalars["BigInt"]>;
751
+ maxTokenId_gte?: InputMaybe<Scalars["BigInt"]>;
752
+ maxTokenId_in?: InputMaybe<Array<Scalars["BigInt"]>>;
753
+ maxTokenId_lt?: InputMaybe<Scalars["BigInt"]>;
754
+ maxTokenId_lte?: InputMaybe<Scalars["BigInt"]>;
755
+ maxTokenId_not?: InputMaybe<Scalars["BigInt"]>;
756
+ maxTokenId_not_in?: InputMaybe<Array<Scalars["BigInt"]>>;
739
757
  method?: InputMaybe<Scalars["Int"]>;
740
758
  method_gt?: InputMaybe<Scalars["Int"]>;
741
759
  method_gte?: InputMaybe<Scalars["Int"]>;
@@ -744,6 +762,14 @@ export type ConditionEntity_Filter = {
744
762
  method_lte?: InputMaybe<Scalars["Int"]>;
745
763
  method_not?: InputMaybe<Scalars["Int"]>;
746
764
  method_not_in?: InputMaybe<Array<Scalars["Int"]>>;
765
+ minTokenId?: InputMaybe<Scalars["BigInt"]>;
766
+ minTokenId_gt?: InputMaybe<Scalars["BigInt"]>;
767
+ minTokenId_gte?: InputMaybe<Scalars["BigInt"]>;
768
+ minTokenId_in?: InputMaybe<Array<Scalars["BigInt"]>>;
769
+ minTokenId_lt?: InputMaybe<Scalars["BigInt"]>;
770
+ minTokenId_lte?: InputMaybe<Scalars["BigInt"]>;
771
+ minTokenId_not?: InputMaybe<Scalars["BigInt"]>;
772
+ minTokenId_not_in?: InputMaybe<Array<Scalars["BigInt"]>>;
747
773
  threshold?: InputMaybe<Scalars["BigInt"]>;
748
774
  threshold_gt?: InputMaybe<Scalars["BigInt"]>;
749
775
  threshold_gte?: InputMaybe<Scalars["BigInt"]>;
@@ -758,14 +784,6 @@ export type ConditionEntity_Filter = {
758
784
  tokenAddress_not?: InputMaybe<Scalars["Bytes"]>;
759
785
  tokenAddress_not_contains?: InputMaybe<Scalars["Bytes"]>;
760
786
  tokenAddress_not_in?: InputMaybe<Array<Scalars["Bytes"]>>;
761
- tokenId?: InputMaybe<Scalars["BigInt"]>;
762
- tokenId_gt?: InputMaybe<Scalars["BigInt"]>;
763
- tokenId_gte?: InputMaybe<Scalars["BigInt"]>;
764
- tokenId_in?: InputMaybe<Array<Scalars["BigInt"]>>;
765
- tokenId_lt?: InputMaybe<Scalars["BigInt"]>;
766
- tokenId_lte?: InputMaybe<Scalars["BigInt"]>;
767
- tokenId_not?: InputMaybe<Scalars["BigInt"]>;
768
- tokenId_not_in?: InputMaybe<Array<Scalars["BigInt"]>>;
769
787
  tokenType?: InputMaybe<Scalars["Int"]>;
770
788
  tokenType_gt?: InputMaybe<Scalars["Int"]>;
771
789
  tokenType_gte?: InputMaybe<Scalars["Int"]>;
@@ -777,12 +795,14 @@ export type ConditionEntity_Filter = {
777
795
  };
778
796
 
779
797
  export enum ConditionEntity_OrderBy {
798
+ GatingType = "gatingType",
780
799
  Id = "id",
781
800
  MaxCommits = "maxCommits",
801
+ MaxTokenId = "maxTokenId",
782
802
  Method = "method",
803
+ MinTokenId = "minTokenId",
783
804
  Threshold = "threshold",
784
805
  TokenAddress = "tokenAddress",
785
- TokenId = "tokenId",
786
806
  TokenType = "tokenType"
787
807
  }
788
808
 
@@ -2798,6 +2818,7 @@ export type Offer = {
2798
2818
  agentFee: Scalars["BigInt"];
2799
2819
  agentId: Scalars["BigInt"];
2800
2820
  buyerCancelPenalty: Scalars["BigInt"];
2821
+ collectionIndex: Scalars["BigInt"];
2801
2822
  condition?: Maybe<ConditionEntity>;
2802
2823
  createdAt: Scalars["BigInt"];
2803
2824
  /** Offer durations */
@@ -2986,6 +3007,14 @@ export type Offer_Filter = {
2986
3007
  buyerCancelPenalty_lte?: InputMaybe<Scalars["BigInt"]>;
2987
3008
  buyerCancelPenalty_not?: InputMaybe<Scalars["BigInt"]>;
2988
3009
  buyerCancelPenalty_not_in?: InputMaybe<Array<Scalars["BigInt"]>>;
3010
+ collectionIndex?: InputMaybe<Scalars["BigInt"]>;
3011
+ collectionIndex_gt?: InputMaybe<Scalars["BigInt"]>;
3012
+ collectionIndex_gte?: InputMaybe<Scalars["BigInt"]>;
3013
+ collectionIndex_in?: InputMaybe<Array<Scalars["BigInt"]>>;
3014
+ collectionIndex_lt?: InputMaybe<Scalars["BigInt"]>;
3015
+ collectionIndex_lte?: InputMaybe<Scalars["BigInt"]>;
3016
+ collectionIndex_not?: InputMaybe<Scalars["BigInt"]>;
3017
+ collectionIndex_not_in?: InputMaybe<Array<Scalars["BigInt"]>>;
2989
3018
  condition?: InputMaybe<Scalars["String"]>;
2990
3019
  condition_?: InputMaybe<ConditionEntity_Filter>;
2991
3020
  condition_contains?: InputMaybe<Scalars["String"]>;
@@ -3335,6 +3364,7 @@ export enum Offer_OrderBy {
3335
3364
  AgentFee = "agentFee",
3336
3365
  AgentId = "agentId",
3337
3366
  BuyerCancelPenalty = "buyerCancelPenalty",
3367
+ CollectionIndex = "collectionIndex",
3338
3368
  Condition = "condition",
3339
3369
  CreatedAt = "createdAt",
3340
3370
  DisputePeriodDuration = "disputePeriodDuration",
@@ -9686,6 +9716,7 @@ export type GetSellerByIdQueryQuery = {
9686
9716
  metadataHash: string;
9687
9717
  voided: boolean;
9688
9718
  voidedAt?: string | null;
9719
+ collectionIndex: string;
9689
9720
  disputeResolverId: string;
9690
9721
  numberOfCommits: string;
9691
9722
  numberOfRedemptions: string;
@@ -9695,7 +9726,9 @@ export type GetSellerByIdQueryQuery = {
9695
9726
  method: number;
9696
9727
  tokenType: number;
9697
9728
  tokenAddress: string;
9698
- tokenId: string;
9729
+ gatingType: number;
9730
+ minTokenId: string;
9731
+ maxTokenId: string;
9699
9732
  threshold: string;
9700
9733
  maxCommits: string;
9701
9734
  } | null;
@@ -10537,6 +10570,7 @@ export type GetSellersQueryQuery = {
10537
10570
  metadataHash: string;
10538
10571
  voided: boolean;
10539
10572
  voidedAt?: string | null;
10573
+ collectionIndex: string;
10540
10574
  disputeResolverId: string;
10541
10575
  numberOfCommits: string;
10542
10576
  numberOfRedemptions: string;
@@ -10546,7 +10580,9 @@ export type GetSellersQueryQuery = {
10546
10580
  method: number;
10547
10581
  tokenType: number;
10548
10582
  tokenAddress: string;
10549
- tokenId: string;
10583
+ gatingType: number;
10584
+ minTokenId: string;
10585
+ maxTokenId: string;
10550
10586
  threshold: string;
10551
10587
  maxCommits: string;
10552
10588
  } | null;
@@ -11811,6 +11847,7 @@ export type GetDisputeResolverByIdQueryQuery = {
11811
11847
  metadataHash: string;
11812
11848
  voided: boolean;
11813
11849
  voidedAt?: string | null;
11850
+ collectionIndex: string;
11814
11851
  disputeResolverId: string;
11815
11852
  numberOfCommits: string;
11816
11853
  numberOfRedemptions: string;
@@ -11820,7 +11857,9 @@ export type GetDisputeResolverByIdQueryQuery = {
11820
11857
  method: number;
11821
11858
  tokenType: number;
11822
11859
  tokenAddress: string;
11823
- tokenId: string;
11860
+ gatingType: number;
11861
+ minTokenId: string;
11862
+ maxTokenId: string;
11824
11863
  threshold: string;
11825
11864
  maxCommits: string;
11826
11865
  } | null;
@@ -12481,6 +12520,7 @@ export type GetDisputeResolversQueryQuery = {
12481
12520
  metadataHash: string;
12482
12521
  voided: boolean;
12483
12522
  voidedAt?: string | null;
12523
+ collectionIndex: string;
12484
12524
  disputeResolverId: string;
12485
12525
  numberOfCommits: string;
12486
12526
  numberOfRedemptions: string;
@@ -12490,7 +12530,9 @@ export type GetDisputeResolversQueryQuery = {
12490
12530
  method: number;
12491
12531
  tokenType: number;
12492
12532
  tokenAddress: string;
12493
- tokenId: string;
12533
+ gatingType: number;
12534
+ minTokenId: string;
12535
+ maxTokenId: string;
12494
12536
  threshold: string;
12495
12537
  maxCommits: string;
12496
12538
  } | null;
@@ -13148,6 +13190,7 @@ export type SellerFieldsFragment = {
13148
13190
  metadataHash: string;
13149
13191
  voided: boolean;
13150
13192
  voidedAt?: string | null;
13193
+ collectionIndex: string;
13151
13194
  disputeResolverId: string;
13152
13195
  numberOfCommits: string;
13153
13196
  numberOfRedemptions: string;
@@ -13157,7 +13200,9 @@ export type SellerFieldsFragment = {
13157
13200
  method: number;
13158
13201
  tokenType: number;
13159
13202
  tokenAddress: string;
13160
- tokenId: string;
13203
+ gatingType: number;
13204
+ minTokenId: string;
13205
+ maxTokenId: string;
13161
13206
  threshold: string;
13162
13207
  maxCommits: string;
13163
13208
  } | null;
@@ -14278,6 +14323,7 @@ export type DisputeResolverFieldsFragment = {
14278
14323
  metadataHash: string;
14279
14324
  voided: boolean;
14280
14325
  voidedAt?: string | null;
14326
+ collectionIndex: string;
14281
14327
  disputeResolverId: string;
14282
14328
  numberOfCommits: string;
14283
14329
  numberOfRedemptions: string;
@@ -14287,7 +14333,9 @@ export type DisputeResolverFieldsFragment = {
14287
14333
  method: number;
14288
14334
  tokenType: number;
14289
14335
  tokenAddress: string;
14290
- tokenId: string;
14336
+ gatingType: number;
14337
+ minTokenId: string;
14338
+ maxTokenId: string;
14291
14339
  threshold: string;
14292
14340
  maxCommits: string;
14293
14341
  } | null;
@@ -15635,6 +15683,7 @@ export type GetExchangeTokenByIdQueryQuery = {
15635
15683
  metadataHash: string;
15636
15684
  voided: boolean;
15637
15685
  voidedAt?: string | null;
15686
+ collectionIndex: string;
15638
15687
  disputeResolverId: string;
15639
15688
  numberOfCommits: string;
15640
15689
  numberOfRedemptions: string;
@@ -15644,7 +15693,9 @@ export type GetExchangeTokenByIdQueryQuery = {
15644
15693
  method: number;
15645
15694
  tokenType: number;
15646
15695
  tokenAddress: string;
15647
- tokenId: string;
15696
+ gatingType: number;
15697
+ minTokenId: string;
15698
+ maxTokenId: string;
15648
15699
  threshold: string;
15649
15700
  maxCommits: string;
15650
15701
  } | null;
@@ -16216,6 +16267,7 @@ export type GetExchangeTokensQueryQuery = {
16216
16267
  metadataHash: string;
16217
16268
  voided: boolean;
16218
16269
  voidedAt?: string | null;
16270
+ collectionIndex: string;
16219
16271
  disputeResolverId: string;
16220
16272
  numberOfCommits: string;
16221
16273
  numberOfRedemptions: string;
@@ -16225,7 +16277,9 @@ export type GetExchangeTokensQueryQuery = {
16225
16277
  method: number;
16226
16278
  tokenType: number;
16227
16279
  tokenAddress: string;
16228
- tokenId: string;
16280
+ gatingType: number;
16281
+ minTokenId: string;
16282
+ maxTokenId: string;
16229
16283
  threshold: string;
16230
16284
  maxCommits: string;
16231
16285
  } | null;
@@ -16775,6 +16829,7 @@ export type ExchangeTokenFieldsFragment = {
16775
16829
  metadataHash: string;
16776
16830
  voided: boolean;
16777
16831
  voidedAt?: string | null;
16832
+ collectionIndex: string;
16778
16833
  disputeResolverId: string;
16779
16834
  numberOfCommits: string;
16780
16835
  numberOfRedemptions: string;
@@ -16784,7 +16839,9 @@ export type ExchangeTokenFieldsFragment = {
16784
16839
  method: number;
16785
16840
  tokenType: number;
16786
16841
  tokenAddress: string;
16787
- tokenId: string;
16842
+ gatingType: number;
16843
+ minTokenId: string;
16844
+ maxTokenId: string;
16788
16845
  threshold: string;
16789
16846
  maxCommits: string;
16790
16847
  } | null;
@@ -17513,6 +17570,7 @@ export type GetExchangeByIdQueryQuery = {
17513
17570
  metadataHash: string;
17514
17571
  voided: boolean;
17515
17572
  voidedAt?: string | null;
17573
+ collectionIndex: string;
17516
17574
  disputeResolverId: string;
17517
17575
  numberOfCommits: string;
17518
17576
  numberOfRedemptions: string;
@@ -17522,7 +17580,9 @@ export type GetExchangeByIdQueryQuery = {
17522
17580
  method: number;
17523
17581
  tokenType: number;
17524
17582
  tokenAddress: string;
17525
- tokenId: string;
17583
+ gatingType: number;
17584
+ minTokenId: string;
17585
+ maxTokenId: string;
17526
17586
  threshold: string;
17527
17587
  maxCommits: string;
17528
17588
  } | null;
@@ -18176,6 +18236,7 @@ export type GetExchangesQueryQuery = {
18176
18236
  metadataHash: string;
18177
18237
  voided: boolean;
18178
18238
  voidedAt?: string | null;
18239
+ collectionIndex: string;
18179
18240
  disputeResolverId: string;
18180
18241
  numberOfCommits: string;
18181
18242
  numberOfRedemptions: string;
@@ -18185,7 +18246,9 @@ export type GetExchangesQueryQuery = {
18185
18246
  method: number;
18186
18247
  tokenType: number;
18187
18248
  tokenAddress: string;
18188
- tokenId: string;
18249
+ gatingType: number;
18250
+ minTokenId: string;
18251
+ maxTokenId: string;
18189
18252
  threshold: string;
18190
18253
  maxCommits: string;
18191
18254
  } | null;
@@ -18829,6 +18892,7 @@ export type ExchangeFieldsFragment = {
18829
18892
  metadataHash: string;
18830
18893
  voided: boolean;
18831
18894
  voidedAt?: string | null;
18895
+ collectionIndex: string;
18832
18896
  disputeResolverId: string;
18833
18897
  numberOfCommits: string;
18834
18898
  numberOfRedemptions: string;
@@ -18838,7 +18902,9 @@ export type ExchangeFieldsFragment = {
18838
18902
  method: number;
18839
18903
  tokenType: number;
18840
18904
  tokenAddress: string;
18841
- tokenId: string;
18905
+ gatingType: number;
18906
+ minTokenId: string;
18907
+ maxTokenId: string;
18842
18908
  threshold: string;
18843
18909
  maxCommits: string;
18844
18910
  } | null;
@@ -19615,7 +19681,9 @@ export type BaseConditionFieldsFragment = {
19615
19681
  method: number;
19616
19682
  tokenType: number;
19617
19683
  tokenAddress: string;
19618
- tokenId: string;
19684
+ gatingType: number;
19685
+ minTokenId: string;
19686
+ maxTokenId: string;
19619
19687
  threshold: string;
19620
19688
  maxCommits: string;
19621
19689
  };
@@ -19686,6 +19754,7 @@ export type GetBaseMetadataEntityByIdQueryQuery = {
19686
19754
  metadataHash: string;
19687
19755
  voided: boolean;
19688
19756
  voidedAt?: string | null;
19757
+ collectionIndex: string;
19689
19758
  disputeResolverId: string;
19690
19759
  numberOfCommits: string;
19691
19760
  numberOfRedemptions: string;
@@ -19695,7 +19764,9 @@ export type GetBaseMetadataEntityByIdQueryQuery = {
19695
19764
  method: number;
19696
19765
  tokenType: number;
19697
19766
  tokenAddress: string;
19698
- tokenId: string;
19767
+ gatingType: number;
19768
+ minTokenId: string;
19769
+ maxTokenId: string;
19699
19770
  threshold: string;
19700
19771
  maxCommits: string;
19701
19772
  } | null;
@@ -20354,6 +20425,7 @@ export type GetBaseMetadataEntitiesQueryQuery = {
20354
20425
  metadataHash: string;
20355
20426
  voided: boolean;
20356
20427
  voidedAt?: string | null;
20428
+ collectionIndex: string;
20357
20429
  disputeResolverId: string;
20358
20430
  numberOfCommits: string;
20359
20431
  numberOfRedemptions: string;
@@ -20363,7 +20435,9 @@ export type GetBaseMetadataEntitiesQueryQuery = {
20363
20435
  method: number;
20364
20436
  tokenType: number;
20365
20437
  tokenAddress: string;
20366
- tokenId: string;
20438
+ gatingType: number;
20439
+ minTokenId: string;
20440
+ maxTokenId: string;
20367
20441
  threshold: string;
20368
20442
  maxCommits: string;
20369
20443
  } | null;
@@ -21012,6 +21086,7 @@ export type BaseMetadataEntityFieldsFragment = {
21012
21086
  metadataHash: string;
21013
21087
  voided: boolean;
21014
21088
  voidedAt?: string | null;
21089
+ collectionIndex: string;
21015
21090
  disputeResolverId: string;
21016
21091
  numberOfCommits: string;
21017
21092
  numberOfRedemptions: string;
@@ -21021,7 +21096,9 @@ export type BaseMetadataEntityFieldsFragment = {
21021
21096
  method: number;
21022
21097
  tokenType: number;
21023
21098
  tokenAddress: string;
21024
- tokenId: string;
21099
+ gatingType: number;
21100
+ minTokenId: string;
21101
+ maxTokenId: string;
21025
21102
  threshold: string;
21026
21103
  maxCommits: string;
21027
21104
  } | null;
@@ -21665,6 +21742,7 @@ export type BaseBaseMetadataEntityFieldsFragment = {
21665
21742
  metadataHash: string;
21666
21743
  voided: boolean;
21667
21744
  voidedAt?: string | null;
21745
+ collectionIndex: string;
21668
21746
  disputeResolverId: string;
21669
21747
  numberOfCommits: string;
21670
21748
  numberOfRedemptions: string;
@@ -21674,7 +21752,9 @@ export type BaseBaseMetadataEntityFieldsFragment = {
21674
21752
  method: number;
21675
21753
  tokenType: number;
21676
21754
  tokenAddress: string;
21677
- tokenId: string;
21755
+ gatingType: number;
21756
+ minTokenId: string;
21757
+ maxTokenId: string;
21678
21758
  threshold: string;
21679
21759
  maxCommits: string;
21680
21760
  } | null;
@@ -22562,6 +22642,7 @@ export type GetProductV1ProductsWithVariantsQueryQuery = {
22562
22642
  metadataHash: string;
22563
22643
  voided: boolean;
22564
22644
  voidedAt?: string | null;
22645
+ collectionIndex: string;
22565
22646
  disputeResolverId: string;
22566
22647
  numberOfCommits: string;
22567
22648
  numberOfRedemptions: string;
@@ -22679,7 +22760,9 @@ export type GetProductV1ProductsWithVariantsQueryQuery = {
22679
22760
  method: number;
22680
22761
  tokenType: number;
22681
22762
  tokenAddress: string;
22682
- tokenId: string;
22763
+ gatingType: number;
22764
+ minTokenId: string;
22765
+ maxTokenId: string;
22683
22766
  threshold: string;
22684
22767
  maxCommits: string;
22685
22768
  } | null;
@@ -23439,6 +23522,7 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = {
23439
23522
  metadataHash: string;
23440
23523
  voided: boolean;
23441
23524
  voidedAt?: string | null;
23525
+ collectionIndex: string;
23442
23526
  disputeResolverId: string;
23443
23527
  numberOfCommits: string;
23444
23528
  numberOfRedemptions: string;
@@ -23556,7 +23640,9 @@ export type GetAllProductsWithNotVoidedVariantsQueryQuery = {
23556
23640
  method: number;
23557
23641
  tokenType: number;
23558
23642
  tokenAddress: string;
23559
- tokenId: string;
23643
+ gatingType: number;
23644
+ minTokenId: string;
23645
+ maxTokenId: string;
23560
23646
  threshold: string;
23561
23647
  maxCommits: string;
23562
23648
  } | null;
@@ -24330,6 +24416,7 @@ export type GetProductV1MetadataEntityByIdQueryQuery = {
24330
24416
  metadataHash: string;
24331
24417
  voided: boolean;
24332
24418
  voidedAt?: string | null;
24419
+ collectionIndex: string;
24333
24420
  disputeResolverId: string;
24334
24421
  numberOfCommits: string;
24335
24422
  numberOfRedemptions: string;
@@ -24447,7 +24534,9 @@ export type GetProductV1MetadataEntityByIdQueryQuery = {
24447
24534
  method: number;
24448
24535
  tokenType: number;
24449
24536
  tokenAddress: string;
24450
- tokenId: string;
24537
+ gatingType: number;
24538
+ minTokenId: string;
24539
+ maxTokenId: string;
24451
24540
  threshold: string;
24452
24541
  maxCommits: string;
24453
24542
  } | null;
@@ -25421,6 +25510,7 @@ export type GetProductV1MetadataEntitiesQueryQuery = {
25421
25510
  metadataHash: string;
25422
25511
  voided: boolean;
25423
25512
  voidedAt?: string | null;
25513
+ collectionIndex: string;
25424
25514
  disputeResolverId: string;
25425
25515
  numberOfCommits: string;
25426
25516
  numberOfRedemptions: string;
@@ -25538,7 +25628,9 @@ export type GetProductV1MetadataEntitiesQueryQuery = {
25538
25628
  method: number;
25539
25629
  tokenType: number;
25540
25630
  tokenAddress: string;
25541
- tokenId: string;
25631
+ gatingType: number;
25632
+ minTokenId: string;
25633
+ maxTokenId: string;
25542
25634
  threshold: string;
25543
25635
  maxCommits: string;
25544
25636
  } | null;
@@ -26502,6 +26594,7 @@ export type ProductV1MetadataEntityFieldsFragment = {
26502
26594
  metadataHash: string;
26503
26595
  voided: boolean;
26504
26596
  voidedAt?: string | null;
26597
+ collectionIndex: string;
26505
26598
  disputeResolverId: string;
26506
26599
  numberOfCommits: string;
26507
26600
  numberOfRedemptions: string;
@@ -26619,7 +26712,9 @@ export type ProductV1MetadataEntityFieldsFragment = {
26619
26712
  method: number;
26620
26713
  tokenType: number;
26621
26714
  tokenAddress: string;
26622
- tokenId: string;
26715
+ gatingType: number;
26716
+ minTokenId: string;
26717
+ maxTokenId: string;
26623
26718
  threshold: string;
26624
26719
  maxCommits: string;
26625
26720
  } | null;
@@ -27578,6 +27673,7 @@ export type BaseProductV1MetadataEntityFieldsFragment = {
27578
27673
  metadataHash: string;
27579
27674
  voided: boolean;
27580
27675
  voidedAt?: string | null;
27676
+ collectionIndex: string;
27581
27677
  disputeResolverId: string;
27582
27678
  numberOfCommits: string;
27583
27679
  numberOfRedemptions: string;
@@ -27695,7 +27791,9 @@ export type BaseProductV1MetadataEntityFieldsFragment = {
27695
27791
  method: number;
27696
27792
  tokenType: number;
27697
27793
  tokenAddress: string;
27698
- tokenId: string;
27794
+ gatingType: number;
27795
+ minTokenId: string;
27796
+ maxTokenId: string;
27699
27797
  threshold: string;
27700
27798
  maxCommits: string;
27701
27799
  } | null;
@@ -28867,6 +28965,7 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = {
28867
28965
  metadataHash: string;
28868
28966
  voided: boolean;
28869
28967
  voidedAt?: string | null;
28968
+ collectionIndex: string;
28870
28969
  disputeResolverId: string;
28871
28970
  numberOfCommits: string;
28872
28971
  numberOfRedemptions: string;
@@ -28984,7 +29083,9 @@ export type BaseProductV1ProductWithVariantsFieldsFragment = {
28984
29083
  method: number;
28985
29084
  tokenType: number;
28986
29085
  tokenAddress: string;
28987
- tokenId: string;
29086
+ gatingType: number;
29087
+ minTokenId: string;
29088
+ maxTokenId: string;
28988
29089
  threshold: string;
28989
29090
  maxCommits: string;
28990
29091
  } | null;
@@ -29733,6 +29834,7 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = {
29733
29834
  metadataHash: string;
29734
29835
  voided: boolean;
29735
29836
  voidedAt?: string | null;
29837
+ collectionIndex: string;
29736
29838
  disputeResolverId: string;
29737
29839
  numberOfCommits: string;
29738
29840
  numberOfRedemptions: string;
@@ -29850,7 +29952,9 @@ export type BaseProductV1ProductWithNotVoidedVariantsFieldsFragment = {
29850
29952
  method: number;
29851
29953
  tokenType: number;
29852
29954
  tokenAddress: string;
29853
- tokenId: string;
29955
+ gatingType: number;
29956
+ minTokenId: string;
29957
+ maxTokenId: string;
29854
29958
  threshold: string;
29855
29959
  maxCommits: string;
29856
29960
  } | null;
@@ -30802,6 +30906,7 @@ export type GetOfferByIdQueryQuery = {
30802
30906
  metadataHash: string;
30803
30907
  voided: boolean;
30804
30908
  voidedAt?: string | null;
30909
+ collectionIndex: string;
30805
30910
  disputeResolverId: string;
30806
30911
  numberOfCommits: string;
30807
30912
  numberOfRedemptions: string;
@@ -30919,7 +31024,9 @@ export type GetOfferByIdQueryQuery = {
30919
31024
  method: number;
30920
31025
  tokenType: number;
30921
31026
  tokenAddress: string;
30922
- tokenId: string;
31027
+ gatingType: number;
31028
+ minTokenId: string;
31029
+ maxTokenId: string;
30923
31030
  threshold: string;
30924
31031
  maxCommits: string;
30925
31032
  } | null;
@@ -31467,6 +31574,7 @@ export type GetOffersQueryQuery = {
31467
31574
  metadataHash: string;
31468
31575
  voided: boolean;
31469
31576
  voidedAt?: string | null;
31577
+ collectionIndex: string;
31470
31578
  disputeResolverId: string;
31471
31579
  numberOfCommits: string;
31472
31580
  numberOfRedemptions: string;
@@ -31584,7 +31692,9 @@ export type GetOffersQueryQuery = {
31584
31692
  method: number;
31585
31693
  tokenType: number;
31586
31694
  tokenAddress: string;
31587
- tokenId: string;
31695
+ gatingType: number;
31696
+ minTokenId: string;
31697
+ maxTokenId: string;
31588
31698
  threshold: string;
31589
31699
  maxCommits: string;
31590
31700
  } | null;
@@ -32116,6 +32226,7 @@ export type OfferFieldsFragment = {
32116
32226
  metadataHash: string;
32117
32227
  voided: boolean;
32118
32228
  voidedAt?: string | null;
32229
+ collectionIndex: string;
32119
32230
  disputeResolverId: string;
32120
32231
  numberOfCommits: string;
32121
32232
  numberOfRedemptions: string;
@@ -32233,7 +32344,9 @@ export type OfferFieldsFragment = {
32233
32344
  method: number;
32234
32345
  tokenType: number;
32235
32346
  tokenAddress: string;
32236
- tokenId: string;
32347
+ gatingType: number;
32348
+ minTokenId: string;
32349
+ maxTokenId: string;
32237
32350
  threshold: string;
32238
32351
  maxCommits: string;
32239
32352
  } | null;
@@ -32764,6 +32877,7 @@ export type BaseOfferFieldsFragment = {
32764
32877
  metadataHash: string;
32765
32878
  voided: boolean;
32766
32879
  voidedAt?: string | null;
32880
+ collectionIndex: string;
32767
32881
  disputeResolverId: string;
32768
32882
  numberOfCommits: string;
32769
32883
  numberOfRedemptions: string;
@@ -32773,7 +32887,9 @@ export type BaseOfferFieldsFragment = {
32773
32887
  method: number;
32774
32888
  tokenType: number;
32775
32889
  tokenAddress: string;
32776
- tokenId: string;
32890
+ gatingType: number;
32891
+ minTokenId: string;
32892
+ maxTokenId: string;
32777
32893
  threshold: string;
32778
32894
  maxCommits: string;
32779
32895
  } | null;
@@ -33420,7 +33536,9 @@ export const BaseConditionFieldsFragmentDoc = gql`
33420
33536
  method
33421
33537
  tokenType
33422
33538
  tokenAddress
33423
- tokenId
33539
+ gatingType
33540
+ minTokenId
33541
+ maxTokenId
33424
33542
  threshold
33425
33543
  maxCommits
33426
33544
  }
@@ -33684,6 +33802,7 @@ export const BaseOfferFieldsFragmentDoc = gql`
33684
33802
  metadataHash
33685
33803
  voided
33686
33804
  voidedAt
33805
+ collectionIndex
33687
33806
  disputeResolverId
33688
33807
  numberOfCommits
33689
33808
  numberOfRedemptions
@@ -34835,7 +34954,7 @@ export type SdkFunctionWrapper = <T>(
34835
34954
  operationType?: string
34836
34955
  ) => Promise<T>;
34837
34956
 
34838
- const defaultWrapper: SdkFunctionWrapper = (
34957
+ export const defaultWrapper: SdkFunctionWrapper = (
34839
34958
  action,
34840
34959
  _operationName,
34841
34960
  _operationType
@@ -23,12 +23,13 @@ import {
23
23
 
24
24
  export async function burnPremintedVouchers(args: {
25
25
  offerId: BigNumberish;
26
+ amount: BigNumberish;
26
27
  contractAddress: string;
27
28
  web3Lib: Web3LibAdapter;
28
29
  }): Promise<TransactionResponse> {
29
30
  return args.web3Lib.sendTransaction({
30
31
  to: args.contractAddress,
31
- data: encodeBurnPremintedVouchers(args.offerId)
32
+ data: encodeBurnPremintedVouchers(args.offerId, args.amount)
32
33
  });
33
34
  }
34
35
 
@@ -4,9 +4,13 @@ import { BigNumberish } from "@ethersproject/bignumber";
4
4
 
5
5
  export const bosonVoucherIface = new Interface(abis.IBosonVoucherABI);
6
6
 
7
- export function encodeBurnPremintedVouchers(offerId: BigNumberish) {
7
+ export function encodeBurnPremintedVouchers(
8
+ offerId: BigNumberish,
9
+ amount: BigNumberish
10
+ ) {
8
11
  return bosonVoucherIface.encodeFunctionData("burnPremintedVouchers", [
9
- offerId
12
+ offerId,
13
+ amount
10
14
  ]);
11
15
  }
12
16