@bosonprotocol/core-sdk 1.29.0-ludo.1 → 1.29.0
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/LICENSE +202 -0
- package/dist/cjs/accounts/handler.d.ts +63 -63
- package/dist/cjs/accounts/handler.js +129 -129
- package/dist/cjs/accounts/index.d.ts +8 -8
- package/dist/cjs/accounts/index.js +37 -37
- package/dist/cjs/accounts/interface.d.ts +38 -38
- package/dist/cjs/accounts/interface.js +130 -130
- package/dist/cjs/accounts/mixin.d.ts +222 -222
- package/dist/cjs/accounts/mixin.js +506 -506
- package/dist/cjs/accounts/subgraph.d.ts +17 -17
- package/dist/cjs/accounts/subgraph.d.ts.map +1 -1
- package/dist/cjs/accounts/subgraph.js +107 -107
- package/dist/cjs/accounts/types.d.ts +28 -28
- package/dist/cjs/accounts/types.d.ts.map +1 -1
- package/dist/cjs/accounts/types.js +8 -8
- package/dist/cjs/core-sdk.d.ts +55 -55
- package/dist/cjs/core-sdk.js +98 -98
- package/dist/cjs/disputes/handler.d.ts +71 -71
- package/dist/cjs/disputes/handler.js +127 -127
- package/dist/cjs/disputes/index.d.ts +3 -3
- package/dist/cjs/disputes/index.js +29 -29
- package/dist/cjs/disputes/interface.d.ts +28 -28
- package/dist/cjs/disputes/interface.js +72 -72
- package/dist/cjs/disputes/mixin.d.ts +117 -117
- package/dist/cjs/disputes/mixin.js +202 -202
- package/dist/cjs/disputes/subgraph.d.ts +5 -5
- package/dist/cjs/disputes/subgraph.d.ts.map +1 -1
- package/dist/cjs/disputes/subgraph.js +29 -29
- package/dist/cjs/erc1155/handler.d.ts +8 -8
- package/dist/cjs/erc1155/handler.js +27 -27
- package/dist/cjs/erc1155/index.d.ts +2 -2
- package/dist/cjs/erc1155/index.js +28 -28
- package/dist/cjs/erc1155/interface.d.ts +2 -2
- package/dist/cjs/erc1155/interface.js +6 -6
- package/dist/cjs/erc1155/mixin.d.ts +5 -5
- package/dist/cjs/erc1155/mixin.js +25 -25
- package/dist/cjs/erc20/handler.d.ts +38 -38
- package/dist/cjs/erc20/handler.js +88 -88
- package/dist/cjs/erc20/index.d.ts +3 -3
- package/dist/cjs/erc20/index.js +29 -29
- package/dist/cjs/erc20/interface.d.ts +2 -2
- package/dist/cjs/erc20/interface.js +6 -6
- package/dist/cjs/erc20/mixin.d.ts +11 -11
- package/dist/cjs/erc20/mixin.js +55 -55
- package/dist/cjs/erc20/subgraph.d.ts +4 -4
- package/dist/cjs/erc20/subgraph.d.ts.map +1 -1
- package/dist/cjs/erc20/subgraph.js +29 -29
- package/dist/cjs/erc721/handler.d.ts +18 -18
- package/dist/cjs/erc721/handler.js +50 -50
- package/dist/cjs/erc721/index.d.ts +2 -2
- package/dist/cjs/erc721/index.js +28 -28
- package/dist/cjs/erc721/interface.d.ts +2 -2
- package/dist/cjs/erc721/interface.js +6 -6
- package/dist/cjs/erc721/mixin.d.ts +7 -7
- package/dist/cjs/erc721/mixin.js +35 -35
- package/dist/cjs/event-logs/index.d.ts +1 -1
- package/dist/cjs/event-logs/index.js +27 -27
- package/dist/cjs/event-logs/mixin.d.ts +10 -10
- package/dist/cjs/event-logs/mixin.js +27 -27
- package/dist/cjs/event-logs/subgraph.d.ts +2 -2
- package/dist/cjs/event-logs/subgraph.js +21 -21
- package/dist/cjs/exchanges/getExchangeState.d.ts +8 -8
- package/dist/cjs/exchanges/getExchangeState.d.ts.map +1 -1
- package/dist/cjs/exchanges/getExchangeState.js +21 -21
- package/dist/cjs/exchanges/getExchangeState.js.map +1 -1
- package/dist/cjs/exchanges/handler.d.ts +30 -30
- package/dist/cjs/exchanges/handler.d.ts.map +1 -1
- package/dist/cjs/exchanges/handler.js +201 -201
- package/dist/cjs/exchanges/index.d.ts +4 -4
- package/dist/cjs/exchanges/index.js +33 -33
- package/dist/cjs/exchanges/interface.d.ts +10 -10
- package/dist/cjs/exchanges/interface.js +49 -49
- package/dist/cjs/exchanges/mixin.d.ts +76 -76
- package/dist/cjs/exchanges/mixin.js +171 -171
- package/dist/cjs/exchanges/subgraph.d.ts +5 -5
- package/dist/cjs/exchanges/subgraph.d.ts.map +1 -1
- package/dist/cjs/exchanges/subgraph.js +29 -29
- package/dist/cjs/forwarder/biconomy-interface.d.ts +71 -71
- package/dist/cjs/forwarder/biconomy-interface.d.ts.map +1 -1
- package/dist/cjs/forwarder/biconomy-interface.js +30 -30
- package/dist/cjs/forwarder/handler.d.ts +18 -18
- package/dist/cjs/forwarder/handler.js +76 -76
- package/dist/cjs/forwarder/index.d.ts +3 -3
- package/dist/cjs/forwarder/index.js +29 -29
- package/dist/cjs/forwarder/mock-interface.d.ts +40 -40
- package/dist/cjs/forwarder/mock-interface.d.ts.map +1 -1
- package/dist/cjs/forwarder/mock-interface.js +15 -15
- package/dist/cjs/funds/handler.d.ts +22 -22
- package/dist/cjs/funds/handler.js +64 -64
- package/dist/cjs/funds/index.d.ts +3 -3
- package/dist/cjs/funds/index.js +29 -29
- package/dist/cjs/funds/interface.d.ts +5 -5
- package/dist/cjs/funds/interface.js +22 -22
- package/dist/cjs/funds/mixin.d.ts +41 -41
- package/dist/cjs/funds/mixin.js +94 -94
- package/dist/cjs/funds/subgraph.d.ts +5 -5
- package/dist/cjs/funds/subgraph.d.ts.map +1 -1
- package/dist/cjs/funds/subgraph.js +29 -29
- package/dist/cjs/groups/handler.d.ts +6 -6
- package/dist/cjs/groups/handler.js +22 -22
- package/dist/cjs/groups/index.d.ts +3 -3
- package/dist/cjs/groups/index.js +29 -29
- package/dist/cjs/groups/interface.d.ts +5 -5
- package/dist/cjs/groups/interface.js +28 -28
- package/dist/cjs/groups/mixin.d.ts +13 -13
- package/dist/cjs/groups/mixin.js +32 -32
- package/dist/cjs/groups/subgraph.d.ts +1 -1
- package/dist/cjs/groups/subgraph.js +4 -4
- package/dist/cjs/index.d.ts +17 -17
- package/dist/cjs/index.js +51 -51
- package/dist/cjs/meta-tx/biconomy.d.ts +59 -59
- package/dist/cjs/meta-tx/biconomy.d.ts.map +1 -1
- package/dist/cjs/meta-tx/biconomy.js +107 -107
- package/dist/cjs/meta-tx/handler.d.ts +230 -230
- package/dist/cjs/meta-tx/handler.d.ts.map +1 -1
- package/dist/cjs/meta-tx/handler.js +665 -665
- package/dist/cjs/meta-tx/index.d.ts +2 -2
- package/dist/cjs/meta-tx/index.js +28 -28
- package/dist/cjs/meta-tx/interface.d.ts +2 -2
- package/dist/cjs/meta-tx/interface.js +6 -6
- package/dist/cjs/meta-tx/mixin.d.ts +219 -219
- package/dist/cjs/meta-tx/mixin.js +474 -474
- package/dist/cjs/metadata/index.d.ts +1 -1
- package/dist/cjs/metadata/index.js +27 -27
- package/dist/cjs/metadata/mixin.d.ts +41 -41
- package/dist/cjs/metadata/mixin.js +88 -88
- package/dist/cjs/metadata/subgraph.d.ts +20 -20
- package/dist/cjs/metadata/subgraph.d.ts.map +1 -1
- package/dist/cjs/metadata/subgraph.js +108 -108
- package/dist/cjs/mixins/base-core-sdk.d.ts +44 -44
- package/dist/cjs/mixins/base-core-sdk.js +52 -52
- package/dist/cjs/native-meta-tx/handler.d.ts +42 -42
- package/dist/cjs/native-meta-tx/handler.js +135 -135
- package/dist/cjs/native-meta-tx/index.d.ts +2 -2
- package/dist/cjs/native-meta-tx/index.js +28 -28
- package/dist/cjs/native-meta-tx/interface.d.ts +3 -3
- package/dist/cjs/native-meta-tx/interface.js +29 -29
- package/dist/cjs/native-meta-tx/mixin.d.ts +34 -34
- package/dist/cjs/native-meta-tx/mixin.js +67 -67
- package/dist/cjs/native-meta-tx/tokenSpecifics.d.ts +6 -6
- package/dist/cjs/native-meta-tx/tokenSpecifics.d.ts.map +1 -1
- package/dist/cjs/native-meta-tx/tokenSpecifics.js +20 -20
- package/dist/cjs/offers/checkExchangePolicy.d.ts +48 -48
- package/dist/cjs/offers/checkExchangePolicy.d.ts.map +1 -1
- package/dist/cjs/offers/checkExchangePolicy.js +24 -24
- package/dist/cjs/offers/getOfferStatus.d.ts +8 -8
- package/dist/cjs/offers/getOfferStatus.js +25 -25
- package/dist/cjs/offers/getOfferStatus.js.map +1 -1
- package/dist/cjs/offers/handler.d.ts +51 -51
- package/dist/cjs/offers/handler.js +151 -151
- package/dist/cjs/offers/index.d.ts +12 -12
- package/dist/cjs/offers/index.js +41 -41
- package/dist/cjs/offers/interface.d.ts +18 -18
- package/dist/cjs/offers/interface.js +91 -91
- package/dist/cjs/offers/mixin.d.ts +170 -170
- package/dist/cjs/offers/mixin.js +408 -408
- package/dist/cjs/offers/renderContractualAgreement.d.ts +53 -53
- package/dist/cjs/offers/renderContractualAgreement.d.ts.map +1 -1
- package/dist/cjs/offers/renderContractualAgreement.js +232 -232
- package/dist/cjs/offers/storage.d.ts +12 -12
- package/dist/cjs/offers/storage.js +29 -29
- package/dist/cjs/offers/subgraph.d.ts +5 -5
- package/dist/cjs/offers/subgraph.d.ts.map +1 -1
- package/dist/cjs/offers/subgraph.js +29 -29
- package/dist/cjs/offers/types.d.ts +1 -1
- package/dist/cjs/offers/types.js +2 -2
- package/dist/cjs/orchestration/handler.d.ts +73 -73
- package/dist/cjs/orchestration/handler.js +146 -146
- package/dist/cjs/orchestration/index.d.ts +2 -2
- package/dist/cjs/orchestration/index.js +28 -28
- package/dist/cjs/orchestration/interface.d.ts +14 -14
- package/dist/cjs/orchestration/interface.js +114 -114
- package/dist/cjs/orchestration/mixin.d.ts +84 -84
- package/dist/cjs/orchestration/mixin.js +163 -163
- package/dist/cjs/seaport/abi.d.ts +40 -40
- package/dist/cjs/seaport/abi.js +152 -152
- package/dist/cjs/seaport/handler.d.ts +45 -45
- package/dist/cjs/seaport/handler.d.ts.map +1 -1
- package/dist/cjs/seaport/handler.js +27 -27
- package/dist/cjs/seaport/handler.js.map +1 -1
- package/dist/cjs/seaport/index.d.ts +1 -1
- package/dist/cjs/seaport/index.js +27 -27
- package/dist/cjs/subgraph.d.ts +33033 -33033
- package/dist/cjs/subgraph.d.ts.map +1 -1
- package/dist/cjs/subgraph.js +854 -854
- package/dist/cjs/subgraph.js.map +1 -1
- package/dist/cjs/utils/errors.d.ts +4 -4
- package/dist/cjs/utils/errors.js +10 -10
- package/dist/cjs/utils/graphql.d.ts +315 -315
- package/dist/cjs/utils/graphql.js +10 -10
- package/dist/cjs/utils/logs.d.ts +20 -20
- package/dist/cjs/utils/logs.js +53 -53
- package/dist/cjs/utils/signature.d.ts +23 -23
- package/dist/cjs/utils/signature.d.ts.map +1 -1
- package/dist/cjs/utils/signature.js +64 -64
- package/dist/cjs/utils/tokenInfoManager.d.ts +23 -23
- package/dist/cjs/utils/tokenInfoManager.js +139 -139
- package/dist/cjs/voucher/handler.d.ts +68 -68
- package/dist/cjs/voucher/handler.js +134 -134
- package/dist/cjs/voucher/index.d.ts +2 -2
- package/dist/cjs/voucher/index.js +28 -28
- package/dist/cjs/voucher/interface.d.ts +21 -21
- package/dist/cjs/voucher/interface.js +140 -140
- package/dist/cjs/voucher/mixin.d.ts +67 -67
- package/dist/cjs/voucher/mixin.js +166 -166
- package/dist/esm/accounts/handler.d.ts +63 -63
- package/dist/esm/accounts/handler.js +91 -91
- package/dist/esm/accounts/index.d.ts +8 -8
- package/dist/esm/accounts/index.js +8 -8
- package/dist/esm/accounts/interface.d.ts +38 -38
- package/dist/esm/accounts/interface.js +111 -111
- package/dist/esm/accounts/mixin.d.ts +222 -222
- package/dist/esm/accounts/mixin.js +416 -416
- package/dist/esm/accounts/subgraph.d.ts +17 -17
- package/dist/esm/accounts/subgraph.d.ts.map +1 -1
- package/dist/esm/accounts/subgraph.js +99 -99
- package/dist/esm/accounts/types.d.ts +28 -28
- package/dist/esm/accounts/types.d.ts.map +1 -1
- package/dist/esm/accounts/types.js +1 -1
- package/dist/esm/core-sdk.d.ts +55 -55
- package/dist/esm/core-sdk.js +97 -97
- package/dist/esm/disputes/handler.d.ts +71 -71
- package/dist/esm/disputes/handler.js +82 -82
- package/dist/esm/disputes/index.d.ts +3 -3
- package/dist/esm/disputes/index.js +3 -3
- package/dist/esm/disputes/interface.d.ts +28 -28
- package/dist/esm/disputes/interface.js +59 -59
- package/dist/esm/disputes/mixin.d.ts +117 -117
- package/dist/esm/disputes/mixin.js +172 -172
- package/dist/esm/disputes/subgraph.d.ts +5 -5
- package/dist/esm/disputes/subgraph.d.ts.map +1 -1
- package/dist/esm/disputes/subgraph.js +14 -14
- package/dist/esm/erc1155/handler.d.ts +8 -8
- package/dist/esm/erc1155/handler.js +12 -12
- package/dist/esm/erc1155/index.d.ts +2 -2
- package/dist/esm/erc1155/index.js +2 -2
- package/dist/esm/erc1155/interface.d.ts +2 -2
- package/dist/esm/erc1155/interface.js +3 -3
- package/dist/esm/erc1155/mixin.d.ts +5 -5
- package/dist/esm/erc1155/mixin.js +10 -10
- package/dist/esm/erc20/handler.d.ts +38 -38
- package/dist/esm/erc20/handler.js +55 -55
- package/dist/esm/erc20/index.d.ts +3 -3
- package/dist/esm/erc20/index.js +3 -3
- package/dist/esm/erc20/interface.d.ts +2 -2
- package/dist/esm/erc20/interface.js +3 -3
- package/dist/esm/erc20/mixin.d.ts +11 -11
- package/dist/esm/erc20/mixin.js +28 -28
- package/dist/esm/erc20/subgraph.d.ts +4 -4
- package/dist/esm/erc20/subgraph.d.ts.map +1 -1
- package/dist/esm/erc20/subgraph.js +14 -14
- package/dist/esm/erc721/handler.d.ts +18 -18
- package/dist/esm/erc721/handler.js +29 -29
- package/dist/esm/erc721/index.d.ts +2 -2
- package/dist/esm/erc721/index.js +2 -2
- package/dist/esm/erc721/interface.d.ts +2 -2
- package/dist/esm/erc721/interface.js +3 -3
- package/dist/esm/erc721/mixin.d.ts +7 -7
- package/dist/esm/erc721/mixin.js +16 -16
- package/dist/esm/event-logs/index.d.ts +1 -1
- package/dist/esm/event-logs/index.js +1 -1
- package/dist/esm/event-logs/mixin.d.ts +10 -10
- package/dist/esm/event-logs/mixin.js +12 -12
- package/dist/esm/event-logs/subgraph.d.ts +2 -2
- package/dist/esm/event-logs/subgraph.js +6 -6
- package/dist/esm/exchanges/getExchangeState.d.ts +8 -8
- package/dist/esm/exchanges/getExchangeState.d.ts.map +1 -1
- package/dist/esm/exchanges/getExchangeState.js +17 -17
- package/dist/esm/exchanges/handler.d.ts +30 -30
- package/dist/esm/exchanges/handler.d.ts.map +1 -1
- package/dist/esm/exchanges/handler.js +168 -168
- package/dist/esm/exchanges/index.d.ts +4 -4
- package/dist/esm/exchanges/index.js +4 -4
- package/dist/esm/exchanges/interface.d.ts +10 -10
- package/dist/esm/exchanges/interface.js +39 -39
- package/dist/esm/exchanges/mixin.d.ts +76 -76
- package/dist/esm/exchanges/mixin.js +140 -140
- package/dist/esm/exchanges/subgraph.d.ts +5 -5
- package/dist/esm/exchanges/subgraph.d.ts.map +1 -1
- package/dist/esm/exchanges/subgraph.js +14 -14
- package/dist/esm/forwarder/biconomy-interface.d.ts +71 -71
- package/dist/esm/forwarder/biconomy-interface.d.ts.map +1 -1
- package/dist/esm/forwarder/biconomy-interface.js +23 -23
- package/dist/esm/forwarder/handler.d.ts +18 -18
- package/dist/esm/forwarder/handler.js +35 -35
- package/dist/esm/forwarder/index.d.ts +3 -3
- package/dist/esm/forwarder/index.js +3 -3
- package/dist/esm/forwarder/mock-interface.d.ts +40 -40
- package/dist/esm/forwarder/mock-interface.d.ts.map +1 -1
- package/dist/esm/forwarder/mock-interface.js +10 -10
- package/dist/esm/funds/handler.d.ts +22 -22
- package/dist/esm/funds/handler.js +43 -43
- package/dist/esm/funds/index.d.ts +3 -3
- package/dist/esm/funds/index.js +3 -3
- package/dist/esm/funds/interface.d.ts +5 -5
- package/dist/esm/funds/interface.js +17 -17
- package/dist/esm/funds/mixin.d.ts +41 -41
- package/dist/esm/funds/mixin.js +71 -71
- package/dist/esm/funds/subgraph.d.ts +5 -5
- package/dist/esm/funds/subgraph.d.ts.map +1 -1
- package/dist/esm/funds/subgraph.js +14 -14
- package/dist/esm/groups/handler.d.ts +6 -6
- package/dist/esm/groups/handler.js +7 -7
- package/dist/esm/groups/index.d.ts +3 -3
- package/dist/esm/groups/index.js +3 -3
- package/dist/esm/groups/interface.d.ts +5 -5
- package/dist/esm/groups/interface.js +23 -23
- package/dist/esm/groups/mixin.d.ts +13 -13
- package/dist/esm/groups/mixin.js +17 -17
- package/dist/esm/groups/subgraph.d.ts +1 -1
- package/dist/esm/groups/subgraph.js +1 -1
- package/dist/esm/index.d.ts +17 -17
- package/dist/esm/index.js +17 -17
- package/dist/esm/meta-tx/biconomy.d.ts +59 -59
- package/dist/esm/meta-tx/biconomy.d.ts.map +1 -1
- package/dist/esm/meta-tx/biconomy.js +89 -89
- package/dist/esm/meta-tx/handler.d.ts +230 -230
- package/dist/esm/meta-tx/handler.d.ts.map +1 -1
- package/dist/esm/meta-tx/handler.js +733 -733
- package/dist/esm/meta-tx/index.d.ts +2 -2
- package/dist/esm/meta-tx/index.js +2 -2
- package/dist/esm/meta-tx/interface.d.ts +2 -2
- package/dist/esm/meta-tx/interface.js +3 -3
- package/dist/esm/meta-tx/mixin.d.ts +219 -219
- package/dist/esm/meta-tx/mixin.js +568 -568
- package/dist/esm/metadata/index.d.ts +1 -1
- package/dist/esm/metadata/index.js +1 -1
- package/dist/esm/metadata/mixin.d.ts +41 -41
- package/dist/esm/metadata/mixin.js +59 -59
- package/dist/esm/metadata/subgraph.d.ts +20 -20
- package/dist/esm/metadata/subgraph.d.ts.map +1 -1
- package/dist/esm/metadata/subgraph.js +86 -86
- package/dist/esm/mixins/base-core-sdk.d.ts +44 -44
- package/dist/esm/mixins/base-core-sdk.js +57 -57
- package/dist/esm/native-meta-tx/handler.d.ts +42 -42
- package/dist/esm/native-meta-tx/handler.js +121 -121
- package/dist/esm/native-meta-tx/index.d.ts +2 -2
- package/dist/esm/native-meta-tx/index.js +2 -2
- package/dist/esm/native-meta-tx/interface.d.ts +3 -3
- package/dist/esm/native-meta-tx/interface.js +26 -26
- package/dist/esm/native-meta-tx/mixin.d.ts +34 -34
- package/dist/esm/native-meta-tx/mixin.js +50 -50
- package/dist/esm/native-meta-tx/tokenSpecifics.d.ts +6 -6
- package/dist/esm/native-meta-tx/tokenSpecifics.d.ts.map +1 -1
- package/dist/esm/native-meta-tx/tokenSpecifics.js +15 -15
- package/dist/esm/offers/checkExchangePolicy.d.ts +48 -48
- package/dist/esm/offers/checkExchangePolicy.d.ts.map +1 -1
- package/dist/esm/offers/checkExchangePolicy.js +19 -19
- package/dist/esm/offers/getOfferStatus.d.ts +8 -8
- package/dist/esm/offers/getOfferStatus.js +21 -21
- package/dist/esm/offers/handler.d.ts +51 -51
- package/dist/esm/offers/handler.js +118 -118
- package/dist/esm/offers/index.d.ts +12 -12
- package/dist/esm/offers/index.js +12 -12
- package/dist/esm/offers/interface.d.ts +18 -18
- package/dist/esm/offers/interface.js +75 -75
- package/dist/esm/offers/mixin.d.ts +170 -170
- package/dist/esm/offers/mixin.js +338 -338
- package/dist/esm/offers/renderContractualAgreement.d.ts +53 -53
- package/dist/esm/offers/renderContractualAgreement.d.ts.map +1 -1
- package/dist/esm/offers/renderContractualAgreement.js +208 -208
- package/dist/esm/offers/storage.d.ts +12 -12
- package/dist/esm/offers/storage.js +14 -14
- package/dist/esm/offers/subgraph.d.ts +5 -5
- package/dist/esm/offers/subgraph.d.ts.map +1 -1
- package/dist/esm/offers/subgraph.js +16 -16
- package/dist/esm/offers/types.d.ts +1 -1
- package/dist/esm/offers/types.js +1 -1
- package/dist/esm/orchestration/handler.d.ts +73 -73
- package/dist/esm/orchestration/handler.js +110 -110
- package/dist/esm/orchestration/index.d.ts +2 -2
- package/dist/esm/orchestration/index.js +2 -2
- package/dist/esm/orchestration/interface.d.ts +14 -14
- package/dist/esm/orchestration/interface.js +103 -103
- package/dist/esm/orchestration/mixin.d.ts +84 -84
- package/dist/esm/orchestration/mixin.js +136 -136
- package/dist/esm/seaport/abi.d.ts +40 -40
- package/dist/esm/seaport/abi.js +149 -149
- package/dist/esm/seaport/handler.d.ts +45 -45
- package/dist/esm/seaport/handler.d.ts.map +1 -1
- package/dist/esm/seaport/handler.js +23 -23
- package/dist/esm/seaport/index.d.ts +1 -1
- package/dist/esm/seaport/index.js +1 -1
- package/dist/esm/subgraph.d.ts +33033 -33033
- package/dist/esm/subgraph.d.ts.map +1 -1
- package/dist/esm/subgraph.js +854 -854
- package/dist/esm/utils/errors.d.ts +4 -4
- package/dist/esm/utils/errors.js +7 -7
- package/dist/esm/utils/graphql.d.ts +315 -315
- package/dist/esm/utils/graphql.js +6 -6
- package/dist/esm/utils/logs.d.ts +20 -20
- package/dist/esm/utils/logs.js +47 -47
- package/dist/esm/utils/signature.d.ts +23 -23
- package/dist/esm/utils/signature.d.ts.map +1 -1
- package/dist/esm/utils/signature.js +57 -57
- package/dist/esm/utils/tokenInfoManager.d.ts +23 -23
- package/dist/esm/utils/tokenInfoManager.js +125 -125
- package/dist/esm/voucher/handler.d.ts +68 -68
- package/dist/esm/voucher/handler.js +86 -86
- package/dist/esm/voucher/index.d.ts +2 -2
- package/dist/esm/voucher/index.js +2 -2
- package/dist/esm/voucher/interface.d.ts +21 -21
- package/dist/esm/voucher/interface.js +119 -119
- package/dist/esm/voucher/mixin.d.ts +67 -67
- package/dist/esm/voucher/mixin.js +135 -135
- package/package.json +10 -6
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { BaseCoreSDK } from "./../mixins/base-core-sdk";
|
|
2
|
-
import * as subgraph from "../subgraph";
|
|
3
|
-
import { TransactionResponse } from "@bosonprotocol/common";
|
|
4
|
-
import { BigNumberish } from "@ethersproject/bignumber";
|
|
5
|
-
export declare class FundsMixin extends BaseCoreSDK {
|
|
6
|
-
/**
|
|
7
|
-
* Deposit funds by calling the `FundsHandlerFacet` contract.
|
|
8
|
-
* @param sellerId - ID of seller account to deposit funds for.
|
|
9
|
-
* @param fundsAmount - Amount of funds.
|
|
10
|
-
* @param fundsTokenAddress - Address of funds token.
|
|
11
|
-
* @returns Transaction response.
|
|
12
|
-
*/
|
|
13
|
-
depositFunds(sellerId: BigNumberish, fundsAmount: BigNumberish, fundsTokenAddress?: string): Promise<TransactionResponse>;
|
|
14
|
-
/**
|
|
15
|
-
* Returns funds entity from subgraph.
|
|
16
|
-
* @param fundsId - ID of funds entity.
|
|
17
|
-
* @param queryVars - Optional query variables to skip, order or filter.
|
|
18
|
-
* @returns Funds entity from subgraph.
|
|
19
|
-
*/
|
|
20
|
-
getFundsById(fundsId: BigNumberish, queryVars?: subgraph.GetFundsByIdQueryVariables): Promise<subgraph.FundsEntityFieldsFragment>;
|
|
21
|
-
/**
|
|
22
|
-
* Returns funds entities from subgraph.
|
|
23
|
-
* @param queryVars - Optional query variables to skip, order or filter.
|
|
24
|
-
* @returns Funds entities from subgraph.
|
|
25
|
-
*/
|
|
26
|
-
getFunds(queryVars?: subgraph.GetFundsQueryVariables): Promise<subgraph.FundsEntityFieldsFragment[]>;
|
|
27
|
-
/**
|
|
28
|
-
* Withdraw selected funds by calling the `FundsHandlerFacet` contract.
|
|
29
|
-
* @param sellerId - ID of seller account to withdraw funds for.
|
|
30
|
-
* @param tokensToWithdraw - Addresses of funds tokens to withdraw.
|
|
31
|
-
* @param amountsToWithdraw - Amounts of funds token to withdraw.
|
|
32
|
-
* @returns Transaction response.
|
|
33
|
-
*/
|
|
34
|
-
withdrawFunds(sellerId: BigNumberish, tokensToWithdraw: Array<string>, amountsToWithdraw: Array<BigNumberish>): Promise<TransactionResponse>;
|
|
35
|
-
/**
|
|
36
|
-
* Withdraw all available funds by calling the `FundsHandlerFacet` contract.
|
|
37
|
-
* @param sellerId - ID of seller account to withdraw funds for.
|
|
38
|
-
* @returns Transaction response.
|
|
39
|
-
*/
|
|
40
|
-
withdrawAllAvailableFunds(sellerId: BigNumberish): Promise<TransactionResponse>;
|
|
41
|
-
}
|
|
1
|
+
import { BaseCoreSDK } from "./../mixins/base-core-sdk";
|
|
2
|
+
import * as subgraph from "../subgraph";
|
|
3
|
+
import { TransactionResponse } from "@bosonprotocol/common";
|
|
4
|
+
import { BigNumberish } from "@ethersproject/bignumber";
|
|
5
|
+
export declare class FundsMixin extends BaseCoreSDK {
|
|
6
|
+
/**
|
|
7
|
+
* Deposit funds by calling the `FundsHandlerFacet` contract.
|
|
8
|
+
* @param sellerId - ID of seller account to deposit funds for.
|
|
9
|
+
* @param fundsAmount - Amount of funds.
|
|
10
|
+
* @param fundsTokenAddress - Address of funds token.
|
|
11
|
+
* @returns Transaction response.
|
|
12
|
+
*/
|
|
13
|
+
depositFunds(sellerId: BigNumberish, fundsAmount: BigNumberish, fundsTokenAddress?: string): Promise<TransactionResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Returns funds entity from subgraph.
|
|
16
|
+
* @param fundsId - ID of funds entity.
|
|
17
|
+
* @param queryVars - Optional query variables to skip, order or filter.
|
|
18
|
+
* @returns Funds entity from subgraph.
|
|
19
|
+
*/
|
|
20
|
+
getFundsById(fundsId: BigNumberish, queryVars?: subgraph.GetFundsByIdQueryVariables): Promise<subgraph.FundsEntityFieldsFragment>;
|
|
21
|
+
/**
|
|
22
|
+
* Returns funds entities from subgraph.
|
|
23
|
+
* @param queryVars - Optional query variables to skip, order or filter.
|
|
24
|
+
* @returns Funds entities from subgraph.
|
|
25
|
+
*/
|
|
26
|
+
getFunds(queryVars?: subgraph.GetFundsQueryVariables): Promise<subgraph.FundsEntityFieldsFragment[]>;
|
|
27
|
+
/**
|
|
28
|
+
* Withdraw selected funds by calling the `FundsHandlerFacet` contract.
|
|
29
|
+
* @param sellerId - ID of seller account to withdraw funds for.
|
|
30
|
+
* @param tokensToWithdraw - Addresses of funds tokens to withdraw.
|
|
31
|
+
* @param amountsToWithdraw - Amounts of funds token to withdraw.
|
|
32
|
+
* @returns Transaction response.
|
|
33
|
+
*/
|
|
34
|
+
withdrawFunds(sellerId: BigNumberish, tokensToWithdraw: Array<string>, amountsToWithdraw: Array<BigNumberish>): Promise<TransactionResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Withdraw all available funds by calling the `FundsHandlerFacet` contract.
|
|
37
|
+
* @param sellerId - ID of seller account to withdraw funds for.
|
|
38
|
+
* @returns Transaction response.
|
|
39
|
+
*/
|
|
40
|
+
withdrawAllAvailableFunds(sellerId: BigNumberish): Promise<TransactionResponse>;
|
|
41
|
+
}
|
|
42
42
|
//# sourceMappingURL=mixin.d.ts.map
|
package/dist/esm/funds/mixin.js
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { BaseCoreSDK } from "./../mixins/base-core-sdk";
|
|
2
|
-
import { AddressZero } from "@ethersproject/constants";
|
|
3
|
-
import { withdrawFunds, withdrawAllAvailableFunds, depositFunds } from "./handler";
|
|
4
|
-
import { getFundsById, getFunds } from "./subgraph";
|
|
5
|
-
export class FundsMixin extends BaseCoreSDK {
|
|
6
|
-
/* -------------------------------------------------------------------------- */
|
|
7
|
-
/* Funds related methods */
|
|
8
|
-
/* -------------------------------------------------------------------------- */
|
|
9
|
-
/**
|
|
10
|
-
* Deposit funds by calling the `FundsHandlerFacet` contract.
|
|
11
|
-
* @param sellerId - ID of seller account to deposit funds for.
|
|
12
|
-
* @param fundsAmount - Amount of funds.
|
|
13
|
-
* @param fundsTokenAddress - Address of funds token.
|
|
14
|
-
* @returns Transaction response.
|
|
15
|
-
*/
|
|
16
|
-
async depositFunds(sellerId, fundsAmount, fundsTokenAddress = AddressZero) {
|
|
17
|
-
return depositFunds({
|
|
18
|
-
sellerId,
|
|
19
|
-
fundsAmount,
|
|
20
|
-
fundsTokenAddress,
|
|
21
|
-
contractAddress: this._protocolDiamond,
|
|
22
|
-
web3Lib: this._web3Lib
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Returns funds entity from subgraph.
|
|
27
|
-
* @param fundsId - ID of funds entity.
|
|
28
|
-
* @param queryVars - Optional query variables to skip, order or filter.
|
|
29
|
-
* @returns Funds entity from subgraph.
|
|
30
|
-
*/
|
|
31
|
-
async getFundsById(fundsId, queryVars) {
|
|
32
|
-
return getFundsById(this._subgraphUrl, fundsId, queryVars);
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Returns funds entities from subgraph.
|
|
36
|
-
* @param queryVars - Optional query variables to skip, order or filter.
|
|
37
|
-
* @returns Funds entities from subgraph.
|
|
38
|
-
*/
|
|
39
|
-
async getFunds(queryVars) {
|
|
40
|
-
return getFunds(this._subgraphUrl, queryVars);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Withdraw selected funds by calling the `FundsHandlerFacet` contract.
|
|
44
|
-
* @param sellerId - ID of seller account to withdraw funds for.
|
|
45
|
-
* @param tokensToWithdraw - Addresses of funds tokens to withdraw.
|
|
46
|
-
* @param amountsToWithdraw - Amounts of funds token to withdraw.
|
|
47
|
-
* @returns Transaction response.
|
|
48
|
-
*/
|
|
49
|
-
async withdrawFunds(sellerId, tokensToWithdraw, amountsToWithdraw) {
|
|
50
|
-
return withdrawFunds({
|
|
51
|
-
sellerId,
|
|
52
|
-
tokensToWithdraw,
|
|
53
|
-
amountsToWithdraw,
|
|
54
|
-
contractAddress: this._protocolDiamond,
|
|
55
|
-
web3Lib: this._web3Lib
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Withdraw all available funds by calling the `FundsHandlerFacet` contract.
|
|
60
|
-
* @param sellerId - ID of seller account to withdraw funds for.
|
|
61
|
-
* @returns Transaction response.
|
|
62
|
-
*/
|
|
63
|
-
async withdrawAllAvailableFunds(sellerId) {
|
|
64
|
-
return withdrawAllAvailableFunds({
|
|
65
|
-
sellerId,
|
|
66
|
-
subgraphUrl: this._subgraphUrl,
|
|
67
|
-
contractAddress: this._protocolDiamond,
|
|
68
|
-
web3Lib: this._web3Lib
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
1
|
+
import { BaseCoreSDK } from "./../mixins/base-core-sdk";
|
|
2
|
+
import { AddressZero } from "@ethersproject/constants";
|
|
3
|
+
import { withdrawFunds, withdrawAllAvailableFunds, depositFunds } from "./handler";
|
|
4
|
+
import { getFundsById, getFunds } from "./subgraph";
|
|
5
|
+
export class FundsMixin extends BaseCoreSDK {
|
|
6
|
+
/* -------------------------------------------------------------------------- */
|
|
7
|
+
/* Funds related methods */
|
|
8
|
+
/* -------------------------------------------------------------------------- */
|
|
9
|
+
/**
|
|
10
|
+
* Deposit funds by calling the `FundsHandlerFacet` contract.
|
|
11
|
+
* @param sellerId - ID of seller account to deposit funds for.
|
|
12
|
+
* @param fundsAmount - Amount of funds.
|
|
13
|
+
* @param fundsTokenAddress - Address of funds token.
|
|
14
|
+
* @returns Transaction response.
|
|
15
|
+
*/
|
|
16
|
+
async depositFunds(sellerId, fundsAmount, fundsTokenAddress = AddressZero) {
|
|
17
|
+
return depositFunds({
|
|
18
|
+
sellerId,
|
|
19
|
+
fundsAmount,
|
|
20
|
+
fundsTokenAddress,
|
|
21
|
+
contractAddress: this._protocolDiamond,
|
|
22
|
+
web3Lib: this._web3Lib
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Returns funds entity from subgraph.
|
|
27
|
+
* @param fundsId - ID of funds entity.
|
|
28
|
+
* @param queryVars - Optional query variables to skip, order or filter.
|
|
29
|
+
* @returns Funds entity from subgraph.
|
|
30
|
+
*/
|
|
31
|
+
async getFundsById(fundsId, queryVars) {
|
|
32
|
+
return getFundsById(this._subgraphUrl, fundsId, queryVars);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Returns funds entities from subgraph.
|
|
36
|
+
* @param queryVars - Optional query variables to skip, order or filter.
|
|
37
|
+
* @returns Funds entities from subgraph.
|
|
38
|
+
*/
|
|
39
|
+
async getFunds(queryVars) {
|
|
40
|
+
return getFunds(this._subgraphUrl, queryVars);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Withdraw selected funds by calling the `FundsHandlerFacet` contract.
|
|
44
|
+
* @param sellerId - ID of seller account to withdraw funds for.
|
|
45
|
+
* @param tokensToWithdraw - Addresses of funds tokens to withdraw.
|
|
46
|
+
* @param amountsToWithdraw - Amounts of funds token to withdraw.
|
|
47
|
+
* @returns Transaction response.
|
|
48
|
+
*/
|
|
49
|
+
async withdrawFunds(sellerId, tokensToWithdraw, amountsToWithdraw) {
|
|
50
|
+
return withdrawFunds({
|
|
51
|
+
sellerId,
|
|
52
|
+
tokensToWithdraw,
|
|
53
|
+
amountsToWithdraw,
|
|
54
|
+
contractAddress: this._protocolDiamond,
|
|
55
|
+
web3Lib: this._web3Lib
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Withdraw all available funds by calling the `FundsHandlerFacet` contract.
|
|
60
|
+
* @param sellerId - ID of seller account to withdraw funds for.
|
|
61
|
+
* @returns Transaction response.
|
|
62
|
+
*/
|
|
63
|
+
async withdrawAllAvailableFunds(sellerId) {
|
|
64
|
+
return withdrawAllAvailableFunds({
|
|
65
|
+
sellerId,
|
|
66
|
+
subgraphUrl: this._subgraphUrl,
|
|
67
|
+
contractAddress: this._protocolDiamond,
|
|
68
|
+
web3Lib: this._web3Lib
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
72
|
//# sourceMappingURL=mixin.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FundsEntityFieldsFragment, GetFundsByIdQueryVariables, GetFundsQueryVariables } from "../subgraph";
|
|
2
|
-
import { BigNumberish } from "@ethersproject/bignumber";
|
|
3
|
-
export
|
|
4
|
-
export declare function getFunds(subgraphUrl: string, queryVars?: GetFundsQueryVariables): Promise<FundsEntityFieldsFragment[]>;
|
|
5
|
-
export declare function getFundsById(subgraphUrl: string, fundsId: BigNumberish, queryVars?: SingleFundsQueryVariables): Promise<FundsEntityFieldsFragment>;
|
|
1
|
+
import { FundsEntityFieldsFragment, GetFundsByIdQueryVariables, GetFundsQueryVariables } from "../subgraph";
|
|
2
|
+
import { BigNumberish } from "@ethersproject/bignumber";
|
|
3
|
+
export type SingleFundsQueryVariables = Omit<GetFundsByIdQueryVariables, "fundsId">;
|
|
4
|
+
export declare function getFunds(subgraphUrl: string, queryVars?: GetFundsQueryVariables): Promise<FundsEntityFieldsFragment[]>;
|
|
5
|
+
export declare function getFundsById(subgraphUrl: string, fundsId: BigNumberish, queryVars?: SingleFundsQueryVariables): Promise<FundsEntityFieldsFragment>;
|
|
6
6
|
//# sourceMappingURL=subgraph.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subgraph.d.ts","sourceRoot":"","sources":["../../../src/funds/subgraph.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,sBAAsB,EACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,
|
|
1
|
+
{"version":3,"file":"subgraph.d.ts","sourceRoot":"","sources":["../../../src/funds/subgraph.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,sBAAsB,EACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAC1C,0BAA0B,EAC1B,SAAS,CACV,CAAC;AAEF,wBAAsB,QAAQ,CAC5B,WAAW,EAAE,MAAM,EACnB,SAAS,GAAE,sBAA2B,GACrC,OAAO,CAAC,yBAAyB,EAAE,CAAC,CAItC;AAED,wBAAsB,YAAY,CAChC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,YAAY,EACrB,SAAS,GAAE,yBAA8B,GACxC,OAAO,CAAC,yBAAyB,CAAC,CAQpC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { getSubgraphSdk } from "../utils/graphql";
|
|
2
|
-
export async function getFunds(subgraphUrl, queryVars = {}) {
|
|
3
|
-
const sdk = getSubgraphSdk(subgraphUrl);
|
|
4
|
-
const { fundsEntities = [] } = await sdk.getFunds(queryVars);
|
|
5
|
-
return fundsEntities;
|
|
6
|
-
}
|
|
7
|
-
export async function getFundsById(subgraphUrl, fundsId, queryVars = {}) {
|
|
8
|
-
const sdk = getSubgraphSdk(subgraphUrl);
|
|
9
|
-
const { fundsEntity } = await sdk.getFundsById({
|
|
10
|
-
fundsId: fundsId.toString(),
|
|
11
|
-
...queryVars
|
|
12
|
-
});
|
|
13
|
-
return fundsEntity;
|
|
14
|
-
}
|
|
1
|
+
import { getSubgraphSdk } from "../utils/graphql";
|
|
2
|
+
export async function getFunds(subgraphUrl, queryVars = {}) {
|
|
3
|
+
const sdk = getSubgraphSdk(subgraphUrl);
|
|
4
|
+
const { fundsEntities = [] } = await sdk.getFunds(queryVars);
|
|
5
|
+
return fundsEntities;
|
|
6
|
+
}
|
|
7
|
+
export async function getFundsById(subgraphUrl, fundsId, queryVars = {}) {
|
|
8
|
+
const sdk = getSubgraphSdk(subgraphUrl);
|
|
9
|
+
const { fundsEntity } = await sdk.getFundsById({
|
|
10
|
+
fundsId: fundsId.toString(),
|
|
11
|
+
...queryVars
|
|
12
|
+
});
|
|
13
|
+
return fundsEntity;
|
|
14
|
+
}
|
|
15
15
|
//# sourceMappingURL=subgraph.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TransactionResponse, CreateGroupArgs, Web3LibAdapter } from "@bosonprotocol/common";
|
|
2
|
-
export declare function createGroup(args: {
|
|
3
|
-
groupToCreate: CreateGroupArgs;
|
|
4
|
-
contractAddress: string;
|
|
5
|
-
web3Lib: Web3LibAdapter;
|
|
6
|
-
}): Promise<TransactionResponse>;
|
|
1
|
+
import { TransactionResponse, CreateGroupArgs, Web3LibAdapter } from "@bosonprotocol/common";
|
|
2
|
+
export declare function createGroup(args: {
|
|
3
|
+
groupToCreate: CreateGroupArgs;
|
|
4
|
+
contractAddress: string;
|
|
5
|
+
web3Lib: Web3LibAdapter;
|
|
6
|
+
}): Promise<TransactionResponse>;
|
|
7
7
|
//# sourceMappingURL=handler.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { encodeCreateGroup } from "./interface";
|
|
2
|
-
export async function createGroup(args) {
|
|
3
|
-
return args.web3Lib.sendTransaction({
|
|
4
|
-
to: args.contractAddress,
|
|
5
|
-
data: encodeCreateGroup(args.groupToCreate)
|
|
6
|
-
});
|
|
7
|
-
}
|
|
1
|
+
import { encodeCreateGroup } from "./interface";
|
|
2
|
+
export async function createGroup(args) {
|
|
3
|
+
return args.web3Lib.sendTransaction({
|
|
4
|
+
to: args.contractAddress,
|
|
5
|
+
data: encodeCreateGroup(args.groupToCreate)
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=handler.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * as iface from "./interface";
|
|
2
|
-
export * as handler from "./handler";
|
|
3
|
-
export * as subgraph from "./subgraph";
|
|
1
|
+
export * as iface from "./interface";
|
|
2
|
+
export * as handler from "./handler";
|
|
3
|
+
export * as subgraph from "./subgraph";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/groups/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * as iface from "./interface";
|
|
2
|
-
export * as handler from "./handler";
|
|
3
|
-
export * as subgraph from "./subgraph";
|
|
1
|
+
export * as iface from "./interface";
|
|
2
|
+
export * as handler from "./handler";
|
|
3
|
+
export * as subgraph from "./subgraph";
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CreateGroupArgs, GroupStruct, ConditionStruct } from "@bosonprotocol/common";
|
|
2
|
-
import { Interface } from "@ethersproject/abi";
|
|
3
|
-
export declare const bosonGroupHandlerIface: Interface;
|
|
4
|
-
export declare function encodeCreateGroup(args: CreateGroupArgs): string;
|
|
5
|
-
export declare function createGroupArgsToStructs(args: CreateGroupArgs): [GroupStruct, ConditionStruct];
|
|
1
|
+
import { CreateGroupArgs, GroupStruct, ConditionStruct } from "@bosonprotocol/common";
|
|
2
|
+
import { Interface } from "@ethersproject/abi";
|
|
3
|
+
export declare const bosonGroupHandlerIface: Interface;
|
|
4
|
+
export declare function encodeCreateGroup(args: CreateGroupArgs): string;
|
|
5
|
+
export declare function createGroupArgsToStructs(args: CreateGroupArgs): [GroupStruct, ConditionStruct];
|
|
6
6
|
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { abis } from "@bosonprotocol/common";
|
|
2
|
-
import { Interface } from "@ethersproject/abi";
|
|
3
|
-
export const bosonGroupHandlerIface = new Interface(abis.IBosonGroupHandlerABI);
|
|
4
|
-
export function encodeCreateGroup(args) {
|
|
5
|
-
return bosonGroupHandlerIface.encodeFunctionData("createGroup", createGroupArgsToStructs(args));
|
|
6
|
-
}
|
|
7
|
-
export function createGroupArgsToStructs(args) {
|
|
8
|
-
return [
|
|
9
|
-
{
|
|
10
|
-
id: "0",
|
|
11
|
-
sellerId: "0",
|
|
12
|
-
offerIds: args.offerIds
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
method: args.method,
|
|
16
|
-
tokenType: args.tokenType,
|
|
17
|
-
tokenAddress: args.tokenAddress,
|
|
18
|
-
tokenId: args.tokenId,
|
|
19
|
-
threshold: args.threshold,
|
|
20
|
-
maxCommits: args.maxCommits
|
|
21
|
-
}
|
|
22
|
-
];
|
|
23
|
-
}
|
|
1
|
+
import { abis } from "@bosonprotocol/common";
|
|
2
|
+
import { Interface } from "@ethersproject/abi";
|
|
3
|
+
export const bosonGroupHandlerIface = new Interface(abis.IBosonGroupHandlerABI);
|
|
4
|
+
export function encodeCreateGroup(args) {
|
|
5
|
+
return bosonGroupHandlerIface.encodeFunctionData("createGroup", createGroupArgsToStructs(args));
|
|
6
|
+
}
|
|
7
|
+
export function createGroupArgsToStructs(args) {
|
|
8
|
+
return [
|
|
9
|
+
{
|
|
10
|
+
id: "0",
|
|
11
|
+
sellerId: "0",
|
|
12
|
+
offerIds: args.offerIds
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
method: args.method,
|
|
16
|
+
tokenType: args.tokenType,
|
|
17
|
+
tokenAddress: args.tokenAddress,
|
|
18
|
+
tokenId: args.tokenId,
|
|
19
|
+
threshold: args.threshold,
|
|
20
|
+
maxCommits: args.maxCommits
|
|
21
|
+
}
|
|
22
|
+
];
|
|
23
|
+
}
|
|
24
24
|
//# sourceMappingURL=interface.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { CreateGroupArgs, TransactionResponse } from "@bosonprotocol/common";
|
|
2
|
-
import { BaseCoreSDK } from "./../mixins/base-core-sdk";
|
|
3
|
-
export declare class GroupsMixin extends BaseCoreSDK {
|
|
4
|
-
/**
|
|
5
|
-
* Creates a group of contract addresses
|
|
6
|
-
* @param groupToCreate - group with the contract condition
|
|
7
|
-
* @param overrides - Optional overrides.
|
|
8
|
-
* @returns Transaction response.
|
|
9
|
-
*/
|
|
10
|
-
createGroup(groupToCreate: CreateGroupArgs, overrides?: Partial<{
|
|
11
|
-
contractAddress: string;
|
|
12
|
-
}>): Promise<TransactionResponse>;
|
|
13
|
-
}
|
|
1
|
+
import { CreateGroupArgs, TransactionResponse } from "@bosonprotocol/common";
|
|
2
|
+
import { BaseCoreSDK } from "./../mixins/base-core-sdk";
|
|
3
|
+
export declare class GroupsMixin extends BaseCoreSDK {
|
|
4
|
+
/**
|
|
5
|
+
* Creates a group of contract addresses
|
|
6
|
+
* @param groupToCreate - group with the contract condition
|
|
7
|
+
* @param overrides - Optional overrides.
|
|
8
|
+
* @returns Transaction response.
|
|
9
|
+
*/
|
|
10
|
+
createGroup(groupToCreate: CreateGroupArgs, overrides?: Partial<{
|
|
11
|
+
contractAddress: string;
|
|
12
|
+
}>): Promise<TransactionResponse>;
|
|
13
|
+
}
|
|
14
14
|
//# sourceMappingURL=mixin.d.ts.map
|
package/dist/esm/groups/mixin.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { handler } from ".";
|
|
2
|
-
import { BaseCoreSDK } from "./../mixins/base-core-sdk";
|
|
3
|
-
export class GroupsMixin extends BaseCoreSDK {
|
|
4
|
-
/**
|
|
5
|
-
* Creates a group of contract addresses
|
|
6
|
-
* @param groupToCreate - group with the contract condition
|
|
7
|
-
* @param overrides - Optional overrides.
|
|
8
|
-
* @returns Transaction response.
|
|
9
|
-
*/
|
|
10
|
-
async createGroup(groupToCreate, overrides = {}) {
|
|
11
|
-
return handler.createGroup({
|
|
12
|
-
groupToCreate,
|
|
13
|
-
contractAddress: overrides.contractAddress || this._protocolDiamond,
|
|
14
|
-
web3Lib: this._web3Lib
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
import { handler } from ".";
|
|
2
|
+
import { BaseCoreSDK } from "./../mixins/base-core-sdk";
|
|
3
|
+
export class GroupsMixin extends BaseCoreSDK {
|
|
4
|
+
/**
|
|
5
|
+
* Creates a group of contract addresses
|
|
6
|
+
* @param groupToCreate - group with the contract condition
|
|
7
|
+
* @param overrides - Optional overrides.
|
|
8
|
+
* @returns Transaction response.
|
|
9
|
+
*/
|
|
10
|
+
async createGroup(groupToCreate, overrides = {}) {
|
|
11
|
+
return handler.createGroup({
|
|
12
|
+
groupToCreate,
|
|
13
|
+
contractAddress: overrides.contractAddress || this._protocolDiamond,
|
|
14
|
+
web3Lib: this._web3Lib
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
18
|
//# sourceMappingURL=mixin.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const dummy = "";
|
|
1
|
+
export declare const dummy = "";
|
|
2
2
|
//# sourceMappingURL=subgraph.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const dummy = "";
|
|
1
|
+
export const dummy = "";
|
|
2
2
|
//# sourceMappingURL=subgraph.js.map
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { CoreSDK } from "./core-sdk";
|
|
2
|
-
export * as offers from "./offers";
|
|
3
|
-
export * as accounts from "./accounts";
|
|
4
|
-
export * as exchanges from "./exchanges";
|
|
5
|
-
export * as orchestration from "./orchestration";
|
|
6
|
-
export * as erc20 from "./erc20";
|
|
7
|
-
export * as erc721 from "./erc721";
|
|
8
|
-
export * as funds from "./funds";
|
|
9
|
-
export * as metaTx from "./meta-tx";
|
|
10
|
-
export * as nativeMetaTx from "./native-meta-tx";
|
|
11
|
-
export * as subgraph from "./subgraph";
|
|
12
|
-
export * as groups from "./groups";
|
|
13
|
-
export * as forwarder from "./forwarder";
|
|
14
|
-
export * as voucher from "./voucher";
|
|
15
|
-
export * as seaport from "./seaport";
|
|
16
|
-
export { defaultConfigs, getDefaultConfig, EnvironmentType, MetaTxConfig, ProtocolConfig, abis } from "@bosonprotocol/common";
|
|
17
|
-
export { MetadataType, AnyMetadata, OfferOrSellerMetadata, validateMetadata, base, productV1 } from "@bosonprotocol/metadata";
|
|
1
|
+
export { CoreSDK } from "./core-sdk";
|
|
2
|
+
export * as offers from "./offers";
|
|
3
|
+
export * as accounts from "./accounts";
|
|
4
|
+
export * as exchanges from "./exchanges";
|
|
5
|
+
export * as orchestration from "./orchestration";
|
|
6
|
+
export * as erc20 from "./erc20";
|
|
7
|
+
export * as erc721 from "./erc721";
|
|
8
|
+
export * as funds from "./funds";
|
|
9
|
+
export * as metaTx from "./meta-tx";
|
|
10
|
+
export * as nativeMetaTx from "./native-meta-tx";
|
|
11
|
+
export * as subgraph from "./subgraph";
|
|
12
|
+
export * as groups from "./groups";
|
|
13
|
+
export * as forwarder from "./forwarder";
|
|
14
|
+
export * as voucher from "./voucher";
|
|
15
|
+
export * as seaport from "./seaport";
|
|
16
|
+
export { defaultConfigs, getDefaultConfig, EnvironmentType, MetaTxConfig, ProtocolConfig, abis } from "@bosonprotocol/common";
|
|
17
|
+
export { MetadataType, AnyMetadata, OfferOrSellerMetadata, validateMetadata, base, productV1 } from "@bosonprotocol/metadata";
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { CoreSDK } from "./core-sdk";
|
|
2
|
-
export * as offers from "./offers";
|
|
3
|
-
export * as accounts from "./accounts";
|
|
4
|
-
export * as exchanges from "./exchanges";
|
|
5
|
-
export * as orchestration from "./orchestration";
|
|
6
|
-
export * as erc20 from "./erc20";
|
|
7
|
-
export * as erc721 from "./erc721";
|
|
8
|
-
export * as funds from "./funds";
|
|
9
|
-
export * as metaTx from "./meta-tx";
|
|
10
|
-
export * as nativeMetaTx from "./native-meta-tx";
|
|
11
|
-
export * as subgraph from "./subgraph";
|
|
12
|
-
export * as groups from "./groups";
|
|
13
|
-
export * as forwarder from "./forwarder";
|
|
14
|
-
export * as voucher from "./voucher";
|
|
15
|
-
export * as seaport from "./seaport";
|
|
16
|
-
export { defaultConfigs, getDefaultConfig, abis } from "@bosonprotocol/common";
|
|
17
|
-
export { MetadataType, validateMetadata, base, productV1 } from "@bosonprotocol/metadata";
|
|
1
|
+
export { CoreSDK } from "./core-sdk";
|
|
2
|
+
export * as offers from "./offers";
|
|
3
|
+
export * as accounts from "./accounts";
|
|
4
|
+
export * as exchanges from "./exchanges";
|
|
5
|
+
export * as orchestration from "./orchestration";
|
|
6
|
+
export * as erc20 from "./erc20";
|
|
7
|
+
export * as erc721 from "./erc721";
|
|
8
|
+
export * as funds from "./funds";
|
|
9
|
+
export * as metaTx from "./meta-tx";
|
|
10
|
+
export * as nativeMetaTx from "./native-meta-tx";
|
|
11
|
+
export * as subgraph from "./subgraph";
|
|
12
|
+
export * as groups from "./groups";
|
|
13
|
+
export * as forwarder from "./forwarder";
|
|
14
|
+
export * as voucher from "./voucher";
|
|
15
|
+
export * as seaport from "./seaport";
|
|
16
|
+
export { defaultConfigs, getDefaultConfig, abis } from "@bosonprotocol/common";
|
|
17
|
+
export { MetadataType, validateMetadata, base, productV1 } from "@bosonprotocol/metadata";
|
|
18
18
|
//# sourceMappingURL=index.js.map
|