@evaafi/sdk 0.3.1 → 0.3.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.
@@ -10,6 +10,7 @@ export declare const ASSET_ID: {
10
10
  jUSDC: bigint;
11
11
  stTON: bigint;
12
12
  tsTON: bigint;
13
+ USDT: bigint;
13
14
  };
14
15
  export declare const JETTON_MASTER_ADDRESSES: {
15
16
  jUSDT_MAINNET: Address;
@@ -20,6 +21,8 @@ export declare const JETTON_MASTER_ADDRESSES: {
20
21
  stTON_TESTNET: Address;
21
22
  tsTON_MAINNET: Address;
22
23
  tsTON_TESTNET: null;
24
+ USDT_MAINNET: Address;
25
+ USDT_TESTNET: null;
23
26
  };
24
27
  export declare const MASTER_CONSTANTS: {
25
28
  FACTOR_SCALE: bigint;
package/dist/constants.js CHANGED
@@ -14,6 +14,7 @@ exports.ASSET_ID = {
14
14
  jUSDC: (0, sha256BigInt_1.sha256Hash)('jUSDC'),
15
15
  stTON: (0, sha256BigInt_1.sha256Hash)('stTON'),
16
16
  tsTON: (0, sha256BigInt_1.sha256Hash)('tsTON'),
17
+ USDT: (0, sha256BigInt_1.sha256Hash)('USDT'),
17
18
  };
18
19
  exports.JETTON_MASTER_ADDRESSES = {
19
20
  jUSDT_MAINNET: core_1.Address.parse('EQBwbF0otxLyA3VrRjjC1q7i3G7LtoEpdyBjZEuNtrhC4drm'),
@@ -24,6 +25,8 @@ exports.JETTON_MASTER_ADDRESSES = {
24
25
  stTON_TESTNET: core_1.Address.parse('kQCpm8ixF6STW7aidxn_Qkp4sR73msPlrduCeRZfo-Zu7dxt'),
25
26
  tsTON_MAINNET: core_1.Address.parse('EQCRC0telhv1QESvTx24nNqUWB72zCysXQ0Bx97lVzucQ3Gr'),
26
27
  tsTON_TESTNET: null,
28
+ USDT_MAINNET: core_1.Address.parse('EQD_kMQkK-A9-CQu3CdOnQUDZ2_8bY8Zrh1PvtE3hZpxvdRH'),
29
+ USDT_TESTNET: null,
27
30
  };
28
31
  exports.MASTER_CONSTANTS = {
29
32
  FACTOR_SCALE: BigInt(1e12),
@@ -38,6 +38,14 @@ function getUserJettonWallet(ownerAddress, assetID, network) {
38
38
  builder.storeAddress(constants_1.JETTON_MASTER_ADDRESSES.tsTON_TESTNET);
39
39
  }
40
40
  break;
41
+ case constants_1.ASSET_ID.USDT:
42
+ if (network === 'mainnet') {
43
+ builder.storeAddress(constants_1.JETTON_MASTER_ADDRESSES.USDT_MAINNET);
44
+ }
45
+ else {
46
+ builder.storeAddress(constants_1.JETTON_MASTER_ADDRESSES.USDT_TESTNET);
47
+ }
48
+ break;
41
49
  default:
42
50
  throw new Error('Unsupported asset');
43
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evaafi/sdk",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "SDK for EVAA contracts",
5
5
  "main": "dist/index.js",
6
6
  "files": [
package/src/constants.ts CHANGED
@@ -14,6 +14,7 @@ export const ASSET_ID = {
14
14
  jUSDC: sha256Hash('jUSDC'),
15
15
  stTON: sha256Hash('stTON'),
16
16
  tsTON: sha256Hash('tsTON'),
17
+ USDT: sha256Hash('USDT'),
17
18
  };
18
19
 
19
20
  export const JETTON_MASTER_ADDRESSES = {
@@ -25,6 +26,8 @@ export const JETTON_MASTER_ADDRESSES = {
25
26
  stTON_TESTNET: Address.parse('kQCpm8ixF6STW7aidxn_Qkp4sR73msPlrduCeRZfo-Zu7dxt'),
26
27
  tsTON_MAINNET: Address.parse('EQCRC0telhv1QESvTx24nNqUWB72zCysXQ0Bx97lVzucQ3Gr'),
27
28
  tsTON_TESTNET: null,
29
+ USDT_MAINNET: Address.parse('EQD_kMQkK-A9-CQu3CdOnQUDZ2_8bY8Zrh1PvtE3hZpxvdRH'),
30
+ USDT_TESTNET: null,
28
31
  };
29
32
 
30
33
  export const MASTER_CONSTANTS = {
@@ -32,6 +32,13 @@ export function getUserJettonWallet(ownerAddress: Address, assetID: bigint, netw
32
32
  builder.storeAddress(JETTON_MASTER_ADDRESSES.tsTON_TESTNET);
33
33
  }
34
34
  break;
35
+ case ASSET_ID.USDT:
36
+ if (network === 'mainnet') {
37
+ builder.storeAddress(JETTON_MASTER_ADDRESSES.USDT_MAINNET);
38
+ } else {
39
+ builder.storeAddress(JETTON_MASTER_ADDRESSES.USDT_TESTNET);
40
+ }
41
+ break;
35
42
  default:
36
43
  throw new Error('Unsupported asset');
37
44
  }