1.0.1 • Published 2 years ago

@the-stratos-network/contracts v1.0.1

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 @stratosnet/contracts

Usage

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

pragma solidity ^0.8.0;

import "@stratosnet/contracts/utils/Bech32.sol";

contract MyStratosAddress {
    using Bech32 for address;

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

License

OpenZeppelin Contracts is released under the MIT License.