Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIP-0083: add "client" to verifier-balance event #968

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions FIPS/fip-0083.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,12 @@ This event is emitted when the balance of a verifier is updated in the Verified

The event payload is defined as:

| flags | key | value |
|----------------------| --- |--------------------------------------|
| Index Key + Value | “$type” | “verifier-balance” (string) |
| Index Key + Value | “verifier” | <VERIFIER_ACTOR_ID> (int) |
| Index Key | “balance” | <VERIFIER_DATACAP_BALANCE> (bigint) |
| flags | key | value |
| -------------------- | --------------- | --------------------------------------------------------------------------------------- |
| Index Key + Value | "$type" | "verifier-balance" (string) |
| Index Key + Value | "verifier" | <VERIFIER_ACTOR_ID> (int) |
| Index Key + Value | "client" | <DATACAP_HOLDER_ACTOR_ID> (nullable int) (non-null means datacap allocated to a client) |
rvagg marked this conversation as resolved.
Show resolved Hide resolved
| Index Key | "balance" | <VERIFIER_DATACAP_BALANCE> (bigint) |

_The "bigint" CBOR encoding format used for the "balance" field is the same as is used for encoding bigints on the Filecoin chain: a byte array representing a big-endian unsigned integer, compatible with the Golang `big.Int` byte representation, with a `0x00` (positive) or `0x01` (negative) prefix; with a zero-length array representing a value of `0`._

Expand Down
Loading