Add methods to DAppChainClient interface for committing call/deploy txs
package loomplugin
+type VMType int32
+
+const (
+ VMType_PLUGIN VMType = 0
+ VMType_EVM VMType = 1
+)
+
type DAppChainClient interface {
- CommitTx(signer Signer, txBytes []byte) error
+ CommitTx(signer Signer, txBytes []byte) ([]byte, error)
+ CommitDeployTx(from Address, signer Signer, vm VMType, code []byte) ([]byte, error)
+ CommitCallTx(from Address, to Address, signer Signer, input []byte) ([]byte, error)
}
