@typus/typus-perp-sdk 1.0.61-upgrade-zero-col-a → 1.0.61-upgrade-zero-col-b
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/src/index.js +7 -3
- package/package.json +2 -2
package/dist/src/index.js
CHANGED
|
@@ -26,12 +26,16 @@ dotenv_1.default.config();
|
|
|
26
26
|
exports.NETWORK = process.env.NEXT_PUBLIC_CLUSTER == "mainnet" ? "MAINNET" : "TESTNET";
|
|
27
27
|
console.log("Load .env NEXT_PUBLIC_CLUSTER: ".concat(process.env.NEXT_PUBLIC_CLUSTER));
|
|
28
28
|
console.log("Initializing Typus Perp SDK for ".concat(exports.NETWORK));
|
|
29
|
+
/** Register the MVR plugin globally */
|
|
30
|
+
var transactions_1 = require("@mysten/sui/transactions");
|
|
31
|
+
var mvrPlugin = exports.NETWORK == "MAINNET" ? "https://mainnet.mvr.mystenlabs.com" : "https://testnet.mvr.mystenlabs.com";
|
|
32
|
+
var plugin = (0, transactions_1.namedPackagesPlugin)({ url: mvrPlugin });
|
|
33
|
+
/** Register the MVR plugin globally (once) for our PTB construction */
|
|
34
|
+
transactions_1.Transaction.registerGlobalSerializationPlugin("namedPackagesPlugin", plugin);
|
|
29
35
|
exports.PERP_PACKAGE_ID = exports.NETWORK == "MAINNET"
|
|
30
36
|
? "0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5"
|
|
31
37
|
: "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9";
|
|
32
|
-
exports.PERP_PUBLISHED_AT = exports.NETWORK == "MAINNET"
|
|
33
|
-
? "0xb7e4416296bb3629547b5a0ab24dec17851760eca393c58fb62edbab71c76fa2"
|
|
34
|
-
: "0xf2958d5c93ca6ed356346ea322cd359df2d6b066298d3e004fc8a36d93ce99c6";
|
|
38
|
+
exports.PERP_PUBLISHED_AT = exports.NETWORK == "MAINNET" ? "0xb7e4416296bb3629547b5a0ab24dec17851760eca393c58fb62edbab71c76fa2" : "@typus/perp";
|
|
35
39
|
exports.PERP_PKG_V1 = exports.NETWORK == "MAINNET"
|
|
36
40
|
? "0xe27969a70f93034de9ce16e6ad661b480324574e68d15a64b513fd90eb2423e5"
|
|
37
41
|
: "0x585924f160f83ef16f8927ec117e4d740abb6f4e571ecfa89ff3e973042cb1b9";
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typus/typus-perp-sdk",
|
|
3
|
-
"version": "1.0.61-upgrade-zero-col-
|
|
3
|
+
"version": "1.0.61-upgrade-zero-col-b",
|
|
4
4
|
"repository": "https://github.com/Typus-Lab/typus-perp-sdk.git",
|
|
5
5
|
"author": "Typus",
|
|
6
6
|
"description": "typus perp sdk",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@typus/typus-sdk": "1.7.
|
|
9
|
+
"@typus/typus-sdk": "1.7.2"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@types/bs58": "^4.0.1",
|