@xyo-network/chain-sdk 1.7.19 → 1.8.0
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.
|
|
4
|
+
"version": "1.8.0",
|
|
5
5
|
"description": "XYO Layer One SDK",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -57,43 +57,43 @@
|
|
|
57
57
|
"deploy3": "echo Deploy3 not allowed!"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@xylabs/assert": "
|
|
61
|
-
"@xylabs/delay": "
|
|
62
|
-
"@xylabs/hex": "
|
|
63
|
-
"@xyo-network/account": "
|
|
64
|
-
"@xyo-network/account-model": "
|
|
65
|
-
"@xyo-network/chain-ethereum": "
|
|
66
|
-
"@xyo-network/chain-modules": "
|
|
67
|
-
"@xyo-network/chain-orchestration": "
|
|
68
|
-
"@xyo-network/chain-protocol": "
|
|
69
|
-
"@xyo-network/chain-services": "
|
|
70
|
-
"@xyo-network/chain-utils": "
|
|
71
|
-
"@xyo-network/chain-validation": "
|
|
72
|
-
"@xyo-network/payload-builder": "
|
|
73
|
-
"@xyo-network/typechain": "
|
|
74
|
-
"@xyo-network/wallet-model": "
|
|
75
|
-
"@xyo-network/xl1-protocol": "
|
|
76
|
-
"@xyo-network/xl1-protocol-sdk": "
|
|
60
|
+
"@xylabs/assert": "^4.15.0",
|
|
61
|
+
"@xylabs/delay": "^4.15.0",
|
|
62
|
+
"@xylabs/hex": "^4.15.0",
|
|
63
|
+
"@xyo-network/account": "^4.3.0",
|
|
64
|
+
"@xyo-network/account-model": "^4.3.0",
|
|
65
|
+
"@xyo-network/chain-ethereum": "^1.8.0",
|
|
66
|
+
"@xyo-network/chain-modules": "^1.8.0",
|
|
67
|
+
"@xyo-network/chain-orchestration": "^1.8.0",
|
|
68
|
+
"@xyo-network/chain-protocol": "^1.8.0",
|
|
69
|
+
"@xyo-network/chain-services": "^1.8.0",
|
|
70
|
+
"@xyo-network/chain-utils": "^1.8.0",
|
|
71
|
+
"@xyo-network/chain-validation": "^1.8.0",
|
|
72
|
+
"@xyo-network/payload-builder": "^4.3.0",
|
|
73
|
+
"@xyo-network/typechain": "^3.5.4",
|
|
74
|
+
"@xyo-network/wallet-model": "^4.3.0",
|
|
75
|
+
"@xyo-network/xl1-protocol": "^1.7.33",
|
|
76
|
+
"@xyo-network/xl1-protocol-sdk": "^1.8.0",
|
|
77
77
|
"ethers": "6.15.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@types/node": "
|
|
81
|
-
"@xylabs/decimal-precision": "
|
|
82
|
-
"@xylabs/delay": "
|
|
83
|
-
"@xylabs/ts-scripts-yarn3": "
|
|
84
|
-
"@xylabs/tsconfig": "
|
|
85
|
-
"@xyo-network/account": "
|
|
86
|
-
"@xyo-network/account-model": "
|
|
87
|
-
"@xyo-network/archivist-memory": "
|
|
88
|
-
"@xyo-network/archivist-model": "
|
|
89
|
-
"@xyo-network/boundwitness-builder": "
|
|
90
|
-
"@xyo-network/chain-analyze": "
|
|
91
|
-
"@xyo-network/payload-model": "
|
|
92
|
-
"@xyo-network/wallet": "
|
|
93
|
-
"eslint": "
|
|
94
|
-
"knip": "
|
|
95
|
-
"typescript": "
|
|
96
|
-
"vitest": "
|
|
80
|
+
"@types/node": "^24.1.0",
|
|
81
|
+
"@xylabs/decimal-precision": "^4.15.0",
|
|
82
|
+
"@xylabs/delay": "^4.15.0",
|
|
83
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.1",
|
|
84
|
+
"@xylabs/tsconfig": "^7.0.1",
|
|
85
|
+
"@xyo-network/account": "^4.3.0",
|
|
86
|
+
"@xyo-network/account-model": "^4.3.0",
|
|
87
|
+
"@xyo-network/archivist-memory": "^4.3.0",
|
|
88
|
+
"@xyo-network/archivist-model": "^4.3.0",
|
|
89
|
+
"@xyo-network/boundwitness-builder": "^4.3.0",
|
|
90
|
+
"@xyo-network/chain-analyze": "^1.8.0",
|
|
91
|
+
"@xyo-network/payload-model": "^4.3.0",
|
|
92
|
+
"@xyo-network/wallet": "^4.3.0",
|
|
93
|
+
"eslint": "^9.32.0",
|
|
94
|
+
"knip": "^5.62.0",
|
|
95
|
+
"typescript": "^5.8.3",
|
|
96
|
+
"vitest": "^3.2.4"
|
|
97
97
|
},
|
|
98
98
|
"engineStrict": true,
|
|
99
99
|
"publishConfig": {
|
|
@@ -3,7 +3,9 @@ import type { ChildProcess } from 'node:child_process'
|
|
|
3
3
|
import { assertEx } from '@xylabs/assert'
|
|
4
4
|
import { toFixedPoint } from '@xylabs/decimal-precision'
|
|
5
5
|
import { delay } from '@xylabs/delay'
|
|
6
|
+
import type { Hash } from '@xylabs/hex'
|
|
6
7
|
import { Account } from '@xyo-network/account'
|
|
8
|
+
import type { EthAddress } from '@xyo-network/chain-ethereum'
|
|
7
9
|
import {
|
|
8
10
|
createChainContract, createChainRewardsContract, getDefaultGasConfig,
|
|
9
11
|
} from '@xyo-network/chain-ethereum'
|
|
@@ -54,8 +56,8 @@ describe('EvmBlockRewardService', () => {
|
|
|
54
56
|
provider2 = new JsonRpcProvider(`http://127.0.0.1:${ganachePort}`, 1337)
|
|
55
57
|
ethWalletPerson2 = new Wallet(accountPerson2.privateKey, provider2)
|
|
56
58
|
const rewardsContract = await createChainRewardsContract(ethWalletPerson, genesisReward, getDefaultGasConfig())
|
|
57
|
-
const tokenAddress = '0x01'
|
|
58
|
-
const genesisBlockHash = '0x01'
|
|
59
|
+
const tokenAddress = '0x01' as EthAddress
|
|
60
|
+
const genesisBlockHash = '0x01' as Hash
|
|
59
61
|
const stakeContract = await createChainContract(ethWalletPerson2, tokenAddress, genesisBlockHash, rewardsContract, 1n, getDefaultGasConfig())
|
|
60
62
|
const id = stakeContract
|
|
61
63
|
const account = await Account.random()
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { toAddress } from '@xylabs/hex'
|
|
1
2
|
import { Account } from '@xyo-network/account'
|
|
2
3
|
import type { AccountInstance } from '@xyo-network/account-model'
|
|
3
4
|
import { MemoryArchivist } from '@xyo-network/archivist-memory'
|
|
@@ -13,7 +14,7 @@ import {
|
|
|
13
14
|
describe('RequiredBalanceBlockStateValidator', () => {
|
|
14
15
|
let blockProducer: AccountInstance
|
|
15
16
|
let archivist: MemoryArchivist
|
|
16
|
-
const chainId = 'a82920051db4fcbb804463440dd45e03f72442fd'
|
|
17
|
+
const chainId = toAddress('a82920051db4fcbb804463440dd45e03f72442fd')
|
|
17
18
|
beforeEach(async () => {
|
|
18
19
|
archivist = await MemoryArchivist.create({ account: 'random' })
|
|
19
20
|
blockProducer = await Account.random()
|