Skip to content

Commit

Permalink
Merge pull request #100 from tqtezos/gromak/1.2.0
Browse files Browse the repository at this point in the history
[Chore] 1.2.0 release
  • Loading branch information
gromakovsky authored Aug 27, 2020
2 parents ff1aa17 + b72df1e commit 7a64ec9
Show file tree
Hide file tree
Showing 55 changed files with 80 additions and 68 deletions.
2 changes: 1 addition & 1 deletion .buildkite/check-trailing-whitespace.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2020 tqtezos
# SPDX-FileCopyrightText: 2020 TQ Tezos
# SPDX-License-Identifier: MIT
#!/usr/bin/env bash
files=$(git ls-files -- . | xargs grep --files-with-matches --binary-files=without-match '[[:blank:]]$')
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2020 tqtezos
# SPDX-FileCopyrightText: 2020 TQ Tezos
# SPDX-License-Identifier: MIT

env:
Expand Down
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2020 tqtezos
# SPDX-FileCopyrightText: 2020 TQ Tezos
# SPDX-License-Identifier: MIT

# top-most EditorConfig file
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2020 tqtezos
# SPDX-FileCopyrightText: 2020 TQ Tezos
# SPDX-License-Identifier: MIT
.DS_Store
.stack-work/
Expand Down
2 changes: 1 addition & 1 deletion .reuse/dep5
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Files: .github/* nix/sources.json
Copyright: 2020 tqtezos
Copyright: 2020 TQ Tezos
License: MIT

Files: nix/sources.nix
Expand Down
12 changes: 10 additions & 2 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
<!--
SPDX-FileCopyrightText: 2020 tqtezos
SPDX-FileCopyrightText: 2020 TQ Tezos
SPDX-License-Identifier: MIT
-->
# Changelog for stablecoin

## Unreleased
## 1.2.0

Operations on the contract got cheaper in this release:

* [#96](https://github.com/tqtezos/stablecoin/pull/96)
Metadata was moved into a separate contract.
* [#95](https://github.com/tqtezos/stablecoin/pull/95)
Maximal number of minters is limited, they are stored in strict `map`.
* [#89](https://github.com/tqtezos/stablecoin/pull/89)
Prune 0 balance accounts from the storage.
* [#85](https://github.com/tqtezos/stablecoin/pull/92)
Removed `permissions_descriptor` entrypoint.
Removed 'total_supply' from storage.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 tqtezos
Copyright (c) 2020 TQ Tezos

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion LICENSES/MIT.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 tqtezos
Copyright (c) 2020 TQ Tezos

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2020 tqtezos
# SPDX-FileCopyrightText: 2020 TQ Tezos
# SPDX-License-Identifier: MIT

.PHONY: all build-ligo build-haskell optimize-ligo test test-dumb-term test-hide-successes nettest clean
Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
SPDX-FileCopyrightText: 2020 tqtezos
SPDX-FileCopyrightText: 2020 TQ Tezos
SPDX-License-Identifier: MIT
-->

Expand All @@ -13,21 +13,22 @@ The contract is implemented in the [LIGO language](https://ligolang.org/).
See the [`ligo/`](ligo/) folder.
Contract specification is [available](/docs/specification.md).

## Stablecoin client

We have a `stablecoin-client` executable that allows deploying and interacting with the stablecoin contract.
You can download it as a static Linux binary from GitHub [releases](https://github.com/tqtezos/stablecoin/releases).
Please refer to the [`haskell/`](/haskell/) directory for details.

## Haskell bindings

Apart from LIGO implementation of the contract we have [a Haskell library](haskell/) with data types corresponding to this contract.
It is based on the [morley framework](https://gitlab.com/morley-framework/morley).
It allows us to use features of `morley` (such as testing engine) with this contract.

## Stablecoin client

We have a `stablecoin-client` executable that allows deploying and interacting with the stablecoin contract.
Please refer to the [`haskell/`] directory for details.

## Tests

Tests are implemented in the same Haskell package.
Please refer to the [`haskell/`] directory for details.
Please refer to the [`haskell/`](/haskell/) directory for details.

## Issue Tracker

Expand Down
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2020 tqtezos
# SPDX-FileCopyrightText: 2020 TQ Tezos
# SPDX-License-Identifier: MIT

{ sources ? import ./nix/sources.nix
Expand Down
2 changes: 1 addition & 1 deletion docs/code-style.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
- SPDX-FileCopyrightText: 2020 tqtezos
- SPDX-FileCopyrightText: 2020 TQ Tezos
-
- SPDX-License-Identifier: MIT
-->
Expand Down
2 changes: 1 addition & 1 deletion docs/specification.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
SPDX-FileCopyrightText: 2020 tqtezos
SPDX-FileCopyrightText: 2020 TQ Tezos
SPDX-License-Identifier: MIT
-->

Expand Down
2 changes: 1 addition & 1 deletion haskell/.weeder.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2020 tqtezos
# SPDX-FileCopyrightText: 2020 TQ Tezos
# SPDX-License-Identifier: MIT
- package:
- name: stablecoin
Expand Down
2 changes: 1 addition & 1 deletion haskell/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
SPDX-FileCopyrightText: 2020 tqtezos
SPDX-FileCopyrightText: 2020 TQ Tezos
SPDX-License-Identifier: MIT
-->
# Changelog for Stablecoin Haskell
Expand Down
2 changes: 1 addition & 1 deletion haskell/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 tqtezos
Copyright (c) 2020 TQ Tezos

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion haskell/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2020 tqtezos
# SPDX-FileCopyrightText: 2020 TQ Tezos
# SPDX-License-Identifier: MIT

.PHONY: build test test-dumb-term test-hide-successes nettest haddock haddock-no-deps stylish lint clean all
Expand Down
13 changes: 8 additions & 5 deletions haskell/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
SPDX-FileCopyrightText: 2020 tqtezos
SPDX-FileCopyrightText: 2020 TQ Tezos
SPDX-License-Identifier: MIT
-->

Expand All @@ -10,12 +10,15 @@ This folder contains:
1. a Haskell library to interact with the stablecoin contract (basically Haskell bindings) and tests for it.
2. a `stablecoin-client` executable to deploy and interact with the stablecoin contract.

## Build Instructions
## Install Instructions

You can download static `stablecoin-client` binary for Linux from GitHub [releases](https://github.com/tqtezos/stablecoin/releases).
Alternatively, you can build this package from sources.

You need [Stack](http://haskellstack.org/) to build this package.

To build the library and the executable:
1. Copy the stablecoin contract to `test/resources/stablecoin.tz` and then run `stack build`.
1. Copy or symlink the stablecoin and metadata contracts to `test/resources/` and then run `stack build`.
2. Or, alternatively, run `make build`.

Run `stack install` to install the `stablecoin-client` globally.
Expand All @@ -30,6 +33,6 @@ Otherwise, run `stack run stablecoin-client -- --help`.

## Tests

Tests require the stablecoin contract to be in `test/resources/stablecoin.tz`.
After you put it there you can do `stack test` to run tests.
Tests require the stablecoin and metadata contracts to be in `test/resources/`.
After you put them there you can do `stack test` to run tests.
We have a [`Makefile`](Makefile) that automates this process, so you can run `make test`.
2 changes: 1 addition & 1 deletion haskell/client/Main.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

module Main
Expand Down
4 changes: 2 additions & 2 deletions haskell/hpack/definitions.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2020 tqtezos
# SPDX-FileCopyrightText: 2020 TQ Tezos
# SPDX-License-Identifier: MIT

# This file defines sensible defaults but does not actually apply
Expand All @@ -9,7 +9,7 @@ _definitions:
- &meta
author: Serokell, TQ Tezos
maintainer: Serokell <[email protected]>
copyright: 2020 tqtezos
copyright: 2020 TQ Tezos
license: MIT
license-file: LICENSE
git: [email protected]:tqtezos/stablecoin.git
Expand Down
2 changes: 1 addition & 1 deletion haskell/hpack/module.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2020 tqtezos
# SPDX-FileCopyrightText: 2020 TQ Tezos
# SPDX-License-Identifier: MIT

# Include this file in your module's `package.yaml` to set sensible defaults
Expand Down
2 changes: 1 addition & 1 deletion haskell/nettest/Main.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT
module Main
( main
Expand Down
2 changes: 1 addition & 1 deletion haskell/nettest/Nettest.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

module Nettest
Expand Down
2 changes: 1 addition & 1 deletion haskell/nettest/StablecoinClientTest.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

{-# LANGUAGE OverloadedLists #-}
Expand Down
4 changes: 2 additions & 2 deletions haskell/package.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# SPDX-FileCopyrightText: 2020 tqtezos
# SPDX-FileCopyrightText: 2020 TQ Tezos
# SPDX-License-Identifier: MIT

<<: !include "./hpack/module.yaml"

name: stablecoin
version: 1.1.0
version: 1.2.0

extra-source-files:
- README.md
Expand Down
2 changes: 1 addition & 1 deletion haskell/src/Indigo/Contracts/Transferlist/External.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

-- | This a dummy file that resembles lorentz-contract-transferlist parameter needed for origination.
Expand Down
2 changes: 1 addition & 1 deletion haskell/src/Lorentz/Contracts/Spec/FA2Interface.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

{-# OPTIONS_GHC -Wno-orphans #-}
Expand Down
2 changes: 1 addition & 1 deletion haskell/src/Lorentz/Contracts/Stablecoin.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

module Lorentz.Contracts.Stablecoin
Expand Down
2 changes: 1 addition & 1 deletion haskell/src/Stablecoin/Client.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

module Stablecoin.Client
Expand Down
2 changes: 1 addition & 1 deletion haskell/src/Stablecoin/Client/Cleveland.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

module Stablecoin.Client.Cleveland
Expand Down
2 changes: 1 addition & 1 deletion haskell/src/Stablecoin/Client/Cleveland/Caps.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

{-# LANGUAGE InstanceSigs #-}
Expand Down
2 changes: 1 addition & 1 deletion haskell/src/Stablecoin/Client/Cleveland/IO.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

module Stablecoin.Client.Cleveland.IO
Expand Down
2 changes: 1 addition & 1 deletion haskell/src/Stablecoin/Client/Cleveland/StablecoinImpl.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

module Stablecoin.Client.Cleveland.StablecoinImpl
Expand Down
2 changes: 1 addition & 1 deletion haskell/src/Stablecoin/Client/Contract.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

module Stablecoin.Client.Contract
Expand Down
2 changes: 1 addition & 1 deletion haskell/src/Stablecoin/Client/Impl.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

module Stablecoin.Client.Impl
Expand Down
2 changes: 1 addition & 1 deletion haskell/src/Stablecoin/Client/Main.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

module Stablecoin.Client.Main
Expand Down
2 changes: 1 addition & 1 deletion haskell/src/Stablecoin/Client/Parser.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

{-# LANGUAGE ApplicativeDo #-}
Expand Down
2 changes: 1 addition & 1 deletion haskell/stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2020 tqtezos
# SPDX-FileCopyrightText: 2020 TQ Tezos
# SPDX-License-Identifier: MIT

# To update hackage and stackage indexes used by CI run:
Expand Down
2 changes: 1 addition & 1 deletion haskell/stack.yaml.lock.license
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SPDX-FileCopyrightText: 2020 tqtezos
# SPDX-FileCopyrightText: 2020 TQ Tezos
# SPDX-License-Identifier: MIT
2 changes: 1 addition & 1 deletion haskell/test-common/Lorentz/Contracts/Test/Common.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

-- | Test commons for stablecoin test suite
Expand Down
2 changes: 1 addition & 1 deletion haskell/test/Lorentz/Contracts/Test/FA2.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

-- | Tests for FA2 interface.
Expand Down
2 changes: 1 addition & 1 deletion haskell/test/Lorentz/Contracts/Test/Management.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

-- | Tests for management entrypoints of stablecoin smart-contract
Expand Down
2 changes: 1 addition & 1 deletion haskell/test/Main.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

module Main
Expand Down
2 changes: 1 addition & 1 deletion haskell/test/SMT.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT
{-# OPTIONS_GHC -Wno-orphans #-}
{-# OPTIONS_GHC -Wno-deprecations #-}
Expand Down
2 changes: 1 addition & 1 deletion haskell/test/Stablecoin.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

module Stablecoin
Expand Down
2 changes: 1 addition & 1 deletion haskell/test/Tree.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- SPDX-FileCopyrightText: 2020 tqtezos
-- SPDX-FileCopyrightText: 2020 TQ Tezos
-- SPDX-License-Identifier: MIT

{-# OPTIONS_GHC -F -pgmF tasty-discover -optF --tree-display -optF --generated-module -optF Tree #-}
2 changes: 1 addition & 1 deletion ligo/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2020 tqtezos
# SPDX-FileCopyrightText: 2020 TQ Tezos
# SPDX-License-Identifier: MIT

# Ligo executable
Expand Down
2 changes: 1 addition & 1 deletion ligo/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
SPDX-FileCopyrightText: 2020 tqtezos
SPDX-FileCopyrightText: 2020 TQ Tezos
SPDX-License-Identifier: MIT
-->
# stablecoin LIGO implementation
Expand Down
2 changes: 1 addition & 1 deletion ligo/stablecoin/actions.ligo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2020 tqtezos
// SPDX-FileCopyrightText: 2020 TQ Tezos
// SPDX-License-Identifier: MIT

(*
Expand Down
Loading

0 comments on commit 7a64ec9

Please sign in to comment.