rhinestone

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2025 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RHINESTONE_ORCHESTRATOR_URL = "https://orchestrator.rhinestone.dev"
)
View Source
const (
	StatusCompleted = "COMPLETED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AcrossDepositEvent

type AcrossDepositEvent struct {
	Message             string             `json:"message"`
	DepositId           string             `json:"depositId"`
	Depositor           string             `json:"depositor"`
	Recipient           string             `json:"recipient"`
	InputToken          string             `json:"inputToken"`
	InputAmount         string             `json:"inputAmount"`
	OutputToken         string             `json:"outputToken"`
	FillDeadline        string             `json:"fillDeadline"`
	OutputAmount        string             `json:"outputAmount"`
	QuoteTimestamp      uint64             `json:"quoteTimestamp"`
	ExclusiveRelayer    string             `json:"exclusiveRelayer"`
	DestinationChainId  uint64             `json:"destinationChainId"`
	ExclusivityDeadline string             `json:"exclusivityDeadline"`
	OriginClaimPayload  OriginClaimPayload `json:"originClaimPayload"`
}

type Bundle

type Bundle struct {
	Status        BundleStatus `json:"status"`
	TargetChainId uint64       `json:"targetChainId"`
	UserAddress   string       `json:"userAddress"`
	BundleData    BundleData   `json:"bundleData"`
	BundleEvent   BundleEvent  `json:"bundleEvent"`
}

type BundleData

type BundleData struct {
	Nonce   string `json:"nonce"`
	Expires string `json:"expires"`
}

type BundleEvent

type BundleEvent struct {
	BundleId            string               `json:"bundleId"`
	AcrossDepositEvents []AcrossDepositEvent `json:"acrossDepositEvents"`
	FillPayload         FillPayload          `json:"targetFillPayload"`
}

type BundleStatus

type BundleStatus string

type FillPayload

type FillPayload struct {
	To      string `json:"to"`
	Data    string `json:"data"`
	Value   string `json:"value"`
	ChainID uint64 `json:"chainId"`
}

type OriginClaimPayload

type OriginClaimPayload struct {
	ChainID uint64 `json:"chainId"`
}

type RhinestoneOrchestrator

type RhinestoneOrchestrator struct {
	Client *http.Client
	// contains filtered or unexported fields
}

func NewRhinestoneOrchestrator

func NewRhinestoneOrchestrator(apiKey string) *RhinestoneOrchestrator

func (*RhinestoneOrchestrator) GetBundle

func (o *RhinestoneOrchestrator) GetBundle(ctx context.Context, bundleID *big.Int) (*Bundle, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL