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

Release/babylon 1.4.0 - > main #646

Merged
merged 104 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
0bf2f9f
transaction type and accounts with/without manifest owner call filters.
PawelPawelec-RDX Dec 12, 2023
a15acfc
rename to manifest class
PawelPawelec-RDX Dec 20, 2023
faa1472
return only assigned modules role assignments.
PawelPawelec-RDX Dec 20, 2023
caf0f9c
Version bump
krzlabrdx Jan 2, 2024
9fc8cde
Regenerated first migration
krzlabrdx Jan 3, 2024
e1c6f65
regenerate initial migration.
PawelPawelec-RDX Jan 3, 2024
4030a66
Upgrade Core API SDK
krzlabrdx Jan 3, 2024
06b281a
Dropped balance_changes fallback mechanism
krzlabrdx Jan 3, 2024
91dd77a
add docs to new filters.
PawelPawelec-RDX Jan 4, 2024
e3c74fa
Merge branch 'release/babylon-2.0.0' of github.com:radixdlt/babylon-g…
PawelPawelec-RDX Jan 4, 2024
850099e
Merge pull request #585 from radixdlt/transaction-type-and-account-ow…
PawelPawelec-RDX Jan 4, 2024
c33e4b3
regenerate initial migration.
PawelPawelec-RDX Jan 4, 2024
ec0152b
Merge branch 'release/babylon-2.0.0' of github.com:radixdlt/babylon-g…
PawelPawelec-RDX Jan 4, 2024
6222855
Merge pull request #590 from radixdlt/return-only-assigned-module-rol…
PawelPawelec-RDX Jan 4, 2024
86431a6
update docs, regenerate migration.
PawelPawelec-RDX Jan 4, 2024
556190c
Merge pull request #600 from radixdlt/return-only-assigned-module-rol…
PawelPawelec-RDX Jan 4, 2024
f795335
Merge branch 'release/babylon-2.0.0' into balance-changes-db
krzlabrdx Jan 5, 2024
99c15c9
Merge pull request #597 from radixdlt/balance-changes-db
krzlabrdx Jan 5, 2024
fc34e01
fix mocking virtual entities role assignment after role assignment re…
PawelPawelec-RDX Jan 5, 2024
a0273ee
Reworked NetworkConfiguration
krzlabrdx Jan 4, 2024
31b2728
Renamed Abstractions.Addressing to Abstractions.Network
krzlabrdx Jan 4, 2024
a01c6c8
Restored NetworkConfiguration logic
krzlabrdx Jan 5, 2024
2805b51
Fixed rebase
krzlabrdx Jan 5, 2024
950607d
Regenerated first migration
krzlabrdx Jan 5, 2024
9d102cf
Share NetworkOptions by all services
krzlabrdx Jan 5, 2024
c7fc164
Move majority of Core API interaction out of component services
krzlabrdx Jan 8, 2024
a3cf582
Read configuration using network options and Core API nodes
krzlabrdx Jan 8, 2024
2d79f8b
Merge pull request #602 from radixdlt/fix-mocking-virtual-entities-ro…
PawelPawelec-RDX Jan 9, 2024
d2ec5c0
Merge pull request #603 from radixdlt/core-connectivity-rework
krzlabrdx Jan 10, 2024
bc5c5f2
Merge branch 'release/babylon-2.0.0' into network-configuration-rework
krzlabrdx Jan 10, 2024
887e924
Merge pull request #601 from radixdlt/network-configuration-rework
krzlabrdx Jan 10, 2024
499332c
Merge branch 'develop' of github.com:radixdlt/babylon-gateway into re…
PawelPawelec-RDX Jan 12, 2024
b99d632
Restored Core API connection configuration capabilities
krzlabrdx Jan 15, 2024
a233338
Merge pull request #613 from radixdlt/node-selector-fix
krzlabrdx Jan 15, 2024
0ea2fbd
add tx manifest to transactions.
PawelPawelec-RDX Jan 12, 2024
66d53e1
wip
PawelPawelec-RDX Jan 15, 2024
e67357c
Merge pull request #609 from radixdlt/add-manifest-to-transactions
krzlabrdx Jan 15, 2024
729bb25
Merge pull request #614 from radixdlt/fix-ioc-registration-for-coreap…
krzlabrdx Jan 15, 2024
f0e138e
Use synchronous implementation for RadixAddressValidator
krzlabrdx Jan 15, 2024
613d1cf
Tuned operation summary for some endpoints
krzlabrdx Jan 23, 2024
2635a73
Merge pull request #618 from radixdlt/oas-symmaries
krzlabrdx Jan 24, 2024
133e7f1
Merge branch 'develop' into release/babylon-2.0.0
krzlabrdx Jan 24, 2024
1cc2114
Renamed well-known network configuration address property access_rule…
krzlabrdx Jan 24, 2024
db85bbc
Merge pull request #622 from radixdlt/net-conf-name
krzlabrdx Jan 24, 2024
e5a07eb
Restore access_rules_package on NetworkConfigurationResponse
krzlabrdx Jan 24, 2024
24b667a
Merge pull request #623 from radixdlt/net-cfg-comp
krzlabrdx Jan 24, 2024
462dff2
Added manifest_classes collection to CommittedTransactionInfo
krzlabrdx Jan 25, 2024
322dbcc
Updated changelog
krzlabrdx Jan 25, 2024
a672a16
Merge pull request #625 from radixdlt/feature/tx-manifest-class
krzlabrdx Jan 25, 2024
f229383
Merge branch 'develop' of github.com:radixdlt/babylon-gateway into re…
PawelPawelec-RDX Jan 25, 2024
8e87549
Merge branch 'develop' into release/babylon-2.0.0
PawelPawelec-RDX Jan 26, 2024
aade6fc
Merge pull request #630 from radixdlt/release/anemone
krzlabrdx Jan 29, 2024
81b3ece
Dropped WIP code
krzlabrdx Jan 30, 2024
3976358
More verbose exceptions on node misconfiguration
krzlabrdx Jan 30, 2024
a4e014d
Merge branch 'develop' into release/babylon-2.0.0
PawelPawelec-RDX Jan 31, 2024
63c9476
added CONTRIBUTING.md and CODE_OF_CONDUCT.md files.
PawelPawelec-RDX Jan 31, 2024
aa46f1c
Fast-fail on no enabled Nodes in application configuration
krzlabrdx Jan 31, 2024
141d53a
Merge pull request #634 from radixdlt/configuration-exceptions
krzlabrdx Jan 31, 2024
104267b
add PermanentlyRejectsAtEpoch to transaction status response.
PawelPawelec-RDX Jan 31, 2024
32c387a
make description for permanently_rejects_at_epoch more descriptive.
PawelPawelec-RDX Jan 31, 2024
08596c4
use GatewayModel alias for usings.
PawelPawelec-RDX Jan 31, 2024
c5eb83e
move _statusesToReturnPermanentlyRejectsAtEpoch to static field.
PawelPawelec-RDX Feb 1, 2024
d4ad76c
change end_epoch_exclusive to bigint to match gateway strategy
PawelPawelec-RDX Feb 1, 2024
9be6ab2
Merge pull request #636 from radixdlt/add-permanently-rejects-at-epoc…
PawelPawelec-RDX Feb 1, 2024
355311c
Merge branch 'main' into develop
PawelPawelec-RDX Feb 1, 2024
ab53b58
Merge branch 'develop' into release/babylon-2.0.0
PawelPawelec-RDX Feb 1, 2024
d7f1535
Fixed HttpClient registration for GatewayApi
krzlabrdx Feb 1, 2024
515230a
Merge pull request #639 from radixdlt/httpclient-fix
PawelPawelec-RDX Feb 1, 2024
3bc1146
changelog entry for tx status change (rejection epoch).
PawelPawelec-RDX Feb 1, 2024
4480314
fix indents in changelog.
PawelPawelec-RDX Feb 2, 2024
4b1d774
wip
PawelPawelec-RDX Feb 2, 2024
8d4a260
link to contributing.md from readme.
PawelPawelec-RDX Jan 31, 2024
8174de2
Merge pull request #635 from radixdlt/how-to-contribute-files
PawelPawelec-RDX Feb 2, 2024
498bec7
Merge branch 'develop' of github.com:radixdlt/babylon-gateway into re…
PawelPawelec-RDX Feb 2, 2024
ca4a243
Extended component's method royalty aggregation
krzlabrdx Feb 5, 2024
275d68b
Dumpyard_ComponentMethodRoyalty WIP
krzlabrdx Feb 5, 2024
b97a1ba
Dumpyard_EntityRoleAssignment WIP
krzlabrdx Feb 5, 2024
0eedf22
Dumpyard_PackageBlueprint and Dumpyard_PackageCode WIP
krzlabrdx Feb 5, 2024
bcd1d5c
Code clean-up
krzlabrdx Feb 5, 2024
921026a
Dumpyard_PackageBlueprint WIP
krzlabrdx Feb 5, 2024
0bb3141
Dumpyard_EntityState WIP
krzlabrdx Feb 6, 2024
84fc87d
Dumpyard_ComponentMethodRoyalty WIP
krzlabrdx Feb 6, 2024
e8781d3
new endpoint to iterate over key value store keys.
PawelPawelec-RDX Feb 6, 2024
e39cd9c
Code clean-up
krzlabrdx Feb 6, 2024
234050b
LedgerExtension extensions
krzlabrdx Feb 6, 2024
afa3d9e
Moved COPY operations to their dedicated processors
krzlabrdx Feb 6, 2024
06cef12
Moved "read most recent" operations to their dedicated processors
krzlabrdx Feb 6, 2024
488117a
Added missing licence headers
krzlabrdx Feb 6, 2024
ad45fcd
regenerate specs with 1.4.0 version.
PawelPawelec-RDX Feb 6, 2024
225217c
Code clean-up
krzlabrdx Feb 6, 2024
dbb492d
cleanup changelog, apply pr comments.
PawelPawelec-RDX Feb 6, 2024
513db23
Merge pull request #641 from radixdlt/method-royalty-agg
krzlabrdx Feb 7, 2024
9105d5b
use paste tense in changelog.
PawelPawelec-RDX Feb 7, 2024
ac49776
Merge branch 'release/babylon-1.4.0' of github.com:radixdlt/babylon-g…
PawelPawelec-RDX Feb 7, 2024
9afb130
regenerate migration after merge.
PawelPawelec-RDX Feb 7, 2024
712cf67
Merge pull request #643 from radixdlt/new-endpoint-to-iterate-key-val…
PawelPawelec-RDX Feb 7, 2024
7ee04a5
Changed `ValidatorEmissionStatistics` index to improve performance of…
krzlabrdx Feb 7, 2024
f4d94a9
Use strict at_ledger_state.state_version and from_ledger_state.state_…
krzlabrdx Feb 6, 2024
23b2028
Merge pull request #647 from radixdlt/strict-ledger-state
krzlabrdx Feb 7, 2024
4829f19
Merge pull request #648 from radixdlt/validator-uptime-idx
krzlabrdx Feb 7, 2024
4255ed9
regenerate typescript sdk.
PawelPawelec-RDX Feb 8, 2024
7c90d59
update compose with newest images and add put release date in changelog.
PawelPawelec-RDX Feb 8, 2024
c12b446
update redocly docs how to query kv store.
PawelPawelec-RDX Feb 9, 2024
a0d1eb2
escape types in docs.
PawelPawelec-RDX Feb 9, 2024
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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ dotnet_diagnostic.SA1611.severity = none # SA1611ElementParametersMustBeDocument
dotnet_diagnostic.SA1618.severity = none # SA1618GenericTypeParametersMustBeDocumented
dotnet_diagnostic.SA1602.severity = none # SA1602EnumerationItemsMustBeDocumented
dotnet_diagnostic.SA1601.severity = none # SA1601PartialElementsMustBeDocumented
dotnet_diagnostic.SA1623.severity = none # SA1623PropertySummaryDocumentationMustMatchAccessors

