Skip to content

Commit

Permalink
feat: add vote state with latency
Browse files Browse the repository at this point in the history
  • Loading branch information
doodoo-aihc committed Apr 15, 2024
1 parent 96fa752 commit f54b6f1
Showing 1 changed file with 91 additions and 0 deletions.
91 changes: 91 additions & 0 deletions packages/explorerkit-idls/src/idls/shank/native/vote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,79 @@ export const VoteIDL: Idl = {
],
},
},
{
name: "VoteStateWithLatency",
type: {
kind: "struct",
fields: [
{
name: "node_pubkey",
type: "publicKey",
},
{
name: "authorized_withdrawer",
type: "publicKey",
},
{
name: "commission",
type: "u8",
},
{
name: "votes",
type: {
vec: {
defined: "LandedVote",
},
size: "u64",
},
},
{
name: "root_slot",
type: {
option: "u64",
},
},
{
name: "authorized_voters",
type: {
bTreeMap: ["u64", "publicKey"],
size: "u64",
},
},
{
name: "prior_voters",
type: {
defined: "PriorVoters",
},
},
{
name: "epoch_credits",
type: {
vec: {
tuple: [
{
defined: "Epoch",
},
{
defined: "Credits",
},
{
defined: "PrevCredits",
},
],
},
size: "u64",
},
},
{
name: "last_timestamp",
type: {
defined: "BlockTimestamp",
},
},
],
},
},
],
instructions: [
{
Expand Down Expand Up @@ -828,6 +901,24 @@ export const VoteIDL: Idl = {
],
},
},
{
name: "LandedVote",
type: {
kind: "struct",
fields: [
{
name: "latency",
type: "u8",
},
{
name: "lockout",
type: {
defined: "Lockout",
},
},
],
},
},
],
metadata: {
origin: "shank",
Expand Down

0 comments on commit f54b6f1

Please sign in to comment.