Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: DFMM kit Rust crate #5

Merged
merged 8 commits into from
Feb 21, 2024
Merged

feat: DFMM kit Rust crate #5

merged 8 commits into from
Feb 21, 2024

Conversation

Autoparallel
Copy link
Contributor

@Autoparallel Autoparallel commented Feb 21, 2024

Idea

In this PR, we add a Rust crate called dfmm-kit that will allow us to build a Rust-Arbiter and, eventually, Excalibur development kit. We can build behaviors and test out simulations here.

Entrypoint

In order to be able to run our kit from the typical public template interface, we have a Cargo.toml in the project root which brings in the dfmm-kit member. In the kit/Cargo.toml we specify the kit bin. So you can do:

cargo run --bin kit

to see the help menu for the unwound macro's CLI.


Closes #4

@Autoparallel Autoparallel requested a review from kinrezC February 21, 2024 01:08
0xJepsen
0xJepsen previously approved these changes Feb 21, 2024
Copy link
Contributor

@0xJepsen 0xJepsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very bullish, i like this

@clemlak
Copy link
Contributor

clemlak commented Feb 21, 2024

We need to add a README file with some instructions explaining what this is and how it works.

@0xJepsen 0xJepsen merged commit bf13638 into main Feb 21, 2024
5 checks passed
@0xJepsen 0xJepsen deleted the feat/kit branch February 21, 2024 16:28
Autoparallel added a commit that referenced this pull request Feb 21, 2024
commit bf13638
Author: Colin Roberts <colin@primitive.xyz>
Date:   Wed Feb 21 09:28:39 2024 -0700

    feat: DFMM kit Rust crate (#5)

    * feat: dfmm kit
    * feat: `Pool` struct and impls
    * feat: README.md
    * fix: the swap_data

    ---------

    Co-authored-by: Waylon Jepsen <57912727+0xJepsen@users.noreply.github.com>
Autoparallel added a commit that referenced this pull request Feb 22, 2024
commit 8ee49e0
Merge: bf13638 36a449e
Author: Clément Lakhal <39790678+clemlak@users.noreply.github.com>
Date:   Thu Feb 22 15:03:01 2024 +0400

    Merge pull request #10 from primitivefinance/feat/strategy-notebooks-desmos

    feat: refactor + notebooks + strategy READMEs

commit 36a449e
Author: clemlak <clementlakhal@gmail.com>
Date:   Thu Feb 22 14:47:38 2024 +0400

    chore: fix errors due to outdated imports and names

commit 8865c35
Author: Colin Roberts <colin@primitive.xyz>
Date:   Wed Feb 21 21:01:23 2024 -0700

    Update README.md

commit 1cf2670
Author: Colin Roberts <colin@primitive.xyz>
Date:   Wed Feb 21 15:52:13 2024 -0700

    edit: LogNormal and GeometricMean

commit b22dbf6
Author: Colin Roberts <colin@primitive.xyz>
Date:   Wed Feb 21 15:15:11 2024 -0700

    edit: GeometricMean README

commit 236a526
Author: Colin Roberts <colin@primitive.xyz>
Date:   Wed Feb 21 14:35:47 2024 -0700

    Squashed commit of the following:

    commit bf13638
    Author: Colin Roberts <colin@primitive.xyz>
    Date:   Wed Feb 21 09:28:39 2024 -0700

        feat: DFMM kit Rust crate (#5)

        * feat: dfmm kit
        * feat: `Pool` struct and impls
        * feat: README.md
        * fix: the swap_data

        ---------

        Co-authored-by: Waylon Jepsen <57912727+0xJepsen@users.noreply.github.com>

commit bf13638
Author: Colin Roberts <colin@primitive.xyz>
Date:   Wed Feb 21 09:28:39 2024 -0700

    feat: DFMM kit Rust crate (#5)

    * feat: dfmm kit
    * feat: `Pool` struct and impls
    * feat: README.md
    * fix: the swap_data

    ---------

    Co-authored-by: Waylon Jepsen <57912727+0xJepsen@users.noreply.github.com>

commit 565b3ca
Author: Colin Roberts <colin@primitive.xyz>
Date:   Wed Feb 21 08:26:05 2024 -0700

    add notebooks and READMEs

commit 5ea1a16
Author: Colin Roberts <colin@primitive.xyz>
Date:   Wed Feb 21 08:12:49 2024 -0700

    refactor: rename G3M -> GeometricMean

commit d966e37
Author: Colin Roberts <colin@primitive.xyz>
Date:   Wed Feb 21 08:05:02 2024 -0700

    refactor: layout

commit 76d8c54
Author: Clément Lakhal <39790678+clemlak@users.noreply.github.com>
Date:   Wed Feb 21 18:32:17 2024 +0400

    chore: repo org (#7)

    * chore: add .env to .gitignore

    * chore: add env.example

    * build: enable via-ir in Foundry settings

    * chore: update README
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: add kit lib crate
4 participants