sdk-triggerx 0.1.13 → 0.1.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.
@@ -14,8 +14,8 @@ const topupTg = async (tgAmount, signer) => {
14
14
  const gasRegistryContractAddress = gasRegistry;
15
15
  const contract = new ethers_1.ethers.Contract(gasRegistryContractAddress, GasRegistry_json_1.default, signer);
16
16
  // Each TG costs 0.001 ETH, so calculate the ETH required for the given TG amount
17
- const amountInEth = tgAmount * 0.001;
18
- const amountInEthWei = ethers_1.ethers.parseEther(amountInEth.toString());
17
+ const amountInEthWei = tgAmount;
18
+ // const amountInEthWei = ethers.parseEther(amountInEth.toString());
19
19
  const tx = await contract.purchaseTG(amountInEthWei, { value: amountInEthWei });
20
20
  await tx.wait();
21
21
  return tx;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdk-triggerx",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "SDK for interacting with the TriggerX backend and smart contracts.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,7 +15,13 @@
15
15
  "type": "git",
16
16
  "url": "https://github.com/trigg3rX/triggerx-newSDK.git"
17
17
  },
18
- "keywords": ["triggerx", "sdk", "web3", "blockchain", "ethers"],
18
+ "keywords": [
19
+ "triggerx",
20
+ "sdk",
21
+ "web3",
22
+ "blockchain",
23
+ "ethers"
24
+ ],
19
25
  "directories": {
20
26
  "test": "test"
21
27
  },