Documentation ¶
Index ¶
- Constants
- Variables
- func AppendToSlice(slice interface{}, value interface{}) (interface{}, error)
- func CloneStruct(input interface{}) (interface{}, error)
- func MakeSliceOfType(solType abi.Type, length, cap int) interface{}
- func ParseABIFromString(abistr string) (ABI *abi.ABI, clearABIString string, err error)
- func Sanitize(abi string, l int) string
- func SetSliceValue(slice interface{}, index int, value interface{}) error
- func SetTupleValues(tuple *abi.Argument, values []interface{}) (interface{}, error)
- type ABIStruct
Constants ¶
View Source
const TestABI = `` /* 3934-byte string literal not displayed */
Variables ¶
View Source
var Subjectstring = `` /* 1774-byte string literal not displayed */
Functions ¶
func AppendToSlice ¶
func AppendToSlice(slice interface{}, value interface{}) (interface{}, error)
func CloneStruct ¶
func CloneStruct(input interface{}) (interface{}, error)
CloneStruct clones a struct using reflection
func MakeSliceOfType ¶
func ParseABIFromString ¶
func SetSliceValue ¶
func SetTupleValues ¶
Types ¶
type ABIStruct ¶
type ABIStruct struct { Compiler struct { Version string `json:"version"` } `json:"compiler"` Language string `json:"language"` Output struct { Abi json.RawMessage `json:"abi"` } `json:"output"` /* Settings struct { CompilationTarget struct { ContractsContractsSamplesSimpleAccountSol string `json:"contracts/contracts/samples/SimpleAccount.sol"` } `json:"compilationTarget"` EvmVersion string `json:"evmVersion"` Libraries struct { } `json:"libraries"` Metadata struct { BytecodeHash string `json:"bytecodeHash"` } `json:"metadata"` Optimizer struct { Enabled bool `json:"enabled"` Runs int `json:"runs"` } `json:"optimizer"` Remappings []interface{} `json:"remappings"` } `json:"settings"` */ /* Sources struct { OpenzeppelinContractsInterfacesDraftIERC1822Sol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"@openzeppelin/contracts/interfaces/draft-IERC1822.sol"` OpenzeppelinContractsProxyERC1967ERC1967UtilsSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol"` OpenzeppelinContractsProxyBeaconIBeaconSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"@openzeppelin/contracts/proxy/beacon/IBeacon.sol"` OpenzeppelinContractsProxyUtilsInitializableSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"@openzeppelin/contracts/proxy/utils/Initializable.sol"` OpenzeppelinContractsProxyUtilsUUPSUpgradeableSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol"` OpenzeppelinContractsTokenERC1155IERC1155ReceiverSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol"` OpenzeppelinContractsTokenERC721IERC721ReceiverSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"` OpenzeppelinContractsUtilsAddressSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"@openzeppelin/contracts/utils/Address.sol"` OpenzeppelinContractsUtilsStorageSlotSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"@openzeppelin/contracts/utils/StorageSlot.sol"` OpenzeppelinContractsUtilsStringsSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"@openzeppelin/contracts/utils/Strings.sol"` OpenzeppelinContractsUtilsCryptographyECDSASol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"@openzeppelin/contracts/utils/cryptography/ECDSA.sol"` OpenzeppelinContractsUtilsCryptographyMessageHashUtilsSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol"` OpenzeppelinContractsUtilsIntrospectionIERC165Sol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"@openzeppelin/contracts/utils/introspection/IERC165.sol"` OpenzeppelinContractsUtilsMathMathSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"@openzeppelin/contracts/utils/math/Math.sol"` ContractsContractsCoreBaseAccountSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"contracts/contracts/core/BaseAccount.sol"` ContractsContractsCoreHelpersSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"contracts/contracts/core/Helpers.sol"` ContractsContractsCoreUserOperationLibSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"contracts/contracts/core/UserOperationLib.sol"` ContractsContractsInterfacesIAccountSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"contracts/contracts/interfaces/IAccount.sol"` ContractsContractsInterfacesIAggregatorSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"contracts/contracts/interfaces/IAggregator.sol"` ContractsContractsInterfacesIEntryPointSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"contracts/contracts/interfaces/IEntryPoint.sol"` ContractsContractsInterfacesINonceManagerSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"contracts/contracts/interfaces/INonceManager.sol"` ContractsContractsInterfacesIStakeManagerSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"contracts/contracts/interfaces/IStakeManager.sol"` ContractsContractsInterfacesPackedUserOperationSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"contracts/contracts/interfaces/PackedUserOperation.sol"` ContractsContractsSamplesSimpleAccountSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"contracts/contracts/samples/SimpleAccount.sol"` ContractsContractsSamplesCallbackTokenCallbackHandlerSol struct { Keccak256 string `json:"keccak256"` License string `json:"license"` Urls []string `json:"urls"` } `json:"contracts/contracts/samples/callback/TokenCallbackHandler.sol"` } `json:"sources"` */ Version int `json:"version"` }
Click to show internal directories.
Click to hide internal directories.