Skip to content

Commit

Permalink
Merge pull request #7 from ComposableFi/v0.1.3
Browse files Browse the repository at this point in the history
adding more structs
  • Loading branch information
Ciejo authored Jun 17, 2024
2 parents 3d57b4d + 9378fbc commit ac3b574
Showing 1 changed file with 70 additions and 8 deletions.
78 changes: 70 additions & 8 deletions succint.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,74 @@
package main

type ProofRequestData struct {
Input string `json:"input"`
}

type ProofRequest struct {
Type string `json:"type"`
ReleaseID string `json:"releaseId"`
Data ProofRequestData `json:"data"`
}

type Organization struct {
ID string `json:"id"`
OrgName string `json:"org_name"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
Edges string `json:"edges"`
}

type Project struct {
ID string `json:"id"`
Name string `json:"name"`
GitAccountName string `json:"git_account_name"`
OrganizationID string `json:"organization_id"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
Edges struct {
Organization Organization `json:"organization"`
} `json:"edges"`
}

type Release struct {
ID string `json:"id"`
Number int `json:"number"`
ProjectID string `json:"project_id"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
Edges struct {
Project Project `json:"project"`
} `json:"edges"`
}

type Request struct {
ID string `json:"id"`
ChainID int `json:"chain_id"`
GatewayAddress string `json:"gateway_address"`
Sender string `json:"sender"`
Origin string `json:"origin"`
FunctionID string `json:"function_id"`
Input string `json:"input"`
CallbackAddress string `json:"callback_address"`
CallbackData string `json:"callback_data"`
CallbackGasLimit int `json:"callback_gas_limit"`
RequestType string `json:"request_type"`
Status string `json:"status"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}

type Edges struct {
Release Release `json:"release"`
Requests []Request `json:"requests"`
}

type SuccintProof struct {
ID string `json:"id"`
Status string `json:"status"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
ProofRequest interface{} `json:"proof_request"`
ProofRelease interface{} `json:"proof_release"`
Edges interface{} `json:"edges"`
Requests interface{} `json:"requests"`
ID string `json:"id"`
Status string `json:"status"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
ProofRequest ProofRequest `json:"proof_request"`
ProofRelease string `json:"proof_release"`
Edges Edges `json:"edges"`
}

0 comments on commit ac3b574

Please sign in to comment.