Skip to content

Commit

Permalink
chore: update readme links and funding
Browse files Browse the repository at this point in the history
  • Loading branch information
koraykoska committed Oct 5, 2022
1 parent 0928fe9 commit ac16cab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# These are supported funding model platforms

github: [Ybrin]# Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
github: [koraykoska]# Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Web3 is compatible with Swift Package Manager v5 (Swift 5 and above). Simply add

```Swift
dependencies: [
.package(url: "https://github.com/Boilertalk/Web3.swift.git", from: "0.5.0")
.package(url: "https://github.com/Boilertalk/Web3.swift.git", from: "0.6.0")
]
```

Expand Down Expand Up @@ -301,11 +301,11 @@ or [the official Ethereum JSON RPC documentation](https://eth.wiki/json-rpc/API)

We are providing an optional module for interaction with smart contracts. To use it you have to add `Web3ContractABI` to your target dependencies in your Podfile (for SPM). Make sure you check out the [installation instructions](#Installation) first.

We are providing two different options to create contract abi interfaces in Swift. Either you define your functions and events manually (or use one of our provided interfaces like [ERC20](Web3/Classes/ContractABI/Contract/ERC20.swift) or [ERC721](Web3/Classes/ContractABI/Contract/ERC721.swift)). Or you parse them from the JSON ABI representation just like in web3.js.
We are providing two different options to create contract abi interfaces in Swift. Either you define your functions and events manually (or use one of our provided interfaces like [ERC20](Web3/Sources/ContractABI/Contract/ERC20.swift) or [ERC721](Web3/Sources/ContractABI/Contract/ERC721.swift)). Or you parse them from the JSON ABI representation just like in web3.js.

### Static Contracts

Static contracts are classes implementing `StaticContract`. They provide a set of functions and events they want to use from the original smart contract. Check out our provided static contracts as a starting point ([ERC20](Web3/Classes/ContractABI/Contract/ERC20.swift) or [ERC721](Web3/Classes/ContractABI/Contract/ERC721.swift)).
Static contracts are classes implementing `StaticContract`. They provide a set of functions and events they want to use from the original smart contract. Check out our provided static contracts as a starting point ([ERC20](Web3/Sources/ContractABI/Contract/ERC20.swift) or [ERC721](Web3/Sources/ContractABI/Contract/ERC721.swift)).

Our static ERC20 interface is called `GenericERC20Contract`, the ERC721 contract is called `GenericERC721Contract`. Both can be subclassed to add more functions for custom contracts.

Expand Down Expand Up @@ -408,7 +408,7 @@ firstly {

Using this API you can interact with any smart contract in the Ethereum Network!

For more examples, including contract creation (constructor calling) check out our [tests](Example/Tests/ContractTests).
For more examples, including contract creation (constructor calling) check out our [tests](Tests/Web3Tests/ContractTests).

## Common errors

Expand Down

0 comments on commit ac16cab

Please sign in to comment.