Versions in this module Expand all Collapse all v0 v0.0.1 May 4, 2024 Changes in this version + const RateDecimal + var File_ext_config_proto protoreflect.FileDescriptor + type DistribRequest struct + GroupsAmounts map[string]*big.Int + Ref string + TransactionID string + UserAddress *types.Address + type ExtConfig struct + Decimals uint32 + DeliveryForm string + FeeAddressSetter *proto.Wallet + FeeSetter *proto.Wallet + Issuer *proto.Wallet + Name string + PaymentTerms string + Price string + TokensForUnit string + UnderlyingAsset string + UnitOfMeasure string + func (*ExtConfig) Descriptor() ([]byte, []int) + func (*ExtConfig) ProtoMessage() + func (m *ExtConfig) Validate() error + func (m *ExtConfig) ValidateAll() error + func (x *ExtConfig) GetDecimals() uint32 + func (x *ExtConfig) GetDeliveryForm() string + func (x *ExtConfig) GetFeeAddressSetter() *proto.Wallet + func (x *ExtConfig) GetFeeSetter() *proto.Wallet + func (x *ExtConfig) GetIssuer() *proto.Wallet + func (x *ExtConfig) GetName() string + func (x *ExtConfig) GetPaymentTerms() string + func (x *ExtConfig) GetPrice() string + func (x *ExtConfig) GetTokensForUnit() string + func (x *ExtConfig) GetUnderlyingAsset() string + func (x *ExtConfig) GetUnitOfMeasure() string + func (x *ExtConfig) ProtoReflect() protoreflect.Message + func (x *ExtConfig) Reset() + func (x *ExtConfig) String() string + type ExtConfigMultiError []error + func (m ExtConfigMultiError) AllErrors() []error + func (m ExtConfigMultiError) Error() string + type ExtConfigValidationError struct + func (e ExtConfigValidationError) Cause() error + func (e ExtConfigValidationError) Error() string + func (e ExtConfigValidationError) ErrorName() string + func (e ExtConfigValidationError) Field() string + func (e ExtConfigValidationError) Key() bool + func (e ExtConfigValidationError) Reason() string + type Group struct + Emission uint64 + ID string + Maturity string + Note string + type ITInterface interface + GetRateAndLimits func(string, string) (*proto.TokenRate, bool, error) + type IndustrialToken struct + func (it *IndustrialToken) ApplyExtConfig(cfgBytes []byte) error + func (it *IndustrialToken) ChangeGroupMetadata(groupName string, maturityDate time.Time, note string) error + func (it *IndustrialToken) CheckLimitsAndPrice(method string, amount *big.Int, currency string) (*big.Int, error) + func (it *IndustrialToken) FeeAddressSetter() *types.Address + func (it *IndustrialToken) FeeSetter() *types.Address + func (it *IndustrialToken) GetID() string + func (it *IndustrialToken) GetRateAndLimits(dealType string, currency string) (*proto.TokenRate, bool, error) + func (it *IndustrialToken) Initialize(groups []Group) error + func (it *IndustrialToken) Issuer() *types.Address + func (it *IndustrialToken) QueryAllowedBalanceOf(address *types.Address, token string) (*big.Int, error) + func (it *IndustrialToken) QueryDistribRequestsList() ([]DistribRequest, error) + func (it *IndustrialToken) QueryDocumentsList() ([]core.Doc, error) + func (it *IndustrialToken) QueryIndustrialBalanceOf(address *types.Address) (map[string]string, error) + func (it *IndustrialToken) QueryMCRequestsList() ([]MaturityChangeRequest, error) + func (it *IndustrialToken) QueryMetadata() (Metadata, error) + func (it *IndustrialToken) QueryPredictFee(amount *big.Int) (Predict, error) + func (it *IndustrialToken) QueryRedeemRequestsList() ([]RedeemRequest, error) + func (it *IndustrialToken) TxAcceptDistribRequest(sender *types.Sender, requestID, _ string) error + func (it *IndustrialToken) TxAcceptMCRequest(sender *types.Sender, requestID, _ string) error + func (it *IndustrialToken) TxAcceptRedeemRequest(sender *types.Sender, requestID string, amount *big.Int, _ string) error + func (it *IndustrialToken) TxAddDocs(sender *types.Sender, rawDocs string) error + func (it *IndustrialToken) TxChangeGroupNote(sender *types.Sender, groupName, note string) error + func (it *IndustrialToken) TxCreateDistribRequest(sender *types.Sender, args, ref string) error + func (it *IndustrialToken) TxCreateMCRequest(sender *types.Sender, groupName, maturityDateString, ref string) error + func (it *IndustrialToken) TxCreateRedeemRequest(sender *types.Sender, groupName string, amount *big.Int, ref string) error + func (it *IndustrialToken) TxDeleteDoc(sender *types.Sender, docID string) error + func (it *IndustrialToken) TxDenyDistribRequest(sender *types.Sender, requestID string) error + func (it *IndustrialToken) TxDenyMCRequest(sender *types.Sender, requestID string) error + func (it *IndustrialToken) TxDenyRedeemRequest(sender *types.Sender, requestID string) error + func (it *IndustrialToken) TxIndustrialBuyBack(sender *types.Sender, group string, amount *big.Int, currency string) error + func (it *IndustrialToken) TxSetFee(sender *types.Sender, currency string, fee *big.Int, floor *big.Int, ...) error + func (it *IndustrialToken) TxSetFeeAddress(sender *types.Sender, address *types.Address) error + func (it *IndustrialToken) TxSetLimits(sender *types.Sender, dealType string, currency string, min *big.Int, ...) error + func (it *IndustrialToken) TxSetRate(sender *types.Sender, dealType string, currency string, rate *big.Int) error + func (it *IndustrialToken) TxTransferIndustrial(sender *types.Sender, to *types.Address, group string, amount *big.Int, ...) error + func (it *IndustrialToken) ValidateExtConfig(cfgBytes []byte) error + type MaturityChangeRequest struct + GroupName string + MaturityDate time.Time + Ref string + TransactionID string + UserAddress *types.Address + type Metadata struct + Decimals uint + DeliveryForm string + Fee fee + Groups []MetadataGroup + Issuer string + Methods []string + Name string + PaymentTerms string + Price string + Rates []metadataRate + Symbol string + TokensForUnit string + UnderlyingAsset string + UnitOfMeasure string + type MetadataGroup struct + Amount *big.Int + MaturityDate time.Time + Name string + Note string + type Predict struct + Currency string + Fee *big.Int + type RedeemRequest struct + Amount *big.Int + GroupName string + Ref string + TransactionID string + UserAddress *types.Address