Skip to content

Commit

Permalink
SERVICES-2608: update transaction version in failing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mad2sm0key committed Sep 24, 2024
1 parent 81665fe commit 5d39505
Show file tree
Hide file tree
Showing 15 changed files with 137 additions and 139 deletions.
6 changes: 2 additions & 4 deletions src/modules/auto-router/specs/auto-router.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import { RemoteConfigGetterServiceMock } from 'src/modules/remote-config/mocks/r
import { PairInfoModel } from 'src/modules/pair/models/pair-info.model';
import { TokenServiceProvider } from 'src/modules/tokens/mocks/token.service.mock';
import { Tokens } from 'src/modules/pair/mocks/pair.constants';
import { encodeTransactionData } from 'src/helpers/helpers';
import { gasConfig } from 'src/config';
import { WrapAbiServiceProvider } from 'src/modules/wrapping/mocks/wrap.abi.service.mock';
import { WrapService } from 'src/modules/wrapping/services/wrap.service';
import { PairAbiServiceProvider } from 'src/modules/pair/mocks/pair.abi.service.mock';
Expand Down Expand Up @@ -285,7 +283,7 @@ describe('AutoRouterService', () => {
gasLimit: 40200000,
data: 'Y29tcG9zZVRhc2tzQDAwMDAwMDBiNTU1MzQ0NDMyZDMxMzIzMzM0MzUzNjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwNzExNzJhY2UwMjZiMGM0QEBAMDJAMDAwMDAwMTQ3Mzc3NjE3MDU0NmY2YjY1NmU3MzQ2Njk3ODY1NjQ0OTZlNzA3NTc0MDAwMDAwMGI1NTUzNDQ0MzJkMzEzMjMzMzQzNTM2MDAwMDAwMDcxMTcyYWNlMDI2YjBjNA==',
chainID: 'T',
version: 1,
version: 2,
options: undefined,
signature: undefined,
guardian: undefined,
Expand Down Expand Up @@ -340,7 +338,7 @@ describe('AutoRouterService', () => {
gasLimit: 75200000,
data: 'RVNEVFRyYW5zZmVyQDU1NTM0NDQzMmQzMTMyMzMzNDM1MzZAMDcwY2VmOWY1ZWRmY2YyOEA2MzZmNmQ3MDZmNzM2NTU0NjE3MzZiNzNAMDAwMDAwMDQ0NTQ3NGM0NDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwODA2ZjA1YjU5ZDNiMjAwMDBAMDNAMDAwMDAwMjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDEzMDAwMDAwMTU3Mzc3NjE3MDU0NmY2YjY1NmU3MzQ2Njk3ODY1NjQ0Zjc1NzQ3MDc1NzQwMDAwMDAwYzU3NDU0NzRjNDQyZDMxMzIzMzM0MzUzNjAwMDAwMDA1OTJhZmQ4YjAyZjAwMDAwMDIwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAxMjAwMDAwMDE1NzM3NzYxNzA1NDZmNmI2NTZlNzM0NjY5Nzg2NTY0NGY3NTc0NzA3NTc0MDAwMDAwMGE0ZDQ1NTgyZDMxMzIzMzM0MzUzNjAwMDAwMDA4MDZmMDViNTlkM2IyMDAwMEAwMUA=',
chainID: 'T',
version: 1,
version: 2,
options: undefined,
signature: undefined,
guardian: undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe('Composable Tasks Transaction', () => {
senderUsername: undefined,
signature: undefined,
value: '1000000000000000000',
version: 1,
version: 2,
});
});

Expand Down Expand Up @@ -114,7 +114,7 @@ describe('Composable Tasks Transaction', () => {
senderUsername: undefined,
signature: undefined,
value: '1000000000000000000',
version: 1,
version: 2,
});
});

