Skip to content

Commit

Permalink
Merge pull request #57 from Splyce-Finance/integration-tests
Browse files Browse the repository at this point in the history
Integration tests: Vault User Operations - Direct Deposit Tests + Deposit tests updates
  • Loading branch information
DavitMkhitaryan authored Dec 23, 2024
2 parents 8e1660e + b3ea5a2 commit 15fb93d
Show file tree
Hide file tree
Showing 5 changed files with 2,227 additions and 259 deletions.
43 changes: 43 additions & 0 deletions tests/integration/tests/rolesPermissions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -600,6 +601,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -708,6 +710,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -766,6 +769,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -836,6 +840,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -1057,6 +1062,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -1119,6 +1125,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -1184,6 +1191,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -1353,6 +1361,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -1705,6 +1714,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -1749,6 +1759,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -1857,6 +1868,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -1915,6 +1927,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -1985,6 +1998,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -2206,6 +2220,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -2268,6 +2283,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -2333,6 +2349,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -2502,6 +2519,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -2748,6 +2766,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -2863,6 +2882,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -2914,6 +2934,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -3086,6 +3107,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -3143,6 +3165,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -3298,6 +3321,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -3467,6 +3491,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -3862,6 +3887,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -3906,6 +3932,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -4014,6 +4041,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -4072,6 +4100,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -4142,6 +4171,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -4367,6 +4397,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -4429,6 +4460,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -4494,6 +4526,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -4640,6 +4673,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -4972,6 +5006,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -5016,6 +5051,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -5124,6 +5160,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -5182,6 +5219,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -5252,6 +5290,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -5477,6 +5516,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -5539,6 +5579,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -5604,6 +5645,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -5775,6 +5817,7 @@ describe("Roles and Permissions Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down
Loading

0 comments on commit 15fb93d

Please sign in to comment.