Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Credix] Minting/Redeeming/CollectProfit IXs #213

Merged
merged 57 commits into from
Jan 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
ae3d2f7
up
crypto-vincent Nov 28, 2022
af3103c
up
crypto-vincent Nov 28, 2022
97fba35
up
crypto-vincent Nov 28, 2022
b626f93
up
crypto-vincent Nov 28, 2022
ffe2fb6
up
crypto-vincent Nov 28, 2022
44c9705
up
crypto-vincent Nov 28, 2022
d8e4e4f
added-controller-flag
crypto-vincent Nov 28, 2022
1e25a26
forgot-api-test
crypto-vincent Nov 28, 2022
6b68204
controller-cap
crypto-vincent Nov 28, 2022
03253a7
up
crypto-vincent Nov 28, 2022
8f222a5
up
crypto-vincent Nov 28, 2022
98abfd0
updated-test-ci
crypto-vincent Nov 28, 2022
dd50cd3
trying-to-fix-ci-tests
crypto-vincent Nov 28, 2022
e2ea13a
nit
crypto-vincent Nov 29, 2022
cb7dbca
added-comments
crypto-vincent Nov 30, 2022
6eeb2e7
changing-profit-receiver
crypto-vincent Nov 30, 2022
9957b90
updated-tests
crypto-vincent Nov 30, 2022
38880c0
error-nit
crypto-vincent Nov 30, 2022
6cfa865
updated-package
crypto-vincent Nov 30, 2022
9947c04
fix-unit-tests
crypto-vincent Nov 30, 2022
877c97f
address-comments
crypto-vincent Nov 30, 2022
803f586
removing-withdrawal-fees
crypto-vincent Nov 30, 2022
2615a4f
polishing-before-audit-step1
crypto-vincent Dec 4, 2022
1615a1e
polishing-before-audit-step2
crypto-vincent Dec 4, 2022
8c99dc5
merge-main-back
crypto-vincent Dec 4, 2022
7604d2b
nits-on-names-and-error-codes
crypto-vincent Dec 4, 2022
ed74925
fix-ci
crypto-vincent Dec 4, 2022
59e29be
withdrawal-fee-error-description
crypto-vincent Dec 4, 2022
a644f08
comment-out-withdrawal-fee-for-testing
crypto-vincent Dec 4, 2022
5d036ae
fix-test
crypto-vincent Dec 4, 2022
2c96b05
less-strict-precision-loss-check
crypto-vincent Dec 4, 2022
206870c
less-strict-precision-loss-check
crypto-vincent Dec 4, 2022
8f4e17f
nit-accounting
crypto-vincent Dec 4, 2022
c2f73a5
nit-last-pr-comments
crypto-vincent Dec 5, 2022
0dd94ed
fixed comments
cnek Dec 5, 2022
ccc7a08
added-an-extra-tiny-check
crypto-vincent Dec 8, 2022
d807598
updated-client-api
crypto-vincent Dec 9, 2022
a7f3c25
update-package-lock
crypto-vincent Dec 9, 2022
30a3f31
fix-ci
crypto-vincent Dec 9, 2022
e7a2678
fix-ci-2
crypto-vincent Dec 9, 2022
b7b6920
update-client-version
crypto-vincent Dec 12, 2022
06755c4
update-package-lock
crypto-vincent Dec 12, 2022
4025e1f
double-check-credix-pass-fees
crypto-vincent Dec 12, 2022
95f569d
addressing-audit-1-2-3-5-6
crypto-vincent Dec 19, 2022
f09ba08
fix-compilation
crypto-vincent Dec 19, 2022
7c0b3cb
fix-ca
crypto-vincent Dec 19, 2022
20b735f
fix-format
crypto-vincent Dec 19, 2022
63b40e2
changelog
crypto-vincent Dec 19, 2022
69e70e6
simplify-event-and-make-credix-pass-immutable
crypto-vincent Dec 21, 2022
d7a766c
package-client-update
crypto-vincent Dec 28, 2022
ef9aa7a
fixed prod error
cnek Dec 29, 2022
9a6edad
fixing-u64-overflow-and-added-tests
crypto-vincent Dec 29, 2022
6dd16e8
Merge branch 'vbrunet/2022_11_28-integration-credix' of github.com:UX…
crypto-vincent Dec 29, 2022
058eb6d
added-extra-overflow-checks
crypto-vincent Dec 29, 2022
4e9d96a
added-prop-test-and-clippy-feedback
crypto-vincent Jan 2, 2023
58f916d
update-package-client-version
crypto-vincent Jan 2, 2023
a0611f9
update-client-version
crypto-vincent Jan 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 83 additions & 0 deletions .github/workflows/ci-anchor-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ env:
TEST_CI_SETUP: 'test_ci_setup'
TEST_CI_MERCURIAL: 'test_ci_mercurial'
TEST_CI_IDENTITY: 'test_ci_identity'
TEST_CI_CREDIX_LP: 'test_ci_credix_lp'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -370,3 +371,85 @@ jobs:
run: |
solana transfer --keypair ${{ env.RUNNER_WALLET_PATH }} ${{ env.BANK_WALLET_PATH }} $(echo $(solana balance --keypair ${{ env.RUNNER_WALLET_PATH }} | awk '{print $1}') - ${{ env.TRANSACTION_FEE_OFFSET }} | bc)

