Skip to content

Commit

Permalink
chore: renamed packages, docker iamges and references to metadata-server
Browse files Browse the repository at this point in the history
  • Loading branch information
nemo83 committed Jan 24, 2024
1 parent 88f0a25 commit e63229c
Show file tree
Hide file tree
Showing 47 changed files with 133 additions and 135 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
blank_issues_enabled: true
contact_links:
- name: Contributing guidelines
url: https://github.com/cardano-foundation/cf-metadata-server/blob/main/CONTRIBUTING.md
url: https://github.com/cardano-foundation/cf-token-metadata-registry/blob/main/CONTRIBUTING.md
about: Some rules & processes we honor.

- name: Feature ideas
url: https://github.com/cardano-foundation/cf-metadata-server/discussions/categories/ideas
url: https://github.com/cardano-foundation/cf-token-metadata-registry/discussions/categories/ideas
about: Maybe someone else had the same or a similar idea already?

- name: All issues
url: https://github.com/cardano-foundation/cf-metadata-server/issues
url: https://github.com/cardano-foundation/cf-token-metadata-registry/issues
about: Check whether your issue is not already covered here.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
api:
runs-on: ubuntu-latest
env:
APP_NAME: cf-metadata-server
APP_NAME: cf-token-metadata-registry
needs: build-version
steps:
- name: Checkout
Expand Down
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This document contains guidelines to help you get started and how to make sure y

Should you have any questions or need some help in getting set up, you can use these communication channels to reach the team and get answers in a way where others can benefit from it as well:

