/
exec_local.go
50 lines (39 loc) · 2.44 KB
/
exec_local.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
package executor
import (
"github.com/33cn/chain33/types"
zt "github.com/33cn/plugin/plugin/dapp/zksync/types"
)
//ExecLocal_Deposit asset withdraw local db process
func (z *zksync) ExecLocal_Deposit(payload *zt.ZkDeposit, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error) {
return z.execAutoLocalZksync(tx, receiptData, index)
}
//ExecLocal_Withdraw asset withdraw local db process
func (z *zksync) ExecLocal_Withdraw(payload *zt.ZkWithdraw, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error) {
return z.execAutoLocalZksync(tx, receiptData, index)
}
// ExecLocal_Transfer asset transfer local db process
func (z *zksync) ExecLocal_ContractToTree(payload *zt.ZkContractToTree, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error) {
return z.execAutoLocalZksync(tx, receiptData, index)
}
//ExecLocal_Authorize asset withdraw local db process
func (z *zksync) ExecLocal_TreeToContract(payload *zt.ZkTreeToContract, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error) {
return z.execAutoLocalZksync(tx, receiptData, index)
}
func (z *zksync) ExecLocal_Transfer(payload *zt.ZkTransfer, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error) {
return z.execAutoLocalZksync(tx, receiptData, index)
}
func (z *zksync) ExecLocal_TransferToNew(payload *zt.ZkTransferToNew, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error) {
return z.execAutoLocalZksync(tx, receiptData, index)
}
func (z *zksync) ExecLocal_ForceExit(payload *zt.ZkForceExit, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error) {
return z.execAutoLocalZksync(tx, receiptData, index)
}
func (z *zksync) ExecLocal_SetPubKey(payload *zt.ZkSetPubKey, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error) {
return z.execAutoLocalZksync(tx, receiptData, index)
}
func (z *zksync) ExecLocal_FullExit(payload *zt.ZkFullExit, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error) {
return z.execAutoLocalZksync(tx, receiptData, index)
}
func (z *zksync) ExecLocal_CommitProof(payload *zt.ZkCommitProof, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error) {
return z.execCommitProofLocal(payload, tx, receiptData, index)
}