transaction: drop AgencyType and VotingType

I have no idea what are they about.
This commit is contained in:
Roman Khimov 2020-04-16 14:44:46 +03:00
parent 4912e4f425
commit 40991d3be3

View file

@ -15,11 +15,9 @@ const (
IssueType TXType = 0x01 IssueType TXType = 0x01
ClaimType TXType = 0x02 ClaimType TXType = 0x02
EnrollmentType TXType = 0x20 EnrollmentType TXType = 0x20
VotingType TXType = 0x24
RegisterType TXType = 0x40 RegisterType TXType = 0x40
ContractType TXType = 0x80 ContractType TXType = 0x80
StateType TXType = 0x90 StateType TXType = 0x90
AgencyType TXType = 0xb0
InvocationType TXType = 0xd1 InvocationType TXType = 0xd1
) )
@ -34,16 +32,12 @@ func (t TXType) String() string {
return "ClaimTransaction" return "ClaimTransaction"
case EnrollmentType: case EnrollmentType:
return "EnrollmentTransaction" return "EnrollmentTransaction"
case VotingType:
return "VotingTransaction"
case RegisterType: case RegisterType:
return "RegisterTransaction" return "RegisterTransaction"
case ContractType: case ContractType:
return "ContractTransaction" return "ContractTransaction"
case StateType: case StateType:
return "StateTransaction" return "StateTransaction"
case AgencyType:
return "AgencyTransaction"
case InvocationType: case InvocationType:
return "InvocationTransaction" return "InvocationTransaction"
default: default:
@ -78,16 +72,12 @@ func TXTypeFromString(jsonString string) (TXType, error) {
return ClaimType, nil return ClaimType, nil
case "EnrollmentTransaction": case "EnrollmentTransaction":
return EnrollmentType, nil return EnrollmentType, nil
case "VotingTransaction":
return VotingType, nil
case "RegisterTransaction": case "RegisterTransaction":
return RegisterType, nil return RegisterType, nil
case "ContractTransaction": case "ContractTransaction":
return ContractType, nil return ContractType, nil
case "StateTransaction": case "StateTransaction":
return StateType, nil return StateType, nil
case "AgencyTransaction":
return AgencyType, nil
case "InvocationTransaction": case "InvocationTransaction":
return InvocationType, nil return InvocationType, nil
default: default: