/
common.go
51 lines (43 loc) · 1.34 KB
/
common.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
package contracts
// DirectCallGasTestConfig is configuration for direct call tests
type DirectCallGasTestConfig struct {
GasUsedByParent uint64
GasUsedByChild uint64
GasProvidedToChild uint64
GasProvided uint64
ParentBalance int64
ChildBalance int64
ESDTTokensToTransfer uint64
}
// AsyncCallBaseTestConfig is base configuration for async call tests
type AsyncCallBaseTestConfig struct {
GasProvided uint64
GasUsedByParent uint64
GasUsedByChild uint64
GasUsedByCallback uint64
GasLockCost uint64
TransferFromParentToChild int64
ParentBalance int64
ChildBalance int64
}
// AsyncCallTestConfig is configuration for async call tests
type AsyncCallTestConfig struct {
AsyncCallBaseTestConfig
TransferToThirdParty int64
TransferToVault int64
}
// AsyncBuiltInCallTestConfig is configuration for async call tests of builtin functions
type AsyncBuiltInCallTestConfig struct {
AsyncCallBaseTestConfig
TransferFromChildToParent int64
}
// AsyncCallRecursiveTestConfig is configuration for recursive async call tests
type AsyncCallRecursiveTestConfig struct {
AsyncCallBaseTestConfig
RecursiveChildCalls int
}
// AsyncCallMultiChildTestConfig is configuration for recursivemultiple children async call tests
type AsyncCallMultiChildTestConfig struct {
AsyncCallBaseTestConfig
ChildCalls int
}