@xyo-network/chain-sdk 1.15.3 → 1.15.5

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,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/package.json",
3
3
  "name": "@xyo-network/chain-sdk",
4
- "version": "1.15.3",
4
+ "version": "1.15.5",
5
5
  "description": "XYO Layer One SDK",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -59,21 +59,21 @@
59
59
  "@xylabs/hex": "~5.0.12",
60
60
  "@xyo-network/account": "~5.1.6",
61
61
  "@xyo-network/account-model": "~5.1.6",
62
- "@xyo-network/chain-analyze": "~1.15.3",
63
- "@xyo-network/chain-ethereum": "~1.15.3",
64
- "@xyo-network/chain-modules": "~1.15.3",
65
- "@xyo-network/chain-network-model": "~1.15.3",
66
- "@xyo-network/chain-orchestration": "~1.15.3",
67
- "@xyo-network/chain-protocol": "~1.15.3",
68
- "@xyo-network/chain-services": "~1.15.3",
69
- "@xyo-network/chain-telemetry": "~1.15.3",
70
- "@xyo-network/chain-utils": "~1.15.3",
71
- "@xyo-network/chain-validation": "~1.15.3",
62
+ "@xyo-network/chain-analyze": "~1.15.5",
63
+ "@xyo-network/chain-ethereum": "~1.15.5",
64
+ "@xyo-network/chain-modules": "~1.15.5",
65
+ "@xyo-network/chain-network-model": "~1.15.5",
66
+ "@xyo-network/chain-orchestration": "~1.15.5",
67
+ "@xyo-network/chain-protocol": "~1.15.5",
68
+ "@xyo-network/chain-services": "~1.15.5",
69
+ "@xyo-network/chain-telemetry": "~1.15.5",
70
+ "@xyo-network/chain-utils": "~1.15.5",
71
+ "@xyo-network/chain-validation": "~1.15.5",
72
72
  "@xyo-network/payload-builder": "~5.1.6",
73
73
  "@xyo-network/typechain": "~4.0.10",
74
74
  "@xyo-network/wallet-model": "~5.1.6",
75
- "@xyo-network/xl1-protocol": "~1.12.66",
76
- "@xyo-network/xl1-protocol-sdk": "~1.15.3",
75
+ "@xyo-network/xl1-protocol": "~1.12.69",
76
+ "@xyo-network/xl1-protocol-sdk": "~1.15.5",
77
77
  "ethers": "6.15.0"
78
78
  },
79
79
  "devDependencies": {
@@ -117,14 +117,14 @@ describe('EvmContractChainStake', () => {
117
117
  id: address,
118
118
  runner: ethWalletPerson1 as ContractRunner,
119
119
  })
120
- const stakeResult = await xyoChainPerson1.addStake(await ethWalletPerson1.getAddress(), parseUnits('50', 18))
120
+ const stakeResult = await xyoChainPerson1.addStake(asAddress(await ethWalletPerson1.getAddress(), true), parseUnits('50', 18))
121
121
  expect(stakeResult).toBeTruthy()
122
122
  })
123
123
 
124
124
  it('Read Stake', async () => {
125
125
  const address = assertEx(asAddress(xyoChainContractAddress))
126
126
  const xyoChainPerson0 = await EvmChainService.create({ id: address, runner: ethWalletPerson0 as ContractRunner })
127
- const stakeByAddressResult = await xyoChainPerson0.activeByAddressStaked(await ethWalletPerson1.getAddress())
127
+ const stakeByAddressResult = await xyoChainPerson0.activeByStaked(asAddress(await ethWalletPerson1.getAddress(), true))
128
128
  expect(stakeByAddressResult).toBe(parseUnits('50', 18))
129
129
  })
130
130
  }, 10_000)
@@ -68,8 +68,8 @@ await (await erc20ContractPerson1.approve(xyoChainContractAddress, parseUnits('1
68
68
  // Stake Chain Contract
69
69
  const address = assertEx(asAddress(xyoChainContractAddress))
70
70
  const xyoChainPerson1 = await EvmChainService.create({ id: address, runner: ethWalletPerson1 as ContractRunner })
71
- await xyoChainPerson1.addStake(await ethWalletPerson1.getAddress(), parseUnits('50', 18))
71
+ await xyoChainPerson1.addStake(asAddress(await ethWalletPerson1.getAddress(), true), parseUnits('50', 18))
72
72
 
73
73
  // Read Stake
74
- const stakeByAddressResult = await xyoChainPerson0.activeByAddressStaked(await ethWalletPerson1.getAddress())
74
+ const stakeByAddressResult = await xyoChainPerson0.activeByAddressStaked(asAddress(await ethWalletPerson1.getAddress(), true))
75
75
  console.log('Stake By Address:', stakeByAddressResult.toString())