mirrored_repositories/worken-sdk-flutter/lib/core
import 'package:web3dart/web3dart.dart';

class Abi {
  static const String erc20balance = '''[
            {
              "constant": true,
              "inputs": [{"name": "_owner", "type": "address"}],
              "name": "balanceOf",
              "outputs": [{"name": "balance", "type": "uint256"}],
              "type": "function"
            },
            {
              "inputs": [
                {
                  "internalType": "address",
                  "name": "recipient",
                  "type": "address"
                },
                {
                  "internalType": "uint256",
                  "name": "amount",
                  "type": "uint256"
                }
              ],
              "name": "transfer",
              "outputs": [
                {
                  "internalType": "bool",
                  "name": "",
                  "type": "bool"
                }
              ],
              "stateMutability": "nonpayable",
              "type": "function"
            }
          ]''';

  static ContractAbi get balance =>
      ContractAbi.fromJson(Abi.erc20balance, 'ERC20Balance');
}
