Skip to content

Commit 9683a0a

Browse files
author
alexey
committed
updated contarct
1 parent 9e6bd46 commit 9683a0a

File tree

4 files changed

+23
-32
lines changed

4 files changed

+23
-32
lines changed

src/blockchain/fuel/constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Token } from "@src/entity/Token";
44
import TOKENS_JSON from "./tokens.json";
55

66
export const CONTRACT_ADDRESSES = {
7-
spotMarket: "0x1fdc9849457604cc8af9103c5d3cc339da2ce29df8b6e46d358f7c330918cd79",
7+
spotMarket: "0x7134802bdefd097f1c9d8ad86ef27081ae609b84de0afc87b58bd4e04afc6a23",
88
tokenFactory: "0x6bd9643c9279204b474a778dea7f923226060cb94a4c61c5aae015cf96b5aad2",
99
vault: "0xe8beef1c4c94e8732b89c5e783c80e9fb7f80fd43ad0c594ba380e4b5556106a",
1010
accountBalance: "0xa842702d600b43a3c7be0e36a0e08452b3d6fc36f0d4015fb6a06cb056cd312d",

src/blockchain/fuel/sdk/types/orderbook/OrderbookAbi.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export type MarketCreateEventInput = { asset_id: AssetIdInput, asset_decimals: B
3939
export type MarketCreateEventOutput = { asset_id: AssetIdOutput, asset_decimals: number, timestamp: BN };
4040
export type OrderInput = { id: string, trader: AddressInput, base_token: AssetIdInput, base_size: I64Input, base_price: BigNumberish };
4141
export type OrderOutput = { id: string, trader: AddressOutput, base_token: AssetIdOutput, base_size: I64Output, base_price: BN };
42-
export type OrderChangeEventInput = { order_id: string, trader: AddressInput, base_token: AssetIdInput, base_size_change: I64Input, base_price: BigNumberish, timestamp: BigNumberish };
43-
export type OrderChangeEventOutput = { order_id: string, trader: AddressOutput, base_token: AssetIdOutput, base_size_change: I64Output, base_price: BN, timestamp: BN };
42+
export type OrderChangeEventInput = { order_id: string, timestamp: BigNumberish, order: Option<OrderInput> };
43+
export type OrderChangeEventOutput = { order_id: string, timestamp: BN, order: Option<OrderOutput> };
4444
export type TradeEventInput = { base_token: AssetIdInput, order_matcher: AddressInput, seller: AddressInput, buyer: AddressInput, trade_size: BigNumberish, trade_price: BigNumberish, sell_order_id: string, buy_order_id: string, timestamp: BigNumberish };
4545
export type TradeEventOutput = { base_token: AssetIdOutput, order_matcher: AddressOutput, seller: AddressOutput, buyer: AddressOutput, trade_size: BN, trade_price: BN, sell_order_id: string, buy_order_id: string, timestamp: BN };
4646

src/blockchain/fuel/sdk/types/orderbook/OrderbookAbi.hex.ts

+1-1
Large diffs are not rendered by default.

src/blockchain/fuel/sdk/types/orderbook/factories/OrderbookAbi__factory.ts

+19-28
Original file line numberDiff line numberDiff line change
@@ -297,29 +297,20 @@ const _abi = {
297297
"typeArguments": null
298298
},
299299
{
300-
"name": "trader",
301-
"type": 9,
302-
"typeArguments": null
303-
},
304-
{
305-
"name": "base_token",
306-
"type": 10,
307-
"typeArguments": null
308-
},
309-
{
310-
"name": "base_size_change",
311-
"type": 11,
312-
"typeArguments": null
313-
},
314-
{
315-
"name": "base_price",
300+
"name": "timestamp",
316301
"type": 20,
317302
"typeArguments": null
318303
},
319304
{
320-
"name": "timestamp",
321-
"type": 20,
322-
"typeArguments": null
305+
"name": "order",
306+
"type": 5,
307+
"typeArguments": [
308+
{
309+
"name": "",
310+
"type": 14,
311+
"typeArguments": null
312+
}
313+
]
323314
}
324315
],
325316
"typeParameters": null
@@ -597,16 +588,16 @@ const _abi = {
597588
"typeArguments": null
598589
},
599590
"attributes": [
591+
{
592+
"name": "payable",
593+
"arguments": []
594+
},
600595
{
601596
"name": "storage",
602597
"arguments": [
603598
"read",
604599
"write"
605600
]
606-
},
607-
{
608-
"name": "payable",
609-
"arguments": []
610601
}
611602
]
612603
},
@@ -698,7 +689,7 @@ const _abi = {
698689
"logId": 3,
699690
"loggedType": {
700691
"name": "",
701-
"type": 15,
692+
"type": 4,
702693
"typeArguments": []
703694
}
704695
},
@@ -738,7 +729,7 @@ const _abi = {
738729
"logId": 8,
739730
"loggedType": {
740731
"name": "",
741-
"type": 4,
732+
"type": 15,
742733
"typeArguments": []
743734
}
744735
},
@@ -1048,7 +1039,7 @@ const _abi = {
10481039
"type": 10,
10491040
"typeArguments": []
10501041
},
1051-
"offset": 99744
1042+
"offset": 102128
10521043
},
10531044
{
10541045
"name": "QUOTE_TOKEN_DECIMALS",
@@ -1057,7 +1048,7 @@ const _abi = {
10571048
"type": 19,
10581049
"typeArguments": null
10591050
},
1060-
"offset": 99680
1051+
"offset": 102064
10611052
},
10621053
{
10631054
"name": "PRICE_DECIMALS",
@@ -1066,7 +1057,7 @@ const _abi = {
10661057
"type": 19,
10671058
"typeArguments": null
10681059
},
1069-
"offset": 99664
1060+
"offset": 102048
10701061
}
10711062
]
10721063
};

0 commit comments

Comments
 (0)