Expand Down Expand Up @@ -148,7 +148,7 @@ describe('Composable Tasks Transaction', () => {
senderUsername: undefined,
signature: undefined,
value: '0',
version: 1,
version: 2,
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('DistributionTransactionsService', () => {
senderUsername: undefined,
signature: undefined,
value: '0',
version: 1,
version: 2,
guardian: undefined,
guardianSignature: undefined,
}),
Expand Down
6 changes: 3 additions & 3 deletions src/modules/escrow/specs/escrow.transaction.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('EscrowTransactionService', () => {
sender: senderAddress,
options: undefined,
signature: undefined,
version: 1,
version: 2,
}),
);
});
Expand Down Expand Up @@ -132,7 +132,7 @@ describe('EscrowTransactionService', () => {
senderUsername: undefined,
options: undefined,
signature: undefined,
version: 1,
version: 2,
guardian: undefined,
guardianSignature: undefined,
}),
Expand Down Expand Up @@ -168,7 +168,7 @@ describe('EscrowTransactionService', () => {
senderUsername: undefined,
options: undefined,
signature: undefined,
version: 1,
version: 2,
guardian: undefined,
guardianSignature: undefined,
}),
Expand Down
36 changes: 18 additions & 18 deletions src/modules/farm/specs/farm.transactions.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ describe('FarmService', () => {
'MultiESDTNFTTransfer@erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqssfuwnk5@01@EGLDMEXLP-abcdef@@1000000000000@enterFarmAndLockRewards',
),
chainID: mxConfig.chainID,
version: 1,
version: 2,
options: undefined,
signature: undefined,
});
Expand Down Expand Up @@ -134,7 +134,7 @@ describe('FarmService', () => {
'ESDTNFTTransfer@EGLDMEXFL-abcdef@01@1000000000000@erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqssfuwnk5@07311709943153914477',
),
chainID: mxConfig.chainID,
version: 1,
version: 2,
options: undefined,
signature: undefined,
});
Expand Down Expand Up @@ -170,7 +170,7 @@ describe('FarmService', () => {
'ESDTNFTTransfer@EGLDTOK4FL-abcdef@01@1000000000000@erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqes9lzxht@claimRewards',
),
chainID: mxConfig.chainID,
version: 1,
version: 2,
options: undefined,
signature: undefined,
});
Expand Down Expand Up @@ -226,7 +226,7 @@ describe('FarmService', () => {
'ESDTNFTTransfer@EGLDMEXFL-abcdef@01@1000000000000@erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqssfuwnk5@migrateToNewFarm@erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu',
),
chainID: mxConfig.chainID,
version: 1,
version: 2,
options: undefined,
signature: undefined,
});
Expand Down Expand Up @@ -258,7 +258,7 @@ describe('FarmService', () => {
'setFarmMigrationConfig@erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqssfuwnk5@EGLDMEXFL-abcdef@erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu@erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu',
),
chainID: mxConfig.chainID,
version: 1,
version: 2,
options: undefined,
signature: undefined,
guardian: undefined,
Expand Down Expand Up @@ -286,7 +286,7 @@ describe('FarmService', () => {
gasLimit: gasConfig.farms['v1.2'].stopRewards,
data: encodeTransactionData('stopRewardsAndMigrateRps'),
chainID: mxConfig.chainID,
version: 1,
version: 2,
options: undefined,
signature: undefined,
guardian: undefined,
Expand Down Expand Up @@ -324,7 +324,7 @@ describe('FarmService', () => {
gasLimit: gasConfig.farms.admin.end_produce_rewards,
data: encodeTransactionData('end_produce_rewards'),
chainID: mxConfig.chainID,
version: 1,
version: 2,
options: undefined,
signature: undefined,
guardian: undefined,
Expand Down Expand Up @@ -362,7 +362,7 @@ describe('FarmService', () => {
gasLimit: gasConfig.farms.admin.start_produce_rewards,
data: encodeTransactionData('start_produce_rewards'),
chainID: mxConfig.chainID,
version: 1,
version: 2,
options: undefined,
signature: undefined,
guardian: undefined,
Expand Down Expand Up @@ -404,7 +404,7 @@ describe('FarmService', () => {
'setPerBlockRewardAmount@1000000000000',
),
chainID: mxConfig.chainID,
version: 1,
version: 2,
options: undefined,
signature: undefined,
guardian: undefined,
Expand Down Expand Up @@ -444,7 +444,7 @@ describe('FarmService', () => {
gasLimit: gasConfig.farms.admin.set_penalty_percent,
data: encodeTransactionData('set_penalty_percent@05'),
chainID: mxConfig.chainID,
version: 1,
version: 2,
options: undefined,
signature: undefined,
guardian: undefined,
Expand Down Expand Up @@ -484,7 +484,7 @@ describe('FarmService', () => {
gasLimit: gasConfig.farms.admin.set_minimum_farming_epochs,
data: encodeTransactionData('set_minimum_farming_epochs@10'),
chainID: mxConfig.chainID,
version: 1,
version: 2,
options: undefined,
signature: undefined,
guardian: undefined,
Expand Down Expand Up @@ -526,7 +526,7 @@ describe('FarmService', () => {
'set_transfer_exec_gas_limit@0100000000',
),
chainID: mxConfig.chainID,
version: 1,
version: 2,
options: undefined,
signature: undefined,
guardian: undefined,
Expand Down Expand Up @@ -566,7 +566,7 @@ describe('FarmService', () => {
gasLimit: gasConfig.farms.admin.set_burn_gas_limit,
data: encodeTransactionData('set_burn_gas_limit@0100000000'),
chainID: mxConfig.chainID,
version: 1,
version: 2,
options: undefined,
signature: undefined,
guardian: undefined,
Expand Down Expand Up @@ -604,7 +604,7 @@ describe('FarmService', () => {
gasLimit: gasConfig.farms.admin.pause,
data: encodeTransactionData('pause'),
chainID: mxConfig.chainID,
version: 1,
version: 2,
options: undefined,
signature: undefined,
guardian: undefined,
Expand Down Expand Up @@ -642,7 +642,7 @@ describe('FarmService', () => {
gasLimit: gasConfig.farms.admin.resume,
data: encodeTransactionData('resume'),
chainID: mxConfig.chainID,
version: 1,
version: 2,
options: undefined,
signature: undefined,
guardian: undefined,
Expand Down Expand Up @@ -688,7 +688,7 @@ describe('FarmService', () => {
'registerFarmToken@FarmingToken12@T1T2-1234@18',
),
chainID: mxConfig.chainID,
version: 1,
version: 2,
options: undefined,
signature: undefined,
guardian: undefined,
Expand Down Expand Up @@ -726,7 +726,7 @@ describe('FarmService', () => {
gasLimit: gasConfig.farms.admin.setLocalRolesFarmToken,
data: encodeTransactionData('setLocalRolesFarmToken'),
chainID: mxConfig.chainID,
version: 1,
version: 2,
options: undefined,
signature: undefined,
guardian: undefined,
Expand Down Expand Up @@ -790,7 +790,7 @@ describe('FarmService', () => {
'MultiESDTNFTTransfer@erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqssfuwnk5@02@EGLDMEXFL-abcdef@@01000000000000@EGLDMEXFL-abcdef@@01000000000000@mergeFarmTokens',
),
chainID: mxConfig.chainID,
version: 1,
version: 2,
options: undefined,
signature: undefined,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('FeesCollectorTransactionService', () => {
data: encodeTransactionData('claimRewards'),
options: undefined,
signature: undefined,
version: 1,
version: 2,
guardian: undefined,
guardianSignature: undefined,
}),
Expand Down Expand Up @@ -94,7 +94,7 @@ describe('FeesCollectorTransactionService', () => {
data: encodeTransactionData('claimRewards'),
options: undefined,
signature: undefined,
version: 1,
version: 2,
guardian: undefined,
guardianSignature: undefined,
},
Expand Down Expand Up @@ -135,7 +135,7 @@ describe('FeesCollectorTransactionService', () => {
data: encodeTransactionData('claimRewards'),
options: undefined,
signature: undefined,
version: 1,
version: 2,
guardian: undefined,
guardianSignature: undefined,
},
Expand Down Expand Up @@ -180,7 +180,7 @@ describe('FeesCollectorTransactionService', () => {
),
options: undefined,
signature: undefined,
version: 1,
version: 2,
guardian: undefined,
guardianSignature: undefined,
}),
Expand Down Expand Up @@ -212,7 +212,7 @@ describe('FeesCollectorTransactionService', () => {
),
options: undefined,
signature: undefined,
version: 1,
version: 2,
guardian: undefined,
guardianSignature: undefined,
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe('LockedTokenWrapperTransactionService', () => {
),
options: undefined,
signature: undefined,
version: 1,
version: 2,
}),
);
});
Expand Down Expand Up @@ -141,7 +141,7 @@ describe('LockedTokenWrapperTransactionService', () => {
),
options: undefined,
signature: undefined,
version: 1,
version: 2,
}),
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('MetabondingTransactionsService', () => {
sender,
signature: undefined,
value: '0',
version: 1,
version: 2,
}),
);
});
Expand All @@ -101,7 +101,7 @@ describe('MetabondingTransactionsService', () => {
senderUsername: undefined,
signature: undefined,
value: '0',
version: 1,
version: 2,
guardian: undefined,
guardianSignature: undefined,
}),
Expand All @@ -128,7 +128,7 @@ describe('MetabondingTransactionsService', () => {
senderUsername: undefined,
signature: undefined,
value: '0',
version: 1,
version: 2,
guardian: undefined,
guardianSignature: undefined,
}),
Expand Down
Loading

0 comments on commit 5d39505

Please sign in to comment.