@fioprotocol/fiosdk
Version:
The Foundation for Interwallet Operability (FIO) is a consortium of leading blockchain wallets, exchanges and payments providers that seeks to accelerate blockchain adoption by reducing the risk, complexity, and inconvenience of sending and receiving cryp
24 lines (18 loc) • 555 B
text/typescript
import {AbiResponse, EndPoint} from '../../entities'
import {RequestConfig} from '../Transactions'
import {Query} from './Query'
export type AbiQueryProps = {
accountName: string;
}
export type AbiQueryData = {
account_name: string;
}
export class GetAbi extends Query<AbiQueryData, AbiResponse> {
public ENDPOINT = `chain/${EndPoint.getRawAbi}` as const
constructor(config: RequestConfig, public props: AbiQueryProps) {
super(config)
}
public getData = () => ({
account_name: this.props.accountName,
})
}