-
Notifications
You must be signed in to change notification settings - Fork 0
/
receipt.go
64 lines (50 loc) · 1.48 KB
/
receipt.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//go:generate protoc -I=. -I=$GOPATH/src -I=$GOPATH/src/github.com/Dharitri-org/protobuf/protobuf --gogoslick_out=$GOPATH/src receipt.proto
package receipt
import (
"math/big"
"github.com/Dharitri-org/drtg-core/data"
)
var _ = data.TransactionHandler(&Receipt{})
// IsInterfaceNil verifies if underlying object is nil
func (rpt *Receipt) IsInterfaceNil() bool {
return rpt == nil
}
// GetNonce returns the nonce of the receipt
func (rpt *Receipt) GetNonce() uint64 {
return 0
}
// GetRcvAddr returns the receiver address from the receipt
func (rpt *Receipt) GetRcvAddr() []byte {
return rpt.SndAddr
}
// GetGasLimit returns the gas limit of the receipt
func (rpt *Receipt) GetGasLimit() uint64 {
return 0
}
// GetGasPrice returns the gas price of the receipt
func (rpt *Receipt) GetGasPrice() uint64 {
return 0
}
// SetValue sets the value of the receipt
func (rpt *Receipt) SetValue(value *big.Int) {
rpt.Value = value
}
// SetData sets the data of the receipt
func (rpt *Receipt) SetData(data []byte) {
rpt.Data = data
}
// SetRcvAddr sets the receiver address of the receipt
func (rpt *Receipt) SetRcvAddr(_ []byte) {
}
// SetSndAddr sets the sender address of the receipt
func (rpt *Receipt) SetSndAddr(addr []byte) {
rpt.SndAddr = addr
}
// GetRcvUserName returns the receiver user name from the receipt
func (_ *Receipt) GetRcvUserName() []byte {
return nil
}
// CheckIntegrity checks for not nil fields and negative value
func (rpt *Receipt) CheckIntegrity() error {
return nil
}