Skip to content

Commit 2789d35

Browse files
committed
feat: orderbook package
1 parent 975f961 commit 2789d35

File tree

216 files changed

+12538
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+12538
-0
lines changed

sample/Packages/manifest.json

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"com.alttester.sdk": "2.1.1",
44
"com.cysharp.unitask": "2.3.3",
55
"com.immutable.passport": "file:../../src/Packages/Passport",
6+
"com.immutable.marketplace": "file:../../src/Packages/Marketplace",
7+
"com.immutable.orderbook": "file:../../src/Packages/Orderbook",
68
"com.unity.ai.navigation": "1.1.4",
79
"com.unity.ide.visualstudio": "2.0.21",
810
"com.unity.ide.vscode": "1.2.5",

src/Packages/Orderbook/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Changelog
2+
3+
Please see https://github.com/immutable/unity-immutable-sdk/releases

src/Packages/Orderbook/CHANGELOG.md.meta

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Immutable.Orderbook.Model.Action
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
---------------------------|-----------------------------------------------------------------------------------------|-------------|------------
7+
**PopulatedTransactions** | [**TransactionActionPopulatedTransactions**](TransactionActionPopulatedTransactions.md) | | [optional]
8+
**Purpose** | **SignablePurpose** | | [optional]
9+
**Type** | **string** | |
10+
**Message** | [**SignableActionMessage**](SignableActionMessage.md) | | [optional]
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Immutable.Orderbook.Model.BigNumberish
2+
3+
Any type that can be used where a big number is needed.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------|------|-------------|-------
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Immutable.Orderbook.Model.CancelOrders200Response
2+
3+
Response schema for the cancelOrder endpoint
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------|-----------------------------------------------------------------------|-------------|------------
9+
**Result** | [**CancelOrders200ResponseResult**](CancelOrders200ResponseResult.md) | | [optional]
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Immutable.Orderbook.Model.CancelOrders200ResponseResult
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
-----------------------------|-----------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|------------
7+
**FailedCancellations** | [**List<CancelOrders200ResponseResultFailedCancellationsInner>**](CancelOrders200ResponseResultFailedCancellationsInner.md) | Orders which failed to be cancelled | [optional]
8+
**PendingCancellations** | **List<string>** | Orders which are marked for cancellation but the cancellation cannot be guaranteed | [optional]
9+
**SuccessfulCancellations** | **List<string>** | Orders which were successfully cancelled | [optional]
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Immutable.Orderbook.Model.CancelOrders200ResponseResultFailedCancellationsInner
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
----------------|------------|-------------------------------------------------------------|------------
7+
**Order** | **string** | ID of the order which failed to be cancelled | [optional]
8+
**ReasonCode** | **string** | Reason code indicating why the order failed to be cancelled | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Immutable.Orderbook.Model.CancelOrdersOnChain200Response
2+
3+
Response schema for the cancelOrder endpoint
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------------------|-----------------------------------------------|-------------|------------
9+
**CancellationAction** | [**TransactionAction**](TransactionAction.md) | | [optional]
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Immutable.Orderbook.Model.CancelOrdersOnChainRequest
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
--------------------|------------------------|-------------|-------
7+
**OrderIds** | **List<string>** | |
8+
**AccountAddress** | **string** | |
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Immutable.Orderbook.Model.CancelOrdersRequest
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
--------------------|------------------------|-------------|-------
7+
**OrderIds** | **List<string>** | |
8+
**AccountAddress** | **string** | |
9+
**Signature** | **string** | |
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Immutable.Orderbook.Model.CancellationType
2+
3+
Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------|------|-------------|-------
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Immutable.Orderbook.Model.CancelledOrderStatusCancellationType
2+
3+
Whether the cancellation was done on-chain or off-chain or as a result of an underfunded account
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------|------|-------------|-------
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Immutable.Orderbook.Model.CreateListing200Response
2+
3+
The response schema for the create listing endpoint
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------|-----------------------|-------------|------------
9+
**Result** | [**Order**](Order.md) | | [optional]
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Immutable.Orderbook.Model.CreateListingRequest
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
---------------------|-------------------------------------------|-------------|-------
7+
**MakerFees** | [**List<FeeValue>**](FeeValue.md) | |
8+
**OrderComponents** | [**OrderComponents**](OrderComponents.md) | |
9+
**OrderHash** | **string** | |
10+
**OrderSignature** | **string** | |
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Immutable.Orderbook.Model.ERC1155Item
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
---------------------|------------|-------------|-------
7+
**Amount** | **string** | |
8+
**ContractAddress** | **string** | |
9+
**TokenId** | **string** | |
10+
**Type** | **string** | |
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Immutable.Orderbook.Model.ERC20Item
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
---------------------|------------|-------------|-------
7+
**Amount** | **string** | |
8+
**ContractAddress** | **string** | |
9+
**Type** | **string** | |
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Immutable.Orderbook.Model.ERC721Item
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
---------------------|------------|-------------|-------
7+
**ContractAddress** | **string** | |
8+
**TokenId** | **string** | |
9+
**Type** | **string** | |
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Immutable.Orderbook.Model.Fee
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
----------------------|-------------|-------------|------------
7+
**Amount** | **string** | | [optional]
8+
**RecipientAddress** | **string** | | [optional]
9+
**Type** | **FeeType** | | [optional]
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Immutable.Orderbook.Model.FeeType
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------|------|-------------|-------
7+
8+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Immutable.Orderbook.Model.FeeValue
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
----------------------|------------|-------------|-------
7+
**Amount** | **string** | |
8+
**RecipientAddress** | **string** | |
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Immutable.Orderbook.Model.FulfillOrder200Response
2+
3+
Response schema for the fulfillOrder endpoint
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
----------------|-----------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|------------
9+
**Actions** | [**List<TransactionAction>**](TransactionAction.md) | | [optional]
10+
**Expiration** | **string** | User MUST submit the fulfillment transaction before the expiration Submitting after the expiration will result in a on chain revert | [optional]
11+
**Order** | [**Order**](Order.md) | | [optional]
12+
13+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Immutable.Orderbook.Model.FulfillOrderRequest
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------------|-------------------------------------------------------------------------------------------|--------------|------------
7+
**ListingId** | **string** | listingId |
8+
**TakerAddress** | **string** | takerAddress |
9+
**TakerFees** | [**List<FulfillOrderRequestTakerFeesInner>**](FulfillOrderRequestTakerFeesInner.md) | takerFees |
10+
**AmountToFill** | **string** | amountToFill | [optional]
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Immutable.Orderbook.Model.FulfillOrderRequestTakerFeesInner
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
----------------------|------------|-------------|-------
7+
**Amount** | **string** | |
8+
**RecipientAddress** | **string** | |
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Immutable.Orderbook.Model.ItemType
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------|------|-------------|-------
7+
8+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Immutable.Orderbook.Model.NativeItem
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------|------------|-------------|-------
7+
**Amount** | **string** | |
8+
**Type** | **string** | |
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Immutable.Orderbook.Model.Order
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
--------------------|---------------------------------------------------------------------------|-------------------------------------------------|------------
7+
**AccountAddress** | **string** | | [optional]
8+
**Buy** | [**List<PrepareListingRequestBuy>**](PrepareListingRequestBuy.md) | | [optional]
9+
**Chain** | [**OrderChain**](OrderChain.md) | | [optional]
10+
**CreatedAt** | **string** | | [optional]
11+
**EndAt** | **string** | Time after which the Order is expired | [optional]
12+
**Fees** | [**List<Fee>**](Fee.md) | | [optional]
13+
**FillStatus** | [**OrderFillStatus**](OrderFillStatus.md) | | [optional]
14+
**Id** | **string** | |
15+
**OrderHash** | **string** | |
16+
**ProtocolData** | [**OrderProtocolData**](OrderProtocolData.md) | | [optional]
17+
**Salt** | **string** | | [optional]
18+
**Sell** | [**List<PrepareListingRequestSell>**](PrepareListingRequestSell.md) | |
19+
**Signature** | **string** | |
20+
**StartAt** | **string** | Time after which the Order is considered active |
21+
**Status** | [**OrderStatus**](OrderStatus.md) | |
22+
**Type** | **string** | |
23+
**UpdatedAt** | **string** | |
24+
25+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
26+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Immutable.Orderbook.Model.OrderChain
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
----------|------------|-------------|------------
7+
**Id** | **string** | | [optional]
8+
**Name** | **string** | | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+

0 commit comments

Comments
 (0)