Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidSize = errors.New("NEAR DA unmarshal blob: invalid size") ErrInvalidNetwork = errors.New("NEAR DA client relative URL without a base") )
Functions ¶
func GetDAError ¶
func GetDAError() (err error)
func NewBlobSafe ¶
func TestSetError ¶
func TestSetError(msg string)
Types ¶
type BlobRef ¶
type BlobRef struct {
TxId []byte
}
BlobRef contains the reference to the specific blob on near and satisfies the Framer interface.
func (*BlobRef) MarshalBinary ¶
MarshalBinary encodes the Ref into a format that can be serialized.
func (*BlobRef) UnmarshalBinary ¶
type Config ¶
func NewConfig ¶
Note, networkN value can be either Mainnet, Testnet or loopback address in [ip]:[port] format.
func NewConfigFile ¶
Note, networkN value can be either Mainnet, Testnet or loopback address in [ip]:[port] format.
func (*Config) ForceSubmit ¶
Used by other rollups without candidate semantics, if you know for sure you want to submit the data to NEAR
func (*Config) FreeClient ¶
func (config *Config) FreeClient()
type Framer ¶
type Framer interface { encoding.BinaryMarshaler encoding.BinaryUnmarshaler }
Framer defines a way to encode/decode a FrameRef.
Click to show internal directories.
Click to hide internal directories.