Documentation ¶
Index ¶
- Variables
- func ErrBaseOperationProcess(e error, formatter string, args ...interface{}) base.BaseOperationProcessReasonError
- func ErrInvalid(t any, e error) base.BaseOperationProcessReasonError
- func ErrStateAlreadyExists(name, k string, e error) base.BaseOperationProcessReasonError
- func ErrStateNotFound(name string, k string, e error) base.BaseOperationProcessReasonError
- func ErrStringPreProcess(t any) string
- func ErrStringProcess(t any) string
- func NewApproveProcessor() currencytypes.GetNewProcessor
- func NewBurnProcessor() currencytypes.GetNewProcessor
- func NewMintProcessor() currencytypes.GetNewProcessor
- func NewRegisterModelProcessor() currencytypes.GetNewProcessor
- func NewTransferFromProcessor() currencytypes.GetNewProcessor
- func NewTransferProcessor() currencytypes.GetNewProcessor
- type Approve
- type ApproveFact
- func (fact ApproveFact) Addresses() ([]base.Address, error)
- func (fact ApproveFact) Amount() common.Big
- func (fact ApproveFact) Approved() base.Address
- func (fact ApproveFact) Bytes() []byte
- func (fact *ApproveFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *ApproveFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact ApproveFact) GenerateHash() util.Hash
- func (fact ApproveFact) IsValid(b []byte) error
- func (fact ApproveFact) MarshalBSON() ([]byte, error)
- func (fact ApproveFact) MarshalJSON() ([]byte, error)
- type ApproveFactBSONUnmarshaler
- type ApproveFactJSONMarshaler
- type ApproveFactJSONUnMarshaler
- type ApproveProcessor
- func (opp *ApproveProcessor) Close() error
- func (opp *ApproveProcessor) PreProcess(ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc) (context.Context, base.OperationProcessReasonError, error)
- func (opp *ApproveProcessor) Process(_ context.Context, op base.Operation, getStateFunc base.GetStateFunc) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
- type Burn
- type BurnFact
- func (fact BurnFact) Addresses() ([]base.Address, error)
- func (fact BurnFact) Amount() common.Big
- func (fact BurnFact) Bytes() []byte
- func (fact *BurnFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *BurnFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact BurnFact) GenerateHash() util.Hash
- func (fact BurnFact) IsValid(b []byte) error
- func (fact BurnFact) MarshalBSON() ([]byte, error)
- func (fact BurnFact) MarshalJSON() ([]byte, error)
- func (fact BurnFact) Target() base.Address
- type BurnFactBSONUnmarshaler
- type BurnFactJSONMarshaler
- type BurnFactJSONUnMarshaler
- type BurnProcessor
- func (opp *BurnProcessor) Close() error
- func (opp *BurnProcessor) PreProcess(ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc) (context.Context, base.OperationProcessReasonError, error)
- func (opp *BurnProcessor) Process(_ context.Context, op base.Operation, getStateFunc base.GetStateFunc) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
- type Mint
- type MintFact
- func (fact MintFact) Addresses() ([]base.Address, error)
- func (fact MintFact) Amount() common.Big
- func (fact MintFact) Bytes() []byte
- func (fact *MintFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *MintFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact MintFact) GenerateHash() util.Hash
- func (fact MintFact) IsValid(b []byte) error
- func (fact MintFact) MarshalBSON() ([]byte, error)
- func (fact MintFact) MarshalJSON() ([]byte, error)
- func (fact MintFact) Receiver() base.Address
- type MintFactBSONUnmarshaler
- type MintFactJSONMarshaler
- type MintFactJSONUnMarshaler
- type MintProcessor
- func (opp *MintProcessor) Close() error
- func (opp *MintProcessor) PreProcess(ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc) (context.Context, base.OperationProcessReasonError, error)
- func (opp *MintProcessor) Process(_ context.Context, op base.Operation, getStateFunc base.GetStateFunc) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
- type PointFact
- func (fact PointFact) Addresses() []base.Address
- func (fact PointFact) Bytes() []byte
- func (fact PointFact) Contract() base.Address
- func (fact PointFact) Currency() types.CurrencyID
- func (fact *PointFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *PointFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact PointFact) IsValid([]byte) error
- func (fact PointFact) JSONMarshaler() PointFactJSONMarshaler
- func (fact PointFact) MarshalBSON() ([]byte, error)
- func (fact PointFact) MarshalJSON() ([]byte, error)
- func (fact PointFact) Sender() base.Address
- type PointFactBSONUnmarshaler
- type PointFactJSONMarshaler
- type PointFactJSONUnmarshaler
- type RegisterModel
- type RegisterModelFact
- func (fact RegisterModelFact) Bytes() []byte
- func (fact RegisterModelFact) Decimal() common.Big
- func (fact *RegisterModelFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *RegisterModelFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact RegisterModelFact) GenerateHash() util.Hash
- func (fact RegisterModelFact) InitialSupply() common.Big
- func (fact RegisterModelFact) IsValid(b []byte) error
- func (fact RegisterModelFact) MarshalBSON() ([]byte, error)
- func (fact RegisterModelFact) MarshalJSON() ([]byte, error)
- func (fact RegisterModelFact) Name() string
- func (fact RegisterModelFact) Symbol() types.PointSymbol
- type RegisterModelFactBSONUnmarshaler
- type RegisterModelFactJSONMarshaler
- type RegisterModelFactJSONUnMarshaler
- type RegisterModelProcessor
- func (opp *RegisterModelProcessor) Close() error
- func (opp *RegisterModelProcessor) PreProcess(ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc) (context.Context, base.OperationProcessReasonError, error)
- func (opp *RegisterModelProcessor) Process(_ context.Context, op base.Operation, getStateFunc base.GetStateFunc) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
- type TestApproveProcessor
- func (t *TestApproveProcessor) Create() *TestApproveProcessor
- func (t *TestApproveProcessor) Decode(fileName string) *TestApproveProcessor
- func (t *TestApproveProcessor) IsValid() *TestApproveProcessor
- func (t *TestApproveProcessor) LoadOperation(fileName string) *TestApproveProcessor
- func (t *TestApproveProcessor) MakeOperation(sender base.Address, privatekey base.Privatekey, ...) *TestApproveProcessor
- func (t *TestApproveProcessor) Print(fileName string) *TestApproveProcessor
- func (t *TestApproveProcessor) RunPreProcess() *TestApproveProcessor
- func (t *TestApproveProcessor) RunProcess() *TestApproveProcessor
- func (t *TestApproveProcessor) SetAccount(priv string, amount int64, cid types.CurrencyID, target []test.Account, ...) *TestApproveProcessor
- func (t *TestApproveProcessor) SetAmount(am int64, cid types.CurrencyID, target []types.Amount) *TestApproveProcessor
- func (t *TestApproveProcessor) SetContractAccount(owner base.Address, priv string, amount int64, cid types.CurrencyID, ...) *TestApproveProcessor
- func (t *TestApproveProcessor) SetCurrency(cid string, am int64, addr base.Address, target []types.CurrencyID, ...) *TestApproveProcessor
- type TestBurnProcessor
- func (t *TestBurnProcessor) Create() *TestBurnProcessor
- func (t *TestBurnProcessor) Decode(fileName string) *TestBurnProcessor
- func (t *TestBurnProcessor) IsValid() *TestBurnProcessor
- func (t *TestBurnProcessor) LoadOperation(fileName string) *TestBurnProcessor
- func (t *TestBurnProcessor) MakeOperation(sender base.Address, privatekey base.Privatekey, contract, target base.Address, ...) *TestBurnProcessor
- func (t *TestBurnProcessor) Print(fileName string) *TestBurnProcessor
- func (t *TestBurnProcessor) RunPreProcess() *TestBurnProcessor
- func (t *TestBurnProcessor) RunProcess() *TestBurnProcessor
- func (t *TestBurnProcessor) SetAccount(priv string, amount int64, cid types.CurrencyID, target []test.Account, ...) *TestBurnProcessor
- func (t *TestBurnProcessor) SetAmount(am int64, cid types.CurrencyID, target []types.Amount) *TestBurnProcessor
- func (t *TestBurnProcessor) SetContractAccount(owner base.Address, priv string, amount int64, cid types.CurrencyID, ...) *TestBurnProcessor
- func (t *TestBurnProcessor) SetCurrency(cid string, am int64, addr base.Address, target []types.CurrencyID, ...) *TestBurnProcessor
- type TestMintProcessor
- func (t *TestMintProcessor) Create() *TestMintProcessor
- func (t *TestMintProcessor) Decode(fileName string) *TestMintProcessor
- func (t *TestMintProcessor) IsValid() *TestMintProcessor
- func (t *TestMintProcessor) LoadOperation(fileName string) *TestMintProcessor
- func (t *TestMintProcessor) MakeOperation(sender base.Address, privatekey base.Privatekey, ...) *TestMintProcessor
- func (t *TestMintProcessor) Print(fileName string) *TestMintProcessor
- func (t *TestMintProcessor) RunPreProcess() *TestMintProcessor
- func (t *TestMintProcessor) RunProcess() *TestMintProcessor
- func (t *TestMintProcessor) SetAccount(priv string, amount int64, cid types.CurrencyID, target []test.Account, ...) *TestMintProcessor
- func (t *TestMintProcessor) SetAmount(am int64, cid types.CurrencyID, target []types.Amount) *TestMintProcessor
- func (t *TestMintProcessor) SetContractAccount(owner base.Address, priv string, amount int64, cid types.CurrencyID, ...) *TestMintProcessor
- func (t *TestMintProcessor) SetCurrency(cid string, am int64, addr base.Address, target []types.CurrencyID, ...) *TestMintProcessor
- type TestRegisterPointProcessor
- func (t *TestRegisterPointProcessor) Create() *TestRegisterPointProcessor
- func (t *TestRegisterPointProcessor) Decode(fileName string) *TestRegisterPointProcessor
- func (t *TestRegisterPointProcessor) IsValid() *TestRegisterPointProcessor
- func (t *TestRegisterPointProcessor) LoadOperation(fileName string) *TestRegisterPointProcessor
- func (t *TestRegisterPointProcessor) MakeOperation(sender base.Address, privatekey base.Privatekey, contract base.Address, ...) *TestRegisterPointProcessor
- func (t *TestRegisterPointProcessor) Print(fileName string) *TestRegisterPointProcessor
- func (t *TestRegisterPointProcessor) RunPreProcess() *TestRegisterPointProcessor
- func (t *TestRegisterPointProcessor) RunProcess() *TestRegisterPointProcessor
- func (t *TestRegisterPointProcessor) SetAccount(priv string, amount int64, cid types.CurrencyID, target []test.Account, ...) *TestRegisterPointProcessor
- func (t *TestRegisterPointProcessor) SetAmount(am int64, cid types.CurrencyID, target []types.Amount) *TestRegisterPointProcessor
- func (t *TestRegisterPointProcessor) SetContractAccount(owner base.Address, priv string, amount int64, cid types.CurrencyID, ...) *TestRegisterPointProcessor
- func (t *TestRegisterPointProcessor) SetCurrency(cid string, am int64, addr base.Address, target []types.CurrencyID, ...) *TestRegisterPointProcessor
- type TestTransferFromProcessor
- func (t *TestTransferFromProcessor) Create() *TestTransferFromProcessor
- func (t *TestTransferFromProcessor) Decode(fileName string) *TestTransferFromProcessor
- func (t *TestTransferFromProcessor) IsValid() *TestTransferFromProcessor
- func (t *TestTransferFromProcessor) LoadOperation(fileName string) *TestTransferFromProcessor
- func (t *TestTransferFromProcessor) MakeOperation(sender base.Address, privatekey base.Privatekey, ...) *TestTransferFromProcessor
- func (t *TestTransferFromProcessor) Print(fileName string) *TestTransferFromProcessor
- func (t *TestTransferFromProcessor) RunPreProcess() *TestTransferFromProcessor
- func (t *TestTransferFromProcessor) RunProcess() *TestTransferFromProcessor
- func (t *TestTransferFromProcessor) SetAccount(priv string, amount int64, cid types.CurrencyID, target []test.Account, ...) *TestTransferFromProcessor
- func (t *TestTransferFromProcessor) SetAmount(am int64, cid types.CurrencyID, target []types.Amount) *TestTransferFromProcessor
- func (t *TestTransferFromProcessor) SetContractAccount(owner base.Address, priv string, amount int64, cid types.CurrencyID, ...) *TestTransferFromProcessor
- func (t *TestTransferFromProcessor) SetCurrency(cid string, am int64, addr base.Address, target []types.CurrencyID, ...) *TestTransferFromProcessor
- type TestTransferProcessor
- func (t *TestTransferProcessor) Create() *TestTransferProcessor
- func (t *TestTransferProcessor) Decode(fileName string) *TestTransferProcessor
- func (t *TestTransferProcessor) IsValid() *TestTransferProcessor
- func (t *TestTransferProcessor) LoadOperation(fileName string) *TestTransferProcessor
- func (t *TestTransferProcessor) MakeOperation(sender base.Address, privatekey base.Privatekey, ...) *TestTransferProcessor
- func (t *TestTransferProcessor) Print(fileName string) *TestTransferProcessor
- func (t *TestTransferProcessor) RunPreProcess() *TestTransferProcessor
- func (t *TestTransferProcessor) RunProcess() *TestTransferProcessor
- func (t *TestTransferProcessor) SetAccount(priv string, amount int64, cid types.CurrencyID, target []test.Account, ...) *TestTransferProcessor
- func (t *TestTransferProcessor) SetAmount(am int64, cid types.CurrencyID, target []types.Amount) *TestTransferProcessor
- func (t *TestTransferProcessor) SetContractAccount(owner base.Address, priv string, amount int64, cid types.CurrencyID, ...) *TestTransferProcessor
- func (t *TestTransferProcessor) SetCurrency(cid string, am int64, addr base.Address, target []types.CurrencyID, ...) *TestTransferProcessor
- type Transfer
- type TransferFact
- func (fact TransferFact) Addresses() ([]base.Address, error)
- func (fact TransferFact) Amount() common.Big
- func (fact TransferFact) Bytes() []byte
- func (fact *TransferFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *TransferFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact TransferFact) GenerateHash() util.Hash
- func (fact TransferFact) IsValid(b []byte) error
- func (fact TransferFact) MarshalBSON() ([]byte, error)
- func (fact TransferFact) MarshalJSON() ([]byte, error)
- func (fact TransferFact) Receiver() base.Address
- type TransferFactBSONUnmarshaler
- type TransferFactJSONMarshaler
- type TransferFactJSONUnMarshaler
- type TransferFrom
- type TransferFromFact
- func (fact TransferFromFact) Addresses() ([]base.Address, error)
- func (fact TransferFromFact) Amount() common.Big
- func (fact TransferFromFact) Bytes() []byte
- func (fact *TransferFromFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
- func (fact *TransferFromFact) DecodeJSON(b []byte, enc encoder.Encoder) error
- func (fact TransferFromFact) GenerateHash() util.Hash
- func (fact TransferFromFact) IsValid(b []byte) error
- func (fact TransferFromFact) MarshalBSON() ([]byte, error)
- func (fact TransferFromFact) MarshalJSON() ([]byte, error)
- func (fact TransferFromFact) Receiver() base.Address
- func (fact TransferFromFact) Target() base.Address
- type TransferFromFactBSONUnmarshaler
- type TransferFromFactJSONMarshaler
- type TransferFromFactJSONUnMarshaler
- type TransferFromProcessor
- func (opp *TransferFromProcessor) Close() error
- func (opp *TransferFromProcessor) PreProcess(ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc) (context.Context, base.OperationProcessReasonError, error)
- func (opp *TransferFromProcessor) Process(_ context.Context, op base.Operation, getStateFunc base.GetStateFunc) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
- type TransferProcessor
- func (opp *TransferProcessor) Close() error
- func (opp *TransferProcessor) PreProcess(ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc) (context.Context, base.OperationProcessReasonError, error)
- func (opp *TransferProcessor) Process(_ context.Context, op base.Operation, getStateFunc base.GetStateFunc) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ApproveFactHint = hint.MustNewHint("mitum-point-approve-operation-fact-v0.0.1") ApproveHint = hint.MustNewHint("mitum-point-approve-operation-v0.0.1") )
View Source
var ( BurnFactHint = hint.MustNewHint("mitum-point-burn-operation-fact-v0.0.1") BurnHint = hint.MustNewHint("mitum-point-burn-operation-v0.0.1") )
View Source
var ( MintFactHint = hint.MustNewHint("mitum-point-mint-operation-fact-v0.0.1") MintHint = hint.MustNewHint("mitum-point-mint-operation-v0.0.1") )
View Source
var ( RegisterModelFactHint = hint.MustNewHint("mitum-point-register-model-operation-fact-v0.0.1") RegisterModelHint = hint.MustNewHint("mitum-point-register-model-operation-v0.0.1") )
View Source
var ( TransferFactHint = hint.MustNewHint("mitum-point-transfer-operation-fact-v0.0.1") TransferHint = hint.MustNewHint("mitum-point-transfer-operation-v0.0.1") )
View Source
var ( TransferFromFactHint = hint.MustNewHint("mitum-point-transfer-from-operation-fact-v0.0.1") TransferFromHint = hint.MustNewHint("mitum-point-transfer-from-operation-v0.0.1") )
Functions ¶
func ErrBaseOperationProcess ¶
func ErrBaseOperationProcess(e error, formatter string, args ...interface{}) base.BaseOperationProcessReasonError
func ErrInvalid ¶
func ErrInvalid(t any, e error) base.BaseOperationProcessReasonError
func ErrStateAlreadyExists ¶
func ErrStateAlreadyExists(name, k string, e error) base.BaseOperationProcessReasonError
func ErrStateNotFound ¶
func ErrStateNotFound(name string, k string, e error) base.BaseOperationProcessReasonError
func ErrStringPreProcess ¶
func ErrStringProcess ¶
func NewApproveProcessor ¶
func NewApproveProcessor() currencytypes.GetNewProcessor
func NewBurnProcessor ¶
func NewBurnProcessor() currencytypes.GetNewProcessor
func NewMintProcessor ¶
func NewMintProcessor() currencytypes.GetNewProcessor
func NewRegisterModelProcessor ¶
func NewRegisterModelProcessor() currencytypes.GetNewProcessor
func NewTransferFromProcessor ¶
func NewTransferFromProcessor() currencytypes.GetNewProcessor
func NewTransferProcessor ¶
func NewTransferProcessor() currencytypes.GetNewProcessor
Types ¶
type Approve ¶
type Approve struct {
common.BaseOperation
}
func NewApprove ¶
func NewApprove(fact ApproveFact) Approve
func (Approve) Process ¶
func (Approve) Process( _ context.Context, _ base.GetStateFunc, ) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
type ApproveFact ¶
type ApproveFact struct { PointFact // contains filtered or unexported fields }
func NewApproveFact ¶
func NewApproveFact( token []byte, sender, contract base.Address, currency currencytypes.CurrencyID, approved base.Address, amount common.Big, ) ApproveFact
func (ApproveFact) Amount ¶
func (fact ApproveFact) Amount() common.Big
func (ApproveFact) Approved ¶
func (fact ApproveFact) Approved() base.Address
func (ApproveFact) Bytes ¶
func (fact ApproveFact) Bytes() []byte
func (*ApproveFact) DecodeBSON ¶
func (fact *ApproveFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*ApproveFact) DecodeJSON ¶
func (fact *ApproveFact) DecodeJSON(b []byte, enc encoder.Encoder) error
func (ApproveFact) GenerateHash ¶
func (fact ApproveFact) GenerateHash() util.Hash
func (ApproveFact) IsValid ¶
func (fact ApproveFact) IsValid(b []byte) error
func (ApproveFact) MarshalBSON ¶
func (fact ApproveFact) MarshalBSON() ([]byte, error)
func (ApproveFact) MarshalJSON ¶
func (fact ApproveFact) MarshalJSON() ([]byte, error)
type ApproveFactJSONMarshaler ¶
type ApproveFactJSONMarshaler struct { PointFactJSONMarshaler Approved base.Address `json:"approved"` Amount common.Big `json:"amount"` }
type ApproveProcessor ¶
type ApproveProcessor struct {
*base.BaseOperationProcessor
}
func (*ApproveProcessor) Close ¶
func (opp *ApproveProcessor) Close() error
func (*ApproveProcessor) PreProcess ¶
func (opp *ApproveProcessor) PreProcess( ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc, ) (context.Context, base.OperationProcessReasonError, error)
func (*ApproveProcessor) Process ¶
func (opp *ApproveProcessor) Process( _ context.Context, op base.Operation, getStateFunc base.GetStateFunc) ( []base.StateMergeValue, base.OperationProcessReasonError, error, )
type Burn ¶
type Burn struct {
common.BaseOperation
}
func (Burn) Process ¶
func (Burn) Process( _ context.Context, _ base.GetStateFunc, ) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
type BurnFact ¶
type BurnFact struct { PointFact // contains filtered or unexported fields }
func NewBurnFact ¶
func NewBurnFact( token []byte, sender, contract base.Address, currency currencytypes.CurrencyID, target base.Address, amount common.Big, ) BurnFact
func (*BurnFact) DecodeBSON ¶
func (BurnFact) GenerateHash ¶
func (BurnFact) MarshalBSON ¶
func (BurnFact) MarshalJSON ¶
type BurnFactBSONUnmarshaler ¶
type BurnFactJSONMarshaler ¶
type BurnFactJSONMarshaler struct { PointFactJSONMarshaler Target base.Address `json:"target"` Amount common.Big `json:"amount"` }
type BurnFactJSONUnMarshaler ¶
type BurnProcessor ¶
type BurnProcessor struct {
*base.BaseOperationProcessor
}
func (*BurnProcessor) Close ¶
func (opp *BurnProcessor) Close() error
func (*BurnProcessor) PreProcess ¶
func (opp *BurnProcessor) PreProcess( ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc, ) (context.Context, base.OperationProcessReasonError, error)
func (*BurnProcessor) Process ¶
func (opp *BurnProcessor) Process( _ context.Context, op base.Operation, getStateFunc base.GetStateFunc) ( []base.StateMergeValue, base.OperationProcessReasonError, error, )
type Mint ¶
type Mint struct {
common.BaseOperation
}
func (Mint) Process ¶
func (Mint) Process( _ context.Context, _ base.GetStateFunc, ) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
type MintFact ¶
type MintFact struct { PointFact // contains filtered or unexported fields }
func NewMintFact ¶
func NewMintFact( token []byte, sender, contract base.Address, currency currencytypes.CurrencyID, receiver base.Address, amount common.Big, ) MintFact
func (*MintFact) DecodeBSON ¶
func (MintFact) GenerateHash ¶
func (MintFact) MarshalBSON ¶
func (MintFact) MarshalJSON ¶
type MintFactBSONUnmarshaler ¶
type MintFactJSONMarshaler ¶
type MintFactJSONMarshaler struct { PointFactJSONMarshaler Receiver base.Address `json:"receiver"` Amount common.Big `json:"amount"` }
type MintFactJSONUnMarshaler ¶
type MintProcessor ¶
type MintProcessor struct {
*base.BaseOperationProcessor
}
func (*MintProcessor) Close ¶
func (opp *MintProcessor) Close() error
func (*MintProcessor) PreProcess ¶
func (opp *MintProcessor) PreProcess( ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc, ) (context.Context, base.OperationProcessReasonError, error)
func (*MintProcessor) Process ¶
func (opp *MintProcessor) Process( _ context.Context, op base.Operation, getStateFunc base.GetStateFunc) ( []base.StateMergeValue, base.OperationProcessReasonError, error, )
type PointFact ¶
func NewPointFact ¶
func (PointFact) Currency ¶
func (fact PointFact) Currency() types.CurrencyID
func (*PointFact) DecodeBSON ¶
func (*PointFact) DecodeJSON ¶
func (PointFact) JSONMarshaler ¶
func (fact PointFact) JSONMarshaler() PointFactJSONMarshaler
func (PointFact) MarshalBSON ¶
func (PointFact) MarshalJSON ¶
type PointFactJSONMarshaler ¶
type PointFactJSONMarshaler struct { base.BaseFactJSONMarshaler Sender base.Address `json:"sender"` Contract base.Address `json:"contract"` Currency currencytypes.CurrencyID `json:"currency"` }
type PointFactJSONUnmarshaler ¶
type PointFactJSONUnmarshaler struct { base.BaseFactJSONUnmarshaler Sender string `json:"sender"` Contract string `json:"contract"` Currency string `json:"currency"` }
type RegisterModel ¶
type RegisterModel struct {
common.BaseOperation
}
func NewRegisterModel ¶
func NewRegisterModel(fact RegisterModelFact) RegisterModel
func (RegisterModel) Process ¶
func (RegisterModel) Process( _ context.Context, _ base.GetStateFunc, ) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
type RegisterModelFact ¶
type RegisterModelFact struct { PointFact // contains filtered or unexported fields }
func NewRegisterModelFact ¶
func NewRegisterModelFact( token []byte, sender, contract base.Address, currency currencytypes.CurrencyID, symbol types.PointSymbol, name string, decimal common.Big, initialSupply common.Big, ) RegisterModelFact
func (RegisterModelFact) Bytes ¶
func (fact RegisterModelFact) Bytes() []byte
func (RegisterModelFact) Decimal ¶
func (fact RegisterModelFact) Decimal() common.Big
func (*RegisterModelFact) DecodeBSON ¶
func (fact *RegisterModelFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*RegisterModelFact) DecodeJSON ¶
func (fact *RegisterModelFact) DecodeJSON(b []byte, enc encoder.Encoder) error
func (RegisterModelFact) GenerateHash ¶
func (fact RegisterModelFact) GenerateHash() util.Hash
func (RegisterModelFact) InitialSupply ¶
func (fact RegisterModelFact) InitialSupply() common.Big
func (RegisterModelFact) IsValid ¶
func (fact RegisterModelFact) IsValid(b []byte) error
func (RegisterModelFact) MarshalBSON ¶
func (fact RegisterModelFact) MarshalBSON() ([]byte, error)
func (RegisterModelFact) MarshalJSON ¶
func (fact RegisterModelFact) MarshalJSON() ([]byte, error)
func (RegisterModelFact) Name ¶
func (fact RegisterModelFact) Name() string
func (RegisterModelFact) Symbol ¶
func (fact RegisterModelFact) Symbol() types.PointSymbol
type RegisterModelFactJSONMarshaler ¶
type RegisterModelFactJSONMarshaler struct { PointFactJSONMarshaler Symbol types.PointSymbol `json:"symbol"` Name string `json:"name"` Decimal common.Big `json:"decimal"` InitialSupply common.Big `json:"initial_supply"` }
type RegisterModelProcessor ¶
type RegisterModelProcessor struct {
*base.BaseOperationProcessor
}
func (*RegisterModelProcessor) Close ¶
func (opp *RegisterModelProcessor) Close() error
func (*RegisterModelProcessor) PreProcess ¶
func (opp *RegisterModelProcessor) PreProcess( ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc, ) (context.Context, base.OperationProcessReasonError, error)
func (*RegisterModelProcessor) Process ¶
func (opp *RegisterModelProcessor) Process( _ context.Context, op base.Operation, getStateFunc base.GetStateFunc) ( []base.StateMergeValue, base.OperationProcessReasonError, error, )
type TestApproveProcessor ¶
type TestApproveProcessor struct { *test.BaseTestOperationProcessorNoItem[Approve] }
func NewTestApproveProcessor ¶
func NewTestApproveProcessor(tp *test.TestProcessor) TestApproveProcessor
func (*TestApproveProcessor) Create ¶
func (t *TestApproveProcessor) Create() *TestApproveProcessor
func (*TestApproveProcessor) Decode ¶
func (t *TestApproveProcessor) Decode(fileName string) *TestApproveProcessor
func (*TestApproveProcessor) IsValid ¶
func (t *TestApproveProcessor) IsValid() *TestApproveProcessor
func (*TestApproveProcessor) LoadOperation ¶
func (t *TestApproveProcessor) LoadOperation(fileName string, ) *TestApproveProcessor
func (*TestApproveProcessor) MakeOperation ¶
func (t *TestApproveProcessor) MakeOperation( sender base.Address, privatekey base.Privatekey, contract, approved base.Address, amount int64, currency types.CurrencyID, ) *TestApproveProcessor
func (*TestApproveProcessor) Print ¶
func (t *TestApproveProcessor) Print(fileName string, ) *TestApproveProcessor
func (*TestApproveProcessor) RunPreProcess ¶
func (t *TestApproveProcessor) RunPreProcess() *TestApproveProcessor
func (*TestApproveProcessor) RunProcess ¶
func (t *TestApproveProcessor) RunProcess() *TestApproveProcessor
func (*TestApproveProcessor) SetAccount ¶
func (t *TestApproveProcessor) SetAccount( priv string, amount int64, cid types.CurrencyID, target []test.Account, inState bool, ) *TestApproveProcessor
func (*TestApproveProcessor) SetAmount ¶
func (t *TestApproveProcessor) SetAmount( am int64, cid types.CurrencyID, target []types.Amount, ) *TestApproveProcessor
func (*TestApproveProcessor) SetContractAccount ¶
func (t *TestApproveProcessor) SetContractAccount( owner base.Address, priv string, amount int64, cid types.CurrencyID, target []test.Account, inState bool, ) *TestApproveProcessor
func (*TestApproveProcessor) SetCurrency ¶
func (t *TestApproveProcessor) SetCurrency( cid string, am int64, addr base.Address, target []types.CurrencyID, instate bool, ) *TestApproveProcessor
type TestBurnProcessor ¶
type TestBurnProcessor struct { *test.BaseTestOperationProcessorNoItem[Burn] }
func NewTestBurnProcessor ¶
func NewTestBurnProcessor(tp *test.TestProcessor) TestBurnProcessor
func (*TestBurnProcessor) Create ¶
func (t *TestBurnProcessor) Create() *TestBurnProcessor
func (*TestBurnProcessor) Decode ¶
func (t *TestBurnProcessor) Decode(fileName string) *TestBurnProcessor
func (*TestBurnProcessor) IsValid ¶
func (t *TestBurnProcessor) IsValid() *TestBurnProcessor
func (*TestBurnProcessor) LoadOperation ¶
func (t *TestBurnProcessor) LoadOperation(fileName string, ) *TestBurnProcessor
func (*TestBurnProcessor) MakeOperation ¶
func (t *TestBurnProcessor) MakeOperation( sender base.Address, privatekey base.Privatekey, contract, target base.Address, amount int64, currency types.CurrencyID, ) *TestBurnProcessor
func (*TestBurnProcessor) Print ¶
func (t *TestBurnProcessor) Print(fileName string, ) *TestBurnProcessor
func (*TestBurnProcessor) RunPreProcess ¶
func (t *TestBurnProcessor) RunPreProcess() *TestBurnProcessor
func (*TestBurnProcessor) RunProcess ¶
func (t *TestBurnProcessor) RunProcess() *TestBurnProcessor
func (*TestBurnProcessor) SetAccount ¶
func (t *TestBurnProcessor) SetAccount( priv string, amount int64, cid types.CurrencyID, target []test.Account, inState bool, ) *TestBurnProcessor
func (*TestBurnProcessor) SetAmount ¶
func (t *TestBurnProcessor) SetAmount( am int64, cid types.CurrencyID, target []types.Amount, ) *TestBurnProcessor
func (*TestBurnProcessor) SetContractAccount ¶
func (t *TestBurnProcessor) SetContractAccount( owner base.Address, priv string, amount int64, cid types.CurrencyID, target []test.Account, inState bool, ) *TestBurnProcessor
func (*TestBurnProcessor) SetCurrency ¶
func (t *TestBurnProcessor) SetCurrency( cid string, am int64, addr base.Address, target []types.CurrencyID, instate bool, ) *TestBurnProcessor
type TestMintProcessor ¶
type TestMintProcessor struct { *test.BaseTestOperationProcessorNoItem[Mint] }
func NewTestMintProcessor ¶
func NewTestMintProcessor(tp *test.TestProcessor) TestMintProcessor
func (*TestMintProcessor) Create ¶
func (t *TestMintProcessor) Create() *TestMintProcessor
func (*TestMintProcessor) Decode ¶
func (t *TestMintProcessor) Decode(fileName string) *TestMintProcessor
func (*TestMintProcessor) IsValid ¶
func (t *TestMintProcessor) IsValid() *TestMintProcessor
func (*TestMintProcessor) LoadOperation ¶
func (t *TestMintProcessor) LoadOperation(fileName string, ) *TestMintProcessor
func (*TestMintProcessor) MakeOperation ¶
func (t *TestMintProcessor) MakeOperation( sender base.Address, privatekey base.Privatekey, contract, receiver base.Address, amount int64, currency types.CurrencyID, ) *TestMintProcessor
func (*TestMintProcessor) Print ¶
func (t *TestMintProcessor) Print(fileName string, ) *TestMintProcessor
func (*TestMintProcessor) RunPreProcess ¶
func (t *TestMintProcessor) RunPreProcess() *TestMintProcessor
func (*TestMintProcessor) RunProcess ¶
func (t *TestMintProcessor) RunProcess() *TestMintProcessor
func (*TestMintProcessor) SetAccount ¶
func (t *TestMintProcessor) SetAccount( priv string, amount int64, cid types.CurrencyID, target []test.Account, inState bool, ) *TestMintProcessor
func (*TestMintProcessor) SetAmount ¶
func (t *TestMintProcessor) SetAmount( am int64, cid types.CurrencyID, target []types.Amount, ) *TestMintProcessor
func (*TestMintProcessor) SetContractAccount ¶
func (t *TestMintProcessor) SetContractAccount( owner base.Address, priv string, amount int64, cid types.CurrencyID, target []test.Account, inState bool, ) *TestMintProcessor
func (*TestMintProcessor) SetCurrency ¶
func (t *TestMintProcessor) SetCurrency( cid string, am int64, addr base.Address, target []types.CurrencyID, instate bool, ) *TestMintProcessor
type TestRegisterPointProcessor ¶
type TestRegisterPointProcessor struct { *test.BaseTestOperationProcessorNoItem[RegisterModel] }
func NewTestRegisterPointProcessor ¶
func NewTestRegisterPointProcessor(tp *test.TestProcessor) TestRegisterPointProcessor
func (*TestRegisterPointProcessor) Create ¶
func (t *TestRegisterPointProcessor) Create() *TestRegisterPointProcessor
func (*TestRegisterPointProcessor) Decode ¶
func (t *TestRegisterPointProcessor) Decode(fileName string) *TestRegisterPointProcessor
func (*TestRegisterPointProcessor) IsValid ¶
func (t *TestRegisterPointProcessor) IsValid() *TestRegisterPointProcessor
func (*TestRegisterPointProcessor) LoadOperation ¶
func (t *TestRegisterPointProcessor) LoadOperation(fileName string, ) *TestRegisterPointProcessor
func (*TestRegisterPointProcessor) MakeOperation ¶
func (t *TestRegisterPointProcessor) MakeOperation( sender base.Address, privatekey base.Privatekey, contract base.Address, symbol, name string, decimal, initialSupply int64, currency types.CurrencyID, ) *TestRegisterPointProcessor
func (*TestRegisterPointProcessor) Print ¶
func (t *TestRegisterPointProcessor) Print(fileName string, ) *TestRegisterPointProcessor
func (*TestRegisterPointProcessor) RunPreProcess ¶
func (t *TestRegisterPointProcessor) RunPreProcess() *TestRegisterPointProcessor
func (*TestRegisterPointProcessor) RunProcess ¶
func (t *TestRegisterPointProcessor) RunProcess() *TestRegisterPointProcessor
func (*TestRegisterPointProcessor) SetAccount ¶
func (t *TestRegisterPointProcessor) SetAccount( priv string, amount int64, cid types.CurrencyID, target []test.Account, inState bool, ) *TestRegisterPointProcessor
func (*TestRegisterPointProcessor) SetAmount ¶
func (t *TestRegisterPointProcessor) SetAmount( am int64, cid types.CurrencyID, target []types.Amount, ) *TestRegisterPointProcessor
func (*TestRegisterPointProcessor) SetContractAccount ¶
func (t *TestRegisterPointProcessor) SetContractAccount( owner base.Address, priv string, amount int64, cid types.CurrencyID, target []test.Account, inState bool, ) *TestRegisterPointProcessor
func (*TestRegisterPointProcessor) SetCurrency ¶
func (t *TestRegisterPointProcessor) SetCurrency( cid string, am int64, addr base.Address, target []types.CurrencyID, instate bool, ) *TestRegisterPointProcessor
type TestTransferFromProcessor ¶
type TestTransferFromProcessor struct { *test.BaseTestOperationProcessorNoItem[TransferFrom] }
func NewTestTransferFromProcessor ¶
func NewTestTransferFromProcessor(tp *test.TestProcessor) TestTransferFromProcessor
func (*TestTransferFromProcessor) Create ¶
func (t *TestTransferFromProcessor) Create() *TestTransferFromProcessor
func (*TestTransferFromProcessor) Decode ¶
func (t *TestTransferFromProcessor) Decode(fileName string) *TestTransferFromProcessor
func (*TestTransferFromProcessor) IsValid ¶
func (t *TestTransferFromProcessor) IsValid() *TestTransferFromProcessor
func (*TestTransferFromProcessor) LoadOperation ¶
func (t *TestTransferFromProcessor) LoadOperation(fileName string, ) *TestTransferFromProcessor
func (*TestTransferFromProcessor) MakeOperation ¶
func (t *TestTransferFromProcessor) MakeOperation( sender base.Address, privatekey base.Privatekey, contract, receiver, target base.Address, amount int64, currency types.CurrencyID, ) *TestTransferFromProcessor
func (*TestTransferFromProcessor) Print ¶
func (t *TestTransferFromProcessor) Print(fileName string, ) *TestTransferFromProcessor
func (*TestTransferFromProcessor) RunPreProcess ¶
func (t *TestTransferFromProcessor) RunPreProcess() *TestTransferFromProcessor
func (*TestTransferFromProcessor) RunProcess ¶
func (t *TestTransferFromProcessor) RunProcess() *TestTransferFromProcessor
func (*TestTransferFromProcessor) SetAccount ¶
func (t *TestTransferFromProcessor) SetAccount( priv string, amount int64, cid types.CurrencyID, target []test.Account, inState bool, ) *TestTransferFromProcessor
func (*TestTransferFromProcessor) SetAmount ¶
func (t *TestTransferFromProcessor) SetAmount( am int64, cid types.CurrencyID, target []types.Amount, ) *TestTransferFromProcessor
func (*TestTransferFromProcessor) SetContractAccount ¶
func (t *TestTransferFromProcessor) SetContractAccount( owner base.Address, priv string, amount int64, cid types.CurrencyID, target []test.Account, inState bool, ) *TestTransferFromProcessor
func (*TestTransferFromProcessor) SetCurrency ¶
func (t *TestTransferFromProcessor) SetCurrency( cid string, am int64, addr base.Address, target []types.CurrencyID, instate bool, ) *TestTransferFromProcessor
type TestTransferProcessor ¶
type TestTransferProcessor struct { *test.BaseTestOperationProcessorNoItem[Transfer] }
func NewTestTransferProcessor ¶
func NewTestTransferProcessor(tp *test.TestProcessor) TestTransferProcessor
func (*TestTransferProcessor) Create ¶
func (t *TestTransferProcessor) Create() *TestTransferProcessor
func (*TestTransferProcessor) Decode ¶
func (t *TestTransferProcessor) Decode(fileName string) *TestTransferProcessor
func (*TestTransferProcessor) IsValid ¶
func (t *TestTransferProcessor) IsValid() *TestTransferProcessor
func (*TestTransferProcessor) LoadOperation ¶
func (t *TestTransferProcessor) LoadOperation(fileName string, ) *TestTransferProcessor
func (*TestTransferProcessor) MakeOperation ¶
func (t *TestTransferProcessor) MakeOperation( sender base.Address, privatekey base.Privatekey, contract, receiver base.Address, amount int64, currency types.CurrencyID, ) *TestTransferProcessor
func (*TestTransferProcessor) Print ¶
func (t *TestTransferProcessor) Print(fileName string, ) *TestTransferProcessor
func (*TestTransferProcessor) RunPreProcess ¶
func (t *TestTransferProcessor) RunPreProcess() *TestTransferProcessor
func (*TestTransferProcessor) RunProcess ¶
func (t *TestTransferProcessor) RunProcess() *TestTransferProcessor
func (*TestTransferProcessor) SetAccount ¶
func (t *TestTransferProcessor) SetAccount( priv string, amount int64, cid types.CurrencyID, target []test.Account, inState bool, ) *TestTransferProcessor
func (*TestTransferProcessor) SetAmount ¶
func (t *TestTransferProcessor) SetAmount( am int64, cid types.CurrencyID, target []types.Amount, ) *TestTransferProcessor
func (*TestTransferProcessor) SetContractAccount ¶
func (t *TestTransferProcessor) SetContractAccount( owner base.Address, priv string, amount int64, cid types.CurrencyID, target []test.Account, inState bool, ) *TestTransferProcessor
func (*TestTransferProcessor) SetCurrency ¶
func (t *TestTransferProcessor) SetCurrency( cid string, am int64, addr base.Address, target []types.CurrencyID, instate bool, ) *TestTransferProcessor
type Transfer ¶
type Transfer struct {
common.BaseOperation
}
func NewTransfer ¶
func NewTransfer(fact TransferFact) Transfer
func (Transfer) Process ¶
func (Transfer) Process( _ context.Context, _ base.GetStateFunc, ) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
type TransferFact ¶
type TransferFact struct { PointFact // contains filtered or unexported fields }
func NewTransferFact ¶
func NewTransferFact( token []byte, sender, contract base.Address, currency currencytypes.CurrencyID, receiver base.Address, amount common.Big, ) TransferFact
func (TransferFact) Amount ¶
func (fact TransferFact) Amount() common.Big
func (TransferFact) Bytes ¶
func (fact TransferFact) Bytes() []byte
func (*TransferFact) DecodeBSON ¶
func (fact *TransferFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*TransferFact) DecodeJSON ¶
func (fact *TransferFact) DecodeJSON(b []byte, enc encoder.Encoder) error
func (TransferFact) GenerateHash ¶
func (fact TransferFact) GenerateHash() util.Hash
func (TransferFact) IsValid ¶
func (fact TransferFact) IsValid(b []byte) error
func (TransferFact) MarshalBSON ¶
func (fact TransferFact) MarshalBSON() ([]byte, error)
func (TransferFact) MarshalJSON ¶
func (fact TransferFact) MarshalJSON() ([]byte, error)
func (TransferFact) Receiver ¶
func (fact TransferFact) Receiver() base.Address
type TransferFactJSONMarshaler ¶
type TransferFactJSONMarshaler struct { PointFactJSONMarshaler Receiver base.Address `json:"receiver"` Amount common.Big `json:"amount"` }
type TransferFrom ¶
type TransferFrom struct {
common.BaseOperation
}
func NewTransferFrom ¶
func NewTransferFrom(fact TransferFromFact) TransferFrom
func (TransferFrom) Process ¶
func (TransferFrom) Process( _ context.Context, _ base.GetStateFunc, ) ([]base.StateMergeValue, base.OperationProcessReasonError, error)
type TransferFromFact ¶
type TransferFromFact struct { PointFact // contains filtered or unexported fields }
func NewTransferFromFact ¶
func NewTransferFromFact( token []byte, sender, contract base.Address, currency currencytypes.CurrencyID, receiver, target base.Address, amount common.Big, ) TransferFromFact
func (TransferFromFact) Addresses ¶
func (fact TransferFromFact) Addresses() ([]base.Address, error)
func (TransferFromFact) Amount ¶
func (fact TransferFromFact) Amount() common.Big
func (TransferFromFact) Bytes ¶
func (fact TransferFromFact) Bytes() []byte
func (*TransferFromFact) DecodeBSON ¶
func (fact *TransferFromFact) DecodeBSON(b []byte, enc *bsonenc.Encoder) error
func (*TransferFromFact) DecodeJSON ¶
func (fact *TransferFromFact) DecodeJSON(b []byte, enc encoder.Encoder) error
func (TransferFromFact) GenerateHash ¶
func (fact TransferFromFact) GenerateHash() util.Hash
func (TransferFromFact) IsValid ¶
func (fact TransferFromFact) IsValid(b []byte) error
func (TransferFromFact) MarshalBSON ¶
func (fact TransferFromFact) MarshalBSON() ([]byte, error)
func (TransferFromFact) MarshalJSON ¶
func (fact TransferFromFact) MarshalJSON() ([]byte, error)
func (TransferFromFact) Receiver ¶
func (fact TransferFromFact) Receiver() base.Address
func (TransferFromFact) Target ¶
func (fact TransferFromFact) Target() base.Address
type TransferFromProcessor ¶
type TransferFromProcessor struct {
*base.BaseOperationProcessor
}
func (*TransferFromProcessor) Close ¶
func (opp *TransferFromProcessor) Close() error
func (*TransferFromProcessor) PreProcess ¶
func (opp *TransferFromProcessor) PreProcess( ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc, ) (context.Context, base.OperationProcessReasonError, error)
func (*TransferFromProcessor) Process ¶
func (opp *TransferFromProcessor) Process( _ context.Context, op base.Operation, getStateFunc base.GetStateFunc) ( []base.StateMergeValue, base.OperationProcessReasonError, error, )
type TransferProcessor ¶
type TransferProcessor struct {
*base.BaseOperationProcessor
}
func (*TransferProcessor) Close ¶
func (opp *TransferProcessor) Close() error
func (*TransferProcessor) PreProcess ¶
func (opp *TransferProcessor) PreProcess( ctx context.Context, op base.Operation, getStateFunc base.GetStateFunc, ) (context.Context, base.OperationProcessReasonError, error)
func (*TransferProcessor) Process ¶
func (opp *TransferProcessor) Process( _ context.Context, op base.Operation, getStateFunc base.GetStateFunc) ( []base.StateMergeValue, base.OperationProcessReasonError, error, )
Source Files ¶
- approve.go
- approve_bson.go
- approve_encode.go
- approve_json.go
- approve_process.go
- base.go
- base_bson.go
- base_encode.go
- base_json.go
- burn.go
- burn_bson.go
- burn_encode.go
- burn_json.go
- burn_process.go
- errors.go
- mint.go
- mint_bson.go
- mint_encode.go
- mint_json.go
- mint_process.go
- register_model.go
- register_model_bson.go
- register_model_encode.go
- register_model_json.go
- register_model_processor.go
- test_approve.go
- test_burn.go
- test_mint.go
- test_register_model.go
- test_transfer.go
- test_transfer_from.go
- transfer.go
- transfer_bson.go
- transfer_encode.go
- transfer_from.go
- transfer_from_bson.go
- transfer_from_encode.go
- transfer_from_json.go
- transfer_from_process.go
- transfer_json.go
- transfer_process.go
Click to show internal directories.
Click to hide internal directories.