- Github [Discussions](https://github.com/cardano-foundation/cf-metadata-server/discussions)
- Github [Discussions](https://github.com/cardano-foundation/cf-token-metadata-registry/discussions)
- Cardano [StackExchange](https://cardano.stackexchange.com/) using the `cip26` tag

## Your first contribution
Expand All @@ -21,11 +21,11 @@ Also, take a look at the tests. Making sure we have the best high quality test s

### Documentation + translations

We host our documentation / user manual in the [Wiki](https://github.com/cardano-foundation/cf-metadata-server/wiki) and [README](./README.md).
We host our documentation / user manual in the [Wiki](https://github.com/cardano-foundation/cf-token-metadata-registry/wiki) and [README](./README.md).

### Bug reports

[Submit an issue](https://github.com/cardano-foundation/cf-metadata-server/issues/new).
[Submit an issue](https://github.com/cardano-foundation/cf-token-metadata-registry/issues/new).

For bug reports, it's very important to explain
* what version you used,
Expand All @@ -37,7 +37,7 @@ For bug reports, it's very important to explain

Feature ideas are precursors to high-level features items, which will be discussed and fleshed out to ideally become items on our feature roadmap.

We use the [Ideas discussions category](https://github.com/cardano-foundation/cf-metadata-server/discussions/categories/ideas) to discuss and vote on feature ideas, but you can also [submit an issue](https://github.com/cardano-foundation/cf-metadata-server/issues/new) using the "Feature idea :thought_balloon:" template and we convert that to a discussion.
We use the [Ideas discussions category](https://github.com/cardano-foundation/cf-token-metadata-registry/discussions/categories/ideas) to discuss and vote on feature ideas, but you can also [submit an issue](https://github.com/cardano-foundation/cf-token-metadata-registry/issues/new) using the "Feature idea :thought_balloon:" template and we convert that to a discussion.

We expect a description of
* why you (or the user) need/want something (e.g. problem, challenge, pain, benefit), and
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[![License](https://img.shields.io/github/license/cardano-foundation/cf-metadata-server)](https://github.com/cardano-foundation/cf-metadata-server/blob/main/LICENSE)
![GitHub top language](https://img.shields.io/github/languages/top/cardano-foundation/cf-metadata-server)
[![Build](https://github.com/cardano-foundation/cf-metadata-server/actions/workflows/main.yaml/badge.svg)](https://github.com/cardano-foundation/cf-metadata-server/actions/workflows/main.yaml)
[![CodeQL](https://github.com/cardano-foundation/cf-metadata-server/actions/workflows/codeql.yaml/badge.svg)](https://github.com/cardano-foundation/cf-metadata-server/actions/workflows/codeql.yaml)
![coverage](https://github.com/cardano-foundation/cf-metadata-server/blob/badges/jacoco.svg)
![branches](https://github.com/cardano-foundation/cf-metadata-server/blob/badges/branches.svg)
[![Issues](https://img.shields.io/github/issues/cardano-foundation/cf-metadata-server)](https://github.com/cardano-foundation/cf-metadata-server/issues)
[![License](https://img.shields.io/github/license/cardano-foundation/cf-token-metadata-registry)](https://github.com/cardano-foundation/cf-token-metadata-registry/blob/main/LICENSE)
![GitHub top language](https://img.shields.io/github/languages/top/cardano-foundation/cf-token-metadata-registry)
[![Build](https://github.com/cardano-foundation/cf-token-metadata-registry/actions/workflows/main.yaml/badge.svg)](https://github.com/cardano-foundation/cf-token-metadata-registry/actions/workflows/main.yaml)
[![CodeQL](https://github.com/cardano-foundation/cf-token-metadata-registry/actions/workflows/codeql.yaml/badge.svg)](https://github.com/cardano-foundation/cf-token-metadata-registry/actions/workflows/codeql.yaml)
![coverage](https://github.com/cardano-foundation/cf-token-metadata-registry/blob/badges/jacoco.svg)
![branches](https://github.com/cardano-foundation/cf-token-metadata-registry/blob/badges/branches.svg)
[![Issues](https://img.shields.io/github/issues/cardano-foundation/cf-token-metadata-registry)](https://github.com/cardano-foundation/cf-token-metadata-registry/issues)

---

Expand All @@ -27,12 +27,12 @@ For building you need
### Building from source
Clone this repository
```console
$ git clone [email protected]:cardano-foundation/cf-metadata-server.git
$ git clone [email protected]:cardano-foundation/cf-token-metadata-registry.git
```

`cd` into the directory where `git` did clone the sources into and build the application via Maven
```console
$ cd cf-metadata-server
$ cd cf-token-metadata-registry
$ mvn package
```

Expand Down
8 changes: 4 additions & 4 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
<packaging>jar</packaging>

<scm>
<connection>scm:git:git://github.com/cardano-foundation/cf-metadata-server.git</connection>
<url>https://github.com/cardano-foundation/cf-metadata-server</url>
<developerConnection>scm:git:git://github.com/cardano-foundation/cf-metadata-server.git</developerConnection>
<connection>scm:git:git://github.com/cardano-foundation/cf-token-metadata-registry.git</connection>
<url>https://github.com/cardano-foundation/cf-token-metadata-registry</url>
<developerConnection>scm:git:git://github.com/cardano-foundation/cf-token-metadata-registry.git</developerConnection>
<tag>HEAD</tag>
</scm>

<issueManagement>
<url>https://github.com/cardano-foundation/cf-metadata-server/issues</url>
<url>https://github.com/cardano-foundation/cf-token-metadata-registry/issues</url>
<system>GitHub issues</system>
</issueManagement>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.cardanofoundation.metadatatools.api;
package org.cardanofoundation.tokenmetadata.registry.api;

import jakarta.servlet.DispatcherType;
import org.springframework.boot.SpringApplication;
Expand All @@ -11,9 +11,9 @@
import java.util.List;

@SpringBootApplication
public class MetadataApiApplication {
public class TokenMetadataRegistryApplication {
public static void main(String[] args) {
SpringApplication.run(MetadataApiApplication.class, args);
SpringApplication.run(TokenMetadataRegistryApplication.class, args);
}

@Bean
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.cardanofoundation.metadatatools.api.config;
package org.cardanofoundation.tokenmetadata.registry.api.config;

import lombok.*;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.cardanofoundation.metadatatools.api.config;
package org.cardanofoundation.tokenmetadata.registry.api.config;

import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Value;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.cardanofoundation.metadatatools.api.config;
package org.cardanofoundation.tokenmetadata.registry.api.config;

import java.util.Map;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.cardanofoundation.metadatatools.api.config;
package org.cardanofoundation.tokenmetadata.registry.api.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.cardanofoundation.metadatatools.api.controller;
package org.cardanofoundation.tokenmetadata.registry.api.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
Expand All @@ -7,9 +7,9 @@
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import org.cardanofoundation.metadatatools.api.model.rest.BatchRequest;
import org.cardanofoundation.metadatatools.api.model.rest.BatchResponse;
import org.cardanofoundation.metadatatools.api.model.rest.TokenMetadata;
import org.cardanofoundation.tokenmetadata.registry.api.model.rest.BatchRequest;
import org.cardanofoundation.tokenmetadata.registry.api.model.rest.BatchResponse;
import org.cardanofoundation.tokenmetadata.registry.api.model.rest.TokenMetadata;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package org.cardanofoundation.metadatatools.api.controller;
package org.cardanofoundation.tokenmetadata.registry.api.controller;

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import jakarta.validation.constraints.NotNull;
import lombok.extern.log4j.Log4j2;
import org.cardanofoundation.metadatatools.api.config.OffchainMetadataRegistryConfig;
import org.cardanofoundation.metadatatools.api.indexer.V1ApiMetadataIndexer;
import org.cardanofoundation.metadatatools.api.model.rest.BatchRequest;
import org.cardanofoundation.metadatatools.api.model.rest.BatchResponse;
import org.cardanofoundation.metadatatools.api.model.rest.TokenMetadata;
import org.cardanofoundation.tokenmetadata.registry.api.config.OffchainMetadataRegistryConfig;
import org.cardanofoundation.tokenmetadata.registry.api.indexer.V1ApiMetadataIndexer;
import org.cardanofoundation.tokenmetadata.registry.api.model.rest.BatchRequest;
import org.cardanofoundation.tokenmetadata.registry.api.model.rest.BatchResponse;
import org.cardanofoundation.tokenmetadata.registry.api.model.rest.TokenMetadata;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.cardanofoundation.metadatatools.api.controller;
package org.cardanofoundation.tokenmetadata.registry.api.controller;

import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.Operation;
Expand All @@ -12,7 +12,7 @@
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import org.cardanofoundation.metadatatools.api.model.rest.*;
import org.cardanofoundation.tokenmetadata.registry.api.model.rest.*;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.cardanofoundation.metadatatools.api.controller;
package org.cardanofoundation.tokenmetadata.registry.api.controller;

import java.time.LocalDate;
import java.util.*;
Expand All @@ -7,15 +7,13 @@
import java.util.stream.Collectors;
import jakarta.validation.constraints.NotNull;
import lombok.extern.log4j.Log4j2;
import org.apache.commons.lang3.StringUtils;
import org.cardanofoundation.metadatatools.api.config.OffchainMetadataRegistryConfig;
import org.cardanofoundation.metadatatools.api.indexer.FetchMetadataResultSet;
import org.cardanofoundation.metadatatools.api.indexer.V1ApiMetadataIndexer;
import org.cardanofoundation.metadatatools.api.indexer.V2ApiMetadataIndexer;
import org.cardanofoundation.metadatatools.api.model.rest.*;
import org.cardanofoundation.tokenmetadata.registry.api.config.OffchainMetadataRegistryConfig;
import org.cardanofoundation.tokenmetadata.registry.api.indexer.FetchMetadataResultSet;
import org.cardanofoundation.tokenmetadata.registry.api.indexer.V1ApiMetadataIndexer;
import org.cardanofoundation.tokenmetadata.registry.api.indexer.V2ApiMetadataIndexer;
import org.cardanofoundation.metadatatools.core.cip26.MetadataCreator;
import org.cardanofoundation.metadatatools.core.cip26.MetadataValidationRules;
import org.cardanofoundation.metadatatools.core.cip26.ValidationResult;
import org.cardanofoundation.tokenmetadata.registry.api.model.rest.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.cardanofoundation.metadatatools.api.indexer;
package org.cardanofoundation.tokenmetadata.registry.api.indexer;

import java.util.List;
import lombok.Builder;
import lombok.Data;
import org.cardanofoundation.metadatatools.api.model.rest.TokenMetadata;
import org.cardanofoundation.tokenmetadata.registry.api.model.rest.TokenMetadata;

@Data
@Builder
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.cardanofoundation.metadatatools.api.indexer;
package org.cardanofoundation.tokenmetadata.registry.api.indexer;

import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.cardanofoundation.metadatatools.api.model.rest.TokenMetadata;
import org.cardanofoundation.tokenmetadata.registry.api.model.rest.TokenMetadata;

public interface V1ApiMetadataIndexer {
Map<String, TokenMetadata> findSubjectsSelectProperties(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package org.cardanofoundation.metadatatools.api.indexer;
package org.cardanofoundation.tokenmetadata.registry.api.indexer;

import java.time.LocalDate;
import java.util.List;
import org.cardanofoundation.metadatatools.api.model.rest.*;
import org.cardanofoundation.tokenmetadata.registry.api.model.rest.FilterOperand;
import org.cardanofoundation.tokenmetadata.registry.api.model.rest.PivotDirection;
import org.cardanofoundation.tokenmetadata.registry.api.model.rest.WalletFraudIncident;

public interface V2ApiMetadataIndexer {
List<WalletFraudIncident> findScamIncidents(final List<String> walletAddressHashes);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.cardanofoundation.metadatatools.api.indexer.postgresql;
package org.cardanofoundation.tokenmetadata.registry.api.indexer.postgresql;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.log4j.Log4j2;
import org.cardanofoundation.metadatatools.api.indexer.V1ApiMetadataIndexer;
import org.cardanofoundation.metadatatools.api.indexer.postgresql.data.MetadataQueryResult;
import org.cardanofoundation.metadatatools.api.model.rest.TokenMetadata;
import org.cardanofoundation.tokenmetadata.registry.api.indexer.V1ApiMetadataIndexer;
import org.cardanofoundation.tokenmetadata.registry.api.indexer.postgresql.data.MetadataQueryResult;
import org.cardanofoundation.tokenmetadata.registry.api.model.rest.TokenMetadata;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
Expand All @@ -23,7 +23,7 @@ public class V1ApiPostgresMetadataIndexer implements V1ApiMetadataIndexer {
@Autowired private NamedParameterJdbcTemplate jdbcTemplate;

private static Map<String, TokenMetadata> metadataFromQueryResults(
@NotNull final List<MetadataQueryResult> queryResults, @NotNull final List<String> properties)
@NotNull final List<MetadataQueryResult> queryResults, @NotNull final List<String> properties)
throws IllegalArgumentException {
final Map<String, TokenMetadata> metadata = new HashMap<>();
final ObjectMapper valueMapper = new ObjectMapper();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.cardanofoundation.metadatatools.api.indexer.postgresql;
package org.cardanofoundation.tokenmetadata.registry.api.indexer.postgresql;

import static java.util.Map.entry;

Expand All @@ -8,14 +8,14 @@
import java.util.stream.Collectors;
import jakarta.validation.constraints.NotNull;
import lombok.extern.log4j.Log4j2;
import org.cardanofoundation.metadatatools.api.indexer.FetchMetadataResultSet;
import org.cardanofoundation.metadatatools.api.indexer.V2ApiMetadataIndexer;
import org.cardanofoundation.metadatatools.api.indexer.postgresql.data.MetadataQueryResult;
import org.cardanofoundation.metadatatools.api.indexer.postgresql.data.WalletScamLookupQueryResult;
import org.cardanofoundation.metadatatools.api.model.rest.FilterOperand;
import org.cardanofoundation.metadatatools.api.model.rest.PivotDirection;
import org.cardanofoundation.metadatatools.api.model.rest.TokenMetadata;
import org.cardanofoundation.metadatatools.api.model.rest.WalletFraudIncident;
import org.cardanofoundation.tokenmetadata.registry.api.indexer.FetchMetadataResultSet;
import org.cardanofoundation.tokenmetadata.registry.api.indexer.V2ApiMetadataIndexer;
import org.cardanofoundation.tokenmetadata.registry.api.indexer.postgresql.data.MetadataQueryResult;
import org.cardanofoundation.tokenmetadata.registry.api.indexer.postgresql.data.WalletScamLookupQueryResult;
import org.cardanofoundation.tokenmetadata.registry.api.model.rest.FilterOperand;
import org.cardanofoundation.tokenmetadata.registry.api.model.rest.PivotDirection;
import org.cardanofoundation.tokenmetadata.registry.api.model.rest.TokenMetadata;
import org.cardanofoundation.tokenmetadata.registry.api.model.rest.WalletFraudIncident;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.cardanofoundation.metadatatools.api.indexer.postgresql.data;
package org.cardanofoundation.tokenmetadata.registry.api.indexer.postgresql.data;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.*;
import lombok.extern.log4j.Log4j2;
import org.cardanofoundation.metadatatools.api.model.rest.TokenMetadata;
import org.cardanofoundation.tokenmetadata.registry.api.model.rest.TokenMetadata;
import org.postgresql.util.PGobject;

import jakarta.validation.constraints.NotNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.cardanofoundation.metadatatools.api.indexer.postgresql.data;
package org.cardanofoundation.tokenmetadata.registry.api.indexer.postgresql.data;

import lombok.*;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.cardanofoundation.metadatatools.api.model.rest;
package org.cardanofoundation.tokenmetadata.registry.api.model.rest;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.cardanofoundation.metadatatools.api.model.rest;
package org.cardanofoundation.tokenmetadata.registry.api.model.rest;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.cardanofoundation.metadatatools.api.model.rest;
package org.cardanofoundation.tokenmetadata.registry.api.model.rest;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.cardanofoundation.metadatatools.api.model.rest;
package org.cardanofoundation.tokenmetadata.registry.api.model.rest;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.cardanofoundation.metadatatools.api.model.rest;
package org.cardanofoundation.tokenmetadata.registry.api.model.rest;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
Expand Down
Loading

0 comments on commit e63229c

Please sign in to comment.