# Other
dotnet_diagnostic.SA1200.severity = none # SA1200UsingDirectivesMustBePlacedCorrectly - Don't care about this now that there are flattened namespaces
Expand Down
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
## 1.4.0
Release Date: 08.02.2024

- Dropped internal `balance_changes` fallback mechanism. As of right now this information is ingested as part of regular transaction ingestion process.
- Reworked internal mechanism used to fetch network configuration. Is no longer stored in the underlying database and it is shared across all services.
- Reworked (partially) internal mechanism used to ingest ledger data by Data Aggregator to improve maintainability and simplify future extensions.
- Fixed `state_version`-based ledger state `at_ledger_state`/`from_ledger_state` constraints which could result in inaccurate lookups previously. Attempt to read from non-existent state version will result in HTTP 400 Bad Request. Previously the nearest state version would be used.

### API Changes
- Return components effective role assignments only for assigned modules.
- Added new filters for the `/stream/transactions` endpoint: `accounts_with_manifest_owner_method_calls`, `accounts_without_manifest_owner_method_calls` and `manifest_class_filter`.
- Extended response models returned by `/transaction/committed-details` and `/stream/transactions` endpoints:
- added `manifest_instructions` optional property and a corresponding opt-in for returning original manifest of user transactions,
- added optional `manifest_classes` property: a collection of zero or more manifest classes ordered from the most specific class to the least specific one.
- Added `permanently_rejects_at_epoch` to `/transaction/status` response for pending transactions.
- Added new endpoint `/state/key-value-store/keys/` that allows iterating over `KeyValueStore` keys.

