Rust client to Seaport's APIs and Ethereum smart contracts(WIP)

Related tags

Cryptography rust
Overview

Seaport-rs

WIP - WORK IN PROGRESS. REFER TO https://github.com/Alcibiades-Capital/quay FOR PRODUCTION READY CODE

I'm new to Rust and seek to be legendary at it, this project will be the first step.

The Goal is to replicate Seaport-js with Rust and to do that I'll have to implement the following functions:

  • createOrder
  • signOrder
  • cancelOrder
  • bulkCancelOrders
  • validate
  • getOrderStatus
  • getCounter
  • getOrderHash
  • fulfilOrder
  • fulfilOders
  • matchOrders
You might also like...
Helpful functions and macros for developing smart contracts on NEAR Protocol.

near-contract-tools Helpful functions and macros for developing smart contracts on NEAR Protocol. This package is a collection of common tools and pat

Helpful functions and macros for developing smart contracts on NEAR Protocol.

near-contract-tools Helpful functions and macros for developing smart contracts on NEAR Protocol. This package is a collection of common tools and pat

A framework for publishing, deploying, invoking, and upgrading soroban smart contracts

SmartDeploy A framework for publishing, deploying, and upgrading Soroban smart contracts. Uses Loam-SDK Publishing Currently smart contracts are insta

An automated CLI tool that optimizes gas usage in Solidity smart contracts, focusing on storage and function call efficiency.

Solidity-Gas-Optimizoor An high performance automated CLI tool that optimizes gas usage in Solidity smart contracts, focusing on storage and function

Heimdall is an advanced Ethereum smart contract toolkit for forensic and heuristic analysis.
Heimdall is an advanced Ethereum smart contract toolkit for forensic and heuristic analysis.

Heimdall is an advanced EVM toolkit which aims to make dealing with smart contracts on EVM based chains easier. Installation & Usage Heimdall's update

A template to build smart contracts in Rust to run inside a Cosmos SDK module on all chains that enable it.

CosmWasm Starter Pack This is a template to build smart contracts in Rust to run inside a Cosmos SDK module on all chains that enable it. To understan

Create your personal token with rust smart contracts

Solana Rust Token 💰 This application written Rust using Anchor ⚓

Rust library for build smart contracts on Internet Computer, by the Spinner.Cash team.

Spinner Rust library for building smart contracts on the Internet Computer. More specifically it is used by Spinner.Cash, a decentralized layer-2 prot

Rust implementation for Thippy -- a Substrate parachain for smart contracts.

Thippy ‒- A Smart Contracts Parachain This is a node implementation of Thippy, a Substrate parachain for smart contracts. Developing Smart Contracts f

Comments
  • Implement getCounter function

    Implement getCounter function

    I need this function for createOrder.

    My attempts to add it has a function under seaport impl have been ... so I'm thinking of using traits instead.

    https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=55d62283d88a5d09e79c73569acf04b5

    https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=9266c06a71c1a4ac67f146831907a5b0

    opened by Perelyn-sama 1
  • Is the new function really completed?

    Is the new function really completed?

    The new function has a parameter that should be called config, config should affect the behavior of the program/SDK after it is set. I'm not sure If I've implemented this properly yet. Confirm if it works and make a file in the examples folders that shows its behavior.

    opened by Perelyn-sama 0
  • Implement createOrder function

    Implement createOrder function

    Objectives

    • function should take in struct CreateOrderInput and return struct OrderParameters
    • use fields from struct CreateOrederInput to construct struct OrderParameters
    • create default impl for struct for CreateOrderInput
    opened by Perelyn-sama 3
  • Project Layout - Add Implementations

    Project Layout - Add Implementations

    The addition of the following functions will signal the completion of this project or the release of Its V1 at least.

    • [ ] createOrder
    • [ ] signOrder
    • [x] cancelOrder
    • [ ] bulkCancelOrders
    • [x] validate
    • [x] getOrderStatus
    • [x] getCounter
    • [x] getOrderHash
    • [ ] fulfilOrder
    • [ ] fulfilOrdrs
    • [ ] matchOrders

    This is an open-source project but I also want to use it to learn about Rust, so I won't be accepting external PRs until I get to a particular stage like maybe implementing half of the functions listed above.

    I'm new to Rust, so parts of my code may seem, amateur, If you spot any of these parts feel free to share them by creating issues. I'm open to learning and a good feedback loop, so please roast my code as you see fit. Thanks in advance.

    opened by Perelyn-sama 1
Owner
Perelyn
I imagine it, I make it.
Perelyn
Rust project for working with ETH - Ethereum transactions with Rust on Ganache and also deploy smart contracts :)

Just a test project to work with Ethereum but using Rust. I'm using plain Rust here, not Foundry. In future we will use Foundry. Hope you're already f

Akhil Sharma 2 Dec 20, 2022
Minimal Substrate node configured for smart contracts via pallet-contracts.

substrate-contracts-node This repository contains Substrate's node-template configured to include Substrate's pallet-contracts ‒ a smart contract modu

Parity Technologies 73 Dec 30, 2022
RGB smart contracts: client-facing library & command-line for desktop and mobile

RGB smart contracts RGB is confidential & scalable client-validated smart contracts for Bitcoin & Lightning. It embraces the concepts of private & mut

RGB: scalable & private smart contracts for bitcoin & lightning 4 Mar 15, 2023
Simple template for building smart contract(Rust) and RPC Client(web3.js) on Solana (WIP) ⛏👷🚧⚠️

Solana BPF Boilerplate Simple template for building smart contract(Rust) and RPC Client(web3.js) on Solana This boilerplate provides the following. Si

ono 6 Jan 30, 2022
Ethereum (and Ethereum like) indexer using P2P message to fetch blocks and transactions

Ethereum P2P indexer This project is an indexer for Ethereum and Ethereum forks. It takes advantage of the ETH (Ethereum Wire Protocol) to fetch block

null 5 Nov 10, 2023
Substreams development kit for Ethereum chains, contains Firehose Block model and helpers as well as utilities for Ethereum ABI encoding/decoding.

Substreams Ethereum Substreams development kit for Ethereum chains, contains Rust Firehose Block model and helpers as well as utilities for Ethereum A

StreamingFast 15 Oct 25, 2022
evm2near compiles Solidity contracts into NEAR WebAssembly contracts.

EVM → NEAR evm2near is a project for compiling EVM bytecode into wasm bytecode, with the particular goal of having that wasm artifact be executable on

Aurora 125 Dec 3, 2022
Ticketed Discreet Log Contracts (DLCs) to enable instant buy-in for wager-like contracts on Bitcoin.

dlctix Ticketed Discreet Log Contracts (DLCs) to enable instant buy-in for wager-like contracts on Bitcoin. This project is part of the Backdrop Build

null 7 Feb 29, 2024
zink! is a library for developing ink! smart contracts with useful Rust macros that extend functionality and reduce boilerplate code.

zink! Smart Contract Macros This is a helper library for developing ink! smart contracts. It contains useful Rust macros that extend functionality and

Scio Labs 3 Nov 3, 2023
A framework for creating PoC's for Solana Smart Contracts in a painless and intuitive way

Solana PoC Framework DISCLAIMER: any illegal usage of this framework is heavily discouraged. Most projects on Solana offer a more than generous bug bo

Neodyme 165 Dec 18, 2022