@xyo-network/chain-sdk 1.5.29 → 1.5.31
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 +31 -31
- package/src/test/evm/setup.ts +3 -2
- package/knip.config.ts +0 -15
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.5.
|
|
4
|
+
"version": "1.5.31",
|
|
5
5
|
"description": "XYO Layer One SDK",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -49,41 +49,41 @@
|
|
|
49
49
|
"deploy3": "echo Deploy3 not allowed!"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@xylabs/assert": "^4.11.
|
|
53
|
-
"@xylabs/delay": "^4.11.
|
|
54
|
-
"@xylabs/hex": "^4.11.
|
|
55
|
-
"@xyo-network/account": "^3.18.
|
|
56
|
-
"@xyo-network/account-model": "^3.18.
|
|
57
|
-
"@xyo-network/chain-ethereum": "^1.5.
|
|
58
|
-
"@xyo-network/chain-modules": "^1.5.
|
|
59
|
-
"@xyo-network/chain-orchestration": "^1.5.
|
|
60
|
-
"@xyo-network/chain-protocol": "^1.5.
|
|
61
|
-
"@xyo-network/chain-services": "^1.5.
|
|
62
|
-
"@xyo-network/chain-utils": "^1.5.
|
|
63
|
-
"@xyo-network/chain-validation": "^1.5.
|
|
64
|
-
"@xyo-network/payload-builder": "^3.18.
|
|
52
|
+
"@xylabs/assert": "^4.11.20",
|
|
53
|
+
"@xylabs/delay": "^4.11.20",
|
|
54
|
+
"@xylabs/hex": "^4.11.20",
|
|
55
|
+
"@xyo-network/account": "^3.18.8",
|
|
56
|
+
"@xyo-network/account-model": "^3.18.8",
|
|
57
|
+
"@xyo-network/chain-ethereum": "^1.5.31",
|
|
58
|
+
"@xyo-network/chain-modules": "^1.5.31",
|
|
59
|
+
"@xyo-network/chain-orchestration": "^1.5.31",
|
|
60
|
+
"@xyo-network/chain-protocol": "^1.5.31",
|
|
61
|
+
"@xyo-network/chain-services": "^1.5.31",
|
|
62
|
+
"@xyo-network/chain-utils": "^1.5.31",
|
|
63
|
+
"@xyo-network/chain-validation": "^1.5.31",
|
|
64
|
+
"@xyo-network/payload-builder": "^3.18.8",
|
|
65
65
|
"@xyo-network/typechain": "^3.5.4",
|
|
66
|
-
"@xyo-network/wallet-model": "^3.18.
|
|
67
|
-
"@xyo-network/xl1-protocol": "^1.4.
|
|
68
|
-
"@xyo-network/xl1-protocol-sdk": "^1.5.
|
|
69
|
-
"ethers": "6.14.
|
|
66
|
+
"@xyo-network/wallet-model": "^3.18.8",
|
|
67
|
+
"@xyo-network/xl1-protocol": "^1.4.33",
|
|
68
|
+
"@xyo-network/xl1-protocol-sdk": "^1.5.31",
|
|
69
|
+
"ethers": "6.14.4"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@types/node": "^
|
|
73
|
-
"@xylabs/decimal-precision": "^4.11.
|
|
74
|
-
"@xylabs/delay": "^4.11.
|
|
72
|
+
"@types/node": "^24.0.1",
|
|
73
|
+
"@xylabs/decimal-precision": "^4.11.20",
|
|
74
|
+
"@xylabs/delay": "^4.11.20",
|
|
75
75
|
"@xylabs/ts-scripts-yarn3": "^6.5.8",
|
|
76
76
|
"@xylabs/tsconfig": "^6.5.8",
|
|
77
|
-
"@xyo-network/account": "^3.18.
|
|
78
|
-
"@xyo-network/account-model": "^3.18.
|
|
79
|
-
"@xyo-network/archivist-memory": "^3.18.
|
|
80
|
-
"@xyo-network/archivist-model": "^3.18.
|
|
81
|
-
"@xyo-network/boundwitness-builder": "^3.18.
|
|
82
|
-
"@xyo-network/chain-analyze": "^1.5.
|
|
83
|
-
"@xyo-network/payload-model": "^3.18.
|
|
84
|
-
"@xyo-network/wallet": "^3.18.
|
|
85
|
-
"eslint": "^9.
|
|
86
|
-
"knip": "^5.
|
|
77
|
+
"@xyo-network/account": "^3.18.8",
|
|
78
|
+
"@xyo-network/account-model": "^3.18.8",
|
|
79
|
+
"@xyo-network/archivist-memory": "^3.18.8",
|
|
80
|
+
"@xyo-network/archivist-model": "^3.18.8",
|
|
81
|
+
"@xyo-network/boundwitness-builder": "^3.18.8",
|
|
82
|
+
"@xyo-network/chain-analyze": "^1.5.31",
|
|
83
|
+
"@xyo-network/payload-model": "^3.18.8",
|
|
84
|
+
"@xyo-network/wallet": "^3.18.8",
|
|
85
|
+
"eslint": "^9.29.0",
|
|
86
|
+
"knip": "^5.61.0",
|
|
87
87
|
"typescript": "^5.8.3",
|
|
88
88
|
"vitest": "^3.2.3"
|
|
89
89
|
},
|
package/src/test/evm/setup.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { EvmChainService } from '@xyo-network/chain-services'
|
|
|
5
5
|
import { XYO_ZERO_ADDRESS } from '@xyo-network/chain-utils'
|
|
6
6
|
import { BurnableErc20__factory as Erc20Factory, StakedXyoChain__factory as StakedXyoChainFactory } from '@xyo-network/typechain'
|
|
7
7
|
import { HDWallet } from '@xyo-network/wallet'
|
|
8
|
+
import type { ContractRunner } from 'ethers/providers'
|
|
8
9
|
import { JsonRpcProvider } from 'ethers/providers'
|
|
9
10
|
import { parseUnits } from 'ethers/utils'
|
|
10
11
|
import { Wallet } from 'ethers/wallet'
|
|
@@ -30,7 +31,7 @@ const account1 = await walletPerson.derivePath("m/44'/60'/0'/0/1")
|
|
|
30
31
|
const provider0 = new JsonRpcProvider(`http://127.0.0.1:${ganachePort}`, 1337)
|
|
31
32
|
const ethWalletPerson0 = new Wallet(account0.privateKey, provider0)
|
|
32
33
|
const provider1 = new JsonRpcProvider(`http://127.0.0.1:${ganachePort}`, 1337)
|
|
33
|
-
const ethWalletPerson1 = new Wallet(account1.privateKey, provider1)
|
|
34
|
+
const ethWalletPerson1: Wallet = new Wallet(account1.privateKey, provider1)
|
|
34
35
|
|
|
35
36
|
const erc20 = new Erc20Factory(ethWalletPerson0)
|
|
36
37
|
const erc20Contract = await (await erc20.deploy('Test Token', 'TST', parseUnits('1000000', 18), gasConfig())).waitForDeployment()
|
|
@@ -66,7 +67,7 @@ await (await erc20ContractPerson1.approve(xyoChainContractAddress, parseUnits('1
|
|
|
66
67
|
|
|
67
68
|
// Stake Chain Contract
|
|
68
69
|
const address = assertEx(asAddress(xyoChainContractAddress))
|
|
69
|
-
const xyoChainPerson1 = await EvmChainService.create({ id: address, runner: ethWalletPerson1 })
|
|
70
|
+
const xyoChainPerson1 = await EvmChainService.create({ id: address, runner: ethWalletPerson1 as ContractRunner })
|
|
70
71
|
await xyoChainPerson1.addStake(await ethWalletPerson1.getAddress(), parseUnits('50', 18))
|
|
71
72
|
|
|
72
73
|
// Read Stake
|
package/knip.config.ts
DELETED