### Database changes
- Created new `key_value_store_aggregate_history` table which will hold pointers to all key_value_store keys.
- Dropped `network_configuration` table.
- Fixed component's method royalty aggregation, added missing `component_method_royalty_aggregate_history` table.
- Changed `IX_validator_emission_statistics_validator_entity_id_epoch_num~` index to include `proposals_made` and `proposals_missed` columns in order to optimize `/statistics/validators/update` endpoint.

### Deprecations
- Obsoleted incorrectly named `access_rules_package` in favor of `role_assignment_module_package` on `NetworkConfigurationResponse.well_known_addresses`. Obsoleted property will contain effective copy of the new one for backwards compability.

## 1.3.0
Release Date: 29.01.2024
Expand Down
76 changes: 76 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Radix DLT Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at hello@radixdlt.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
154 changes: 154 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
# Contributing Guidelines

Thank you for your interest in contributing to Babylon Network Gateway!

## Clarification on GitHub Issue Usage and Feature Requests

We want to clarify that Github Issues are primarily meant for the purpose of reporting problems or concerns, rather than functioning as an open bug tracker. This means that reported issues on Github may be closed and reported in our internal tracking system or added to our roadmap.

If you are thinking of requesting a feature, make sure it’s not already part of our upcoming features outlined in the [Roadmap](https://docs.radixdlt.com/docs/roadmap). If you have a feature suggestion, we kindly ask that you share it through [Discord](http://discord.gg/radixdlt) or [Telegram](https://t.me/RadixDevelopers).

Our primary focus is on the priorities outlined in our Roadmap. We appreciate your understanding that addressing reported issues may not always align with our immediate roadmap goals.


# Table of Contents
1. [Code of Conduct](#code-of-conduct)
2. [Reporting Issues](#reporting-issues)
3. [Contributing Code](#contributing-code)
- [Setting Up Your Development Environment](#setting-up-your-development-environment)
- [Making Changes](#making-changes)
- [Testing](#testing)
- [Submitting a Pull Request](#submitting-a-pull-request)
5. [Review Process](#review-process)
6. [Code Style](#code-style)
7. [License](#license)

# Code of Conduct
This project adheres to the Contributor Covenant [code of conduct](CODE_OF_CONDUCT.md).
By participating, you are expected to uphold this code.
Please report unacceptable behavior to [hello@radixdlt.com](mailto:hello@radixdlt.com).

# Reporting Issues
Ensure the bug was not already reported by searching on GitHub under [Issues](https://github.com/radixdlt/babylon-gateway/issues).

If you encounter a bug or have a problem with the project, please open an issue on our [issue tracker](https://github.com/radixdlt/babylon-gateway/issues). Make sure to provide as much detail as possible, including:

- A clear and descriptive title.
- Steps to reproduce the issue.
- Expected behavior and actual behavior.
- Your operating system, browser, or other relevant information.
- If possible, include screenshots or code snippets that illustrate the issue.


# Contributing Code

Prior to commencing any work on a PR, we strongly advise initiating a discussion with the team via Discord, Telegram, or Github Issues (for bugs).

Submitting a Pull Request does not guarantee the acceptance of your proposed changes.

## Setting Up Your Development Environment

Please check [documentation](https://github.com/radixdlt/babylon-gateway/blob/main/docs/development.md) on how to setup local environment.

## Making Changes

1. Write clear, concise, and well-documented code.
2. Commit your changes with a descriptive commit message. Please follow the PROJECT’s commit message format.

## Testing

1. Ensure that your changes do not break existing tests (`/tests` directory)
2. Write new tests for your code if applicable.
3. Run the test suite to make sure everything is passing (you can do that by using `dotnet test` command or any IDE of your choice)

## Submitting a Pull Request

1. Push your changes to your forked repository:
2. Open a pull request against the `develop` branch of the original repository.
3. Provide a clear and informative title and description for your pull request.
4. Be prepared to address any feedback or questions during the review process.

# Review Process
Pull requests will be reviewed by project maintainers. Reviewers may provide feedback, request changes, or approve the pull request. We appreciate your patience during this process, and we aim to be responsive and constructive in our feedback.


# License
By contributing to Babylon Network Gateway, you agree that your contributions will be licensed under the Babylon Network Gateway license.

The executable components of the Babylon Gateway Code are licensed under the [Radix Software EULA](http://www.radixdlt.com/terms/genericEULA).

The Babylon Gateway Code is released under the [Radix License 1.0 (modified Apache 2.0)](LICENSE):

```
Copyright 2023 Radix Publishing Ltd incorporated in Jersey, Channel Islands.

Licensed under the Radix License, Version 1.0 (the "License"); you may not use
this file except in compliance with the License.

You may obtain a copy of the License at:
https://www.radixfoundation.org/licenses/license-v1

The Licensor hereby grants permission for the Canonical version of the Work to
be published, distributed and used under or by reference to the Licensor’s
trademark Radix® and use of any unregistered trade names, logos or get-up.

The Licensor provides the Work (and each Contributor provides its Contributions)
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express or implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR
PURPOSE.

Whilst the Work is capable of being deployed, used and adopted (instantiated) to
create a distributed ledger it is your responsibility to test and validate the
code, together with all logic and performance of that code under all foreseeable
scenarios.

The Licensor does not make or purport to make and hereby excludes liability for
all and any representation, warranty or undertaking in any form whatsoever,
whether express or implied, to any entity or person, including any
representation, warranty or undertaking, as to the functionality security use,
value or other characteristics of any distributed ledger nor in respect the
functioning or value of any tokens which may be created stored or transferred
using the Work.

The Licensor does not warrant that the Work or any use of the Work complies with
any law or regulation in any territory where it may be implemented or used or
that it will be appropriate for any specific purpose.

Neither the licensor nor any current or former employees, officers, directors,
partners, trustees, representatives, agents, advisors, contractors, or
volunteers of the Licensor shall be liable for any direct or indirect, special,
incidental, consequential or other losses of any kind, in tort, contract or
otherwise (including but not limited to loss of revenue, income or profits, or
loss of use or data, or loss of reputation, or loss of any economic or other
opportunity of whatsoever nature or howsoever arising), arising out of or in
connection with (without limitation of any use, misuse, of any ledger system or
use made or its functionality or any performance or operation of any code or
protocol caused by bugs or programming or logic errors or otherwise);

A. any offer, purchase, holding, use, sale, exchange or transmission of any
cryptographic keys, tokens or assets created, exchanged, stored or arising from
any interaction with the Work;

B. any failure in a transmission or loss of any token or assets keys or other
digital artifacts due to errors in transmission;

C. bugs, hacks, logic errors or faults in the Work or any communication;

D. system software or apparatus including but not limited to losses caused by
errors in holding or transmitting tokens by any third-party;

E. breaches or failure of security including hacker attacks, loss or disclosure
of password, loss of private key, unauthorised use or misuse of such passwords
or keys;

F. any losses including loss of anticipated savings or other benefits resulting
from use of the Work or any changes to the Work (however implemented).

You are solely responsible for; testing, validating and evaluation of all
operation logic, functionality, security and appropriateness of using the Work
for any commercial or non-commercial purpose and for any reproduction or
redistribution by You of the Work. You assume all risks associated with Your use
of the Work and the exercise of permissions under this Licence.
```

2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</PropertyGroup>

<PropertyGroup>
<VersionPrefix>1.3.0</VersionPrefix>
<VersionPrefix>1.4.0</VersionPrefix>
<VersionSuffix>develop</VersionSuffix>
</PropertyGroup>

Expand Down
5 changes: 3 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.1" />
<PackageVersion Include="Microsoft.OpenApi.Readers" Version="1.6.8" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
<PackageVersion Include="Nito.AsyncEx.Coordination" Version="5.1.2" />
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="7.0.11" />
<PackageVersion Include="Polly" Version="7.2.4" />
<PackageVersion Include="prometheus-net" Version="8.0.1" />
<PackageVersion Include="prometheus-net.AspNetCore" Version="8.0.1" />
<PackageVersion Include="prometheus-net.AspNetCore.HealthChecks" Version="8.0.1" />
<PackageVersion Include="RadixDlt.RadixEngineToolkit" Version="1.0.0" />
<PackageVersion Include="RadixDlt.RadixEngineToolkit" Version="1.0.8" />
<PackageVersion Include="Swashbuckle.AspNetCore" Version="6.5.0" />
<!-- build time dependencies -->
<PackageVersion Include="coverlet.collector" Version="6.0.0" />
Expand All @@ -34,4 +35,4 @@
<PackageVersion Include="xunit" Version="2.5.1" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.1" />
</ItemGroup>
</Project>
</Project>
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ This system is designed to be the Radix-run publicly exposed gateway into the Ba
For documentation on the Gateway API, see the [Gateway API docs](https://docs-babylon.radixdlt.com/main/apis/api-specification.html).

## Community Involvement

If you have questions, suggestions or bug reports, please come to the [Network Gateway channel](https://discord.com/channels/417762285172555786/1149370695206318151) on the [Radix DLT Discord server](http://discord.gg/radixdlt).
Please see [CONTRIBUTING.md](./CONTRIBUTING.md)

## Structure

Expand Down
2 changes: 0 additions & 2 deletions apps/DataAggregator/appsettings.Development.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@
{
"Name": "node1",
"CoreApiAddress": "http://localhost:3333",
"TrustWeighting": 1,
"Enabled": true,
},
{
"Name": "node2",
"CoreApiAddress": "http://localhost:3334",
"TrustWeighting": 1,
"Enabled": false,
},
],
Expand Down
6 changes: 6 additions & 0 deletions apps/GatewayApi/Controllers/StateKeyValueStoreController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ public StateKeyValueStoreController(IKeyValueStoreHandler keyValueStoreHandler)
_keyValueStoreHandler = keyValueStoreHandler;
}

[HttpPost("keys")]
public async Task<GatewayModel.StateKeyValueStoreKeysResponse> Items(GatewayModel.StateKeyValueStoreKeysRequest request, CancellationToken token)
{
return await _keyValueStoreHandler.Keys(request, token);
}

[HttpPost("data")]
public async Task<GatewayModel.StateKeyValueStoreDataResponse> Data(GatewayModel.StateKeyValueStoreDataRequest request, CancellationToken token)
{
Expand Down
14 changes: 8 additions & 6 deletions apps/GatewayApi/Controllers/StatusController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
*/

using Microsoft.AspNetCore.Mvc;
using RadixDlt.NetworkGateway.Abstractions.Network;
using RadixDlt.NetworkGateway.GatewayApi.Handlers;
using RadixDlt.NetworkGateway.GatewayApi.Services;
using System.Threading;
using System.Threading.Tasks;
using GatewayModel = RadixDlt.NetworkGateway.GatewayApiSdk.Model;
Expand All @@ -91,13 +91,14 @@ public StatusController(IStatusHandler statusHandler, INetworkConfigurationProvi
}

[HttpPost("network-configuration")]
public GatewayModel.NetworkConfigurationResponse NetworkConfiguration()
public async Task<GatewayModel.NetworkConfigurationResponse> NetworkConfiguration(CancellationToken token)
{
var wellKnownAddresses = _networkConfigurationProvider.GetWellKnownAddresses();
var networkConfiguration = await _networkConfigurationProvider.GetNetworkConfiguration(token);
var wellKnownAddresses = networkConfiguration.WellKnownAddresses;

return new GatewayModel.NetworkConfigurationResponse(
_networkConfigurationProvider.GetNetworkId(),
_networkConfigurationProvider.GetNetworkName(),
networkConfiguration.Id,
networkConfiguration.Name,
new GatewayModel.NetworkConfigurationResponseWellKnownAddresses(
xrd: wellKnownAddresses.Xrd,
secp256k1SignatureVirtualBadge: wellKnownAddresses.Secp256k1SignatureVirtualBadge,
Expand All @@ -118,7 +119,8 @@ public GatewayModel.NetworkConfigurationResponse NetworkConfiguration()
transactionProcessorPackage: wellKnownAddresses.TransactionProcessorPackage,
metadataModulePackage: wellKnownAddresses.MetadataModulePackage,
royaltyModulePackage: wellKnownAddresses.RoyaltyModulePackage,
accessRulesPackage: wellKnownAddresses.AccessRulesPackage,
accessRulesPackage: wellKnownAddresses.RoleAssignmentModulePackage,
roleAssignmentModulePackage: wellKnownAddresses.RoleAssignmentModulePackage,
genesisHelperPackage: wellKnownAddresses.GenesisHelperPackage,
faucetPackage: wellKnownAddresses.FaucetPackage,
consensusManager: wellKnownAddresses.ConsensusManager,
Expand Down
Loading
Loading