@stratos-network/contracts
v1.0.2
Published
Stratos Contracts is a library for stos smart contract development
Downloads
6
Readme
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.