Open cubismic opened 5 years ago
@cubismic and I discussed the class and interface structure of Transform
. SignedTransaction will contain the unsigned transaction with the TransactionInterface
type. A user will cast the TransactionInterface
what they want. To reduce the code duplication, we will use Transaction
struct. The Transaction
struct will have common functions that all transactions have.
type SignedTransaction struct {
unsigned: TransactionInterface
}
type Transaction struct {
}
type TransactionInterface interface {
}
type Pay struct {
Transaction
}
core
[x] Asset
[x] AssetScheme
[ ] Block
[ ] Core
[ ] Core
[ ] includes
[ ] hexstring,
[ ] bignumber,
[ ] transaction,
[ ] asset,
[ ] assetscheme
[ ] script
[ ] address
[ ] Invoice
[x] Script
[x] SignedTransaction
[ ] Text
[x] Transaction
[ ] types
[ ] transaction -
This is reduced version of #40. (could be more reduced) MintAsset, TransferAsset, Pay transactions are planned to be available in the alpha version. I'll set the day by day schedule until Monday(11/18).
https://github.com/CodeChain-io/codechain-sdk-go/issues/46#issuecomment-564853131