mirror of
https://github.com/alexgo-io/gaze-indexer.git
synced 2026-01-12 08:34:28 +08:00
* feat: recover nodesale module. * fix: refactored. * fix: fix table type. * fix: add entity * fix: bug UTC time. * ci: try to tidy before testing * ci: touch result file * ci: use echo to create new file * fix: try to skip test in ci * fix: remove os.Exit * fix: handle error * feat: add todo note * fix: Cannot run nodesale test because qtx is not initiated. * fix: 50% chance public key compare incorrectly. * fix: more consistent SQL * fix: sanity refactor. * fix: remove unused code. * fix: move last_block_default to config file. * fix: minor mistakes. * fix: * fix: refactor * fix: refactor * fix: delegate tx hash not record into db. * refactor: prepare for moving integration tests. * refactor: convert to unit tests. * fix: change to using input values since output values deducted fee. * feat: add extra unit test. * fix: wrong timestamp format. * fix: handle block timeout = 0 --------- Co-authored-by: Gaze <gazenw@users.noreply.github.com>
18 lines
773 B
Go
18 lines
773 B
Go
package purchase
|
|
|
|
const (
|
|
DEPLOYID_NOT_FOUND = "Depoloy ID not found."
|
|
PURCHASE_TIMEOUT = "Purchase timeout."
|
|
BLOCK_HEIGHT_TIMEOUT = "Block height over timeout block"
|
|
INVALID_SIGNATURE_FORMAT = "Cannot parse signature."
|
|
INVALID_SIGNATURE = "Invalid Signature."
|
|
INVALID_TIER_JSON = "Invalid Tier format"
|
|
INVALID_NODE_ID = "Invalid NodeId."
|
|
NODE_ALREADY_PURCHASED = "Some node has been purchased."
|
|
INVALID_SELLER_ADDR_FORMAT = "Invalid seller address."
|
|
INVALID_PAYMENT = "Total amount paid less than reported price"
|
|
INSUFFICIENT_FUND = "Insufficient fund"
|
|
OVER_LIMIT_PER_ADDR = "Purchase over limit per address."
|
|
OVER_LIMIT_PER_TIER = "Purchase over limit per tier."
|
|
)
|