@settlemint/solidity-diamond-bond
Version:
Smart contract set to build an enterprise bond usecase in SettleMint
144 lines (138 loc) • 4.08 kB
TypeScript
// This file was autogenerated by hardhat-viem, do not edit it.
// prettier-ignore
// tslint:disable
// eslint-disable
import type { Address } from "viem";
import type { GetContractReturnType } from "@nomicfoundation/hardhat-viem/types";
import "@nomicfoundation/hardhat-viem/types";
export interface IDiamondCut$Type {
"_format": "hh-sol-artifact-1",
"contractName": "IDiamondCut",
"sourceName": "contracts/interfaces/IDiamondCut.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "facetAddress",
"type": "address"
},
{
"internalType": "enum IDiamond.FacetCutAction",
"name": "action",
"type": "uint8"
},
{
"internalType": "bytes4[]",
"name": "functionSelectors",
"type": "bytes4[]"
}
],
"indexed": false,
"internalType": "struct IDiamond.FacetCut[]",
"name": "_diamondCut",
"type": "tuple[]"
},
{
"indexed": false,
"internalType": "address",
"name": "_init",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes",
"name": "_calldata",
"type": "bytes"
}
],
"name": "DiamondCut",
"type": "event"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "facetAddress",
"type": "address"
},
{
"internalType": "enum IDiamond.FacetCutAction",
"name": "action",
"type": "uint8"
},
{
"internalType": "bytes4[]",
"name": "functionSelectors",
"type": "bytes4[]"
}
],
"internalType": "struct IDiamond.FacetCut[]",
"name": "_diamondCut",
"type": "tuple[]"
},
{
"internalType": "address",
"name": "_init",
"type": "address"
},
{
"internalType": "bytes",
"name": "_calldata",
"type": "bytes"
}
],
"name": "diamondCut",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}
declare module "@nomicfoundation/hardhat-viem/types" {
export function deployContract(
contractName: "IDiamondCut",
constructorArgs?: [],
config?: DeployContractConfig
): Promise<GetContractReturnType<IDiamondCut$Type["abi"]>>;
export function deployContract(
contractName: "contracts/interfaces/IDiamondCut.sol:IDiamondCut",
constructorArgs?: [],
config?: DeployContractConfig
): Promise<GetContractReturnType<IDiamondCut$Type["abi"]>>;
export function sendDeploymentTransaction(
contractName: "IDiamondCut",
constructorArgs?: [],
config?: SendDeploymentTransactionConfig
): Promise<{
contract: GetContractReturnType<IDiamondCut$Type["abi"]>;
deploymentTransaction: GetTransactionReturnType;
}>;
export function sendDeploymentTransaction(
contractName: "contracts/interfaces/IDiamondCut.sol:IDiamondCut",
constructorArgs?: [],
config?: SendDeploymentTransactionConfig
): Promise<{
contract: GetContractReturnType<IDiamondCut$Type["abi"]>;
deploymentTransaction: GetTransactionReturnType;
}>;
export function getContractAt(
contractName: "IDiamondCut",
address: Address,
config?: GetContractAtConfig
): Promise<GetContractReturnType<IDiamondCut$Type["abi"]>>;
export function getContractAt(
contractName: "contracts/interfaces/IDiamondCut.sol:IDiamondCut",
address: Address,
config?: GetContractAtConfig
): Promise<GetContractReturnType<IDiamondCut$Type["abi"]>>;
}