Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// Proofs
GenerateProof(ctx context.Context, req *GenerateProofRequest) (*GenerateProofResponse, error)
ListProofs(ctx context.Context, req *ListProofsRequest) (*ListProofsResponse, error)
GetProof(ctx context.Context, atlanticQueryID string) (*Query, error)
}
Client defines the interface for interacting with the Atlantic API
type GenerateProofRequest ¶
Request/Response types for Proof Generation
type GenerateProofResponse ¶
type GenerateProofResponse struct {
AtlanticQueryID string `json:"atlanticQueryId"`
}
type Layout ¶
type Layout int
Layout represents the supported proof layout types
func (Layout) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface
func (*Layout) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface
type ListProofsRequest ¶
type ListProofsRequest struct {
Limit *int `json:"limit,omitempty"`
Offset *int `json:"offset,omitempty"`
}
Request/Response types for Listing Proofs
type ListProofsResponse ¶
type Prover ¶
type Prover int
Prover represents the supported prover types
func (Prover) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface
func (*Prover) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface
type Query ¶
type Query struct {
ID string `json:"id"`
SubmittedByClient string `json:"submittedByClient"`
Status string `json:"status"`
Step string `json:"step"`
ProgramHash string `json:"programHash"`
Layout string `json:"layout"`
ProgramFactHash string `json:"programFactHash"`
Price string `json:"price"`
GasUsed int64 `json:"gasUsed"`
CreditsUsed int64 `json:"creditsUsed"`
TraceCreditsUsed int64 `json:"traceCreditsUsed"`
IsFactMocked bool `json:"isFactMocked"`
Prover Prover `json:"prover"`
Chain string `json:"chain"`
Steps []string `json:"steps"`
CreatedAt time.Time `json:"createdAt"`
CompletedAt *time.Time `json:"completedAt,omitempty"`
}
Query represents a proof generation query
Click to show internal directories.
Click to hide internal directories.