UNPKG

opnet

Version:

The perfect library for building Bitcoin-based applications.

187 lines (184 loc) 5.34 kB
import { ABIDataTypes } from '@btc-vision/transaction'; import { BitcoinAbiTypes } from '../../../BitcoinAbiTypes.js'; import { BitcoinInterfaceAbi } from '../../../interfaces/BitcoinInterfaceAbi.js'; import { OP_20S_ABI } from '../opnet/OP_20S_ABI.js'; export const StableCoinEvents: BitcoinInterfaceAbi = [ { name: 'Blacklisted', values: [ { name: 'account', type: ABIDataTypes.ADDRESS }, { name: 'blacklister', type: ABIDataTypes.ADDRESS }, ], type: BitcoinAbiTypes.Event, }, { name: 'Unblacklisted', values: [ { name: 'account', type: ABIDataTypes.ADDRESS }, { name: 'blacklister', type: ABIDataTypes.ADDRESS }, ], type: BitcoinAbiTypes.Event, }, { name: 'Paused', values: [{ name: 'pauser', type: ABIDataTypes.ADDRESS }], type: BitcoinAbiTypes.Event, }, { name: 'Unpaused', values: [{ name: 'pauser', type: ABIDataTypes.ADDRESS }], type: BitcoinAbiTypes.Event, }, { name: 'OwnershipTransferStarted', values: [ { name: 'currentOwner', type: ABIDataTypes.ADDRESS }, { name: 'pendingOwner', type: ABIDataTypes.ADDRESS }, ], type: BitcoinAbiTypes.Event, }, { name: 'OwnershipTransferred', values: [ { name: 'previousOwner', type: ABIDataTypes.ADDRESS }, { name: 'newOwner', type: ABIDataTypes.ADDRESS }, ], type: BitcoinAbiTypes.Event, }, { name: 'MinterChanged', values: [ { name: 'previousMinter', type: ABIDataTypes.ADDRESS }, { name: 'newMinter', type: ABIDataTypes.ADDRESS }, ], type: BitcoinAbiTypes.Event, }, { name: 'BlacklisterChanged', values: [ { name: 'previousBlacklister', type: ABIDataTypes.ADDRESS }, { name: 'newBlacklister', type: ABIDataTypes.ADDRESS }, ], type: BitcoinAbiTypes.Event, }, { name: 'PauserChanged', values: [ { name: 'previousPauser', type: ABIDataTypes.ADDRESS }, { name: 'newPauser', type: ABIDataTypes.ADDRESS }, ], type: BitcoinAbiTypes.Event, }, ]; export const StableCoin_ABI: BitcoinInterfaceAbi = [ { name: 'mint', inputs: [ { name: 'to', type: ABIDataTypes.ADDRESS }, { name: 'amount', type: ABIDataTypes.UINT256 }, ], outputs: [], type: BitcoinAbiTypes.Function, }, { name: 'burnFrom', inputs: [ { name: 'from', type: ABIDataTypes.ADDRESS }, { name: 'amount', type: ABIDataTypes.UINT256 }, ], outputs: [], type: BitcoinAbiTypes.Function, }, { name: 'blacklist', inputs: [{ name: 'account', type: ABIDataTypes.ADDRESS }], outputs: [], type: BitcoinAbiTypes.Function, }, { name: 'unblacklist', inputs: [{ name: 'account', type: ABIDataTypes.ADDRESS }], outputs: [], type: BitcoinAbiTypes.Function, }, { name: 'isBlacklisted', inputs: [{ name: 'account', type: ABIDataTypes.ADDRESS }], outputs: [{ name: 'blacklisted', type: ABIDataTypes.BOOL }], type: BitcoinAbiTypes.Function, }, { name: 'pause', inputs: [], outputs: [], type: BitcoinAbiTypes.Function, }, { name: 'unpause', inputs: [], outputs: [], type: BitcoinAbiTypes.Function, }, { name: 'isPaused', inputs: [], outputs: [{ name: 'paused', type: ABIDataTypes.BOOL }], type: BitcoinAbiTypes.Function, }, { name: 'transferOwnership', inputs: [{ name: 'newOwner', type: ABIDataTypes.ADDRESS }], outputs: [], type: BitcoinAbiTypes.Function, }, { name: 'acceptOwnership', inputs: [], outputs: [], type: BitcoinAbiTypes.Function, }, { name: 'setMinter', inputs: [{ name: 'newMinter', type: ABIDataTypes.ADDRESS }], outputs: [], type: BitcoinAbiTypes.Function, }, { name: 'setBlacklister', inputs: [{ name: 'newBlacklister', type: ABIDataTypes.ADDRESS }], outputs: [], type: BitcoinAbiTypes.Function, }, { name: 'setPauser', inputs: [{ name: 'newPauser', type: ABIDataTypes.ADDRESS }], outputs: [], type: BitcoinAbiTypes.Function, }, { name: 'owner', inputs: [], outputs: [{ name: 'owner', type: ABIDataTypes.ADDRESS }], type: BitcoinAbiTypes.Function, }, { name: 'minter', inputs: [], outputs: [{ name: 'minter', type: ABIDataTypes.ADDRESS }], type: BitcoinAbiTypes.Function, }, { name: 'blacklister', inputs: [], outputs: [{ name: 'blacklister', type: ABIDataTypes.ADDRESS }], type: BitcoinAbiTypes.Function, }, { name: 'pauser', inputs: [], outputs: [{ name: 'pauser', type: ABIDataTypes.ADDRESS }], type: BitcoinAbiTypes.Function, }, ...StableCoinEvents, ...OP_20S_ABI, ];