mirror of
https://github.com/luxfi/uni-v3-subgraph.git
synced 2026-10-30 15:14:19 +00:00
33 lines
777 B
TypeScript
33 lines
777 B
TypeScript
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
|
|
import {
|
|
ethereum,
|
|
JSONValue,
|
|
TypedMap,
|
|
Entity,
|
|
Bytes,
|
|
Address,
|
|
BigInt,
|
|
} from "@graphprotocol/graph-ts";
|
|
|
|
export class ERC20SymbolBytes extends ethereum.SmartContract {
|
|
static bind(address: Address): ERC20SymbolBytes {
|
|
return new ERC20SymbolBytes("ERC20SymbolBytes", address);
|
|
}
|
|
|
|
symbol(): Bytes {
|
|
let result = super.call("symbol", "symbol():(bytes32)", []);
|
|
|
|
return result[0].toBytes();
|
|
}
|
|
|
|
try_symbol(): ethereum.CallResult<Bytes> {
|
|
let result = super.tryCall("symbol", "symbol():(bytes32)", []);
|
|
if (result.reverted) {
|
|
return new ethereum.CallResult();
|
|
}
|
|
let value = result.value;
|
|
return ethereum.CallResult.fromValue(value[0].toBytes());
|
|
}
|
|
}
|