@settlemint/solidity-diamond-bond
Version:
Smart contract set to build an enterprise bond usecase in SettleMint
123 lines (117 loc) • 3.77 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 LibDiamond$Type {
"_format": "hh-sol-artifact-1",
"contractName": "LibDiamond",
"sourceName": "contracts/libraries/LibDiamond.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"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
}
],
"bytecode": "0x6080806040523460175760399081601c823930815050f35b5f80fdfe5f80fdfea26469706673582212206c39a7493d91aada949b569a32d606f542316778749e895664d93e5b7ae7078164736f6c634300081e0033",
"deployedBytecode": "0x5f80fdfea26469706673582212206c39a7493d91aada949b569a32d606f542316778749e895664d93e5b7ae7078164736f6c634300081e0033",
"linkReferences": {},
"deployedLinkReferences": {}
}
declare module "@nomicfoundation/hardhat-viem/types" {
export function deployContract(
contractName: "LibDiamond",
constructorArgs?: [],
config?: DeployContractConfig
): Promise<GetContractReturnType<LibDiamond$Type["abi"]>>;
export function deployContract(
contractName: "contracts/libraries/LibDiamond.sol:LibDiamond",
constructorArgs?: [],
config?: DeployContractConfig
): Promise<GetContractReturnType<LibDiamond$Type["abi"]>>;
export function sendDeploymentTransaction(
contractName: "LibDiamond",
constructorArgs?: [],
config?: SendDeploymentTransactionConfig
): Promise<{
contract: GetContractReturnType<LibDiamond$Type["abi"]>;
deploymentTransaction: GetTransactionReturnType;
}>;
export function sendDeploymentTransaction(
contractName: "contracts/libraries/LibDiamond.sol:LibDiamond",
constructorArgs?: [],
config?: SendDeploymentTransactionConfig
): Promise<{
contract: GetContractReturnType<LibDiamond$Type["abi"]>;
deploymentTransaction: GetTransactionReturnType;
}>;
export function getContractAt(
contractName: "LibDiamond",
address: Address,
config?: GetContractAtConfig
): Promise<GetContractReturnType<LibDiamond$Type["abi"]>>;
export function getContractAt(
contractName: "contracts/libraries/LibDiamond.sol:LibDiamond",
address: Address,
config?: GetContractAtConfig
): Promise<GetContractReturnType<LibDiamond$Type["abi"]>>;
}