@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 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(bfSigner.getAddress());
182
+ yield client.authorizeAccount(otherBfSigner.getAddress());
180
183
  logger.info("Authorize account request success");
181
- yield client.deauthorizeAccount(bfSigner.getAddress());
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");