-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconst.go
39 lines (34 loc) · 1004 Bytes
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package xrp
import "github.com/mr-tron/base58"
type Account string
type Amount string
type TxType uint16
const HardenedKeyZeroIndex = uint32(0x80000000)
var (
RippleAlphabet = base58.NewAlphabet("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz")
)
const (
TypePayment TxType = 0
TypeEscrowCreate TxType = 1
TypeEscrowFinish TxType = 2
TypeAccountSet TxType = 3
TypeEscrowCancel TxType = 4
TypeRegularKeySet TxType = 5
TypeNicknameSet TxType = 6
TypeOfferCreate TxType = 7
TypeOfferCancel TxType = 8
TypeTicketCreate TxType = 10
TypeTicketCancel TxType = 11
TypeSignerListSet TxType = 12
TypePaychanCreate TxType = 13
TypePaychanFund TxType = 14
TypePaychanClaim TxType = 15
TypeCheckCreate TxType = 16
TypeCheckCash TxType = 17
TypeCheckCancel TxType = 18
TypeDepositPreauth TxType = 19
TypeTrustSet TxType = 20
TypeAccountDelete TxType = 21
TypeAmendment TxType = 100
TypeFee TxType = 101
)