opnet
Version:
The perfect library for building Bitcoin-based applications.
47 lines (44 loc) • 1.25 kB
text/typescript
import { ABIDataTypes } from '@btc-vision/transaction';
import { BitcoinAbiTypes } from '../../../BitcoinAbiTypes.js';
import { BitcoinInterfaceAbi } from '../../../interfaces/BitcoinInterfaceAbi.js';
import { OP_20_ABI } from '../opnet/OP_20_ABI.js';
export const MOTO_ABI: BitcoinInterfaceAbi = [
{
name: 'admin',
type: BitcoinAbiTypes.Function,
constant: true,
inputs: [],
outputs: [
{
name: 'adminAddress',
type: ABIDataTypes.ADDRESS,
},
],
},
{
name: 'changeAdmin',
type: BitcoinAbiTypes.Function,
inputs: [{ name: 'to', type: ABIDataTypes.ADDRESS }],
outputs: [],
},
{
name: 'adminMint',
type: BitcoinAbiTypes.Function,
inputs: [
{ name: 'to', type: ABIDataTypes.ADDRESS },
{ name: 'amount', type: ABIDataTypes.UINT256 },
],
outputs: [],
},
{
name: 'adminBurn',
type: BitcoinAbiTypes.Function,
inputs: [
{ name: 'from', type: ABIDataTypes.ADDRESS },
{ name: 'amount', type: ABIDataTypes.UINT256 },
],
outputs: [],
},
// OP_20
...OP_20_ABI,
];