Skip to content

Commit

Permalink
Fix package names.
Browse files Browse the repository at this point in the history
  • Loading branch information
irina-pereiaslavskaia committed Jan 18, 2024
1 parent 2a25914 commit c43ddf0
Show file tree
Hide file tree
Showing 10 changed files with 91 additions and 91 deletions.
20 changes: 10 additions & 10 deletions itests/set_asset_script_tx_api_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/wavesplatform/gowaves/itests/testdata"
utl "github.com/wavesplatform/gowaves/itests/utilities"
"github.com/wavesplatform/gowaves/itests/utilities/issue"
"github.com/wavesplatform/gowaves/itests/utilities/set_asset_script"
"github.com/wavesplatform/gowaves/itests/utilities/setassetscript"
"github.com/wavesplatform/gowaves/pkg/crypto"
)

Expand All @@ -19,7 +19,7 @@ type SetAssetScriptApiSuite struct {
}

func (suite *SetAssetScriptApiSuite) Test_SetAssetScriptApiPositive() {
versions := set_asset_script.GetVersions(&suite.BaseSuite)
versions := setassetscript.GetVersions(&suite.BaseSuite)
for _, v := range versions {
smartAsset := testdata.GetCommonIssueData(&suite.BaseSuite).Smart
itx := issue.BroadcastWithTestData(&suite.BaseSuite, smartAsset, v, true)
Expand All @@ -28,18 +28,18 @@ func (suite *SetAssetScriptApiSuite) Test_SetAssetScriptApiPositive() {
caseName := utl.GetTestcaseNameWithVersion(name, v)
suite.Run(caseName, func() {
tx, actualDiffBalanceInWaves, actualDiffBalanceInAsset :=
set_asset_script.BroadcastSetAssetScriptTxAndGetBalances(
setassetscript.BroadcastSetAssetScriptTxAndGetBalances(
&suite.BaseSuite, td, v, true)
errMsg := caseName + "Broadcast Set Asset Script tx: " + tx.TxID.String()
set_asset_script.APIPositiveChecks(suite.T(), tx, td, actualDiffBalanceInWaves,
setassetscript.APIPositiveChecks(suite.T(), tx, td, actualDiffBalanceInWaves,
actualDiffBalanceInAsset, errMsg)
})
}
}
}

func (suite *SetAssetScriptApiSuite) Test_SetAssetScriptApiNegative() {
versions := set_asset_script.GetVersions(&suite.BaseSuite)
versions := setassetscript.GetVersions(&suite.BaseSuite)
txIds := make(map[string]*crypto.Digest)
for _, v := range versions {
smartAsset := testdata.GetCommonIssueData(&suite.BaseSuite).Smart
Expand All @@ -49,11 +49,11 @@ func (suite *SetAssetScriptApiSuite) Test_SetAssetScriptApiNegative() {
caseName := utl.GetTestcaseNameWithVersion(name, v)
suite.Run(caseName, func() {
tx, actualDiffBalanceInWaves, actualDiffBalanceInAsset :=
set_asset_script.BroadcastSetAssetScriptTxAndGetBalances(
setassetscript.BroadcastSetAssetScriptTxAndGetBalances(
&suite.BaseSuite, td, v, false)
txIds[name] = &tx.TxID
errMsg := caseName + "Broadcast Set Asset Script tx: " + tx.TxID.String()
set_asset_script.APINegativeChecks(suite.T(), tx, td, actualDiffBalanceInWaves,
setassetscript.APINegativeChecks(suite.T(), tx, td, actualDiffBalanceInWaves,
actualDiffBalanceInAsset, errMsg)
})
}
Expand All @@ -63,7 +63,7 @@ func (suite *SetAssetScriptApiSuite) Test_SetAssetScriptApiNegative() {
}

func (suite *SetAssetScriptApiSuite) Test_SetScriptForNotScriptedAssetApiNegative() {
versions := set_asset_script.GetVersions(&suite.BaseSuite)
versions := setassetscript.GetVersions(&suite.BaseSuite)
txIds := make(map[string]*crypto.Digest)
for _, v := range versions {
asset := testdata.GetCommonIssueData(&suite.BaseSuite).Reissuable
Expand All @@ -73,11 +73,11 @@ func (suite *SetAssetScriptApiSuite) Test_SetScriptForNotScriptedAssetApiNegativ
caseName := utl.GetTestcaseNameWithVersion(name, v)
suite.Run(caseName, func() {
tx, actualDiffBalanceInWaves, actualDiffBalanceInAsset :=
set_asset_script.BroadcastSetAssetScriptTxAndGetBalances(
setassetscript.BroadcastSetAssetScriptTxAndGetBalances(
&suite.BaseSuite, td, v, false)
txIds[name] = &tx.TxID
errMsg := caseName + "Broadcast Set Asset Script tx: " + tx.TxID.String()
set_asset_script.APINegativeChecks(suite.T(), tx, td, actualDiffBalanceInWaves,
setassetscript.APINegativeChecks(suite.T(), tx, td, actualDiffBalanceInWaves,
actualDiffBalanceInAsset, errMsg)
})
}
Expand Down
20 changes: 10 additions & 10 deletions itests/set_asset_script_tx_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/wavesplatform/gowaves/itests/testdata"
utl "github.com/wavesplatform/gowaves/itests/utilities"
"github.com/wavesplatform/gowaves/itests/utilities/issue"
"github.com/wavesplatform/gowaves/itests/utilities/set_asset_script"
"github.com/wavesplatform/gowaves/itests/utilities/setassetscript"
"github.com/wavesplatform/gowaves/pkg/crypto"
)

Expand All @@ -19,7 +19,7 @@ type SetAssetScriptSuite struct {
}

func (suite *SetAssetScriptSuite) Test_SetAssetScriptPositive() {
versions := set_asset_script.GetVersions(&suite.BaseSuite)
versions := setassetscript.GetVersions(&suite.BaseSuite)
for _, v := range versions {
smartAsset := testdata.GetCommonIssueData(&suite.BaseSuite).Smart
itx := issue.SendWithTestData(&suite.BaseSuite, smartAsset, v, true)
Expand All @@ -28,17 +28,17 @@ func (suite *SetAssetScriptSuite) Test_SetAssetScriptPositive() {
caseName := utl.GetTestcaseNameWithVersion(name, v)
suite.Run(caseName, func() {
tx, actualDiffBalanceInWaves, actualDiffBalanceInAsset :=
set_asset_script.SendSetAssetScriptTxAndGetBalances(&suite.BaseSuite, td, v, true)
setassetscript.SendSetAssetScriptTxAndGetBalances(&suite.BaseSuite, td, v, true)
errMsg := caseName + "Set Asset Script tx: " + tx.TxID.String()
set_asset_script.PositiveChecks(suite.T(), tx, td, actualDiffBalanceInWaves,
setassetscript.PositiveChecks(suite.T(), tx, td, actualDiffBalanceInWaves,
actualDiffBalanceInAsset, errMsg)
})
}
}
}

func (suite *SetAssetScriptSuite) Test_SetAssetScriptNegative() {
versions := set_asset_script.GetVersions(&suite.BaseSuite)
versions := setassetscript.GetVersions(&suite.BaseSuite)
txIds := make(map[string]*crypto.Digest)
for _, v := range versions {
smartAsset := testdata.GetCommonIssueData(&suite.BaseSuite).Smart
Expand All @@ -48,10 +48,10 @@ func (suite *SetAssetScriptSuite) Test_SetAssetScriptNegative() {
caseName := utl.GetTestcaseNameWithVersion(name, v)
suite.Run(caseName, func() {
tx, actualDiffBalanceInWaves, actualDiffBalanceInAsset :=
set_asset_script.SendSetAssetScriptTxAndGetBalances(&suite.BaseSuite, td, v, false)
setassetscript.SendSetAssetScriptTxAndGetBalances(&suite.BaseSuite, td, v, false)
errMsg := caseName + "Set Asset Script tx: " + tx.TxID.String()
txIds[name] = &tx.TxID
set_asset_script.NegativeChecks(suite.T(), tx, td, actualDiffBalanceInWaves,
setassetscript.NegativeChecks(suite.T(), tx, td, actualDiffBalanceInWaves,
actualDiffBalanceInAsset, errMsg)
})
}
Expand All @@ -61,7 +61,7 @@ func (suite *SetAssetScriptSuite) Test_SetAssetScriptNegative() {
}

func (suite *SetAssetScriptSuite) Test_SetScriptForNotScriptedAssetNegative() {
versions := set_asset_script.GetVersions(&suite.BaseSuite)
versions := setassetscript.GetVersions(&suite.BaseSuite)
txIds := make(map[string]*crypto.Digest)
for _, v := range versions {
asset := testdata.GetCommonIssueData(&suite.BaseSuite).Reissuable
Expand All @@ -71,10 +71,10 @@ func (suite *SetAssetScriptSuite) Test_SetScriptForNotScriptedAssetNegative() {
caseName := utl.GetTestcaseNameWithVersion(name, v)
suite.Run(caseName, func() {
tx, actualDiffBalanceInWaves, actualDiffBalanceInAsset :=
set_asset_script.SendSetAssetScriptTxAndGetBalances(&suite.BaseSuite, td, v, false)
setassetscript.SendSetAssetScriptTxAndGetBalances(&suite.BaseSuite, td, v, false)
errMsg := caseName + "Set Asset Script tx: " + tx.TxID.String()
txIds[name] = &tx.TxID
set_asset_script.NegativeChecks(suite.T(), tx, td, actualDiffBalanceInWaves, actualDiffBalanceInAsset, errMsg)
setassetscript.NegativeChecks(suite.T(), tx, td, actualDiffBalanceInWaves, actualDiffBalanceInAsset, errMsg)
})
}
actualTxIds := utl.GetTxIdsInBlockchain(&suite.BaseSuite, txIds)
Expand Down
20 changes: 10 additions & 10 deletions itests/smoke_tx_api_positive_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"github.com/wavesplatform/gowaves/itests/utilities/burn"
"github.com/wavesplatform/gowaves/itests/utilities/issue"
"github.com/wavesplatform/gowaves/itests/utilities/reissue"
"github.com/wavesplatform/gowaves/itests/utilities/set_asset_script"
"github.com/wavesplatform/gowaves/itests/utilities/setassetscript"
"github.com/wavesplatform/gowaves/itests/utilities/sponsorship"
"github.com/wavesplatform/gowaves/itests/utilities/transfer"
"github.com/wavesplatform/gowaves/itests/utilities/update_asset_info"
"github.com/wavesplatform/gowaves/itests/utilities/updateassetinfo"
"golang.org/x/exp/maps"
)

Expand Down Expand Up @@ -110,10 +110,10 @@ func (suite *SmokeTxApiPositiveSuite) Test_SetAssetScriptApiSmokePositive() {
caseName := utl.GetTestcaseNameWithVersion(name, v)
suite.Run(caseName, func() {
tx, actualDiffBalanceInWaves, actualDiffBalanceInAsset :=
set_asset_script.BroadcastSetAssetScriptTxAndGetBalances(
setassetscript.BroadcastSetAssetScriptTxAndGetBalances(
&suite.BaseSuite, td, v, true)
errMsg := caseName + "Broadcast Set Asset Script tx: " + tx.TxID.String()
set_asset_script.APIPositiveChecks(suite.T(), tx, td, actualDiffBalanceInWaves,
setassetscript.APIPositiveChecks(suite.T(), tx, td, actualDiffBalanceInWaves,
actualDiffBalanceInAsset, errMsg)
})
}
Expand Down Expand Up @@ -264,11 +264,11 @@ func (suite *SmokeTxApiPositiveSuite) TestUpdateAssetInfoTxApiReissuableTokenSmo
caseName := utl.GetTestcaseNameWithVersion(name, v)
suite.Run(caseName, func() {
tx, actualDiffBalanceInWaves, actualDiffBalanceInAsset :=
update_asset_info.BroadcastUpdateAssetInfoTxAndGetDiffBalances(
updateassetinfo.BroadcastUpdateAssetInfoTxAndGetDiffBalances(
&suite.BaseSuite, td, v, true)
errMsg := caseName + "Broadcast Update Asset Info tx: " + tx.TxID.String()
assetDetails := utl.GetAssetInfoGrpc(&suite.BaseSuite, td.AssetID)
update_asset_info.PositiveAPIChecks(suite.T(), tx, td, actualDiffBalanceInWaves, actualDiffBalanceInAsset,
updateassetinfo.PositiveAPIChecks(suite.T(), tx, td, actualDiffBalanceInWaves, actualDiffBalanceInAsset,
assetDetails, errMsg)
})
}
Expand All @@ -285,11 +285,11 @@ func (suite *SmokeTxApiPositiveSuite) TestUpdateAssetInfoTxApiNFTSmokePositive()
caseName := utl.GetTestcaseNameWithVersion(name, v)
suite.Run(caseName, func() {
tx, actualDiffBalanceInWaves, actualDiffBalanceInAsset :=
update_asset_info.BroadcastUpdateAssetInfoTxAndGetDiffBalances(
updateassetinfo.BroadcastUpdateAssetInfoTxAndGetDiffBalances(
&suite.BaseSuite, td, v, true)
errMsg := caseName + "Broadcast Update Asset Info tx: " + tx.TxID.String()
assetDetails := utl.GetAssetInfoGrpc(&suite.BaseSuite, td.AssetID)
update_asset_info.PositiveAPIChecks(suite.T(), tx, td, actualDiffBalanceInWaves, actualDiffBalanceInAsset,
updateassetinfo.PositiveAPIChecks(suite.T(), tx, td, actualDiffBalanceInWaves, actualDiffBalanceInAsset,
assetDetails, errMsg)
})
}
Expand All @@ -306,11 +306,11 @@ func (suite *SmokeTxApiPositiveSuite) TestUpdateAssetInfoTxApiSmartAssetSmokePos
caseName := utl.GetTestcaseNameWithVersion(name, v)
suite.Run(caseName, func() {
tx, actualDiffBalanceInWaves, actualDiffBalanceInAsset :=
update_asset_info.BroadcastUpdateAssetInfoTxAndGetDiffBalances(
updateassetinfo.BroadcastUpdateAssetInfoTxAndGetDiffBalances(
&suite.BaseSuite, td, v, true)
errMsg := caseName + "Broadcast Update Asset Info tx: " + tx.TxID.String()
assetDetails := utl.GetAssetInfoGrpc(&suite.BaseSuite, td.AssetID)
update_asset_info.PositiveAPIChecks(suite.T(), tx, td, actualDiffBalanceInWaves, actualDiffBalanceInAsset,
updateassetinfo.PositiveAPIChecks(suite.T(), tx, td, actualDiffBalanceInWaves, actualDiffBalanceInAsset,
assetDetails, errMsg)
})
}
Expand Down
20 changes: 10 additions & 10 deletions itests/smoke_tx_positive_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"github.com/wavesplatform/gowaves/itests/utilities/burn"
"github.com/wavesplatform/gowaves/itests/utilities/issue"
"github.com/wavesplatform/gowaves/itests/utilities/reissue"
"github.com/wavesplatform/gowaves/itests/utilities/set_asset_script"
"github.com/wavesplatform/gowaves/itests/utilities/setassetscript"
"github.com/wavesplatform/gowaves/itests/utilities/sponsorship"
"github.com/wavesplatform/gowaves/itests/utilities/transfer"
"github.com/wavesplatform/gowaves/itests/utilities/update_asset_info"
"github.com/wavesplatform/gowaves/itests/utilities/updateassetinfo"
"golang.org/x/exp/maps"
)

Expand Down Expand Up @@ -110,9 +110,9 @@ func (suite *SmokeTxPositiveSuite) Test_SetAssetScriptSmokePositive() {
caseName := utl.GetTestcaseNameWithVersion(name, v)
suite.Run(caseName, func() {
tx, actualDiffBalanceInWaves, actualDiffBalanceInAsset :=
set_asset_script.SendSetAssetScriptTxAndGetBalances(&suite.BaseSuite, td, v, true)
setassetscript.SendSetAssetScriptTxAndGetBalances(&suite.BaseSuite, td, v, true)
errMsg := caseName + "Set Asset Script tx: " + tx.TxID.String()
set_asset_script.PositiveChecks(suite.T(), tx, td, actualDiffBalanceInWaves,
setassetscript.PositiveChecks(suite.T(), tx, td, actualDiffBalanceInWaves,
actualDiffBalanceInAsset, errMsg)
})
}
Expand Down Expand Up @@ -264,10 +264,10 @@ func (suite *SmokeTxPositiveSuite) TestUpdateAssetInfoTxReissuableTokenSmokePosi
caseName := utl.GetTestcaseNameWithVersion(name, v)
suite.Run(caseName, func() {
tx, actualDiffBalanceInWaves, actualDiffBalanceInAsset :=
update_asset_info.SendUpdateAssetInfoTxAndGetDiffBalances(&suite.BaseSuite, td, v, true)
updateassetinfo.SendUpdateAssetInfoTxAndGetDiffBalances(&suite.BaseSuite, td, v, true)
errMsg := caseName + "Updating Asset Info tx: " + tx.TxID.String()
assetDetails := utl.GetAssetInfoGrpc(&suite.BaseSuite, td.AssetID)
update_asset_info.PositiveChecks(suite.T(), tx, td, actualDiffBalanceInWaves, actualDiffBalanceInAsset,
updateassetinfo.PositiveChecks(suite.T(), tx, td, actualDiffBalanceInWaves, actualDiffBalanceInAsset,
assetDetails, errMsg)
})
}
Expand All @@ -284,10 +284,10 @@ func (suite *SmokeTxPositiveSuite) TestUpdateAssetInfoTxNFTSmokePositive() {
caseName := utl.GetTestcaseNameWithVersion(name, v)
suite.Run(caseName, func() {
tx, actualDiffBalanceInWaves, actualDiffBalanceInAsset :=
update_asset_info.SendUpdateAssetInfoTxAndGetDiffBalances(&suite.BaseSuite, td, v, true)
updateassetinfo.SendUpdateAssetInfoTxAndGetDiffBalances(&suite.BaseSuite, td, v, true)
errMsg := caseName + "Updating Asset Info tx: " + tx.TxID.String()
assetDetails := utl.GetAssetInfoGrpc(&suite.BaseSuite, td.AssetID)
update_asset_info.PositiveChecks(suite.T(), tx, td, actualDiffBalanceInWaves, actualDiffBalanceInAsset,
updateassetinfo.PositiveChecks(suite.T(), tx, td, actualDiffBalanceInWaves, actualDiffBalanceInAsset,
assetDetails, errMsg)
})
}
Expand All @@ -304,10 +304,10 @@ func (suite *SmokeTxPositiveSuite) TestUpdateAssetInfoTxSmartAssetSmokePositive(
caseName := utl.GetTestcaseNameWithVersion(name, v)
suite.Run(caseName, func() {
tx, actualDiffBalanceInWaves, actualDiffBalanceInAsset :=
update_asset_info.SendUpdateAssetInfoTxAndGetDiffBalances(&suite.BaseSuite, td, v, true)
updateassetinfo.SendUpdateAssetInfoTxAndGetDiffBalances(&suite.BaseSuite, td, v, true)
errMsg := caseName + "Updating Asset Info tx: " + tx.TxID.String()
assetDetails := utl.GetAssetInfoGrpc(&suite.BaseSuite, td.AssetID)
update_asset_info.PositiveChecks(suite.T(), tx, td, actualDiffBalanceInWaves, actualDiffBalanceInAsset,
updateassetinfo.PositiveChecks(suite.T(), tx, td, actualDiffBalanceInWaves, actualDiffBalanceInAsset,
assetDetails, errMsg)
})
}
Expand Down
4 changes: 2 additions & 2 deletions itests/testdata/update_asset_info_testdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ func GetUpdateAssetInfoNegativeDataMatrix(suite *f.BaseSuite, assetID crypto.Dig
WavesDiffBalance: 0,
AssetDiffBalance: 0,
}),
"Try to update_asset_info asset info from other account": NewUpdateAssetInfoTestData(
"Try to updateassetinfo asset info from other account": NewUpdateAssetInfoTestData(
utl.GetAccount(suite, utl.DefaultRecipientNotMiner),
assetID,
utl.RandStringBytes(10, utl.CommonSymbolSet),
Expand Down Expand Up @@ -613,7 +613,7 @@ func GetUpdateSmartAssetInfoNegativeDataMatrix(suite *f.BaseSuite, assetID crypt
WavesDiffBalance: 0,
AssetDiffBalance: 0,
}),
"Try to update_asset_info asset info from other account": NewUpdateAssetInfoTestData(
"Try to updateassetinfo asset info from other account": NewUpdateAssetInfoTestData(
utl.GetAccount(suite, utl.DefaultRecipientNotMiner),
assetID,
utl.RandStringBytes(10, utl.CommonSymbolSet),
Expand Down
Loading

0 comments on commit c43ddf0

Please sign in to comment.