ContractsFacadeImp
final public class ContractsFacadeImp : ContractsFacade, ECHOQueueble
Undocumented
-
Undocumented
Declaration
Swift
public init(services: ContractsFacadeServices, cryptoCore: CryptoCoreComponent, network: ECHONetwork, abiCoder: AbiCoder, noticeDelegateHandler: NoticeEventDelegateHandler, settings: Settings)
-
Declaration
Swift
public func getContractLogs(contractId: String, fromBlock: Int, toBlock: Int, completion: @escaping Completion<[ContractLog]>)
-
Declaration
Swift
public func getContractResult(contractResultId: String, completion: @escaping Completion<ContractResultEnum>)
-
Declaration
Swift
public func getContracts(contractIds: [String], completion: @escaping Completion<[ContractInfo]>)
-
Declaration
Swift
public func getContract(contractId: String, completion: @escaping Completion<ContractStructEnum>)
-
createContract(registrarNameOrId:passwordOrWif:assetId:amount:assetForFee:byteCode:supportedAssetId:ethAccuracy:parameters:completion:noticeHandler:)
Declaration
Swift
public func createContract(registrarNameOrId: String, passwordOrWif: PassOrWif, assetId: String, amount: UInt?, assetForFee: String?, byteCode: String, supportedAssetId: String?, ethAccuracy: Bool, parameters: [AbiTypeValueInputModel]?, completion: @escaping Completion<Bool>, noticeHandler: NoticeHandler?)
-
createContract(registrarNameOrId:passwordOrWif:assetId:amount:assetForFee:byteCode:supportedAssetId:ethAccuracy:completion:noticeHandler:)
Declaration
Swift
public func createContract(registrarNameOrId: String, passwordOrWif: PassOrWif, assetId: String, amount: UInt?, assetForFee: String?, byteCode: String, supportedAssetId: String?, ethAccuracy: Bool, completion: @escaping Completion<Bool>, noticeHandler: NoticeHandler?)
-
callContract(registrarNameOrId:passwordOrWif:assetId:amount:assetForFee:contratId:methodName:methodParams:completion:noticeHandler:)
Declaration
Swift
public func callContract(registrarNameOrId: String, passwordOrWif: PassOrWif, assetId: String, amount: UInt?, assetForFee: String?, contratId: String, methodName: String, methodParams: [AbiTypeValueInputModel], completion: @escaping Completion<Bool>, noticeHandler: NoticeHandler?)
-
callContract(registrarNameOrId:passwordOrWif:assetId:amount:assetForFee:contratId:byteCode:completion:noticeHandler:)
Declaration
Swift
public func callContract(registrarNameOrId: String, passwordOrWif: PassOrWif, assetId: String, amount: UInt?, assetForFee: String?, contratId: String, byteCode: String, completion: @escaping Completion<Bool>, noticeHandler: NoticeHandler?)
-
Declaration
Swift
public func queryContract(registrarNameOrId: String, assetId: String, contratId: String, methodName: String, methodParams: [AbiTypeValueInputModel], completion: @escaping Completion<String>)
-
Declaration
Swift
public func queryContract(registrarNameOrId: String, assetId: String, contratId: String, byteCode: String, completion: @escaping Completion<String>)
-
Undocumented
Declaration
Swift
public func didReceiveNotification(notification: ECHONotification)