Skip to content

Commit

Permalink
Merge pull request #1488 from multiversx/SERVICES-2608-update-sdk-cor…
Browse files Browse the repository at this point in the history
…e-package

[SERVICES-2608] Update sdk-core package
  • Loading branch information
mad2sm0key authored Sep 24, 2024
2 parents 1762734 + d13f8b4 commit 4899b8c
Show file tree
Hide file tree
Showing 20 changed files with 384 additions and 304 deletions.
320 changes: 199 additions & 121 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
"@datastructures-js/priority-queue": "^6.1.0",
"@elastic/elasticsearch": "7.12.0",
"@golevelup/nestjs-rabbitmq": "^4.0.0",
"@multiversx/sdk-core": "^12.8.0",
"@multiversx/sdk-core": "^13.6.3",
"@multiversx/sdk-data-api-client": "^0.5.8",
"@multiversx/sdk-exchange": "^0.2.20",
"@multiversx/sdk-native-auth-server": "1.0.15",
"@multiversx/sdk-native-auth-server": "1.0.19",
"@multiversx/sdk-nestjs-cache": "^3.7.0",
"@multiversx/sdk-nestjs-common": "^3.7.0",
"@multiversx/sdk-nestjs-elastic": "^3.7.0",
Expand Down
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: 'Y29tcG9zZVR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
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
8 changes: 4 additions & 4 deletions src/modules/escrow/specs/escrow.transaction.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe('EscrowTransactionService', () => {
chainID: mxConfig.chainID,
nonce: 0,
data: encodeTransactionData(
`MultiESDTNFTTransfer@${scAddress.escrow}@01@XMEX-123456@01@1000000000000000000@lockFunds@${receiverAddress}`,
`ESDTNFTTransfer@XMEX-123456@01@1000000000000000000@${scAddress.escrow}@lockFunds@${receiverAddress}`,
),
gasPrice: 1000000000,
gasLimit: gasConfig.escrow.lockFunds,
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export abstract class TransactionsFarmService {
.withMultiESDTNFTTransfer(mappedPayments)
.withSender(Address.fromString(sender))
.withGasLimit(
gasConfig.farms.admin.mergeFarmTokensMultiplier *
gasConfig.farms['v1.3'].mergeFarmTokensMultiplier *
payments.length,
)
.withChainID(mxConfig.chainID)
Expand Down
42 changes: 21 additions & 21 deletions src/modules/farm/specs/farm.transactions.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ describe('FarmService', () => {
nonce: 0,
value: '0',
receiver:
'erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu',
'erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqssfuwnk5',
sender: 'erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu',
gasPrice: 1000000000,
gasLimit: gasConfig.farms['v1.2'].enterFarm.default,
data: encodeTransactionData(
'MultiESDTNFTTransfer@erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqssfuwnk5@01@EGLDMEXLP-abcdef@@1000000000000@enterFarmAndLockRewards',
'ESDTTransfer@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 @@ -785,12 +785,12 @@ describe('FarmService', () => {
'erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu',
sender: 'erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu',
gasPrice: 1000000000,
gasLimit: gasConfig.farms.admin.mergeFarmTokensMultiplier * 2,
gasLimit: gasConfig.farms['v1.3'].mergeFarmTokensMultiplier * 2,
data: encodeTransactionData(
'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 4899b8c

Please sign in to comment.