Skip to content

Commit 55a1e03

Browse files
feat(platform)!: token base support (#2383)
1 parent 59bf0af commit 55a1e03

File tree

919 files changed

+51292
-4825
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

919 files changed

+51292
-4825
lines changed

.github/package-filters/js-packages.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
- .github/workflows/tests*
33
- packages/wallet-utils-contract/**
44

5+
'@dashevo/token-history-contract': &token-history-contract
6+
- .github/workflows/tests*
7+
- packages/token-history-contract/**
8+
59
'@dashevo/dashpay-contract': &dashpay-contract
610
- .github/workflows/tests*
711
- packages/dashpay-contract/**
@@ -30,6 +34,7 @@
3034
- *dpns-contract
3135
- *withdrawals-contract
3236
- *wallet-utils-contract
37+
- *token-history-contract
3338
- packages/rs-platform-serialization/**
3439
- packages/rs-platform-serialization-derive/**
3540
- packages/rs-platform-value/**
@@ -80,6 +85,7 @@ dashmate:
8085
- *masternode-reward-shares-contract
8186
- *dpns-contract
8287
- *withdrawals-contract
88+
- *token-history-contract
8389
- *wallet-lib
8490
- *dapi-client
8591

.github/package-filters/rs-packages.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ wallet-utils-contract: &wallet-utils-contract
22
- .github/workflows/tests*
33
- packages/wallet-utils-contract/**
44

5+
token-history-contract: &token-history-contract
6+
- .github/workflows/tests*
7+
- packages/token-history-contract/**
8+
59
dashpay-contract: &dashpay-contract
610
- .github/workflows/tests*
711
- packages/dashpay-contract/**
@@ -30,6 +34,7 @@ dpp: &dpp
3034
- *dpns-contract
3135
- *withdrawals-contract
3236
- *wallet-utils-contract
37+
- *token-history-contract
3338
- *json-schema-compatibility-validator
3439
- packages/rs-platform-serialization/**
3540
- packages/rs-platform-serialization-derive/**

Cargo.lock

Lines changed: 33 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ members = [
2929
"packages/rs-json-schema-compatibility-validator",
3030
"packages/check-features",
3131
"packages/wallet-utils-contract",
32+
"packages/token-history-contract"
3233
]
3334
[workspace.package]
3435

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ COPY --parents \
353353
packages/feature-flags-contract \
354354
packages/dpns-contract \
355355
packages/wallet-utils-contract \
356+
packages/token-history-contract \
356357
packages/data-contracts \
357358
packages/strategy-tests \
358359
packages/simple-signer \
@@ -419,6 +420,7 @@ COPY --parents \
419420
packages/rs-drive-abci \
420421
packages/dashpay-contract \
421422
packages/wallet-utils-contract \
423+
packages/token-history-contract \
422424
packages/withdrawals-contract \
423425
packages/masternode-reward-shares-contract \
424426
packages/feature-flags-contract \
@@ -508,6 +510,7 @@ COPY --parents \
508510
packages/dashpay-contract \
509511
packages/withdrawals-contract \
510512
packages/wallet-utils-contract \
513+
packages/token-history-contract \
511514
packages/masternode-reward-shares-contract \
512515
packages/feature-flags-contract \
513516
packages/dpns-contract \
@@ -628,6 +631,7 @@ COPY --from=build-dashmate-helper /platform/packages/js-grpc-common packages/js-
628631
COPY --from=build-dashmate-helper /platform/packages/dapi-grpc packages/dapi-grpc
629632
COPY --from=build-dashmate-helper /platform/packages/dash-spv packages/dash-spv
630633
COPY --from=build-dashmate-helper /platform/packages/wallet-utils-contract packages/wallet-utils-contract
634+
COPY --from=build-dashmate-helper /platform/packages/token-history-contract packages/token-history-contract
631635
COPY --from=build-dashmate-helper /platform/packages/withdrawals-contract packages/withdrawals-contract
632636
COPY --from=build-dashmate-helper /platform/packages/masternode-reward-shares-contract packages/masternode-reward-shares-contract
633637
COPY --from=build-dashmate-helper /platform/packages/feature-flags-contract packages/feature-flags-contract

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"test:dashpay-contract": "ultra -r --filter \"packages/@(dashpay-contract|js-dash-sdk|js-drive|js-dapi-client|wasm-dpp|wallet-lib|dapi|platform-test-suite)\" test",
1515
"test:dpns-contract": "ultra -r --filter \"packages/@(dpns-contract|js-dash-sdk|js-drive|js-dapi-client|wasm-dpp|wallet-lib|dapi|platform-test-suite)\" test",
1616
"test:feature-flags-contract": "ultra -r --filter \"packages/@(feature-flags-contract|js-dash-sdk|js-drive|js-dapi-client|wasm-dpp|wallet-lib|dapi|platform-test-suite)\" test",
17+
"test:token-history-contract": "ultra -r --filter \"packages/@(token-history-contract|js-dash-sdk|js-drive|js-dapi-client|wasm-dpp|wallet-lib|dapi|platform-test-suite)\" test",
1718
"test:dapi-client": "ultra -r --filter \"packages/@(js-dapi-client|wallet-lib|js-dash-sdk|platform-test-suite)\" test",
1819
"test:sdk": "ultra -r --filter \"packages/@(js-dash-sdk|platform-test-suite)\" test",
1920
"test:spv": "ultra -r --filter \"packages/@(dash-spv|js-dapi-client)\" test",
@@ -65,7 +66,8 @@
6566
"packages/masternode-reward-shares-contract",
6667
"packages/dash-spv",
6768
"packages/wasm-dpp",
68-
"packages/withdrawals-contract"
69+
"packages/withdrawals-contract",
70+
"packages/token-history-contract"
6971
],
7072
"resolutions": {
7173
"elliptic": "6.5.7",

packages/dapi-grpc/build.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
4747
// Derive features for versioned messages
4848
//
4949
// "GetConsensusParamsRequest" is excluded as this message does not support proofs
50-
const VERSIONED_REQUESTS: [&str; 30] = [
50+
const VERSIONED_REQUESTS: [&str; 34] = [
5151
"GetDataContractHistoryRequest",
5252
"GetDataContractRequest",
5353
"GetDataContractsRequest",
@@ -78,14 +78,18 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
7878
"GetEvonodesProposedEpochBlocksByIdsRequest",
7979
"GetEvonodesProposedEpochBlocksByRangeRequest",
8080
"GetStatusRequest",
81+
"GetIdentityTokenBalancesRequest",
82+
"GetIdentitiesTokenBalancesRequest",
83+
"GetIdentityTokenInfosRequest",
84+
"GetIdentitiesTokenInfosRequest",
8185
];
8286

8387
// The following responses are excluded as they don't support proofs:
8488
// - "GetConsensusParamsResponse"
8589
// - "GetStatusResponse"
8690
//
8791
// "GetEvonodesProposedEpochBlocksResponse" is used for 2 Requests
88-
const VERSIONED_RESPONSES: [&str; 29] = [
92+
const VERSIONED_RESPONSES: [&str; 33] = [
8993
"GetDataContractHistoryResponse",
9094
"GetDataContractResponse",
9195
"GetDataContractsResponse",
@@ -115,6 +119,10 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
115119
"GetVotePollsByEndDateResponse",
116120
"GetTotalCreditsInPlatformResponse",
117121
"GetEvonodesProposedEpochBlocksResponse",
122+
"GetIdentityTokenBalancesResponse",
123+
"GetIdentitiesTokenBalancesResponse",
124+
"GetIdentityTokenInfosResponse",
125+
"GetIdentitiesTokenInfosResponse",
118126
];
119127

120128
check_unique(&VERSIONED_REQUESTS).expect("VERSIONED_REQUESTS");

0 commit comments

Comments
 (0)