Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(platform)!: token base support #2383

Merged
merged 75 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
5e9c441
worked on token support
QuantumExplorer May 2, 2024
13f8674
more work
QuantumExplorer May 2, 2024
b9ed063
more work
QuantumExplorer May 2, 2024
6cc1f60
Merge branch 'v1.6-dev' into feat/tokenSupport
QuantumExplorer Nov 14, 2024
6be7906
temp work
QuantumExplorer Nov 15, 2024
2ac97bd
Merge branch 'v1.7-dev' into feat/tokenSupport
QuantumExplorer Dec 1, 2024
a34ff06
more work on tokens
QuantumExplorer Dec 1, 2024
279d16f
added burn transition
QuantumExplorer Dec 1, 2024
cf32dd5
more work on tokens
QuantumExplorer Dec 5, 2024
c72013b
Merge branch 'v1.7-dev' into feat/tokenSupport
QuantumExplorer Dec 5, 2024
71218a4
more work
QuantumExplorer Dec 9, 2024
531aab2
more work
QuantumExplorer Dec 10, 2024
b9235d2
feat(dpp): token meta schema (#2378)
shumkov Dec 10, 2024
154a0b2
more config
QuantumExplorer Dec 10, 2024
0537aa6
more work
QuantumExplorer Dec 10, 2024
148767d
chore: update tokens metaschema
shumkov Dec 10, 2024
79057d4
Merge remote-tracking branch 'origin/feat/tokenSupport' into feat/tok…
shumkov Dec 10, 2024
3049b9e
more work
QuantumExplorer Dec 12, 2024
86166f3
Merge branch 'feat/tokenSupport' of github.com:dashpay/platform into …
QuantumExplorer Dec 12, 2024
e2a5129
compiled dpp
QuantumExplorer Dec 13, 2024
f886d8d
more fixes
QuantumExplorer Dec 14, 2024
dc8e575
more work
QuantumExplorer Dec 15, 2024
b07e1a6
more token work
QuantumExplorer Dec 18, 2024
a5a16c4
tokens compiling
QuantumExplorer Dec 20, 2024
b018d31
more work on tokens
QuantumExplorer Dec 23, 2024
4ecc825
more validation work
QuantumExplorer Dec 24, 2024
4214369
a lot more validation
QuantumExplorer Dec 25, 2024
b30ba05
compiling
QuantumExplorer Dec 26, 2024
40316c0
compiling
QuantumExplorer Dec 27, 2024
e23bcda
a lot more work
QuantumExplorer Dec 28, 2024
4135031
work on group actions
QuantumExplorer Dec 30, 2024
bd541b6
more work on groups
QuantumExplorer Dec 30, 2024
712396b
basic validation of tokens
QuantumExplorer Dec 30, 2024
d3c0260
more work
QuantumExplorer Jan 1, 2025
f3f9eec
more work
QuantumExplorer Jan 1, 2025
83fff2f
tests passing
QuantumExplorer Jan 2, 2025
4712d05
some more work on deserialization of tokens
QuantumExplorer Jan 2, 2025
fbcfd6e
basic strategy structure
QuantumExplorer Jan 2, 2025
39e6d5d
more tests
QuantumExplorer Jan 2, 2025
b21024e
minting is validated
QuantumExplorer Jan 3, 2025
78394e0
more token tests
QuantumExplorer Jan 4, 2025
8379665
transfer tests
QuantumExplorer Jan 4, 2025
a4331ce
more tests
QuantumExplorer Jan 5, 2025
22814b0
group actions working
QuantumExplorer Jan 5, 2025
e5e361a
more tests
QuantumExplorer Jan 5, 2025
2d224a1
its cold
QuantumExplorer Jan 5, 2025
726c524
its cold
QuantumExplorer Jan 5, 2025
bb4e761
freeze and unfreeze validation
QuantumExplorer Jan 6, 2025
7a6202a
added info queries
QuantumExplorer Jan 6, 2025
239c2cb
more work
QuantumExplorer Jan 6, 2025
d10ffa2
Merge branch 'v1.8-dev' into feat/tokenSupport
QuantumExplorer Jan 6, 2025
da5d87a
fixes for wasm
QuantumExplorer Jan 6, 2025
e701008
more state transitions
QuantumExplorer Jan 7, 2025
084f722
more work
QuantumExplorer Jan 7, 2025
6aaadb6
more work
QuantumExplorer Jan 7, 2025
779114d
more token work
QuantumExplorer Jan 7, 2025
ad720bf
support for new grovedb
QuantumExplorer Jan 10, 2025
29dadbf
a lot of grovedb support
QuantumExplorer Jan 10, 2025
bfbce84
added search contract
QuantumExplorer Jan 11, 2025
2fc7287
Merge branch 'v1.8-dev' into feat/tokenSupport
QuantumExplorer Jan 12, 2025
e800861
more token support
QuantumExplorer Jan 12, 2025
44dce25
work on token proofs
QuantumExplorer Jan 13, 2025
999a432
more work
QuantumExplorer Jan 13, 2025
184d1e3
more work on strategy tests
QuantumExplorer Jan 13, 2025
346b803
token statuses query
QuantumExplorer Jan 13, 2025
6d90d83
updated unit tests for token history contract
QuantumExplorer Jan 13, 2025
d83ef09
group info queries
QuantumExplorer Jan 13, 2025
06d3c25
temp disable some queries
QuantumExplorer Jan 14, 2025
c9b6014
updated to version 9
QuantumExplorer Jan 16, 2025
0cf59ed
Merge branch 'v1.8-dev' into feat/tokenSupport
QuantumExplorer Jan 16, 2025
bfe7026
more merge fixes
QuantumExplorer Jan 16, 2025
fa214c1
updated to latest grovedb
QuantumExplorer Jan 16, 2025
0e2a01e
fix verify feature
QuantumExplorer Jan 16, 2025
aedfd06
updated and fixed issues
QuantumExplorer Jan 16, 2025
33aefc9
Merge branch 'v2.0-tokens-dev' into feat/tokenSupport
QuantumExplorer Jan 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .github/package-filters/js-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
- .github/workflows/tests*
- packages/wallet-utils-contract/**

'@dashevo/token-history-contract': &token-history-contract
- .github/workflows/tests*
- packages/token-history-contract/**

'@dashevo/dashpay-contract': &dashpay-contract
- .github/workflows/tests*
- packages/dashpay-contract/**
Expand Down Expand Up @@ -30,6 +34,7 @@
- *dpns-contract
- *withdrawals-contract
- *wallet-utils-contract
- *token-history-contract
- packages/rs-platform-serialization/**
- packages/rs-platform-serialization-derive/**
- packages/rs-platform-value/**
Expand Down Expand Up @@ -80,6 +85,7 @@ dashmate:
- *masternode-reward-shares-contract
- *dpns-contract
- *withdrawals-contract
- *token-history-contract
- *wallet-lib
- *dapi-client

Expand Down
5 changes: 5 additions & 0 deletions .github/package-filters/rs-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ wallet-utils-contract: &wallet-utils-contract
- .github/workflows/tests*
- packages/wallet-utils-contract/**

token-history-contract: &token-history-contract
- .github/workflows/tests*
- packages/token-history-contract/**

dashpay-contract: &dashpay-contract
- .github/workflows/tests*
- packages/dashpay-contract/**
Expand Down Expand Up @@ -30,6 +34,7 @@ dpp: &dpp
- *dpns-contract
- *withdrawals-contract
- *wallet-utils-contract
- *token-history-contract
- *json-schema-compatibility-validator
- packages/rs-platform-serialization/**
- packages/rs-platform-serialization-derive/**
Expand Down
60 changes: 33 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ members = [
"packages/rs-json-schema-compatibility-validator",
"packages/check-features",
"packages/wallet-utils-contract",
"packages/token-history-contract"
]
[workspace.package]

Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ COPY --parents \
packages/feature-flags-contract \
packages/dpns-contract \
packages/wallet-utils-contract \
packages/token-history-contract \
packages/data-contracts \
packages/strategy-tests \
packages/simple-signer \
Expand Down Expand Up @@ -419,6 +420,7 @@ COPY --parents \
packages/rs-drive-abci \
packages/dashpay-contract \
packages/wallet-utils-contract \
packages/token-history-contract \
packages/withdrawals-contract \
packages/masternode-reward-shares-contract \
packages/feature-flags-contract \
Expand Down Expand Up @@ -508,6 +510,7 @@ COPY --parents \
packages/dashpay-contract \
packages/withdrawals-contract \
packages/wallet-utils-contract \
packages/token-history-contract \
packages/masternode-reward-shares-contract \
packages/feature-flags-contract \
packages/dpns-contract \
Expand Down Expand Up @@ -628,6 +631,7 @@ COPY --from=build-dashmate-helper /platform/packages/js-grpc-common packages/js-
COPY --from=build-dashmate-helper /platform/packages/dapi-grpc packages/dapi-grpc
COPY --from=build-dashmate-helper /platform/packages/dash-spv packages/dash-spv
COPY --from=build-dashmate-helper /platform/packages/wallet-utils-contract packages/wallet-utils-contract
COPY --from=build-dashmate-helper /platform/packages/token-history-contract packages/token-history-contract
COPY --from=build-dashmate-helper /platform/packages/withdrawals-contract packages/withdrawals-contract
COPY --from=build-dashmate-helper /platform/packages/masternode-reward-shares-contract packages/masternode-reward-shares-contract
COPY --from=build-dashmate-helper /platform/packages/feature-flags-contract packages/feature-flags-contract
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"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",
"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",
"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",
"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",
"test:dapi-client": "ultra -r --filter \"packages/@(js-dapi-client|wallet-lib|js-dash-sdk|platform-test-suite)\" test",
"test:sdk": "ultra -r --filter \"packages/@(js-dash-sdk|platform-test-suite)\" test",
"test:spv": "ultra -r --filter \"packages/@(dash-spv|js-dapi-client)\" test",
Expand Down Expand Up @@ -65,7 +66,8 @@
"packages/masternode-reward-shares-contract",
"packages/dash-spv",
"packages/wasm-dpp",
"packages/withdrawals-contract"
"packages/withdrawals-contract",
"packages/token-history-contract"
],
"resolutions": {
"elliptic": "6.5.7",
Expand Down
12 changes: 10 additions & 2 deletions packages/dapi-grpc/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
// Derive features for versioned messages
//
// "GetConsensusParamsRequest" is excluded as this message does not support proofs
const VERSIONED_REQUESTS: [&str; 30] = [
const VERSIONED_REQUESTS: [&str; 34] = [
"GetDataContractHistoryRequest",
"GetDataContractRequest",
"GetDataContractsRequest",
Expand Down Expand Up @@ -78,14 +78,18 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
"GetEvonodesProposedEpochBlocksByIdsRequest",
"GetEvonodesProposedEpochBlocksByRangeRequest",
"GetStatusRequest",
"GetIdentityTokenBalancesRequest",
"GetIdentitiesTokenBalancesRequest",
"GetIdentityTokenInfosRequest",
"GetIdentitiesTokenInfosRequest",
];

// The following responses are excluded as they don't support proofs:
// - "GetConsensusParamsResponse"
// - "GetStatusResponse"
//
// "GetEvonodesProposedEpochBlocksResponse" is used for 2 Requests
const VERSIONED_RESPONSES: [&str; 29] = [
const VERSIONED_RESPONSES: [&str; 33] = [
"GetDataContractHistoryResponse",
"GetDataContractResponse",
"GetDataContractsResponse",
Expand Down Expand Up @@ -115,6 +119,10 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig {
"GetVotePollsByEndDateResponse",
"GetTotalCreditsInPlatformResponse",
"GetEvonodesProposedEpochBlocksResponse",
"GetIdentityTokenBalancesResponse",
"GetIdentitiesTokenBalancesResponse",
"GetIdentityTokenInfosResponse",
"GetIdentitiesTokenInfosResponse",
];

check_unique(&VERSIONED_REQUESTS).expect("VERSIONED_REQUESTS");
Expand Down
Loading