@triadxyz/triad-protocol 4.0.4-beta.1 → 4.0.4-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/customer.js +1 -1
- package/dist/trade.js +1 -1
- package/package.json +3 -3
package/dist/customer.js
CHANGED
|
@@ -53,7 +53,7 @@ class Customer {
|
|
|
53
53
|
getCustomerById(customerId) {
|
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
55
|
const customerPDA = (0, pda_1.getCustomerPDA)(this.program.programId, customerId);
|
|
56
|
-
const customer = yield this.program.account.customer.fetch(customerPDA, this.
|
|
56
|
+
const customer = yield this.program.account.customer.fetch(customerPDA, this.program.provider.connection.commitment);
|
|
57
57
|
return (0, helpers_1.formatCustomer)(customer, customerPDA);
|
|
58
58
|
});
|
|
59
59
|
}
|
package/dist/trade.js
CHANGED
|
@@ -41,7 +41,7 @@ class Trade {
|
|
|
41
41
|
flop: { bid: [], ask: [] }
|
|
42
42
|
};
|
|
43
43
|
const orderBookPDA = (0, pda_1.getOrderBookPDA)(this.program.programId, marketId);
|
|
44
|
-
const orderBook = yield this.program.account.orderBook.fetch(orderBookPDA);
|
|
44
|
+
const orderBook = yield this.program.account.orderBook.fetch(orderBookPDA, this.program.provider.connection.commitment);
|
|
45
45
|
data.rewardsAvailable = orderBook.rewardsAvailable.toString();
|
|
46
46
|
data.rewardsClaimed = orderBook.rewardsClaimed.toString();
|
|
47
47
|
data.spreadToReward = orderBook.spreadToReward.toString();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@triadxyz/triad-protocol",
|
|
3
|
-
"version": "4.0.4-beta.
|
|
3
|
+
"version": "4.0.4-beta.2",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"license": "ISC",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@coral-xyz/anchor": "0.30.1",
|
|
36
|
-
"@solana/spl-token": "0.4.
|
|
37
|
-
"@solana/web3.js": "1.
|
|
36
|
+
"@solana/spl-token": "0.4.14",
|
|
37
|
+
"@solana/web3.js": "1.98.4",
|
|
38
38
|
"bn.js": "5.2.3",
|
|
39
39
|
"bs58": "6.0.0"
|
|
40
40
|
},
|