@xandeum/web3.js 1.3.13 → 1.3.15

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/const.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { PublicKey } from '@solana/web3.js';
2
- export declare const programId = "GH4eE2Wuzd2cFHQgXDp4avGLA3cEiNwEBVhkGkP8Vrs3";
3
2
  export declare const TOKEN_PROGRAM_ID: PublicKey;
3
+ export declare const programId = "xSHLJPXU8QW3A9kGiRoL94bksJ7ZZPY4dUwJPAT8CVK";
4
4
  export declare const ATA_PROGRAM_ID: PublicKey;
5
5
  export declare const TOKEN_MINT_ADDRESS: PublicKey;
package/dist/const.js CHANGED
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TOKEN_MINT_ADDRESS = exports.ATA_PROGRAM_ID = exports.TOKEN_PROGRAM_ID = exports.programId = void 0;
3
+ exports.TOKEN_MINT_ADDRESS = exports.ATA_PROGRAM_ID = exports.programId = exports.TOKEN_PROGRAM_ID = void 0;
4
4
  var web3_js_1 = require("@solana/web3.js");
5
- exports.programId = "GH4eE2Wuzd2cFHQgXDp4avGLA3cEiNwEBVhkGkP8Vrs3";
6
- exports.TOKEN_PROGRAM_ID = new web3_js_1.PublicKey("651cCwrKdzgNUBo3sUBGCahtsxzfC7yTaNounG3q3iDF");
7
- exports.ATA_PROGRAM_ID = new web3_js_1.PublicKey("7aRtRTerxiPxr6fpUBfs2j2ehRANmpSLRWgNPyYitaxi");
8
- exports.TOKEN_MINT_ADDRESS = new web3_js_1.PublicKey("BPbgHqagPnds7Rs5j7NvL8DjsJAZz1XSCQFW1mU2wigR");
5
+ var spl_token_1 = require("@solana/spl-token");
6
+ exports.TOKEN_PROGRAM_ID = spl_token_1.TOKEN_PROGRAM_ID;
7
+ exports.programId = "xSHLJPXU8QW3A9kGiRoL94bksJ7ZZPY4dUwJPAT8CVK";
8
+ exports.ATA_PROGRAM_ID = spl_token_1.ASSOCIATED_TOKEN_PROGRAM_ID;
9
+ exports.TOKEN_MINT_ADDRESS = new web3_js_1.PublicKey("So11111111111111111111111111111111111111112");
package/dist/helpers.d.ts CHANGED
@@ -10,7 +10,7 @@ export declare const PULSE_DURATION_SECONDS = 15;
10
10
  /**
11
11
  * Number of pulses in one yuga
12
12
  */
13
- export declare const PULSES_PER_YUGA = 100;
13
+ export declare const PULSES_PER_YUGA = 16384;
14
14
  /**
15
15
  * Duration of one yuga in seconds (16384 * 15 = 245,760 seconds ≈ 2.84 days)
16
16
  */
@@ -18,7 +18,7 @@ export declare const YUGA_DURATION_SECONDS: number;
18
18
  /**
19
19
  * Unix timestamp (in seconds) when the first yuga started
20
20
  */
21
- export declare const YUGA_START_TIMESTAMP = 1768898445;
21
+ export declare const YUGA_START_TIMESTAMP = 1773502200;
22
22
  /**
23
23
  * Calculates the yuga number from a given unix timestamp.
24
24
  *
package/dist/helpers.js CHANGED
@@ -24,7 +24,7 @@ exports.PULSE_DURATION_SECONDS = 15;
24
24
  /**
25
25
  * Number of pulses in one yuga
26
26
  */
27
- exports.PULSES_PER_YUGA = 100;
27
+ exports.PULSES_PER_YUGA = 16384;
28
28
  /**
29
29
  * Duration of one yuga in seconds (16384 * 15 = 245,760 seconds ≈ 2.84 days)
30
30
  */
@@ -32,7 +32,7 @@ exports.YUGA_DURATION_SECONDS = exports.PULSES_PER_YUGA * exports.PULSE_DURATION
32
32
  /**
33
33
  * Unix timestamp (in seconds) when the first yuga started
34
34
  */
35
- exports.YUGA_START_TIMESTAMP = 1768898445;
35
+ exports.YUGA_START_TIMESTAMP = 1773502200;
36
36
  /**
37
37
  * Calculates the yuga number from a given unix timestamp.
38
38
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xandeum/web3.js",
3
- "version": "1.3.13",
3
+ "version": "1.3.15",
4
4
  "description": "Xandeum javascript api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -14,6 +14,7 @@
14
14
  "access": "public"
15
15
  },
16
16
  "dependencies": {
17
+ "@solana/spl-token": "^0.4.14",
17
18
  "@solana/web3.js": "^1.98.2",
18
19
  "ws": "^8.18.2"
19
20
  },
package/src/const.ts CHANGED
@@ -1,6 +1,10 @@
1
1
  import { PublicKey } from '@solana/web3.js'
2
+ import {
3
+ TOKEN_PROGRAM_ID as TOKEN_PROGRAM_ID_SOLANA,
4
+ ASSOCIATED_TOKEN_PROGRAM_ID,
5
+ } from "@solana/spl-token";
6
+ export const TOKEN_PROGRAM_ID = TOKEN_PROGRAM_ID_SOLANA;
7
+ export const programId = "xSHLJPXU8QW3A9kGiRoL94bksJ7ZZPY4dUwJPAT8CVK";
2
8
 
3
- export const programId = "GH4eE2Wuzd2cFHQgXDp4avGLA3cEiNwEBVhkGkP8Vrs3";
4
- export const TOKEN_PROGRAM_ID = new PublicKey("651cCwrKdzgNUBo3sUBGCahtsxzfC7yTaNounG3q3iDF");
5
- export const ATA_PROGRAM_ID = new PublicKey("7aRtRTerxiPxr6fpUBfs2j2ehRANmpSLRWgNPyYitaxi");
6
- export const TOKEN_MINT_ADDRESS = new PublicKey("BPbgHqagPnds7Rs5j7NvL8DjsJAZz1XSCQFW1mU2wigR");
9
+ export const ATA_PROGRAM_ID = ASSOCIATED_TOKEN_PROGRAM_ID;
10
+ export const TOKEN_MINT_ADDRESS = new PublicKey("So11111111111111111111111111111111111111112");
package/src/helpers.ts CHANGED
@@ -15,7 +15,7 @@ export const PULSE_DURATION_SECONDS = 15
15
15
  /**
16
16
  * Number of pulses in one yuga
17
17
  */
18
- export const PULSES_PER_YUGA = 100
18
+ export const PULSES_PER_YUGA = 16384
19
19
 
20
20
  /**
21
21
  * Duration of one yuga in seconds (16384 * 15 = 245,760 seconds ≈ 2.84 days)
@@ -25,7 +25,7 @@ export const YUGA_DURATION_SECONDS = PULSES_PER_YUGA * PULSE_DURATION_SECONDS
25
25
  /**
26
26
  * Unix timestamp (in seconds) when the first yuga started
27
27
  */
28
- export const YUGA_START_TIMESTAMP = 1768898445
28
+ export const YUGA_START_TIMESTAMP = 1773502200
29
29
 
30
30
  /**
31
31
  * Calculates the yuga number from a given unix timestamp.