Bronek Kozicki
dbbf6829b9
Gate VaultCreate on featureMPTokensV1
2025-04-02 17:11:49 +01:00
Bronek Kozicki
5f53e4d1f8
Change output structure of vault_info
2025-04-02 17:09:49 +01:00
Bronek Kozicki
fa0b021fb8
Add RPC vault_info, remove RPC::supplementJson<ltVAULT>
2025-04-02 16:40:37 +01:00
Bronek Kozicki
09833abd46
Improve checks in VaultWithdraw, more tests
2025-04-02 12:10:22 +01:00
Bronek Kozicki
dc249b8b6d
Add unit tests
2025-04-01 19:06:45 +01:00
Bronek Kozicki
ad6e048ab2
Bring back addEmptyHolding and removeEmptyHolding to View
2025-04-01 13:51:47 +01:00
Bronek Kozicki
2b86a1a557
Enforce Destination checks on VaultWithdraw
2025-04-01 13:51:43 +01:00
Bronek Kozicki
93bd26547f
Move addEmptyHolding to VaultCreate and removeEmptyHolding to VaultDelete
2025-03-31 18:20:31 +01:00
Bronek Kozicki
b6c74303c1
Add nullptr checks
2025-03-31 16:53:58 +01:00
Bronek Kozicki
a1c21a06bc
Rename sfMPTokenIssuanceID in Vault to sfShareMPTID
2025-03-31 16:40:46 +01:00
Bronek Kozicki
b67d8e676b
Add more comments on usage of enforceMPTokenAuthorization
2025-03-31 16:26:30 +01:00
Bronek Kozicki
83582b6731
Add RPC unit test
2025-03-31 15:13:58 +01:00
Bronek Kozicki
124512eba9
Add terADDRESS_COLLISION to AMMCreate::preclaim
2025-03-28 21:56:56 +00:00
Bronek Kozicki
1807b441ee
Fix bug in pseudoAccountAddress and add unit test
2025-03-28 21:03:49 +00:00
Bronek Kozicki
d3c1d02c72
Return terADDRESS_COLLISION from preclaim if cannot allocate AccountID
2025-03-28 19:49:37 +00:00
Bronek Kozicki
f77ad36283
Merge branch 'develop' into vault
2025-03-28 17:06:06 +00:00
Bronek Kozicki
aff08b7543
Add invariant checks for pseudo-account
2025-03-28 17:04:38 +00:00
Bronek Kozicki
696cf2b563
Merge branch 'develop' into vault
2025-03-28 17:03:15 +00:00
Vlad
72e076b694
test: enable compile time param to change reference fee value ( #5159 )
...
Adds an extra CI pipeline to perform unit tests using different values for fees.
2025-03-27 23:40:36 +00:00
Bronek Kozicki
abaf213336
Fix clang, minor refactor of createPseudoAccount
2025-03-27 19:29:41 +00:00
Bart
6cf37c4abe
refactor: Move integration tests from 'examples/' into 'tests/' ( #5367 )
...
This change moves `examples/example` into `tests/conan` to make it clear it is an integration test, and adjusts the `conan` CI job accordingly
2025-03-27 14:49:09 +00:00
Bronek Kozicki
0f99955ae9
Merge branch 'develop' into vault
2025-03-27 13:07:02 +00:00
Bronek Kozicki
7686c3d88d
Rename ShareTotal to SharesTotal
2025-03-27 11:50:03 +00:00
Bronek Kozicki
33660eadc6
Add comment on tecNO_ENTRY vs tecOBJECT_NOT_FOUND
2025-03-26 19:43:35 +00:00
Bronek Kozicki
0636d4695d
Rename sfAsset... fields to sfAssets...
2025-03-26 19:19:30 +00:00
Bronek Kozicki
b6d7ef6c02
Add check for AssetTotal in VaultDelete
2025-03-26 19:17:07 +00:00
Bronek Kozicki
2e13dc1e85
Switch 'vault not found' to tecNO_ENTRY
2025-03-26 19:07:10 +00:00
Bronek Kozicki
dee06df012
Remove tecINVALID_DOMAIN error code
...
Also remove superflous checks in CredentialHelpers
2025-03-26 17:24:41 +00:00
Bronek Kozicki
f5042df72b
Expand tests for numberFromJson
2025-03-26 16:16:31 +00:00
Bronek Kozicki
d16e0518fd
Remove Env::vault()
2025-03-26 13:22:43 +00:00
Bronek Kozicki
3883bafd52
Update transactions.macro comment for ttVAULT_CLAWBACK
2025-03-26 12:29:56 +00:00
Bronek Kozicki
275e02f190
Add UNREACHABLE and LCOV_EXCL_LINE
2025-03-26 12:20:07 +00:00
Bronek Kozicki
afaa6aec8b
Add test for nontransferable shares
2025-03-25 18:50:07 +00:00
Valentin Balaschenko
fc204773d6
Intrusive SHAMap smart pointers for efficient memory use and lock-free synchronization ( #5152 )
...
The main goal of this optimisation is memory reduction in SHAMapTreeNodes by introducing intrusive pointers instead of standard std::shared_ptr and std::weak_ptr.
2025-03-25 18:40:25 +00:00
Bronek Kozicki
05ebd0d8a6
Make empty VaultID a temMALFORMED
2025-03-25 17:54:59 +00:00
Bronek Kozicki
372555bda8
Rename tecVAULT_ACCOUNT to tecPSEUDO_ACCOUNT
2025-03-25 15:04:30 +00:00
Vlad
2bc5cb240f
test: enable unit tests to work with variable reference fee ( #5145 )
...
Fix remaining unit tests to be able to process reference fee values other than 10.
2025-03-25 10:31:25 -04:00
Bronek Kozicki
2f06b344a7
Extend tests for updating permissioned domain
2025-03-25 12:47:44 +00:00
Bronek Kozicki
fbe28f6536
Switch sfAssetTotal sfAssetAvailable and sfLossUnrealized to required
2025-03-25 12:07:48 +00:00
Bronek Kozicki
ae68a09b06
Supplement ShareTotal in ledger_entry, ledger_data and account_objects.
2025-03-25 11:22:26 +00:00
Vlad
67028d6ea6
test: enable TxQ unit tests work with variable reference fee ( #5118 )
...
In preparation for a potential reference fee change we would like to verify that fee change works as expected. The first step is to fix all unit tests to be able to work with different reference fee values.
2025-03-24 14:56:19 -04:00
Bronek Kozicki
dd3edbd5b0
Missed one getSeqValue()
2025-03-24 17:23:47 +00:00
Bronek Kozicki
a173dd20e2
Disallow regular Clawback on Vault accounts
2025-03-24 11:45:50 +00:00
Bronek Kozicki
cc4f87729f
Merge branch 'develop' into vault
2025-03-24 11:25:35 +00:00
Bronek Kozicki
1e565e8488
Pseudo-accounts to use sequence 0
2025-03-24 11:10:31 +00:00
Bronek Kozicki
9c1a0aad7d
Cleanup handling of unsupported PseudoAccountOwnerType
2025-03-24 10:41:19 +00:00
Bronek Kozicki
d8880ddb48
Replace getSeqProxy().value() with getSeqValue() where appropriate
2025-03-24 10:35:11 +00:00
Bronek Kozicki
1f005d2370
Add WaiveTransferFee::Yes for consistency
...
This has no actual effect since we do not set TransferRate in
mptIssuance of the vault shares; and transfers to the issuer are never
subject to TransferRate.
2025-03-21 16:48:40 +00:00
Bronek Kozicki
0959bf82b7
Enforce no negative balance at the end of transaction
2025-03-21 16:45:52 +00:00
Bronek Kozicki
58f15307ba
Add ShareTotal to ledger_entry output
2025-03-21 16:33:31 +00:00