@altiuslabs/tx-sdk 0.1.8 → 0.1.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altiuslabs/tx-sdk",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "SDK for signing and sending Altius USD multi-token transactions",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/constants.js CHANGED
@@ -28,7 +28,7 @@ export const USDA_ADDRESS = '0xa170000000000000000000000000000000000001';
28
28
  * Fee Token Factory
29
29
  * Address: 0xa1700000000000000000000000000000000000000 (index 0)
30
30
  */
31
- export const FEE_TOKEN_FACTORY_ADDRESS = '0xa1700000000000000000000000000000000000000';
31
+ export const FEE_TOKEN_FACTORY_ADDRESS = '0xa170000000000000000000000000000000000000';
32
32
 
33
33
  /**
34
34
  * Fee Manager (Independent prefix)
package/src/rpc.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * RPC Client for Altius
3
3
  */
4
4
 
5
- import { numToHex, padHex } from './utils.js';
5
+ import { num_to_hex, pad_hex } from './utils.js';
6
6
 
7
7
  /**
8
8
  * JSON-RPC client for communicating with Altius node
@@ -139,7 +139,7 @@ export class RpcClient {
139
139
  */
140
140
  async get_erc20_balance(token_address, owner_address) {
141
141
  // ERC20 balanceOf selector: 0x70a08231
142
- const data = '0x70a08231' + padHex(owner_address, 32).slice(2);
142
+ const data = '0x70a08231' + pad_hex(owner_address, 32).slice(2);
143
143
  const result = await this.call({ to: token_address, data });
144
144
  return BigInt(result);
145
145
  }