bumi and GitHub
fe16a605c1
Merge pull request #136 from 67P/dev/local_ipfs_gateway
...
Use local default IPFS gateway
2019-07-12 09:43:36 +00:00
bumi
2a7ec1073f
List 200 contribtuions per page
...
Kicking the can a bit further down the road...
Currently we do not have any pagination and we got already more
contributions than the default per page setting.
2019-04-25 23:56:18 +02:00
bumi and GitHub
d02fb4716a
Merge pull request #109 from 67P/feature/contribution_lists
...
Improve contribution lists
2019-04-25 19:45:50 +00:00
bumi
de937aceee
Shorter JS syntax
2019-04-24 09:48:24 +02:00
bumi
d1791cadfe
Display contribution balances not token balances
...
We want to display the contribution balances (kredits earned) of the
contributors not the token balances.
2019-04-19 18:16:02 +02:00
bumi and GitHub
83fd9a94b0
Merge pull request #104 from 67P/feature/handle-kredits-balances
...
Fix kredits balance handling
2019-04-19 13:44:35 +00:00
bumi
562a8d159b
Cleanup
2019-04-19 14:54:18 +02:00
bumi
6f4afaf84a
List only contrbutors with more than 0 kredits
...
This is a bit of a problem because we list integer values, so if
somebody has less than 1 Kredit than they would still show up. Not sure
what is the best to do here. - but this should be good enough for now.
2019-04-19 11:45:53 +02:00
bumi
2aae2a8f90
Fix kredits balance handling
...
Kredits are stored on the Token contract as uint256 / bignumbers with 18
decimal points. Just like Ether and required by the ERC20 standard.
So we need to work with bignumbers and format a bignumber value here.
2019-04-19 11:37:18 +02:00
bumi
6dcbd1efbf
Default to open.aragonpm.eth in production.
2019-04-18 11:23:24 +02:00
bumi
6bd87ae0de
Fu** you failing tests. You should not be here anyway
...
take my rm -rf muhahaha
2019-04-16 11:04:57 +02:00
bumi
0380ea3e98
Update kredits-contracts to weltempfänger rinkeby release
2019-04-15 19:31:58 +02:00
bumi and GitHub
9dba432542
Merge pull request #102 from 67P/chore/ethereum-provider
...
Do not rely on web3 injection with new ethereum provider standard
2019-04-10 14:19:45 +00:00
bumi
da608a0012
Do not rely on web3 injection with new ethereum provider standard
...
when window.ethereum is available web3 is likely not available as the
browser uses the new provider standard.
So we either user the window.ethereum as provider or the
web3.currentProvider as legacy option.
2019-04-09 22:37:48 +02:00
bumi and GitHub
bff611f866
Merge pull request #94 from 67P/refactor/healthcheck-1
...
Add Kredits preflight checks
2019-04-05 13:01:02 +00:00
bumi
f0b75d96db
No bignumber anymore
...
as numbers are uint32 in the contract so no bignumber in JS anymore
2019-04-05 12:31:21 +02:00
bumi and GitHub
190975b981
Merge pull request #97 from 67P/feature/87-metamask_privacy_mode
...
Support new Metamask/Web3 privacy mode
2019-04-04 23:24:02 +00:00
bumi and GitHub
e4c9a88eca
Merge pull request #95 from 67P/chore/83-infura_auth
...
Use new Infura URL/auth
2019-04-04 23:07:00 +00:00
bumi and GitHub
f202b34d28
Update README.md
2019-04-04 08:11:53 +00:00
bumi
07fa07eb22
Update README
2019-04-04 10:08:53 +02:00
bumi
137f9ae8bf
Add Kredits preflight checks
...
This should identify potential config issues and print a usefull error
message. e.g. if ipfs is not available.
2019-04-03 20:06:40 +02:00
bumi
bd2a640be0
Remove default contributors value in propsal component
...
It seems that this somehow prevents/overwrites the contributors which
actually should be loaded in the controller.
2019-04-03 13:46:49 +02:00
bumi
889f2c05fc
Fix bignumber computed property
...
The ethers.js bignumber API changed in v4.x
2019-04-03 13:43:57 +02:00
bumi
b75ac5c8b9
Update kredits-contracts and ethers.js
...
This uses the new ethers.js 4.x API which is required by the new
kredits-contracts.
Also Operator is now Proposal in the new kredits-contracts wrapper
2019-03-29 19:54:45 +01:00
bumi
804060ad34
Pass ETH signer only if it can actually sign
...
We have seen an "no accounts" invalid operation getAddress when trying
to call a contract function in the init calls.
It seems ethers has a problem with a signer that does not have any
accounts - even though we don't try to sign an actual transaction and
only read data from the contract.
This change only passes the signer if we have an unlocked web3 provider
(metamask).
2018-06-14 15:00:43 +02:00
bumi
7c54ebcbd0
Add npm script to run app with local network
...
npm run start:local - sets NETWORK_ID and WEB3_PROVIDER_URL to local
network defaults
2018-06-07 17:28:13 +02:00
bumi and GitHub
d07c0d67bf
Merge pull request #65 from 67P/feature/switch_to_infura
...
Update contracts, Ethereum/IPFS configs
2018-06-07 14:37:17 +00:00
bumi
eb5c87308a
update kredits-contracts/truffle-kredits
2018-04-22 19:47:53 +02:00
bumi
7da4956f1e
Fix tests
...
These tests must be moved into the kredits-contract package. The
serialization is happening there.
They should be ported to mocha/chai probably
2018-04-18 20:19:26 +02:00
bumi
31e27865bb
Use kredits-contracts from npm
2018-04-18 19:26:35 +02:00
bumi
967f213cba
Remove build script to write address/abi json
...
those are now in the kredits-contracts library
2018-04-18 19:24:38 +02:00
bumi
0e556aa794
Remove kredits library files and use npm package
...
Currently it uses the package directly from git
2018-04-18 19:01:26 +02:00
bumi
f0f82a96fb
Adjust for latest naming conventions
...
expept the renaming of ipfsHash to hashDigest all are already reflected
in the contracts
2018-04-17 11:43:44 +02:00
bumi and GitHub
539f32911d
Merge pull request #53 from 67P/docs/readme_local_contracts
...
Update README
2018-04-16 15:12:20 +00:00
bumi and GitHub
33d6499dd4
Merge pull request #51 from 67P/feature/contract-events
...
Move contract event handling into service
2018-04-15 19:58:23 +00:00
bumi
62e195d186
remove fake bignumber from tests
...
We make everything bignumber-y now so that is no longer needed
2018-04-15 19:56:03 +02:00
bumi
e31ff492d5
merge master
2018-04-15 19:08:26 +02:00
bumi
8aa941e704
Rename recipientId to contributorId in proposals
2018-04-15 19:02:35 +02:00
bumi and GitHub
fdda30da67
Merge pull request #48 from 67P/revert-45-refactor/naming-conventions
...
Revert "Adjust for new naming conventions"
2018-04-15 16:42:36 +00:00
bumi and GitHub
399ee27af9
Revert "Adjust for new naming conventions"
2018-04-15 16:35:31 +00:00
bumi and GitHub
d2c43b9ef1
Merge pull request #45 from 67P/refactor/naming-conventions
...
Adjust for new naming conventions
2018-04-15 16:24:17 +00:00
bumi
7e6c6a037d
code style. use interpolation syntax
2018-04-15 18:02:52 +02:00
bumi
e1f19a1832
Fail smarter with better error handling
...
This should give more insights in case of an error during loading data
from Ethereum and IPFS.
2018-04-15 16:45:09 +02:00
bumi
7b5cea3613
Adjust for new naming conventions
2018-04-10 18:46:54 +02:00
bumi
e24fc6c81d
Fix proposal loading
...
we changed the storage of proposals from an array to a mapping.
Because of this keys/ids now no longer start with zero but with 1.
2018-04-10 16:29:18 +02:00
bumi and GitHub
72c6266474
Merge pull request #42 from 67P/kredits-module
...
Refactor contract interaction in its own module
2018-04-10 13:46:57 +00:00
bumi
4a711788f6
cleanup
2018-04-10 15:27:38 +02:00
bumi
c373c901a2
Fix test to work with the bignumber depencency
2018-04-09 20:54:07 +02:00
bumi
32846194b6
Handle bignumber conversions
...
The kredits module always returns raw data from the contract. For uint
values these are bignumbers.
To handle those in the ember app we need to convert them to string or to
number.
2018-04-09 20:31:34 +02:00
bumi
1a5d33b1f0
Move IPFS handling in utils class
2018-04-09 19:28:49 +02:00
bumi
0e330a6529
Cleanup
2018-04-09 15:15:33 +02:00
bumi
e9f0638ca2
Unify Contributor/Proposal saving
2018-04-09 15:05:13 +02:00
bumi
ce8fef79dc
Search proposal contributor by stringified ID
...
Kredits returns default web3/ethers.js values which are BigNumbers.
Internally we use Strings. We need to do this somewhere centrally
though.
2018-04-09 14:58:50 +02:00
bumi
b9fa0e2d60
typo
2018-04-09 14:58:25 +02:00
bumi
41a04d6b53
Refactor IPFS hash handling
...
This now uses the multihashes dependency (which is an ipfs dependency)
to decode/encode the ipfs hashes.
2018-04-09 14:52:39 +02:00
bumi and GitHub
cb1208acaa
Merge pull request #41 from 67P/refactor/cleanup-models
...
Cleanup controller, templates and service
2018-04-08 12:56:05 +00:00
bumi and GitHub
4182f0993c
Merge pull request #39 from 67P/refactor/contributor-management
...
Use contributors contract to add new contributors
2018-04-08 12:12:52 +00:00
bumi and GitHub
6cfd4240de
Merge pull request #38 from 67P/refactor/proposal
...
Refactor proposals
2018-04-08 12:02:28 +00:00
bumi
6e24015f76
Readme
2018-04-08 13:54:50 +02:00
bumi
5390c5cea8
Use contributors contract to add new contributors
...
related: https://github.com/67P/truffle-kredits/pull/17
2018-04-08 13:17:35 +02:00
bumi and GitHub
13c3feaa69
Merge pull request #36 from 67P/fix/contributor-ipfshash
...
Replace missed profileHash with ipfsHash
2018-04-07 23:09:03 +00:00
bumi
0587559939
Use getContributorById call to get contributor data
...
This new call also returns the balance of the contributor so we don't
have to make an extra call to the token contract.
2018-04-07 20:33:41 +02:00
bumi
499b22af15
Fix JS/Ember style
2018-04-06 17:40:45 +02:00
bumi
f992fb10bd
Fix JS style
2018-04-06 17:00:25 +02:00
bumi
603224e906
Use ember style empty promise
2018-04-06 16:53:01 +02:00
bumi
bbea07b2a7
Add account badge
...
This gives easy access to test if the "user/visitor" has an account, is
a contributor and if she is core.
This is used to display some account information.
2018-04-06 16:45:55 +02:00
bumi
b9d78efaff
More details about running the app locally
2018-04-04 15:43:52 +02:00
bumi
e2d02d357c
linting
2018-04-04 14:15:07 +02:00
bumi
0812ff3467
Add comment about ethProvider loading.
...
It is loaded in the route and thus available for the rest of the
application.
2018-04-04 14:02:27 +02:00
bumi
6dafc26deb
Refactor web3 initialization
...
This changes how we wait for web3 and accounts to be available and
renames web3Provider to ethProvider as we could be able to swap the
different providers (ethers.js vs. web3)
2018-04-04 13:56:41 +02:00
bumi
a418ddbe52
fix tests
2018-04-04 12:49:41 +02:00
bumi
6a5eb5a313
use kovan as default network id
2018-04-03 21:34:45 +02:00
bumi
6354b03717
cleanup
2018-04-03 20:32:46 +02:00
bumi
5d6b4a5255
fix linting errors
2018-04-03 19:19:11 +02:00
bumi
3f0b1ccbcd
Use ethers.js instead of the old web3
...
the web3 we are using is old and everything will change with web3 1.0
which is currently in beta for ages.
ethers.js seems to be a bit more lightweight and implements pretty much
the same API so let's give it a try.
2018-04-03 18:35:29 +02:00
bumi
869c4c0ae9
Handle new IPFS hashes in proposal
2018-04-02 18:19:22 +02:00
bumi
4be696ea62
Fix contract events handling
2018-04-02 18:18:34 +02:00
bumi
83a0d56314
Update ipfs-api dependency
2018-04-02 18:17:50 +02:00
bumi and GitHub
60de3d8a31
Merge pull request #27 from 67P/truffle-contracts
...
Truffle contracts
2018-04-01 12:19:21 +00:00
bumi
f8b75cca61
Manually set networkId
...
By default kredits-contracts gets the networkId from the web3 object.
This causes some random JSON RPC errors when using MetaMask:
https://github.com/MetaMask/metamask-plugin/issues/1538
This set the default networkId to 17 which is our custom private
network. For development purposes the networkId can also be set
dynamically through the config:networkId local storage entry.
2017-06-04 19:28:14 +02:00
bumi
32e1bbd617
no more evil while loop
2017-06-04 19:27:59 +02:00
bumi
0a66c19b0a
Specify localhost as web3 provider URL for local deployments
2017-06-01 15:06:52 +02:00
bumi
7299394809
Add support to locally conifgure web3 provider
...
If no web3 is provided from the browser we check if a
config:web3ProviderUrl item is set in localstorage.
If yes we connect to that provider otherwise use the default config.
Helpful for working simultanously with different chains and providers.
2017-05-14 12:37:47 +02:00
bumi
859cca3820
Merge
2017-05-12 20:04:28 +02:00
bumi
ba1cd1cd49
Make web3 provider URL configurable; default to infura
...
This uses infura (kovan network) as the default web3 provider URL
2017-05-12 17:17:20 +02:00
bumi
a1f73b0307
Readme about locally deployed contracts
2017-05-08 13:02:26 +02:00
bumi
3be14b945a
Use kredits-contracts from npm
...
This also configures the npm scripts to work with locally deployed
contracts
2017-05-08 13:00:33 +02:00
bumi
675dff7314
Add support for new splitted Token contract
2017-05-05 20:25:57 +02:00
bumi
2a9f9a50c4
use public infura ETH node in production -still on ropsten
2017-02-08 19:22:16 +08:00
bumi
0f9664410b
code style, missing semicolon
2017-02-08 13:58:19 +08:00
bumi
d05356cfe4
connect add contributor form to ethereum
2017-02-08 13:46:40 +08:00
bumi
7a072f2586
use dev chain in development environment
2017-02-08 13:15:06 +08:00
bumi
d6d4e51ea3
connect to contracts depending on the environment
2017-02-07 13:28:37 +08:00
bumi and basti
0235313282
load kredits contract definition from kredits-contracts package
2017-02-05 22:15:11 +08:00
bumi
dcb544c94f
loading data from parity dev node
...
This reverts commit 3ed68d3054 .
2017-02-04 20:00:51 +08:00
bumi
26ae9b033f
load data from ethereum contract
2017-02-04 18:43:20 +08:00
bumi
256798ae40
added kredits contract abi
2017-02-02 17:03:56 +08:00