-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(transaction): add default checker
- Loading branch information
1 parent
c3dbb78
commit 76916bc
Showing
7 changed files
with
191 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) 2017-2021 The Elastos Foundation | ||
// Use of this source code is governed by an MIT | ||
// license that can be found in the LICENSE file. | ||
// | ||
|
||
package payload | ||
|
||
import ( | ||
"github.com/elastos/Elastos.ELA/common" | ||
pg "github.com/elastos/Elastos.ELA/core/contract/program" | ||
common2 "github.com/elastos/Elastos.ELA/core/types/common" | ||
) | ||
|
||
type CheckParameters struct { | ||
// transaction | ||
Version common2.TransactionVersion | ||
TxType common2.TxType | ||
PayloadVersion byte | ||
Attributes []*common2.Attribute | ||
Inputs []*common2.Input | ||
Outputs []*common2.Output | ||
LockTime uint32 | ||
Programs []*pg.Program | ||
TxHash common.Uint256 | ||
|
||
// others | ||
BlockHeight uint32 | ||
CRCommitteeStartHeight uint32 | ||
ConsensusAlgorithm byte | ||
DestroyELAAddress common.Uint168 | ||
CRAssetsAddress common.Uint168 | ||
FoundationAddress common.Uint168 | ||
} |