-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix padding, add anchor tests (#236)
* Basic framework for TS integration tests * TS tests for init and config ixes, addBank test wip * Mock oracle, wip add bank happy path testing * WIP decoding bank from raw buffer * Banks now decode with anchor * WIP decoding bank config with enum alignment * Add silly hack to risk tier representation in Rust to force anchor to properly deserialize it. * cleanup msg * Various minor fixes * Restore one-byte RiskTier, WIP test mainnet structs decode correctly * WIP mainnet decode test * Taste the rainbow (in console output) * chore: fmt * lint: revert obsolete changes * Manually check fields in mainnet decode test * Attempt to add anchor test to CI jobs * Anchor test CI attempt 2 * Anchor test CI attempt 3 * Anchor test CI attempt 4 * Anchor test CI attempt 5 * Anchor test CI attempt 6 * feat: combine bank padding fields * Mainnet test accounts, CI attempt 6ish * Anchor test CI attempt 8 * Anchor test CI attempt 9 * test: add comprehensive struct regression test with latest fields as of t22 commit * test: add missing account data file * fmt: remove comments for diff clarity * fmt: remove comments for diff clarity * fmt: remove comments for diff clarity * ci: silence wip localnet tests * chore: cleanup * cli: switchboard inspect command * cli: swb pull variant for oracle setup * cli: clearer variant name * chore: utility scripts * ci: revert script change --------- Co-authored-by: man0s <[email protected]>
- Loading branch information
1 parent
063fcbf
commit 9bd878f
Showing
52 changed files
with
3,466 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
{ | ||
"scripts": { | ||
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w", | ||
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check" | ||
}, | ||
"dependencies": { | ||
"@project-serum/anchor": "^0.25.0", | ||
"@pythnetwork/client": "^2.9.0" | ||
}, | ||
"devDependencies": { | ||
"@types/bn.js": "^5.1.0", | ||
"@types/chai": "^4.3.0", | ||
"@types/mocha": "^9.0.0", | ||
"chai": "^4.3.4", | ||
"mocha": "^9.0.3", | ||
"prettier": "^2.6.2", | ||
"ts-mocha": "^10.0.0", | ||
"typescript": "^4.3.5" | ||
} | ||
"scripts": { | ||
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w", | ||
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check" | ||
}, | ||
"dependencies": { | ||
"@coral-xyz/anchor": "^0.30.1", | ||
"@coral-xyz/spl-token": "^0.30.1", | ||
"@solana/spl-token": "^0.4.8", | ||
"@solana/web3.js": "^1.95.2", | ||
"@mrgnlabs/mrgn-common": "^1.7.0", | ||
"@mrgnlabs/marginfi-client-v2": "^3.1.0", | ||
"mocha": "^10.2.0", | ||
"ts-mocha": "^10.0.0", | ||
"bignumber.js": "^9.1.2" | ||
}, | ||
"devDependencies": { | ||
"@types/bn.js": "^5.1.0", | ||
"@types/chai": "^4.3.0", | ||
"@types/mocha": "^9.0.0", | ||
"chai": "^4.3.4", | ||
"prettier": "^2.6.2", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.3.5" | ||
} | ||
} |
Oops, something went wrong.