UNPKG

@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

30 lines (24 loc) 816 B
import {EndPoint, PermissionsResponse} from '../../entities' import {RequestConfig} from '../Transactions' import {Query} from './Query' export type GrantorPermissionsQueryProps = { grantorAccount: string limit?: number offset?: number, } export type GrantorPermissionsQueryData = { grantor_account: string limit?: number offset?: number, } export class GetGrantorPermissions extends Query<GrantorPermissionsQueryData, PermissionsResponse> { public ENDPOINT = `chain/${EndPoint.getGrantorPermissions}` as const constructor(config: RequestConfig, public props: GrantorPermissionsQueryProps) { super(config) } public getData = () => ({ grantor_account: this.props.grantorAccount, limit: this.props.limit, offset: this.props.offset, }) }