-
Notifications
You must be signed in to change notification settings - Fork 8
/
abi.go
28 lines (24 loc) · 979 Bytes
/
abi.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
package sequence
import (
"github.com/0xsequence/ethkit/ethcoder"
"github.com/0xsequence/ethkit/go-ethereum/accounts/abi"
)
// abiTransactionsType represents abi coder of []Transaction
var abiTransactionsType = ethcoder.MustNewArrayTypeTuple([]abi.ArgumentMarshaling{
{Name: "delegateCall", Type: "bool"},
{Name: "revertOnError", Type: "bool"},
{Name: "gasLimit", Type: "uint256"},
{Name: "target", Type: "address"},
{Name: "value", Type: "uint256"},
{Name: "data", Type: "bytes"},
})
// abiTransactionsDigestType represents abi coder of []Transaction nonce digest pre-image
var abiTransactionsDigestType = abi.Arguments{
abi.Argument{Type: ethcoder.MustNewType("uint256")},
abi.Argument{Type: abiTransactionsType},
}
// abiTransactionsStringDigestType represents abi coder of []Transaction string digest pre-image
var abiTransactionsStringDigestType = abi.Arguments{
abi.Argument{Type: ethcoder.MustNewType("string")},
abi.Argument{Type: abiTransactionsType},
}