
The data structures defined by this contract.
-
{ "name": "activate", "base": "", "fields": [ { "name": "active", "type": "bool" }, { "name": "points_manager", "type": "name" } ] } -
{ "name": "addbudget", "base": "", "fields": [ { "name": "allocator", "type": "name" }, { "name": "points_manager", "type": "name" }, { "name": "budget", "type": "uint64" } ] } -
{ "name": "addpoints", "base": "", "fields": [ { "name": "points_manager", "type": "name" }, { "name": "user", "type": "name" }, { "name": "points", "type": "uint32" } ] } Table row type of allocations
{ "name": "allocations", "base": "", "fields": [ { "name": "account", "type": "name" }, { "name": "allocated", "type": "float64" } ] }Table row type of allocators
{ "name": "allocator", "base": "", "fields": [ { "name": "allocator", "type": "name" }, { "name": "budget", "type": "float64" }, { "name": "allocated", "type": "float64" } ] }-
{ "name": "exitdebug", "base": "", "fields": [ { "name": "points_manager", "type": "name" } ] } -
{ "name": "globals", "base": "", "fields": [ { "name": "active", "type": "bool" }, { "name": "debug_mode", "type": "bool" }, { "name": "multiplier", "type": "float32" }, { "name": "batchProcess", "type": "bool" }, { "name": "running_total", "type": "uint64" }, { "name": "period_total", "type": "uint64" }, { "name": "period_budget", "type": "uint64" }, { "name": "period_end", "type": "time_point_sec" }, { "name": "period_duration", "type": "uint32" } ] } Table row type of points
{ "name": "points_row", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "total_points", "type": "uint32" } ] }Table row type of pointsconfig
{ "name": "pointsconfig", "base": "", "fields": [ { "name": "active", "type": "bool" }, { "name": "debug_mode", "type": "bool" }, { "name": "multiplier", "type": "float64" }, { "name": "batchProcess", "type": "bool" }, { "name": "running_total", "type": "float64" }, { "name": "period_total", "type": "float64" }, { "name": "period_budget", "type": "float64" }, { "name": "period_end", "type": "time_point_sec" }, { "name": "period_duration", "type": "uint32" } ] }Action parameter in processbatch
{ "name": "processbatch", "base": "", "fields": [ { "name": "points_manager", "type": "name" }, { "name": "batch_size", "type": "uint16" } ] }Action parameter in setallocator
{ "name": "setallocator", "base": "", "fields": [ { "name": "allocator", "type": "name" }, { "name": "budget", "type": "float64" } ] }-
{ "name": "setbudget", "base": "", "fields": [ { "name": "allocator", "type": "name" }, { "name": "points_manager", "type": "name" }, { "name": "budget", "type": "uint64" }, { "name": "n_days", "type": "uint32" }, { "name": "batch_process", "type": "bool" } ] } Action parameter in setglobals
{ "name": "setglobals", "base": "", "fields": [ { "name": "points_manager", "type": "name" }, { "name": "budget", "type": "uint64" }, { "name": "duration", "type": "uint32" }, { "name": "start", "type": "time_point_sec" }, { "name": "multiplier", "type": "float64" }, { "name": "batch_process", "type": "bool" }, { "name": "active", "type": "bool" }, { "name": "debug_mode", "type": "bool" } ] }Action parameter in updglobals
{ "name": "updglobals", "base": "", "fields": [ { "name": "points_manager", "type": "name" }, { "name": "budget", "type": "uint64?" }, { "name": "duration", "type": "uint32?" }, { "name": "multiplier", "type": "float64?" }, { "name": "batch_process", "type": "bool?" }, { "name": "active", "type": "bool" }, { "name": "debug_mode", "type": "bool" } ] }Action parameter in withdrawbudg
{ "name": "withdrawbudg", "base": "", "fields": [ { "name": "allocator", "type": "name" }, { "name": "points_manager", "type": "name" }, { "name": "budget", "type": "uint64?" } ] }