CodeChain-io / codechain-sdk-go

Go Software Development Kit for CodeChain
5 stars 6 forks source link

Implementations left to Release alpha version. #46

Open cubismic opened 5 years ago

cubismic commented 5 years ago

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

majecty commented 4 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
}
cubismic commented 4 years ago

core