anchor-test-credix-lp:
name: Credix lp mint and edit depository
runs-on: ubuntu-latest
timeout-minutes: 5
needs: [anchor-test-identity]
steps:
# Checkout
- uses: actions/checkout@v2
# Install Rust
- name: Rust toolchain installation
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
profile: minimal
# Install solana
- name: Cache Solana Tool Suite
uses: actions/cache@v2
id: cache-solana
with:
path: |
~/.cache/solana/
~/.local/share/solana/
key: solana-${{ runner.os }}-v0000-${{ env.SOLANA_VERSION }}
- name: install solana
if: steps.cache-solana.outputs.cache-hit != 'true'
run: |
sudo apt-get update
sudo apt-get install -y pkg-config build-essential libudev-dev
sh -c "$(curl -sSfL https://release.solana.com/v${{ env.SOLANA_VERSION }}/install)"
- name: Add Solana to PATH
run: echo "/home/runner/.local/share/solana/install/active_release/bin:$PATH" >> $GITHUB_PATH
- name: Setup solana
run: |
solana --version
solana config set -u d
solana config set --url ${{ env.DEVNET_RPC}}
- name: Node 14 installation
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
# Create Keypair
- name: Create Runner keypair and funds it
run: |
solana-keygen new -o ${{ env.RUNNER_WALLET_PATH }} --no-passphrase --silent
solana transfer --keypair ${{ env.BANK_WALLET_PATH }} $(solana-keygen pubkey ${{ env.RUNNER_WALLET_PATH }}) 1 --allow-unfunded-recipient
solana balance
# Cargo caching
- name: Cache Cargo registry + index
uses: actions/cache@v2
id: cache-anchor
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: cargo-${{ runner.os }}-v0000-${{ hashFiles('**/Cargo.lock') }}
- name: Cache target folder
uses: actions/cache@v2
id: cache-programs
with:
path: |
./target/debug
./target/release
./target/bpfel-unknown-unknown
key: solana-${{ runner.os }}-v0000-${{ hashFiles('**/programs/**/*.rs') }}-${{ hashFiles('**/programs/**/*.toml') }}
- name: Anchor Test (skip build and deploy)
run: |
npm ci --ignore-scripts
./scripts/swap_ci_resident_program_id.sh
sed -i.bak "s/${{ env.TEST_DEV }}/${{ env.TEST_CI_CREDIX_LP }}/g" ./Anchor.toml
npx @project-serum/anchor-cli@${{ env.ANCHOR_VERSION }} test --skip-local-validator --skip-build --skip-deploy
- name: Returning funded runner wallet SOLs to the bank
run: |
solana transfer --keypair ${{ env.RUNNER_WALLET_PATH }} ${{ env.BANK_WALLET_PATH }} $(echo $(solana balance --keypair ${{ env.RUNNER_WALLET_PATH }} | awk '{print $1}') - ${{ env.TRANSACTION_FEE_OFFSET }} | bc)
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
# CHANGELOG

## [v6.0.0]

Deployed: | Slot:

- Credix Lp Depository ALM integration (mint/redeem/collect)

## [v5.1.0]

Deployed: | Slot: TBD

- Identity Depository
- Identity Depository (mint/redeem)
- Removal of MangoMarketsV3 related code after their exploit
- Adding a one time MangoMarketsV3 accounting fix instruction

## [v5.0.0]

Deployed: | Slot:

- Mercurial Vault Depository
- Mercurial Vault Depository ALM integration (mint/redeem)

## [v4.0.0]

Expand Down
114 changes: 112 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading