1
- import { TonStaker } from '@chorus-one/ton'
1
+ import { TonNominatorPoolStaker } from '@chorus-one/ton'
2
2
import { Address , TupleItem , TupleReader } from '@ton/core'
3
3
import { describe , it } from 'mocha'
4
4
import { use , assert , expect , spy } from 'chai'
@@ -12,7 +12,7 @@ use(spies)
12
12
describe ( 'TonStaker' , ( ) => {
13
13
const delegatorAddress = '0QDsF87nkTYgkvu1z5xveCEGTRnZmEVaVT0gdxoeyaNvmoCr'
14
14
const validatorAddress = 'kf8SWCvzf6eJK4Q0ZOe14PqDdsT5wk0_Ni0wAThL0cVorNVU'
15
- const staker = new TonStaker ( {
15
+ const staker = new TonNominatorPoolStaker ( {
16
16
rpcUrl : 'https://ton.fake.website' ,
17
17
addressDerivationConfig : {
18
18
walletContractVersion : 4 ,
@@ -75,7 +75,7 @@ describe('TonStaker', () => {
75
75
} )
76
76
77
77
it ( 'should generate correct unsigned delegate tx' , async ( ) => {
78
- const { tx } = await staker . buildStakeNominatorPoolTx ( {
78
+ const { tx } = await staker . buildStakeTx ( {
79
79
delegatorAddress,
80
80
validatorAddress,
81
81
amount : '0.5'
@@ -103,7 +103,7 @@ describe('TonStaker', () => {
103
103
const [ amount , expectedAmount , expectedError ] = testData
104
104
105
105
const runTest = async ( amount : string ) : Promise < bigint > => {
106
- const { tx } = await staker . buildStakeNominatorPoolTx ( {
106
+ const { tx } = await staker . buildStakeTx ( {
107
107
delegatorAddress,
108
108
validatorAddress,
109
109
amount
0 commit comments