Skip to content

Commit

Permalink
merge from dev v3.0.0.1 (#5)
Browse files Browse the repository at this point in the history
* add logo

* init

* add badge just to trigger a change

* Create dependabot.yml

* init docs

* fix missing brackets

* Create static.yml

* remove

* remove docs

* add misc files to sln

* update readme

* fix links

* add missing brackets

* make the exposed RestClient a property instead of a field

* overload the constructor since this is public

* remove redundant parentheses

* change const to static readonly

* update readme

* add

* don't throw exception instead throw unknownexception

* add missing param option to query

* rename CoinsMarketRoi to Roi since it is used multiple places

* add Coins GetCoinAsync

* add missing braces

* add Coins GetCoinTickersAsync

* fix broken test

* make values nullable

* fix weird external deserializer usage

* fix documentation

* add

* add Coins GetCoinHistoryAsync

* Create dotnet.yml

* Update dotnet.yml

* Update dotnet.yml

* Update dotnet.yml

* Update dotnet.yml

* Update dotnet.yml

* remove signing

* Update dotnet.yml

* Update dotnet.yml

* test testing with a failing test

* remove failing test test

* add logo as embedded resource

* documenting

* test embedded logo resource

* add

* add

* add Coins GetCoinMarketChart

* fix missing aync naming convention

* Update issue templates

* update dependabot.yml

* Create codeql.yml

* Create main_test_dotnet.yml

* rem

* Rename dotnet.yml to dev_test_dotnet.yml

* add Coins GetCoinMarketChartRangeAsync

* add Coins GetCoinOhlcAsync

* add

* add Coins GetCoinOhlcItemsAsync

* add

* add Coins Contract GetCoinContractAsync

* rem blank lines

* add Coins Contract GetCoinContractMarketChartAsync

* fix failing test

* add Coins Contract GetCoinContractMarketChartRangeAsync

* fix class visibility

* add Coins Categories GetCoinCategoriesAsync

* fix naming

* add Coins Categories GetCoinCategoriesListAsync

* move enums to Types folder

* add

* add Exchanges GetExchangesAsync

* add

* add Exchanges GetExchangesListAsync

* normalize testing format

* add

* add Exchanges GetExchangeAsync

* add

* add Exchanges GetExchangeTickersAsync

* add

* add Exchanges GetExchangeVolumeChartAsync

* add Exchange GetExchangeVolumeChartAsync

* fix not IEnumerable

* add Indexes GetIndexesAsync

* add Indexes GetIndexAsync

* add

* add Indexes GetIndexesListAsync

* fix test names

* add Derivatives GetDerivativesAsync

* add

* add Derivatives GetDerivativesExchangesAsync

* add derivatives GetDerivativesExchangeAsync

* rename ExchangeListItem to IdNameListItem

* add Derivatives GetDerivativesExchangesListAsync

* add

* add Nfts GetNftsListAsync

* add

* add Nfts GetNftAsync

* add Nfts GetNftAsync overload

* add

* add Search GetSearchAsync

* update

* add

* add Search GetSearchTrendingAsync

* add

* add Global GetGlobalAsync

* add

* add Global GetGlobalDefiAsync

* add

* add Companies GetCompaniesPublicTreasuryAsync

* alpha to beta

* update

* Update publish_dotnet.yml

* Update publish_dotnet.yml

* Update publish_dotnet.yml

* Update publish_dotnet.yml

* Update publish_dotnet.yml

* Update publish_dotnet.yml

* run on publish not tag

* Update publish_dotnet.yml

* update readme

* Update dev_test_dotnet.yml

* update readme

* update readme

* change version and  release notes
  • Loading branch information
ByronAP authored Dec 11, 2022
1 parent 82fb18d commit b6ed6a2
Show file tree
Hide file tree
Showing 104 changed files with 5,005 additions and 5 deletions.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "nuget" # See documentation for possible values
directory: "/CoinGeckoAPI" # Location of package manifests
schedule:
interval: "weekly"

74 changes: 74 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "dev", main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "dev" ]
schedule:
- cron: '20 16 * * 2'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
25 changes: 25 additions & 0 deletions .github/workflows/dev_test_dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build And Test

