Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementations left to Release alpha version. #46

Open
cubismic opened this issue Nov 14, 2019 · 2 comments
Open

Implementations left to Release alpha version. #46

cubismic opened this issue Nov 14, 2019 · 2 comments
Assignees

Comments

@cubismic
Copy link
Member

cubismic commented Nov 14, 2019

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).

#46 (comment)

@cubismic cubismic self-assigned this Nov 14, 2019
@majecty
Copy link
Contributor

majecty commented Nov 19, 2019

@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
Copy link
Member Author

cubismic commented Dec 12, 2019

core

  • Asset

    • AssetJSON
    • AssetData
    • Asset
      • fromJSON(AssetJSON)
      • constructor(AssetData)
      • toJSON()
      • createTransferInput(~)
      • createTransferTransaction(~)
  • AssetScheme

    • AssetSchemeJSON
    • AssetScheme
      • fromJSON(AssetSchemeJSON)
      • constructor(~)
      • toJSON()
      • createMintTransaction(AssetAddressValue)
  • Block

    • BlockData
    • BlockJSON
    • Block
      • fromJSON(BlockJSON)
      • constructor(BlockData)
      • toJSON()
      • getSize()
  • Core

    • Core
      • includes
        • hexstring,

        • bignumber,

        • transaction,

        • asset,

        • assetscheme

        • script

        • address

      • createMintAssetTransaction
      • createTransferAssetTransaction
      • createAssetTransferInput
      • createAssetOutPoint
      • createAssetTransferOutput
    • checkNetworkId
    • checkPlatformAddressRecipient
    • checkAssetAddressRecipient
    • checkAmount
    • checkExpiration
    • checkKey
    • checkShardId
    • checkMetadata
    • checkApprover
    • checkregistrar
    • checkCertifier
    • checkPayer
    • checkOwners
    • checkUsers
    • checkTransferBurns
    • checkTransferInputs
    • checkTransferOutputs
    • checkTracker
    • checkIndex
    • checkAssetType
    • checkAssetOutPoint
    • checkOrder
    • checkIndices
    • checkLockScriptHash
    • checkTransactionHash
    • checkSecret
    • checkParameters
    • checkTimelock
    • checkLockScript
    • checkUnlockScript
    • checkSignature
    • checkHandlerId
    • checkBytes
  • Invoice

    • fromJSON(success, error)
    • toJSON()
  • Script

    • Opcode
    • empty()
    • constructor([]byte)
    • toTokens
  • SignedTransaction

    • SignedTransactionJSON
    • SignedTransaction
      • constructor(~)
      • signature()
      • toEncodeObject()
      • rlpBytes()
      • hash()
      • getAsset()
      • getSignerAccountId()
      • getSignerAddress()
      • getSignerPublic()
      • toJSON()
  • Text

    • TextJSON
    • Text
      • fromJSON(TextJSON)
      • toJSON()
  • Transaction

    • ActionJSON
    • TransactionJSON
    • Transaction
      • constructor(networkId)
      • seq()
      • fee()
      • setSeq()
      • setFee()
      • networkId()
      • toEncodeObject()
      • rlpBytes()
      • unsignedHash()
      • sign(secret, seq, fee)
      • toJSON()
  • types

    • NetworkId
    • AssetTransferOutputValue
    • CommonParams
  • transaction -

    • AssetMintOutput
      • AssetMintOutputJSON
      • AssetMintOutput
        • fromJSON(AssetMintOutputJSON)
        • constructor(~)
        • toJSON()
    • AssetOutPoint
      • AssetOutPointJSON
      • AssetOutPointData
      • AssetOutPoint
        • fromJSON(AssetOutputPointJSON)
        • constrcutor(AssetOutPointData)
        • toEncodeObject()
        • toJSON()
    • AssetTransferInput
      • TimelockType
      • Timelock
      • AssetTransferInputJSON
      • AssetTransferInput
        • fromJSON(AssetTransferInputJSON)
        • constructor(~)
        • toEncodeObject()
        • toJSON()
        • withoutScript()
        • setLockScript(lockScript)
        • setUnlockScript(unlockScript)
      • convertTimelockToEncodeObject(timeLock)
    • AssetTransferOutput
      • AssetTransferOutputJSON
      • AssetTransferOutputData
      • AssetTransferOutputAddressData
      • AssetTransferOutput
        • fromJSON(AssetTransferOutputJSON)
        • constructor(AssetTransferOutputData)
        • constructor(AssetTransdferOutputAddressData)
        • toEncodeObject()
        • toJSON()
    • json
      • fromJSONToTransaction(~)
      • fromJSONToSignedTransaction(~)
    • MintAsset
      • AssetMintTransactionJSON
      • MintAssetActionJSON
      • MintAsset
        • constructor(~)
        • tracker()
        • addApproval(approval)
        • output()
        • getMintedAsset()
        • getAssetScheme()
        • getAssetType()
        • type()
        • actionToEncodeObject()
        • actionToJSON()
      • AssetMintTransaction
        • constructor(~)
        • toJSON()
        • toEncodeObject()
        • rlpBytes()
    • Pay
      • PayActionJSON
      • Pay
        • constructor(receiver, quantity, networkID)
        • type()
        • actionToEncodeObject()
        • actionToJSON()
    • TransferAsset
      • AssetTransferTransactionJSON
      • TransferAssetActionJSON
      • TransferAsset
        • constructor(~)
        • tracker()
        • addApproval
        • addBurns(~)
        • burns()
        • burn(index)
        • addInputs(~)
        • inputs()
        • input(index)
        • addOutputs(~)
        • outputs()
        • output(index)
        • addOrder(~)
        • orders()
        • getTransferredAsset(index)
        • getTransferredAssets()
        • hashWithoutScript(~)
        • type()
        • actionToEncodeObjext()
        • actionToJSON()
      • AssetTransferTransactionData
      • AssetTransferTransaction
        • constructor(AssetTransferTransactionData)
        • toJSON()
        • toEncodeObject()
        • rlpBytes()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants