@bluefin-exchange/pro-sdk 0.1.38 → 0.1.40
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/example.js +5 -2
- package/dist/src/api.d.ts +180 -96
- package/dist/src/api.js +116 -15
- package/dist/src/configuration.js +2 -4
- package/example.ts +9 -3
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +2 -1
- package/src/api.ts +242 -102
- package/src/configuration.ts +95 -117
- package/src/docs/AccountDataApi.md +56 -0
- package/src/docs/AffiliateIntervalOverview.md +24 -24
- package/src/docs/AffiliateLeaderDashboard.md +6 -6
- package/src/docs/AffiliateMetadata.md +1 -1
- package/src/docs/AffiliateOverview.md +24 -24
- package/src/docs/AffiliateSummary.md +2 -2
- package/src/docs/EpochConfigs.md +6 -6
- package/src/docs/FeeConfigs.md +31 -0
- package/src/docs/IntervalRewards.md +6 -6
- package/src/docs/RewardsApi.md +8 -1
- package/src/docs/RewardsSummary.md +6 -6
- package/src/docs/Trade.md +2 -0
- package/src/docs/UpdateAccountPreferenceRequest.md +24 -0
- package/src/docs/UpdateAffiliateFeeConfigRequest.md +1 -1
- package/src/docs/UserCampaignRewards.md +6 -6
package/dist/example.js
CHANGED
|
@@ -81,8 +81,11 @@ function main() {
|
|
|
81
81
|
// "know puzzle puzzle table miss member token image loop velvet skin legend clarify affair wisdom alert lucky unveil mean two question nice spatial grape"
|
|
82
82
|
// );
|
|
83
83
|
const suiWallet = library_sui_1.Ed25519Keypair.fromSecretKey((0, utils_1.hexToBytes)("3427d19dcf5781f0874c36c78aec22c03acda435d69efcbf249e8821793567a1"));
|
|
84
|
+
const otherSuiWallet = library_sui_1.Ed25519Keypair.fromSecretKey((0, utils_1.hexToBytes)("1269e3f8279bed96907a6e809a93eea2528926abbdf56584f43544859fa8c0da"));
|
|
84
85
|
logger.info(`Sui Address: ${suiWallet.getPublicKey().toSuiAddress()}`);
|
|
86
|
+
logger.info(`Other Sui Address: ${otherSuiWallet.getPublicKey().toSuiAddress()}`);
|
|
85
87
|
const bfSigner = new index_1.BluefinRequestSigner((0, index_1.makeSigner)(suiWallet, false));
|
|
88
|
+
const otherBfSigner = new index_1.BluefinRequestSigner((0, index_1.makeSigner)(otherSuiWallet, false));
|
|
86
89
|
const client = new index_1.BluefinProSdk(bfSigner, "testnet", new library_sui_1.SuiClient({ url: "https://fullnode.testnet.sui.io:443" }));
|
|
87
90
|
yield client.initialize();
|
|
88
91
|
try {
|
|
@@ -176,9 +179,9 @@ function main() {
|
|
|
176
179
|
// Withdraw 10 USD
|
|
177
180
|
yield client.withdraw("USDC", "10000000000");
|
|
178
181
|
logger.info("Withdraw request success");
|
|
179
|
-
yield client.authorizeAccount(
|
|
182
|
+
yield client.authorizeAccount(otherBfSigner.getAddress());
|
|
180
183
|
logger.info("Authorize account request success");
|
|
181
|
-
yield client.deauthorizeAccount(
|
|
184
|
+
yield client.deauthorizeAccount(otherBfSigner.getAddress());
|
|
182
185
|
logger.info("Deauthorize account request success");
|
|
183
186
|
yield client.adjustIsolatedMargin(symbol, "10000000000", true);
|
|
184
187
|
logger.info("Adjust isolated margin request success");
|