Skip to content

Commit

Permalink
High-level API for querying FA token balances and metadata (#33)
Browse files Browse the repository at this point in the history
* GetOwnersForToken

* GetOwnersForContract

* IsHolderOfContract & GetTokenMetadata; Updated DJson binaries;

* GetContractMetadata

* 1.2.1

* Fix project structure;

* Fix authenticationQr prefab;

* Created NftApiSample; Resolves #37

* IsHolderOfToken

* Upm structure refactoring;

* GetTokensForContract added;

* Added runtime tests;

* Separated tezos api and game logic; new NftApiSample scene and prefabs;

* Added tests for Tezos API methods;

* Merge refactoring;

* Merge vs main; Removed BeaconConnectorNull impl;

* Updated GUID's inside Sample dir

* Refactor: Tezos divided into two parts: Wallet and API; Added Tezos config singleton class;

* Revert "Updated GUID's inside Sample dir"

This reverts commit 88b976a.

* Fixed imports;

* Improved Connect method in IWalletProvider: now it didn't redirect to wallet app if user is logged in;

* Rollback backward compability with ITezosAPI interface;

* Types fix;

* Added IDataProviderConfig and TzKTProviderConfig implementation; API tests fix;

* Added test runner with GH actions

* Added obsolete StartCoroutineWrapper for backward compability;

* Examplemanager uses obsolete StartCoroutineWrapper for backward compability;

---------

Co-authored-by: mismirnov <[email protected]>
  • Loading branch information
k-karuna and mismirnov authored May 18, 2023
1 parent a1187f9 commit 5d225e0
Show file tree
Hide file tree
Showing 97 changed files with 5,350 additions and 1,545 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Run Unity Tests
on: [ pull_request, workflow_dispatch ]

jobs:
tests:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: copy dir to new dir
run: |
pwd
folderName=$(echo "${PWD##*/}")
rsync -r "$GITHUB_WORKSPACE" "copiedProject"
ls -F "copiedProject/$folderName"
- name: Run tests
id: runTests
uses: trudeaua21/unity-test-runner@main
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectPath: ./copiedProject/tezos-unity-sdk
unityVersion: "2021.3.22f1"
testMode: all
# coverageOptions: 'generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:+tezos-unity-sdk.*,-*Tests*'
artifactsPath: result-artifacts
packageMode: true

# Upload results
- name: Upload test results
uses: actions/upload-artifact@v3
with:
name: Package Coverage results (all)
path: ${{ steps.runTests.outputs.artifactsPath }}
retention-days: 1
11 changes: 8 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,21 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [unreleased]
### Added
- User ability to specify logging level

## [unreleased]
### Fixed
- [Bug](https://github.com/trilitech/tezos-unity-sdk/issues/57) with BeaconConnectorWebGl

### Added
- Better [coroutine error handling](https://github.com/trilitech/tezos-unity-sdk/issues/39)
- API methods: `GetOwnersForToken`, `GetOwnersForContract`, `IsHolderOfContract`, `GetTokenMetadata`, `GetContractMetadata`, `GetTokensForContract`, `GetOperationStatus`
- User ability to specify logging level
- Tezos config singleton class
- `IDataProviderConfig` and `TzKTProviderConfig` implementation
- Test runner with GH actions

### Changed
- Refactor: Tezos divided into two parts: Wallet and API


## [1.3.1] - 2023-04-27
Expand Down
Binary file modified Runtime/Plugins/Dynamic.Json.dll
Binary file not shown.
Binary file modified Runtime/Plugins/Microsoft.Bcl.AsyncInterfaces.dll
Binary file not shown.
Binary file modified Runtime/Plugins/System.Memory.dll
Binary file not shown.
Binary file modified Runtime/Plugins/System.Runtime.CompilerServices.Unsafe.dll
Binary file not shown.
Binary file modified Runtime/Plugins/System.Text.Encodings.Web.dll
Binary file not shown.
Binary file modified Runtime/Plugins/System.Text.Json.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions Runtime/Prefabs.meta

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

Loading

0 comments on commit 5d225e0

Please sign in to comment.