-
Notifications
You must be signed in to change notification settings - Fork 17
/
typedef.go
32 lines (29 loc) · 919 Bytes
/
typedef.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
// Copyright (c) 2019 IoTeX
// This is an alpha (internal) release and is not suitable for production. This source code is provided 'as is' and no
// warranties are given as to title or non-infringement, merchantability or fitness for purpose and, to the extent
// permitted by law, all liability for your use of the code is disclaimed. This source code is governed by Apache
// License 2.0 that can be found in the LICENSE file.
package iotx
// TransferRequest defines transfer request parameters
type TransferRequest struct {
From string
To string
Value string
Payload string
GasLimit string
GasPrice string
}
// ContractRequest defines contract request parameters
type ContractRequest struct {
// contract address
Address string
From string
Amount string
// for execute method
Method string
// contract bytecode
Data string
Abi string
GasLimit string
GasPrice string
}