ufomarketplace-sdk-new
Version:
SDK to interact with set ufo marketplace contracts
113 lines (105 loc) • 3.07 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
import type { Provider, TransactionRequest } from "@ethersproject/providers";
import type {
StdStorageSafe,
StdStorageSafeInterface,
} from "../../StdStorage.sol/StdStorageSafe";
const _abi = [
{
type: "event",
name: "SlotFound",
inputs: [
{
name: "who",
type: "address",
indexed: false,
internalType: "address",
},
{
name: "fsig",
type: "bytes4",
indexed: false,
internalType: "bytes4",
},
{
name: "keysHash",
type: "bytes32",
indexed: false,
internalType: "bytes32",
},
{
name: "slot",
type: "uint256",
indexed: false,
internalType: "uint256",
},
],
anonymous: false,
},
{
type: "event",
name: "WARNING_UninitedSlot",
inputs: [
{
name: "who",
type: "address",
indexed: false,
internalType: "address",
},
{
name: "slot",
type: "uint256",
indexed: false,
internalType: "uint256",
},
],
anonymous: false,
},
] as const;
const _bytecode =
"0x602d6037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000807000a";
type StdStorageSafeConstructorParams =
| [signer?: Signer]
| ConstructorParameters<typeof ContractFactory>;
const isSuperArgs = (
xs: StdStorageSafeConstructorParams
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
export class StdStorageSafe__factory extends ContractFactory {
constructor(...args: StdStorageSafeConstructorParams) {
if (isSuperArgs(args)) {
super(...args);
} else {
super(_abi, _bytecode, args[0]);
}
}
override deploy(
overrides?: Overrides & { from?: string }
): Promise<StdStorageSafe> {
return super.deploy(overrides || {}) as Promise<StdStorageSafe>;
}
override getDeployTransaction(
overrides?: Overrides & { from?: string }
): TransactionRequest {
return super.getDeployTransaction(overrides || {});
}
override attach(address: string): StdStorageSafe {
return super.attach(address) as StdStorageSafe;
}
override connect(signer: Signer): StdStorageSafe__factory {
return super.connect(signer) as StdStorageSafe__factory;
}
static readonly bytecode = _bytecode;
static readonly abi = _abi;
static createInterface(): StdStorageSafeInterface {
return new utils.Interface(_abi) as StdStorageSafeInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): StdStorageSafe {
return new Contract(address, _abi, signerOrProvider) as StdStorageSafe;
}
}