contract

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BY_BENEFICIARY ...
	BY_BENEFICIARY = 1

	// BY_EMITTER ...
	BY_EMITTER = 2

	// BY_BOTH ...
	BY_BOTH = 3
)
View Source
const (
	// STATUS_CLOSED states that the contract is terminated, eg. opt-out
	STATUS_CLOSED = "closed"

	// STATUS_HOLD states that the contract is waiting for a transaction in the pool to know its current state;
	// opt-out is still possible but will only be effective when the opt-out transaction is mined, not modification
	STATUS_HOLD = "on_hold"

	// STATUS_INACTIVE states that the contract has at least one of its field that makes it unusable, eg. an end date passed
	STATUS_INACTIVE = "inactive"

	// STATUS_RUNNING states that everything is in order and any modification could be attempted
	STATUS_RUNNING = "running"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Modifier

type Modifier int

Modifier is the code that states whom stakeholder(s) pushed the latest transaction

type Status

type Status string

Status ...

type Terms

type Terms struct {
	LastTransactionID    model.Hash             `json:"lastTransactionId"`
	InitialTransactionID model.Hash             `json:"initialTransactionId"` // The initial opt-in transaction ID
	TransactionIDs       model.Hashes           `json:"transactionIds"`       // Sorted list of transaction IDs
	Channel              channel.Channel        `json:"channel"`
	Start                uint64                 `json:"start"`
	End                  int                    `json:"end"`    // Possible INFINITY
	MaxUse               int                    `json:"maxUse"` // Possible INFINITY
	Frequency            transaction.Frequency  `json:"freq,omitempty"`
	Destination          features.Destination   `json:"dest"`
	Signatures           transaction.Signatures `json:"signatures"`
	Script               script.Locking         `json:"script"`
	Status               Status                 `json:"status"`
	LastModification     uint64                 `json:"lastModification"` // The timestamp of the last transaction
	MadeBy               Modifier               `json:"madeBy"`
}

Terms holds the latest information coming from all the transactions plus information on its status.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL