Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

game_vault source realm

Constants 6

Functions 73

func DepositEntry

crossing Action
1func DepositEntry(cur realm, processID uint64, participationKey, entryKey string) uint64
source

func DistributeReward

crossing Action
1func DistributeReward(cur realm, poolKey string, operationKey, recipientCSV, ugnotAmountCSV string) uint64
source

func ListParticipationRefundStates

Action
1func ListParticipationRefundStates(values ...string) []map[string]string
source

ListParticipationRefundStates returns fund, processed operation, and refund evidence for each participant.

func ListRefundScopeStates

Action
1func ListRefundScopeStates(scopeKeys ...string) []map[string]string
source

ListRefundScopeStates returns participation process and reward pool states for refund decisions.

Types 16

type EntryFund

struct
1type EntryFund struct {
2	ID               uint64
3	ProcessID        uint64
4	ParticipationKey string
5	EntryKey         string
6	Owner            address
7	Amount           int64
8	Refunded         bool
9}
source

type EntryProcess

struct
 1type EntryProcess struct {
 2	ID            uint64
 3	ProcessKey    string
 4	GameWorldID   uint64
 5	EntryFee      int64
 6	Status        EntryProcessStatus
 7	HeldBalance   int64
 8	RefundedTotal int64
 9	FundCount     uint64
10}
source

type ParticipationFund

struct
1type ParticipationFund struct {
2	ID               uint64
3	ProcessID        uint64
4	ParticipationKey string
5	PaymentKey       string
6	Owner            address
7	Amount           int64
8	Refunded         bool
9}
source

type ParticipationProcess

struct
 1type ParticipationProcess struct {
 2	ID               uint64
 3	ProcessKey       string
 4	GameWorldID      uint64
 5	RewardPoolID     uint64
 6	ParticipationFee int64
 7	Status           ParticipationProcessStatus
 8	HeldBalance      int64
 9	CommittedTotal   int64
10	RefundedTotal    int64
11	FundCount        uint64
12}
source

type ParticipationProcessView

struct
 1type ParticipationProcessView struct {
 2	ID               uint64
 3	ProcessKey       string
 4	GameWorldID      uint64
 5	RewardPoolKey    string
 6	ParticipationFee int64
 7	Status           ParticipationProcessStatus
 8	HeldBalance      int64
 9	CommittedTotal   int64
10	RefundedTotal    int64
11	FundCount        uint64
12}
source

type RewardDistribution

struct
1type RewardDistribution struct {
2	ID             uint64
3	PoolID         uint64
4	GameWorldID    uint64
5	OperationKey   string
6	RecipientCount uint32
7	TotalAmount    int64
8	Executor       address
9}
source

type RewardDistributionView

struct
1type RewardDistributionView struct {
2	ID             uint64
3	PoolKey        string
4	GameWorldID    uint64
5	OperationKey   string
6	RecipientCount uint32
7	TotalAmount    int64
8	Executor       address
9}
source

type RewardPool

struct
 1type RewardPool struct {
 2	ID                          uint64
 3	PoolKey                     string
 4	GameWorldID                 uint64
 5	Status                      RewardPoolStatus
 6	ParticipationCommittedTotal int64
 7	SystemFundedTotal           int64
 8	SystemRefundedTotal         int64
 9	DistributedTotal            int64
10	Balance                     int64
11	DistributionCount           uint64
12}
source

type RewardPoolView

struct
1type RewardPoolView struct {
2	PoolKey                     string
3	GameWorldID                 uint64
4	Status                      RewardPoolStatus
5	ParticipationCommittedTotal int64
6	DistributedTotal            int64
7	Balance                     int64
8	DistributionCount           uint64
9}
source

type SystemFunding

struct
1type SystemFunding struct {
2	ID         uint64
3	PoolID     uint64
4	FundingKey string
5	Depositor  address
6	Amount     int64
7	Refunded   bool
8}
source

type VaultRefund

struct
 1type VaultRefund struct {
 2	ID           uint64
 3	PoolID       uint64
 4	OperationKey string
 5	SourceKey    string
 6	Recipient    address
 7	Amount       int64
 8	Kind         string
 9	Executor     address
10}
source

Imports 8

Source Files 13