on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
9 changes: 4 additions & 5 deletions .github/workflows/main_test_dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET
name: Build And Test dev branch

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

Expand All @@ -17,7 +16,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/publish_dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Publish
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Decode the Signing Key
id: write_sign_key_file
env:
CERTIFICATE_BASE64: ${{ secrets.SIGNING_KEY }}
run: |
echo $CERTIFICATE_BASE64 | base64 --decode > keyPair.snk
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
env:
SignAssembly: true
AssemblyOriginatorKeyFile: ${{ steps.write_sign_key_file.outputs.filePath }}
run: |
dotnet build --no-restore --configuration Release
- name: Publish
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_PUB_KEY}}
39 changes: 39 additions & 0 deletions CoinGeckoAPI.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.33103.201
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CoinGeckoAPI", "CoinGeckoAPI\CoinGeckoAPI.csproj", "{960C14FE-51E0-4131-9272-48DA4D0B5CDC}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests", "Tests\Tests.csproj", "{C0A21512-E88D-4FC8-B5A0-B07972CBE1E3}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{82A9EFED-9F11-4307-99DB-33E8EDC41A29}"
ProjectSection(SolutionItems) = preProject
coingecko-logo.png = coingecko-logo.png
CoinGeckoAPI.sln.GhostDoc.xml = CoinGeckoAPI.sln.GhostDoc.xml
LICENSE = LICENSE
README.md = README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{960C14FE-51E0-4131-9272-48DA4D0B5CDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{960C14FE-51E0-4131-9272-48DA4D0B5CDC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{960C14FE-51E0-4131-9272-48DA4D0B5CDC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{960C14FE-51E0-4131-9272-48DA4D0B5CDC}.Release|Any CPU.Build.0 = Release|Any CPU
{C0A21512-E88D-4FC8-B5A0-B07972CBE1E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C0A21512-E88D-4FC8-B5A0-B07972CBE1E3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C0A21512-E88D-4FC8-B5A0-B07972CBE1E3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C0A21512-E88D-4FC8-B5A0-B07972CBE1E3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C95C09B1-059F-4EC4-AFA2-C7FD290BB873}
EndGlobalSection
EndGlobal
68 changes: 68 additions & 0 deletions CoinGeckoAPI/CoinGeckoAPI.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<GenerateDocumentationFile>False</GenerateDocumentationFile>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>3.0.0.1</Version>
<Authors>ByronAP</Authors>
<AssemblyVersion>3.0.0.1</AssemblyVersion>
<FileVersion>3.0.0.1</FileVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<EnableNETAnalyzers>True</EnableNETAnalyzers>
<AnalysisLevel>latest-recommended</AnalysisLevel>
<PackageProjectUrl>https://github.com/ByronAP/CoinGeckoApi</PackageProjectUrl>
<RepositoryUrl>https://github.com/ByronAP/CoinGeckoApi</RepositoryUrl>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIcon>coingecko-logo.png</PackageIcon>
<RepositoryType>git</RepositoryType>
<Copyright>Copyright © 2022 ByronAP, CoinGecko. All rights reserved.</Copyright>
<PackageReleaseNotes>See: https://github.com/ByronAP/CoinGeckoApi/releases </PackageReleaseNotes>
<PackageTags>coingecko,coin gecko,coingecko api,api,bitcoin,eth,etherium,atom,cosmos,btc,usdt,teather,bnb,usdc,doge,dogecoin,xrp,ripple,ltc,litecoin,crypto,market,price,market cap,cryptocurrencies</PackageTags>
<Description>CoinGecko API Client Library</Description>
<Title>CoinGecko API Client Library</Title>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<WarningLevel>4</WarningLevel>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<WarningLevel>4</WarningLevel>
</PropertyGroup>

<ItemGroup>
<None Include="..\coingecko-logo.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="readme.md" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
<PackageReference Include="RestSharp" Version="108.0.3" />
</ItemGroup>

<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>

</Project>
Loading

0 comments on commit b6ed6a2

Please sign in to comment.