cre

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package cre exposes the CRE contract WASM artifacts produced by `stellar contract build` (into target/wasm32v1-none/release/).

These filenames are the source of truth for callers that must select a specific artifact out of the shared cargo workspace target dir — e.g. the chainlink CRE test harness, which builds the workspace and then reads one wasm by name. Each constant must match the corresponding Cargo package name with '-' replaced by '_'; that invariant is enforced by artifacts_test.go so a Rust package rename can't silently drift from the Go name.

The compiled WASM for each constant is also committed under artifacts/ and exposed via Artifact, so Go consumers can deploy the pinned bytecode without a Rust toolchain; the check-generated CI job keeps the blobs in sync with the contract sources.

Index

Constants

View Source
const (
	// ReadFixtureWasm is the CRE ReadContract test fixture (contracts/cre/test/read_fixture).
	ReadFixtureWasm = "read_fixture.wasm"

	// ForwarderWasm is the CRE forwarder (contracts/cre/forwarder).
	ForwarderWasm = "forwarder.wasm"

	// ReceiverWasm is the CRE test receiver (contracts/cre/test/receiver).
	ReceiverWasm = "receiver.wasm"

	// RejectingReceiverWasm is the CRE test receiver that always rejects on_report
	RejectingReceiverWasm = "rejecting_receiver.wasm"
)

Variables

This section is empty.

Functions

func Artifact

func Artifact(name string) ([]byte, error)

Artifact returns the compiled WASM for one of the artifact filename constants above, e.g. Artifact(ForwarderWasm).

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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