asobi_economy (asobi v0.35.4)

View Source

Summary

Functions

debit(PlayerId, Currency, Amount, Opts)

-spec debit(binary(), binary(), pos_integer(), map()) -> {ok, map()} | {error, term()}.

get_history(PlayerId, Currency, Opts)

-spec get_history(binary(), binary(), map()) -> {ok, [map()]} | {error, term()}.

get_or_create_wallet(PlayerId, Currency)

-spec get_or_create_wallet(binary(), binary()) -> {ok, map()} | {error, term()}.

get_wallets(PlayerId)

-spec get_wallets(binary()) -> {ok, [map()]} | {error, term()}.

grant(PlayerId, Currency, Amount, Opts)

-spec grant(binary(), binary(), pos_integer(), map()) -> {ok, map()} | {error, term()}.

purchase(PlayerId, ListingId)

-spec purchase(binary(), binary()) -> {ok, map()} | {error, term()}.