Versions in this module Expand all Collapse all v1 v1.0.0 Jul 19, 2026 Changes in this version + const KEPT_ADDR + func CalculateMaxSafeWithdraw(balance *big.Int, overdraft *big.Int) *big.Int + func CalculateSafeWithdraw(balance *big.Int, overdraft *big.Int, requestedAmount *big.Int) *big.Int + func CompareBalances(b1 Balances, b2 Balances) bool + func CompareBalancesIncluding(b1 Balances, b2 Balances) bool + func NewAccountAddress(src string) (AccountAddress, InterpreterError) + func NewArgsParser(args []Value) *argsParser + func NewAsset(src string) (Asset, InterpreterError) + func PrettyPrintMeta(meta Metadata) string + func PrettyPrintPostings(postings []Posting) string + func RunProgram(ctx context.Context, program parser.Program, vars map[string]string, ...) (*ExecutionResult, InterpreterError) + type AccountAddress string + func (v AccountAddress) String() string + type AccountBalance = map[string]*big.Int + type AccountMetadata = map[string]string + type AccountsMetadata map[string]AccountMetadata + func (m AccountsMetadata) DeepClone() AccountsMetadata + func (m AccountsMetadata) Merge(update AccountsMetadata) + func (m AccountsMetadata) PrettyPrint() string + type Asset string + func (v Asset) String() string + type BadArityErr struct + ExpectedArity int + GivenArguments int + func (e BadArityErr) Error() string + type BadPortionParsingErr struct + Reason string + Source string + func (e BadPortionParsingErr) Error() string + type BalanceQuery map[string][]string + type Balances map[string]AccountBalance + func (b Balances) DeepClone() Balances + func (b Balances) Merge(update Balances) + func (b Balances) PrettyPrint() string + type CannotCastToString struct + Value Value + func (e CannotCastToString) Error() string + type DivideByZero struct + Numerator *big.Int + func (e DivideByZero) Error() string + type ExecutionResult struct + AccountsMetadata AccountsMetadata + Metadata Metadata + Postings []Posting + type ExperimentalFeature struct + FlagName string + func (e ExperimentalFeature) Error() string + type InternalError struct + Posting Posting + func (e InternalError) Error() string + type InterpreterError interface + func ParsePortionSpecific(input string) (*big.Rat, InterpreterError) + type InvalidAccountName struct + Name string + func (e InvalidAccountName) Error() string + type InvalidAllotmentInSendAll struct + func (e InvalidAllotmentInSendAll) Error() string + type InvalidAllotmentSum struct + ActualSum big.Rat + func (e InvalidAllotmentSum) Error() string + type InvalidAsset struct + Name string + func (e InvalidAsset) Error() string + type InvalidColor struct + Color string + func (e InvalidColor) Error() string + type InvalidFeature struct + Feature string + func (e InvalidFeature) Error() string + type InvalidMonetaryLiteral struct + Source string + func (e InvalidMonetaryLiteral) Error() string + type InvalidNestedMeta struct + func (InvalidNestedMeta) Error() string + type InvalidNumberLiteral struct + Source string + func (e InvalidNumberLiteral) Error() string + type InvalidTypeErr struct + Name string + func (e InvalidTypeErr) Error() string + type InvalidUnboundedAddressInScalingAddress struct + func (InvalidUnboundedAddressInScalingAddress) Error() string + type InvalidUnboundedInSendAll struct + Name string + func (e InvalidUnboundedInSendAll) Error() string + type Metadata = map[string]Value + type MetadataNotFound struct + Account string + Key string + func (e MetadataNotFound) Error() string + type MetadataQuery map[string][]string + type MismatchedCurrencyError struct + Expected string + Got string + func (e MismatchedCurrencyError) Error() string + type MissingFundsErr struct + Asset string + Available big.Int + Needed big.Int + func (e MissingFundsErr) Error() string + func (e MissingFundsErr) Is(target error) bool + type MissingVariableErr struct + Name string + func (e MissingVariableErr) Error() string + type Monetary struct + Amount MonetaryInt + Asset Asset + func NewMonetary(asset string, n int64) Monetary + func (v Monetary) MarshalJSON() ([]byte, error) + func (v Monetary) String() string + type MonetaryInt big.Int + func NewMonetaryInt(n int64) MonetaryInt + func (m MonetaryInt) Add(other MonetaryInt) MonetaryInt + func (m MonetaryInt) Sub(other MonetaryInt) MonetaryInt + func (v MonetaryInt) MarshalJSON() ([]byte, error) + func (v MonetaryInt) String() string + type NegativeAmountErr struct + Amount MonetaryInt + func (e NegativeAmountErr) Error() string + type NegativeBalanceError struct + Account string + Amount big.Int + func (e NegativeBalanceError) Error() string + type Portion big.Rat + func (p Portion) String() string + func (v Portion) MarshalJSON() ([]byte, error) + type Posting struct + Amount *big.Int + Asset string + Destination string + Source string + type QueryBalanceError struct + WrappedError error + func (e QueryBalanceError) Error() string + type QueryMetadataError struct + WrappedError error + func (e QueryMetadataError) Error() string + type Sender struct + Amount *big.Int + Color string + Name string + type StaticStore struct + Balances Balances + Meta AccountsMetadata + func (s StaticStore) GetAccountsMetadata(context.Context, MetadataQuery) (AccountsMetadata, error) + func (s StaticStore) GetBalances(_ context.Context, q BalanceQuery) (Balances, error) + type Store interface + GetAccountsMetadata func(context.Context, MetadataQuery) (AccountsMetadata, error) + GetBalances func(context.Context, BalanceQuery) (Balances, error) + type String string + func (v String) String() string + type TypeError struct + Expected string + Value Value + func (e TypeError) Error() string + type UnboundFunctionErr struct + Name string + func (e UnboundFunctionErr) Error() string + type UnboundVariableErr struct + Name string + func (e UnboundVariableErr) Error() string + type Value interface + String func() string + type VariablesMap map[string]string