99 "sort"
1010 "strings"
1111
12- "github.com/ethereum/go-ethereum/common"
13-
1412 "github.com/ethereum/go-ethereum/accounts/abi"
13+ "github.com/ethereum/go-ethereum/common"
1514 "golang.org/x/crypto/blake2b"
1615
1716 "github.com/iotaledger/hive.go/serializer/v2"
@@ -705,12 +704,12 @@ func (oih OutputIDHex) AsUTXOInput() (*UTXOInput, error) {
705704type OutputsSyntacticalValidationFunc func (index int , output Output ) error
706705
707706// OutputsSyntacticalDepositAmount returns an OutputsSyntacticalValidationFunc which checks that:
708- // - every output deposits more than zero
709- // - every output deposits less than the total supply
710- // - the sum of deposits does not exceed the total supply
711- // - the deposit fulfills the minimum storage deposit as calculated from the virtual byte cost of the output
712- // - if the output contains a StorageDepositReturnUnlockCondition, it must "return" bigger equal than the minimum storage deposit
713- // required for the sender to send back the tokens.
707+ // - every output deposits more than zero
708+ // - every output deposits less than the total supply
709+ // - the sum of deposits does not exceed the total supply
710+ // - the deposit fulfills the minimum storage deposit as calculated from the virtual byte cost of the output
711+ // - if the output contains a StorageDepositReturnUnlockCondition, it must "return" bigger equal than the minimum storage deposit
712+ // required for the sender to send back the tokens.
714713func OutputsSyntacticalDepositAmount (protoParas * ProtocolParameters ) OutputsSyntacticalValidationFunc {
715714 var sum uint64
716715 return func (index int , output Output ) error {
@@ -747,8 +746,8 @@ func OutputsSyntacticalDepositAmount(protoParas *ProtocolParameters) OutputsSynt
747746}
748747
749748// OutputsSyntacticalNativeTokens returns an OutputsSyntacticalValidationFunc which checks that:
750- // - the sum of native tokens count across all outputs does not exceed MaxNativeTokensCount
751- // - each native token holds an amount bigger than zero
749+ // - the sum of native tokens count across all outputs does not exceed MaxNativeTokensCount
750+ // - each native token holds an amount bigger than zero
752751func OutputsSyntacticalNativeTokens () OutputsSyntacticalValidationFunc {
753752 var nativeTokensCount int
754753 return func (index int , output Output ) error {
@@ -790,8 +789,8 @@ func OutputsSyntacticalExpirationAndTimelock() OutputsSyntacticalValidationFunc
790789}
791790
792791// OutputsSyntacticalAlias returns an OutputsSyntacticalValidationFunc which checks that AliasOutput(s)':
793- // - StateIndex/FoundryCounter are zero if the AliasID is zeroed
794- // - StateController and GovernanceController must be different from AliasAddress derived from AliasID
792+ // - StateIndex/FoundryCounter are zero if the AliasID is zeroed
793+ // - StateController and GovernanceController must be different from AliasAddress derived from AliasID
795794func OutputsSyntacticalAlias () OutputsSyntacticalValidationFunc {
796795 return func (index int , output Output ) error {
797796 aliasOutput , is := output .(* AliasOutput )
@@ -823,8 +822,8 @@ func OutputsSyntacticalAlias() OutputsSyntacticalValidationFunc {
823822}
824823
825824// OutputsSyntacticalFoundry returns an OutputsSyntacticalValidationFunc which checks that FoundryOutput(s)':
826- // - Minted and melted supply is less equal MaximumSupply
827- // - MaximumSupply is not zero
825+ // - Minted and melted supply is less equal MaximumSupply
826+ // - MaximumSupply is not zero
828827func OutputsSyntacticalFoundry () OutputsSyntacticalValidationFunc {
829828 return func (index int , output Output ) error {
830829 foundryOutput , is := output .(* FoundryOutput )
@@ -841,7 +840,7 @@ func OutputsSyntacticalFoundry() OutputsSyntacticalValidationFunc {
841840}
842841
843842// OutputsSyntacticalNFT returns an OutputsSyntacticalValidationFunc which checks that NFTOutput(s)':
844- // - Address must be different from NFTAddress derived from NFTID
843+ // - Address must be different from NFTAddress derived from NFTID
845844func OutputsSyntacticalNFT () OutputsSyntacticalValidationFunc {
846845 return func (index int , output Output ) error {
847846 nftOutput , is := output .(* NFTOutput )
0 commit comments