1.0.2 • Published 2 years ago

@stratos-network/contracts v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Stratos contracts

A library for stratos, tendermint and cosmos smart contract development.

  • Implementations of libraries like Bech32.

Overview

Installation

$ yarn add -D @stratos-network/contracts

Usage

Once installed, you can use the contracts in the library by importing them:

pragma solidity ^0.8.0;

import "@stratos-network/contracts/utils/Bech32.sol";

contract MyStratosAddress {
    using Bech32 for address;

    function getStratosAddress() public view returns (string memory) {
        return msg.sender.toBech32("st");
    }
}

License

Stratos Contracts is released under the MIT License.

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago