Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
89c4a0e
Acammm/anchor 0.22.0 (#126)
acamill Feb 24, 2022
54d6f53
feat: accounting suite for accounting tests (#125)
CryptoMaxPlanck Feb 24, 2022
a7cc551
Edit rebase error
acamill Feb 24, 2022
b33b5ec
Update latest uxd-client
acamill Feb 24, 2022
25f9927
Yarn lock
acamill Feb 24, 2022
fb129c3
resynchronise a random dev key to enable the replace script
acamill Feb 24, 2022
f8451b1
bump version
acamill Feb 24, 2022
5d31ebc
Acammm/ppov2 (place_perp_order_v2) (#131)
acamill Mar 1, 2022
6fba30f
Fix comments + mango 3.4.1
acamill Mar 5, 2022
1dcad57
Acam/enforce limit price (#132)
acamill Mar 5, 2022
fbae697
Update latest client (was locally linked)
acamill Mar 5, 2022
5f95c63
Add 2.3.1 to changelog
acamill Mar 8, 2022
088717e
Merge branch 'main' into v3.1.0
acamill Apr 1, 2022
d5055b5
Cleanup post merge
acamill Apr 1, 2022
bd7959f
Update yarn lock
acamill Apr 1, 2022
7f9dd3e
Acam/enhancement wo 01 (#144)
acamill May 2, 2022
360d7da
Fix memory layout of accounts
acamill May 4, 2022
83694ab
Use the oss version of the client and ditch the private one
acamill May 4, 2022
9f7da83
simplified assertion (#147)
cnek May 7, 2022
3a6650c
Chore/fix tests (#149)
acamill May 11, 2022
14780d5
Usdc minting/redeeming of the PnL (#148)
acamill May 16, 2022
c706d10
Upgrade CI
May 16, 2022
edc29b2
Cleanup + test fixes
May 16, 2022
00ec59e
Update package.json and lock
May 16, 2022
9f95b8f
Update client version to beta next
May 16, 2022
d450d5e
fix import
May 16, 2022
edeb439
Update CI
May 16, 2022
7eebd36
Update CI
May 17, 2022
a467b28
Mango explorer replacement
May 17, 2022
e2d78da
Update CI
May 17, 2022
a654be9
Update Readme
May 17, 2022
d0bb888
Update CI
May 17, 2022
2e6bb4c
Use older solana version for more successful deployments
May 17, 2022
4f5bc12
Update CI
May 17, 2022
6bc9b6b
added ix to disable minting (#152)
cnek May 17, 2022
f7d8bf9
Update CI
May 17, 2022
f156fc9
fmt + ci
May 17, 2022
65cd150
Update uxd-client to beta3
May 17, 2022
5b712de
Update CI
May 17, 2022
96e2d54
Disable MM in CI must be ran from the side now
May 18, 2022
2c5d284
Add back the program ID to the IDL
May 18, 2022
dd68e35
Cleanup
May 18, 2022
7433e67
Swap program ID in the constants
May 18, 2022
7069246
CI fix + readme
May 18, 2022
43861a1
Add missing user ata
May 18, 2022
b560ec7
fix ci
May 18, 2022
09c7478
Fix ci transfers
May 18, 2022
212103a
Fix quote mint redeem
May 18, 2022
1e17808
Fixes
May 18, 2022
b205901
Add log for rebalancing lite amount
May 18, 2022
a87f3cf
Fix rebalancing CI
May 18, 2022
d61bcea
Fix quote mint/redeem
May 18, 2022
d2d5056
Logs
May 18, 2022
6b11a45
Fix CI
May 18, 2022
c4e0724
Max/more tests (#154)
CryptoMaxPlanck May 24, 2022
1e58198
updated gitignore
cnek May 3, 2022
8df3c6c
added permissionned ixns for msol impl (#145)
cnek May 3, 2022
5d926d7
separated mango_info from perp_info (#142)
cnek May 5, 2022
cd50b17
updated client version and lock files
cnek May 29, 2022
d221db1
temp fix test
cnek May 29, 2022
54cce22
revert npx fix
cnek May 29, 2022
e6c1480
msol swap ix (#156)
cnek Jun 6, 2022
714164f
rename ix and un-parameterized cpi context
cnek Jun 9, 2022
cd8e484
use anchor comp for cpi
cnek Jun 9, 2022
744d5bf
updated idl
cnek Jun 19, 2022
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
446 changes: 190 additions & 256 deletions .github/workflows/ci-anchor-test.yml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .github/workflows/ci-cargo-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: Lint and Test

on:
push:
branches: [main, v*.*, acam/soteria-audit*]
branches: [main, v*.*]

env:
CARGO_TERM_COLOR: always
SOLANA_VERSION: 1.9.7
SOLANA_VERSION: 1.8.16
RUST_TOOLCHAIN: nightly-2022-02-01

defaults:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/ci-soteria-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Soteria Audit
# Update to match your branch names and requirements
on:
push:
branches: [main, v*.*]
pull_request:
branches: [main, v*.*]

jobs:
audit:
runs-on: ubuntu-latest
steps:
- name: Check-out the repository
uses: actions/checkout@v2
- name: Soteria Audit
continue-on-error: false # set to true if you don't want to fail jobs
uses: silas-x/soteria-action@main
with: # remove if not passing arguments below
# solana-version: "1.9.14" # not required
run-mode: "-analyzeAll" # not required
cargo-com: "." # not required
program-path: "." # not required
57 changes: 0 additions & 57 deletions .github/workflows/ci-soteria.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ test-ledger/
/programs/uxd/.coderrect/**
/programs/uxd/target/**
/programs/uxd/Cargo.lock
yarn-error.log
programs/uxd/src/lib.rs.bak
.gitignore
Anchor.toml.bak
Expand All @@ -27,3 +26,4 @@ scripts/swap_ci_resident_program_id.sh.bak
.github/workflows/ci-anchor-test.yml.bak
docker-target/
/**/.DS_Store
.history/
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

16 changes: 16 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const modifiedConfig = {
arrowParens: 'avoid',
bracketSpacing: true,
quoteProps: 'as-needed',
semi: false,
tabWidth: 2,
trailingComma: 'none',
useTabs: false,
singleQuote: true,
jsxSingleQuote: true,
spaceBeforeFunctionParen: false,
printWidth: 100,
bracketSameLine: true
}

module.exports = modifiedConfig
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"Marketv",
"mngo",
"mochawesome",
"MSRM",
"NPMRC",
"orderbook",
"oustanding",
Expand All @@ -55,6 +56,6 @@
"thiserror",
"Tjpk",
"UXDATA",
"WSOLATA"
"WSOLATA",
]
}
19 changes: 12 additions & 7 deletions Anchor.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
[provider]
cluster = "devnet"
cluster = "mainnet"
wallet = "~/.config/solana/id.json"

[programs.mainnet]
uxd = "UXD8m9cvwk4RcSxnX2HZ9VudQCEeDH6fRnB4CAP57Dr"
# [programs.mainnet]
# uxd = "UXD8m9cvwk4RcSxnX2HZ9VudQCEeDH6fRnB4CAP57Dr"

[programs.mainnet] # internal mainnet program address
uxd = "EmXCGBmeZ7vTZu1NcuR5Cod8438aQdghhVa69zcBVF23"

[programs.devnet]
uxd = "BA67esrWE7cPzQWtAftaTbrVWtmHZJ1PbbBBpZgpjH4p"
uxd = "H4fDUuiTmRNrUVCaswDNFXAe1vR2UEgpdV8iQkzEn2C3"

[registry]
url = "https://anchor.projectserum.com"

[scripts]
# The quick version for development - Keep this version as the CI swap this line for its needs
# test = "yarn ts-mocha --require tests/fixtures.ts -p ./tsconfig.json -t 500000 tests/test_development.ts --reporter mochawesome --require mochawesome/register --reporter-options quiet=true,reportTitle=uxdprogram-test_integration --trace-warnings"
# test = "npx ts-mocha --require tests/fixtures.ts -p ./tsconfig.json -t 500000 tests/test_development.ts --reporter mochawesome --require mochawesome/register --reporter-options quiet=true,reportTitle=uxdprogram-test_integration --trace-warnings"
# Sol only version
test = "yarn ts-mocha --require tests/fixtures.ts -p ./tsconfig.json -t 500000 tests/test_ci_sol.ts --reporter mochawesome --require mochawesome/register --reporter-options quiet=true,reportTitle=uxdprogram-test_integration --trace-warnings"
# test = "npx ts-mocha --require tests/fixtures.ts -p ./tsconfig.json -t 500000 tests/test_ci_sol.ts --reporter mochawesome --require mochawesome/register --reporter-options quiet=true,reportTitle=uxdprogram-test_integration --trace-warnings"
# Longer version
# test = "yarn ts-mocha --require tests/fixtures.ts -p ./tsconfig.json -t 500000 tests/test_integration.ts --reporter mochawesome --require mochawesome/register --reporter-options quiet=true,reportTitle=uxdprogram-test_integration --trace-warnings"
# test = "npx ts-mocha --require tests/fixtures.ts -p ./tsconfig.json -t 500000 tests/test_integration.ts --reporter mochawesome --require mochawesome/register --reporter-options quiet=true,reportTitle=uxdprogram-t
# Mainnet testing
test = "npx ts-mocha --require tests/fixtures.ts -p ./tsconfig.json -t 500000 tests/test_mainnet_msol.ts --reporter mochawesome --require mochawesome/register --reporter-options quiet=true,reportTitle=uxdprogram-test_integration --trace-warnings"
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
# CHANGELOG

## [Unreleased]

- Use place_perp_order_v2 to save computing and reduce composability issues
- Pass a limit_price in place of the slippage to ensure execution price match user expectations
- Add `01` support (mint/redeem/depositories creation)
- Remove init_if_needed (and remove Rent and Associated Token Program from inputs)
- Updates Anchor to version 0.24.2

## v3.0.2 (audit report fixes Soteria)

Deployed: Mar 31, 2022 at 08:50:52 UTC | Slot: 127,530,926

1. Remove un needed passthrough accounts through the app to save computing

## v3.0.0 (audited Soteria)
## v3.0.1 (audited Soteria)

Deployed: | Slot:

Expand Down
Loading