Latest 0.1.0
Homepage https://github.com/ccxdd/ERCTools
License MIT
Platforms ios 10.0, osx 10.12, requires ARC
Dependencies SSLE, SwiftWebSocket, SwiftyJSON, CryptoSwift
Frameworks Foundation
Authors

Ethereum Token Tools

WebSocket

// balance
EthereumRPC.eth_getBalance(addr: "0xfdfaf22423423432432wfsdfsfd").responseString { [weak self] (r) in

}

// Receipt
EthereumRPC.eth_getTransactionReceipt(tx: "").responseString { (s) in

}

// gasPrice
EthereumRPC.eth_gasPrice().responseString { (r) in

}

ABIEncoding

// sendRawTransaction
let transferByID = ABIFunc.call(name: "transferByID", arguments: [.string("1234"),
                                                                  .uint256(UInt(10))])
print(transferByID.encoding)

transferByID.sendRawTransaction { (r) in

}

// eth_call
let isIdAvailable = ABIFunc.call(name: "isIdAvailable", arguments: [.string("my id")])

print(isIdAvailable.encoding)

isIdAvailable.eth_call { (r) in

}

Latest podspec

{
    "name": "ERCTools",
    "version": "0.1.0",
    "summary": "ERCTools.",
    "description": "ETH ERC Tools ABI, RPC",
    "homepage": "https://github.com/ccxdd/ERCTools",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ccxdd": "[email protected]"
    },
    "platforms": {
        "ios": "10.0",
        "osx": "10.12"
    },
    "cocoapods_version": ">= 1.4.0",
    "swift_version": "4.0",
    "source": {
        "git": "https://github.com/ccxdd/ERCTools.git",
        "tag": "0.1.0"
    },
    "source_files": "Sources/*.swift",
    "frameworks": "Foundation",
    "ios": {
        "frameworks": "UIKit"
    },
    "requires_arc": true,
    "dependencies": {
        "SSLE": [
            "~> 0.0.25"
        ],
        "SwiftWebSocket": [
            "~> 2.7.0"
        ],
        "SwiftyJSON": [
            "~> 4.2.0"
        ],
        "CryptoSwift": [
            "~> 0.14"
        ]
    }
}

Pin It on Pinterest

Share This