tests

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 32 Imported by: 0

README

Developer notes

All EOAs and contracts used here have been deployed/integrated/funded on Sepolia for the sole purpose of the integration tests. Changing even one of those values will most likely break the tests.

For reference, here are the necessary components.

EOAs

User

Has at least 1e12 tokenB, as defined in the demo swap intent data, and has approved Atlas to spend it (permit69).

Solver

Has bonded at least 0.5 ATLETH on Atlas.

Contracts

Atlas, AtlasVerification, Simulator

Those 3 contracts are dependent on each others.

SwapIntentDAppControl

Is integrated and dependent on Atlas.

SimpleRfqSolver

Has at least 0.01 ETH, and 200e12 tokenA, as defined in the demo swap intent.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition struct {
	Antecedent common.Address
	Context    []byte
}

type SwapIntent

type SwapIntent struct {
	TokenUserBuys       common.Address
	AmountUserBuys      *big.Int
	TokenUserSells      common.Address
	AmountUserSells     *big.Int
	AuctionBaseCurrency common.Address
	Conditions          []Condition
}

Jump to

Keyboard shortcuts

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