
The data structures defined by this contract.
Action parameter in addprodrate
{ "name": "addprodrate", "base": "", "fields": [ { "name": "product_id", "type": "uint64" }, { "name": "other_symbol", "type": "symbol" }, { "name": "other_contract", "type": "name" }, { "name": "is_fixed_income", "type": "bool" }, { "name": "other_rate", "type": "float64" } ] }
Action parameter in addproduct
{ "name": "addproduct", "base": "", "fields": [ { "name": "product_name", "type": "string" }, { "name": "product_desc", "type": "string" }, { "name": "base_symbol", "type": "symbol" }, { "name": "base_contract", "type": "name" }, { "name": "can_withdraw", "type": "bool" }, { "name": "withdraw_period", "type": "uint32" }, { "name": "return_period", "type": "uint32" }, { "name": "is_fixed_term", "type": "bool" }, { "name": "return_invalid_period", "type": "uint32" }, { "name": "is_compound_interest", "type": "bool" }, { "name": "is_fixed_income", "type": "bool" }, { "name": "fixed_interest_rate", "type": "float64" }, { "name": "redeem_wait_period", "type": "uint32" }, { "name": "product_max_amount", "type": "asset" }, { "name": "user_min_amount", "type": "asset" }, { "name": "user_max_amount", "type": "asset" } ] }
-
{ "name": "addrate", "base": "", "fields": [ { "name": "product_id", "type": "uint64" }, { "name": "interest", "type": "asset" }, { "name": "contract", "type": "name" }, { "name": "rate", "type": "float64" }, { "name": "timestamp", "type": "uint32" } ] }
Action parameter in admpurchase
{ "name": "admpurchase", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "product_id", "type": "uint64" }, { "name": "quantity", "type": "asset" }, { "name": "contract", "type": "name" } ] }
-
{ "name": "balance", "base": "", "fields": [ { "name": "balance_id", "type": "uint64" }, { "name": "user", "type": "name" }, { "name": "contract", "type": "name" }, { "name": "principal_left", "type": "asset" }, { "name": "principal_maturities", "type": "pair_time_point_sec_asset[]" }, { "name": "principal_invalids", "type": "pair_time_point_sec_asset[]" }, { "name": "withdraw_left", "type": "asset" }, { "name": "withdraw_maturities", "type": "pair_time_point_sec_asset[]" }, { "name": "interest_left", "type": "asset" }, { "name": "total_principal", "type": "asset" }, { "name": "total_principal_withdraw", "type": "asset" }, { "name": "total_interest", "type": "asset" }, { "name": "total_interest_withdraw", "type": "asset" }, { "name": "last_interest", "type": "asset" }, { "name": "last_interest_rate", "type": "float64" }, { "name": "last_return_time", "type": "time_point_sec" } ] }
-
{ "name": "claim", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "product_id", "type": "uint64" }, { "name": "quantity", "type": "asset" }, { "name": "contract", "type": "name" } ] }
Action parameter in clearhistory
{ "name": "clearhistory", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "product_id", "type": "uint64" } ] }
Action parameter in clearproduct
{ "name": "clearproduct", "base": "", "fields": [ { "name": "product_id", "type": "uint64" }, { "name": "max_record", "type": "uint64" }, { "name": "max_id", "type": "uint64" } ] }
Table row type of defiproxy
{ "name": "defi_proxy", "base": "", "fields": [ { "name": "id", "type": "uint64" }, { "name": "contract", "type": "name" }, { "name": "symbol_name", "type": "symbol" }, { "name": "use_pre_transfer", "type": "bool" }, { "name": "use_rebalance", "type": "bool" }, { "name": "defi_contract", "type": "name" } ] }
-
{ "name": "exclaim", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "product_id", "type": "uint64" }, { "name": "quantity", "type": "asset" }, { "name": "contract", "type": "name" }, { "name": "external_id", "type": "uint64" } ] }
-
{ "name": "exredeem", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "product_id", "type": "uint64" } ] }
Action parameter in fixproduct
{ "name": "fixproduct", "base": "", "fields": [ { "name": "product_id", "type": "uint64" }, { "name": "begin_balance_id", "type": "uint64" }, { "name": "max_count", "type": "uint64" } ] }
Table row type of globalconfig
{ "name": "global_config", "base": "", "fields": [ { "name": "whaleexadmin", "type": "name" }, { "name": "walvalidator", "type": "name" }, { "name": "manage_fee_receiver", "type": "name" }, { "name": "interest_receiver", "type": "name" }, { "name": "error_receiver", "type": "name" }, { "name": "forceclose_receiver", "type": "name" } ] }
-
{ "name": "init", "base": "", "fields": [ { "name": "whaleexadmin", "type": "name" }, { "name": "walvalidator", "type": "name" }, { "name": "manage_fee_receiver", "type": "name" }, { "name": "interest_receiver", "type": "name" }, { "name": "error_receiver", "type": "name" }, { "name": "forceclose_receiver", "type": "name" } ] }
Table row type of interestrate
{ "name": "interest_rate", "base": "", "fields": [ { "name": "rate_id", "type": "uint64" }, { "name": "time", "type": "time_point_sec" }, { "name": "interest", "type": "asset" }, { "name": "contract", "type": "name" }, { "name": "rate", "type": "float64" } ] }
-
{ "name": "pair_time_point_sec_asset", "base": "", "fields": [ { "name": "first", "type": "time_point_sec" }, { "name": "second", "type": "asset" } ] }
-
{ "name": "product", "base": "", "fields": [ { "name": "product_id", "type": "uint64" }, { "name": "product_name", "type": "string" }, { "name": "product_desc", "type": "string" }, { "name": "base_symbol", "type": "symbol" }, { "name": "base_contract", "type": "name" }, { "name": "state", "type": "uint8" }, { "name": "purchase_begin", "type": "time_point_sec" }, { "name": "purchase_end", "type": "time_point_sec" }, { "name": "return_begin", "type": "time_point_sec" }, { "name": "can_withdraw", "type": "bool" }, { "name": "withdraw_period", "type": "int32" }, { "name": "return_period", "type": "int32" }, { "name": "is_fixed_term", "type": "bool" }, { "name": "return_invalid_period", "type": "uint32" }, { "name": "redeem_wait_period", "type": "uint32" }, { "name": "is_compound_interest", "type": "bool" }, { "name": "is_fixed_income", "type": "bool" }, { "name": "fixed_interest_rate", "type": "float64" }, { "name": "product_max_amount", "type": "asset" }, { "name": "user_min_amount", "type": "asset" }, { "name": "user_total_min_amount", "type": "asset" }, { "name": "user_max_amount", "type": "asset" }, { "name": "last_interest_rate", "type": "float64" }, { "name": "last_return_time", "type": "time_point_sec" }, { "name": "created_time", "type": "time_point_sec" } ] }
Table row type of productrate
{ "name": "product_rate", "base": "", "fields": [ { "name": "other_id", "type": "uint64" }, { "name": "other_symbol", "type": "symbol" }, { "name": "other_contract", "type": "name" }, { "name": "is_fixed_income", "type": "bool" }, { "name": "other_rate", "type": "float64" } ] }
Table row type of productrec
{ "name": "product_record", "base": "", "fields": [ { "name": "record_id", "type": "uint64" }, { "name": "user", "type": "name" }, { "name": "type", "type": "uint8" }, { "name": "quantity", "type": "asset" }, { "name": "contract", "type": "name" }, { "name": "event_time", "type": "time_point_sec" }, { "name": "created_time", "type": "time_point_sec" } ] }
Table row type of productsts
{ "name": "product_status", "base": "", "fields": [ { "name": "product_id", "type": "uint64" }, { "name": "withdrawable", "type": "bool" }, { "name": "escrow_account", "type": "name" } ] }
-
{ "name": "redeem", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "product_id", "type": "uint64" } ] }
Action parameter in setdefiproxy
{ "name": "setdefiproxy", "base": "", "fields": [ { "name": "contract", "type": "name" }, { "name": "symbol_name", "type": "symbol" }, { "name": "use_pre_transfer", "type": "bool" }, { "name": "use_rebalance", "type": "bool" }, { "name": "defi_contract", "type": "name" }, { "name": "remove", "type": "bool" } ] }
Action parameter in setprodsts
{ "name": "setprodsts", "base": "", "fields": [ { "name": "product_id", "type": "uint64" }, { "name": "withdrawable", "type": "bool" }, { "name": "escrow_account", "type": "name?" } ] }
Action parameter in settlement
{ "name": "settlement", "base": "", "fields": [ { "name": "product_id", "type": "uint64" }, { "name": "begin", "type": "uint32" }, { "name": "max_records", "type": "uint32" }, { "name": "max_terms", "type": "uint32" } ] }
-
{ "name": "to_redeem", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "redeem_maturities", "type": "pair_time_point_sec_asset[]" } ] }
Action parameter in uptproduct
{ "name": "uptproduct", "base": "", "fields": [ { "name": "product_id", "type": "uint64" }, { "name": "product_name", "type": "string?" }, { "name": "product_desc", "type": "string?" }, { "name": "state", "type": "uint8?" }, { "name": "product_max_amount", "type": "asset?" }, { "name": "user_min_amount", "type": "asset?" }, { "name": "user_max_amount", "type": "asset?" }, { "name": "purchase_begin", "type": "uint32?" }, { "name": "is_fixed_term", "type": "uint8?" }, { "name": "fixed_interest_rate", "type": "float64?" } ] }
Table row type of userhistory
{ "name": "user_history", "base": "", "fields": [ { "name": "record_id", "type": "uint64" }, { "name": "product_id", "type": "uint64" }, { "name": "type", "type": "uint8" }, { "name": "quantity", "type": "asset" }, { "name": "contract", "type": "name" }, { "name": "event_time", "type": "time_point_sec" }, { "name": "created_time", "type": "time_point_sec" } ] }