From c396bba36f46d8a946c4cbefa68f6fc1534cb6f6 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Wed, 20 Mar 2024 14:13:55 +1100 Subject: [PATCH 1/2] FIP-0083: add "client" to verifier-balance event --- FIPS/fip-0083.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/FIPS/fip-0083.md b/FIPS/fip-0083.md index 10b6c156..368be27c 100644 --- a/FIPS/fip-0083.md +++ b/FIPS/fip-0083.md @@ -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” | (int) | -| Index Key | “balance” | (bigint) | +| flags | key | value | +| -------------------- | --------------- | --------------------------------------------------------------------------------------- | +| Index Key + Value | "$type" | "verifier-balance" (string) | +| Index Key + Value | "verifier" | (int) | +| Index Key + Value | "client" | (nullable int) (non-null means datacap allocated to a client) | +| Index Key | "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`._ From b01a6edd94ed458d195fbc56da7b41e1712ce533 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Thu, 21 Mar 2024 12:04:42 +1100 Subject: [PATCH 2/2] FIP-0083: make "client" optional on verifier-balance --- FIPS/fip-0083.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/FIPS/fip-0083.md b/FIPS/fip-0083.md index 368be27c..4afea3c8 100644 --- a/FIPS/fip-0083.md +++ b/FIPS/fip-0083.md @@ -59,12 +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" | (int) | -| Index Key + Value | "client" | (nullable int) (non-null means datacap allocated to a client) | -| Index Key | "balance" | (bigint) | +| flags | key | value | +| -------------------- | --------------- | ------------------------------------------------------------------------------------------ | +| Index Key + Value | "$type" | "verifier-balance" (string) | +| Index Key + Value | "verifier" | (int) | +| Index Key + Value | "client" | (optional int) (only present when datacap allocated to a client) | +| Index Key | "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`._