This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
707a377
commit 5dbdd92
Showing
15 changed files
with
186 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package txtypes | ||
|
||
import "fmt" | ||
|
||
var ( | ||
ErrAccountIndexTooLow = fmt.Errorf("AccountIndex should not be less than %d", minAccountIndex) | ||
ErrAccountIndexTooHigh = fmt.Errorf("AccountIndex should not be larger than %d", maxAccountIndex) | ||
ErrGasAccountIndexTooLow = fmt.Errorf("GasAccountIndex should not be less than %d", minAccountIndex) | ||
ErrGasAccountIndexTooHigh = fmt.Errorf("GasAccountIndex should not be larger than %d", maxAccountIndex) | ||
ErrGasFeeAssetIdTooLow = fmt.Errorf("GasFeeAssetId should not be less than %d", minAssetId) | ||
ErrGasFeeAssetIdTooHigh = fmt.Errorf("GasFeeAssetId should not be larger than %d", maxAssetId) | ||
ErrGasFeeAssetAmountTooLow = fmt.Errorf("GasFeeAssetAmount should not be less than %s", minPackedFeeAmount.String()) | ||
ErrGasFeeAssetAmountTooHigh = fmt.Errorf("GasFeeAssetAmount should not be larger than %s", maxPackedFeeAmount.String()) | ||
ErrNonceTooLow = fmt.Errorf("Nonce should not be less than %d", minNonce) | ||
ErrOfferTypeInvalid = fmt.Errorf("Type should only be buy(%d) and sell(%d)", BuyOfferType, SellOfferType) | ||
ErrOfferIdTooLow = fmt.Errorf("OfferId should not be less than 0") | ||
ErrNftIndexTooLow = fmt.Errorf("NftIndex should not be less than %d", minNftIndex) | ||
ErrNftIndexTooHigh = fmt.Errorf("NftIndex should not be larger than %d", maxNftIndex) | ||
ErrAssetIdTooLow = fmt.Errorf("AssetId should not be less than %d", minAssetId) | ||
ErrAssetIdTooHigh = fmt.Errorf("AssetId should not be larger than %d", maxAssetId) | ||
ErrAssetAmountTooLow = fmt.Errorf("AssetAmount should be larger than %s", minAssetAmount.String()) | ||
ErrAssetAmountTooHigh = fmt.Errorf("AssetAmount should not be larger than %s", maxAssetAmount.String()) | ||
ErrListedAtTooLow = fmt.Errorf("ListedAt should be larger than 0") | ||
ErrTreasuryRateTooLow = fmt.Errorf("TreasuryRate should not be less than %d", minTreasuryRate) | ||
ErrTreasuryRateTooHigh = fmt.Errorf("TreasuryRate should not be larger than %d", maxTreasuryRate) | ||
ErrCollectionNameTooShort = fmt.Errorf("length of Name should not be less than %d", minCollectionNameLength) | ||
ErrCollectionNameTooLong = fmt.Errorf("length of Name should not be larger than %d", maxCollectionNameLength) | ||
ErrIntroductionTooLong = fmt.Errorf("length of Introduction should not be larger than %d", maxCollectionIntroductionLength) | ||
ErrNftContentHashInvalid = fmt.Errorf("NftContentHash is invalid") | ||
ErrNftCollectionIdTooLow = fmt.Errorf("NftCollectionId should not be less than %d", minCollectionId) | ||
ErrNftCollectionIdTooHigh = fmt.Errorf("NftCollectionId should not be larger than %d", maxCollectionId) | ||
ErrCallDataHashInvalid = fmt.Errorf("CallDataHash is invalid") | ||
|
||
ErrCreatorAccountIndexTooLow = fmt.Errorf("CreatorAccountIndex should not be less than %d", minAccountIndex) | ||
ErrCreatorAccountIndexTooHigh = fmt.Errorf("CreatorAccountIndex should not be larger than %d", maxAccountIndex) | ||
ErrToAccountIndexTooLow = fmt.Errorf("ToAccountIndex should not be less than %d", minAccountIndex) | ||
ErrToAccountIndexTooHigh = fmt.Errorf("ToAccountIndex should not be larger than %d", maxAccountIndex) | ||
ErrToAccountNameHashInvalid = fmt.Errorf("ToAccountNameHash is invalid") | ||
ErrCreatorTreasuryRateTooLow = fmt.Errorf("CreatorTreasuryRate should not be less than %d", minTreasuryRate) | ||
ErrCreatorTreasuryRateTooHigh = fmt.Errorf("CreatorTreasuryRate should not be larger than %d", maxTreasuryRate) | ||
ErrFromAccountIndexTooLow = fmt.Errorf("FromAccountIndex should not be less than %d", minAccountIndex) | ||
ErrFromAccountIndexTooHigh = fmt.Errorf("FromAccountIndex should not be larger than %d", maxAccountIndex) | ||
ErrToAddressInvalid = fmt.Errorf("ToAddress is invalid") | ||
ErrBuyOfferInvalid = fmt.Errorf("BuyOffer is invalid") | ||
ErrSellOfferInvalid = fmt.Errorf("SellOffer is invalid") | ||
) |
Oops, something went wrong.