Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
994 commits
Select commit Hold shift + click to select a range
1c9222c
Merge pull request #2018 from OpenBazaar/zero_mod_fee
cpacia Mar 6, 2020
21006b4
Fix currency value in order notification
cpacia Mar 6, 2020
8684637
Fix patching profie with moderator fee
cpacia Mar 6, 2020
8cda341
Add tests for manage/* and update test affected by new get/mnemonic i…
anchaj Mar 8, 2020
daf9742
Cover case check when wallet is unlocked, but user tries to unlock it…
anchaj Mar 8, 2020
49c2ad4
gofmt -s -w
anchaj Mar 8, 2020
cff1c4a
Comment unused var.
anchaj Mar 8, 2020
52532b7
Check error in eth addTransaction
cpacia Mar 9, 2020
5d059a3
Remove unused function
cpacia Mar 9, 2020
bf685d8
Merge pull request #2020 from OpenBazaar/notiffix
cpacia Mar 9, 2020
38d84ca
Core/profile refactor fee type check
cpacia Mar 9, 2020
e6efabd
Merge pull request #2021 from OpenBazaar/modfee
cpacia Mar 9, 2020
b599039
Merge pull request #2025 from OpenBazaar/ethpanic
cpacia Mar 9, 2020
e418906
Resolve merge conflicts
cpacia Mar 9, 2020
569a972
Merge pull request #2026 from OpenBazaar/ethereum-master
cpacia Mar 9, 2020
a3007d0
Upgrade golangci
hoffmabc Mar 9, 2020
98a9ed1
Remove revision
hoffmabc Mar 9, 2020
707a3f1
golangci lint fixes
hoffmabc Mar 9, 2020
c1e7b23
Merge pull request #2027 from OpenBazaar/brian.fix-traavis
hoffmabc Mar 9, 2020
ab09e71
Added orderConfirmation state check
rodkeys Mar 10, 2020
191eb3c
gofmt file
hoffmabc Mar 10, 2020
728b107
Merge pull request #2028 from rodkeys/master
hoffmabc Mar 10, 2020
f0eb5c3
Fix scientific notation coming out of database for purchases
hoffmabc Mar 10, 2020
3686cd2
Check for nil blocknumber when retrieving tx
hoffmabc Mar 10, 2020
e0d0e10
Ensure the right amount of confs
hoffmabc Mar 10, 2020
fa1114a
Merge pull request #2029 from OpenBazaar/brian.fix-scientificnotation…
cpacia Mar 10, 2020
b8fa58a
Merge pull request #2030 from OpenBazaar/brian.fix2023
cpacia Mar 10, 2020
0b1cd2e
Bump version
hoffmabc Mar 10, 2020
ff8c8f8
Changed func to check if transaction goes through before saving to th…
rodkeys Mar 11, 2020
afdde88
Merge branch 'master' into compatibilitytest
cpacia Mar 11, 2020
ce555f2
Merge pull request #2031 from rodkeys/master
cpacia Mar 11, 2020
fd47aa3
Update node functions LockWallet and UnlockWallet.
anchaj Mar 11, 2020
35e080e
feat: Endpoint to hash a message
drwasho Mar 12, 2020
467aecf
Merge pull request #2032 from drwasho/drwasho/hashMessage
cpacia Mar 12, 2020
fc67377
Fix: Save DisputeAcceptance to the contract even if state has not pr…
rodkeys Mar 12, 2020
57340cd
Removed the order state requirement for added DisputeAcceptance to th…
rodkeys Mar 12, 2020
86d6caa
Fix linter error.
anchaj Mar 12, 2020
6ea019a
Save and load unconfirmed txs from db
cpacia Mar 13, 2020
fb404a2
Merge pull request #2033 from rodkeys/master
hoffmabc Mar 13, 2020
dcf144b
Update eth pending confirmations
cpacia Mar 13, 2020
5da4d62
Fix bugs in compatibility
cpacia Mar 16, 2020
3f25b69
Put eth unconfirmed txs at begining of list return
cpacia Mar 17, 2020
01a24c1
Ignore eth error fetching txs
cpacia Mar 17, 2020
fa5e79b
Fix zero amount on unconfirmed tx
cpacia Mar 17, 2020
aa0fd46
Merge pull request #2034 from OpenBazaar/ethunconf
cpacia Mar 18, 2020
67699a1
Merge branch 'master' into compatibilitytest
cpacia Mar 18, 2020
cffc9c8
Don't set v5 fields when sending v4 contract
cpacia Mar 20, 2020
bd6707c
Update qa tests with v4 fixes
cpacia Mar 23, 2020
39b1230
Fix bug creating v4 moderated order
cpacia Mar 24, 2020
d4f9eb0
Fix fulfill qa test
cpacia Mar 24, 2020
f87525c
Use v4 contract in dispute where needed
cpacia Mar 25, 2020
0a885c5
Fix disputes payouts to v4 vendor
cpacia Mar 26, 2020
0295494
Update escrow release after timeout qa test
cpacia Mar 26, 2020
dcd7456
Rename repository.
anchaj Mar 29, 2020
75544f2
Bump backend version.
anchaj Mar 29, 2020
009285f
Check for correct vendor_version
hoffmabc Mar 24, 2020
9181503
Update cryptolisting qa test
cpacia Apr 2, 2020
c0661dd
All re-processing of transactions if still in AWAITING_PAYMENT state
cpacia Apr 6, 2020
15bf638
Merge pull request #2042 from OpenBazaar/compatibilitytest
cpacia Apr 7, 2020
5b812ee
Update transaction listener to re-check sales
cpacia Apr 7, 2020
f512c27
Update processPurchasePayment to reprocess payments
cpacia Apr 7, 2020
9eba5d5
Fix bug setting duplicate records in transaction listener
cpacia Apr 8, 2020
7e4e96c
Cleanup Order State
hoffmabc Apr 9, 2020
2662024
Fix testnet to mainnet
hoffmabc Apr 10, 2020
d01e377
Properly set read flag in transactionListener
cpacia Apr 10, 2020
e51a5b5
Strengthen condition to add disputeAcceptance
cpacia Apr 10, 2020
9fd1b4a
Merge pull request #2041 from OpenBazaar/awaitingpayment
cpacia Apr 10, 2020
666c83a
Merge pull request #2046 from OpenBazaar/fix-rinkeby-migration
cpacia Apr 10, 2020
d537582
Only move to RESOLVED state if dispute acceptance is there
cpacia Apr 10, 2020
1677a62
Merge pull request #2045 from OpenBazaar/brian.cleanupOrderState
cpacia Apr 10, 2020
9c45f89
Use correct priceModifier field for v5
hoffmabc Apr 10, 2020
99378c1
Merge pull request #2047 from OpenBazaar/brian.fix-eth-test
cpacia Apr 10, 2020
e85ee41
Fix amount for inventory in test
hoffmabc Apr 10, 2020
52703c4
Check for proper vendor and buyer versions
hoffmabc Apr 10, 2020
a43f96a
Merge pull request #2048 from OpenBazaar/brian.fix-eth-test
cpacia Apr 10, 2020
2a38ddb
Fix purchase crypto test
hoffmabc Apr 13, 2020
4d904d1
Merge pull request #2049 from OpenBazaar/brian.fix-eth-test
cpacia Apr 13, 2020
2f609fe
Update listing format in test package
cpacia Apr 13, 2020
874f0ba
Fix tests in core package with coupons
cpacia Apr 13, 2020
34aeab8
Update remaining tests with new coupon format
cpacia Apr 13, 2020
3a21820
Fix infra address in migration 16
cpacia Apr 13, 2020
43e6e33
Fix lint issues
cpacia Apr 13, 2020
998d61e
Fix unused inputs in tx listener
cpacia Apr 14, 2020
23e51e0
Update the API URL for infura
hoffmabc Apr 14, 2020
5379179
Fix migration test
hoffmabc Apr 14, 2020
ce1c135
Merge pull request #2051 from OpenBazaar/brian.fix-migration
cpacia Apr 14, 2020
b8b71e1
Check for pre-bigInt notifications pricing
hoffmabc Apr 17, 2020
de727b5
Merge pull request #2053 from OpenBazaar/brian.notification-fixes
cpacia Apr 17, 2020
06a51fd
Fix for orders that have dispute acceptance but fulfilled state still
hoffmabc Apr 20, 2020
0d4ca05
Add internal tx amounts
hoffmabc Apr 20, 2020
1a4d52e
Remove debug statement
hoffmabc Apr 20, 2020
be3cd33
Merge pull request #2055 from OpenBazaar/brian.fix-eth-amounts
cpacia Apr 20, 2020
de87f6b
Fix bigSurcharge empty string
hoffmabc Apr 20, 2020
0a3ccbd
Merge pull request #2056 from OpenBazaar/brian.fixBigSurcharge
cpacia Apr 20, 2020
de8d0fb
Merge pull request #2054 from OpenBazaar/brian.notification-fixes
cpacia Apr 20, 2020
d1754ec
Fix bug bulk updating currencies on listings
cpacia Apr 21, 2020
2dacc0f
Fix disputed but accepted out of sync orders
hoffmabc Apr 21, 2020
52861e8
Ping search endpoint to search.ob1.io
hoffmabc Apr 21, 2020
7b7caf9
Update to support Tor connections and update command
hoffmabc Apr 21, 2020
9422da7
Move the update search push
hoffmabc Apr 21, 2020
25a84a4
Merge pull request #2058 from OpenBazaar/bulk
cpacia Apr 21, 2020
c252848
Merge pull request #2059 from OpenBazaar/brian.pushtosearch
cpacia Apr 21, 2020
d2ae161
Remove binary
hoffmabc Apr 22, 2020
c7a1ee6
Delete accidental test shell script
hoffmabc Apr 24, 2020
7c31fdd
Merge pull request #2060 from OpenBazaar/remove-testshell
hoffmabc Apr 28, 2020
630d7ab
Fix lastDisputeExpiryNotifiedAt error
hoffmabc Apr 28, 2020
0dfe41a
Assume BTC is the currency if a super old order
hoffmabc Apr 28, 2020
a1f36ce
Only check fixed fee if NOT percentage type
hoffmabc Apr 28, 2020
fc4a87f
Add test for lastDisputeExpiryNotifiedAt
hoffmabc Apr 28, 2020
00158b1
Update buyer_order_test
hoffmabc Apr 28, 2020
2791875
Merge pull request #2062 from OpenBazaar/brian.fixmigration
cpacia Apr 28, 2020
93f59a4
Potential fix for migration failures
hoffmabc Apr 28, 2020
86ec0be
Merge pull request #2063 from OpenBazaar/brian.migrationerror
cpacia Apr 29, 2020
1827535
Handle legacy contracts
hoffmabc Apr 29, 2020
11f3608
Dispute Cases Issues
hoffmabc Apr 29, 2020
d37d25e
Address error messages
hoffmabc Apr 29, 2020
ad05c9f
Merge pull request #2064 from OpenBazaar/brian.fixoldcontracts
cpacia Apr 29, 2020
20bb278
Bump version to 0.14.1
cpacia Apr 29, 2020
e4d56ed
Fix purchases tab for v4 orders
hoffmabc Apr 30, 2020
dca0c2e
Merge pull request #2065 from OpenBazaar/brian.fixpurchasestab
hoffmabc Apr 30, 2020
79e46b2
Do not use updated contract as update into db
hoffmabc Apr 30, 2020
b01f6bc
Merge pull request #2066 from OpenBazaar/brian.fix-refundfulfillment
cpacia Apr 30, 2020
295109b
Fix: Remove debugging symbols from gomobile build instructions
drwasho Apr 16, 2019
ccb17cc
tweak: Add timeout to network bootstrapping
drwasho Apr 16, 2019
f04658e
tweak: Reduce the offline timeout from 5 seconds to 3 seconds
drwasho Apr 16, 2019
6a63845
tweak: Restrict build to versions > iOS 10 and 64 bit architectures
drwasho Apr 26, 2019
159373a
tweak: Reduce timeouts to retryableSeedStoreToPeer
drwasho May 19, 2019
334e064
Merge remote-tracking branch 'origin/reenablestdout' into mobileFixes…
drwasho Jan 23, 2020
f2829c8
Build tweaks for Android
drwasho Jan 23, 2020
73d558b
refactor: Add timeout to prep() function for offline messages
drwasho Jul 22, 2019
604f33c
Refactor SendOfflineMessage to publish to push nodes first.
cpacia Aug 26, 2019
25c5e70
feat: Fetch offline messages from push nodes and DHT in parallel
drwasho Apr 1, 2020
395af06
tweak: Increase offline message scanning frequency + reduce timeout ctx
cpacia May 1, 2020
7f4763b
Fix update skus
hoffmabc Apr 21, 2020
60b5638
tweak: Do not log received transactions
cpacia May 1, 2020
6c411cc
Update mobile main function
cpacia May 1, 2020
13befc4
Update JSON API for Super Economy
hoffmabc May 4, 2020
b2c8391
Update core package for Super Economic
hoffmabc May 4, 2020
bc214ba
Update CoinConfig schema
hoffmabc May 4, 2020
fb24434
Update multiwallet, spvwallet, wallet-interface
hoffmabc May 4, 2020
5c0e3af
Update builder.go for Super Economy
hoffmabc May 4, 2020
e3740a1
Fix fixedfee disputes from v4
hoffmabc May 5, 2020
42645f5
Actually use the new values
hoffmabc May 5, 2020
b81f93e
Fix validate profile
hoffmabc May 5, 2020
0dd0c81
Merge pull request #2070 from OpenBazaar/brian.fixdisputesv4
cpacia May 5, 2020
eb3c884
Merge pull request #2069 from OpenBazaar/brian.supereconomy
cpacia May 6, 2020
f3f0b76
Bump version number
cpacia May 6, 2020
fc05296
gofmt project
cpacia May 6, 2020
755e025
Merge pull request #2067 from OpenBazaar/chrisfixes
cpacia May 6, 2020
6e15486
Adjust listing prices by percentage bulk
hoffmabc May 12, 2020
efe7a09
Update price checking for negative prices
hoffmabc May 12, 2020
67113da
Updated protobufs to support shipping location
hoffmabc May 13, 2020
5090b60
Change name to shippingFrom
hoffmabc May 13, 2020
0361d31
Merge pull request #2073 from OpenBazaar/brian.addBulkUpdatePrices
cpacia May 13, 2020
b039c41
Change ShippingFromCountryCode to CountryCode
hoffmabc May 13, 2020
d9cd0f3
Merge pull request #2075 from OpenBazaar/brian.addShippingLocationData
cpacia May 13, 2020
0cc96e1
Fix "singned" typo
prusnak May 16, 2020
59888ff
Merge pull request #2076 from prusnak/master
hoffmabc May 16, 2020
06502e0
Change default fee level to ECONOMIC
hoffmabc May 21, 2020
b40604d
Fix misspelling of PRIORITY
hoffmabc May 21, 2020
0cfa270
Merge pull request #2078 from OpenBazaar/brian.changedefaultfeelevel
cpacia Jun 3, 2020
1fc8e5d
Bump to 0.14.3-rc1
hoffmabc Jun 3, 2020
f9d8d62
Merge pull request #2080 from OpenBazaar/brian.bump0.14.3
cpacia Jun 3, 2020
1c34213
Fix unit tests
hoffmabc Jun 3, 2020
2b4c3a3
Merge pull request #2081 from OpenBazaar/brian.fix-unit-tests
cpacia Jun 3, 2020
ae84f93
Need to accomodate super economic fees
hoffmabc Jun 4, 2020
1c1fe26
Add Store Name to Email Notifications
hoffmabc Jun 4, 2020
57b2771
Update unit tests for SMTP
hoffmabc Jun 4, 2020
9024d81
Merge pull request #2083 from OpenBazaar/brian.fix-eth-supereconomic
cpacia Jun 4, 2020
52981bc
Merge pull request #2084 from OpenBazaar/brian.addStoreToSMTP
cpacia Jun 4, 2020
3ef2f6b
Bump version
hoffmabc Jun 4, 2020
9e17a66
Merge pull request #2085 from OpenBazaar/brian.bump
cpacia Jun 4, 2020
2324b27
Update README with the latest command flags help output
szollo Jun 9, 2020
cd7d9e4
Add Docker step to README
szollo Jun 9, 2020
0ccbc56
Rename repository.
anchaj Jun 11, 2020
c2c6765
Add new checkout breakdown models
hoffmabc Jun 11, 2020
26fa546
Add new API endpoints for /checkoutbreakdown
hoffmabc Jun 11, 2020
26147f8
Refactor order.go for Checkout Breakdown
hoffmabc Jun 11, 2020
a593e3b
Fix merge issues.
anchaj Jun 11, 2020
500b2bc
gofmt
hoffmabc Jun 11, 2020
2579b7c
Check error conditions
hoffmabc Jun 11, 2020
c11f040
Restore calculate order total code
hoffmabc Jun 11, 2020
008ecc0
Fix test errors
hoffmabc Jun 11, 2020
28a541d
Add bulk update of terms and conditions.
anchaj Jun 11, 2020
7a790c5
Merge branch 'secure_seed_words' into development
anchaj Jun 11, 2020
2a10171
Add bulk update of return policy.
anchaj Jun 11, 2020
61e73b4
Add simple API tests for a new bulk update methods.
anchaj Jun 11, 2020
10aca03
Remove price currency
hoffmabc Jun 12, 2020
0e85152
Fixes for calculations for taxes
hoffmabc Jun 12, 2020
c74057a
gofmt the checkout.go
hoffmabc Jun 12, 2020
d63d490
Add shipping options handler, change bulk update handler urls.
anchaj Jun 15, 2020
9435e4a
Extend profile with a new fields. Update profile on bulk update.
anchaj Jun 15, 2020
3f6d9f6
Merge commit 'v0.14-rc1' into development
anchaj Jun 18, 2020
d196703
Merge commit 'v0.14.0-rc2' into development
anchaj Jun 18, 2020
6d044f9
Merge commit 'v0.14.0-rc3' into development
anchaj Jun 18, 2020
d098832
Merge commit 'v0.14.0-rc4' into development
anchaj Jun 19, 2020
c2cd9ab
Merge commit 'v0.14.0-rc5' into development
anchaj Jun 19, 2020
11e7202
Merge commit 'v0.14.1' into development
anchaj Jun 19, 2020
252952e
Merge commit 'v0.14.2' into development
anchaj Jun 19, 2020
d2d09a8
Merge commit 'v0.14.3-rc1 into development
anchaj Jun 19, 2020
617bd5f
Merge commit 'v0.14.3' into development
anchaj Jun 19, 2020
6ea38ab
Add wallet auto lock time setting into profile proto.
anchaj Jun 24, 2020
e981100
Fix nil conf panic
hoffmabc Jun 25, 2020
e02ac53
Merge pull request #2090 from OpenBazaar/brian.checkoutBreakdown
cpacia Jun 30, 2020
ee05d89
Change to v5 order amount
hoffmabc Jul 1, 2020
fe13ac0
Merge pull request #2091 from OpenBazaar/brian.fixCheckoutBreakdownBug
hoffmabc Jul 1, 2020
75f5f81
Push fix for shipping price
hoffmabc Jul 6, 2020
b77cd6f
Merge pull request #2092 from OpenBazaar/brian.fixCheckoutBreakdownBug
cpacia Jul 6, 2020
8dc2767
Fix old school dispute resolution inputs bug
hoffmabc Jul 13, 2020
72f5768
Bump version
hoffmabc Jul 13, 2020
6770d32
Update zcash dep
cpacia Jul 15, 2020
6117492
Merge pull request #2094 from OpenBazaar/zcashhardfork
cpacia Jul 15, 2020
54560b6
Update core.go
hoffmabc Jul 16, 2020
4b94562
Merge branch 'master' into brian.fixDisputeBug
hoffmabc Jul 16, 2020
e07c2cc
Merge pull request #2093 from OpenBazaar/brian.fixDisputeBug
hoffmabc Jul 16, 2020
59189ec
FIx import issues.
anchaj Jul 29, 2020
d2668da
Merge branch 'secure_seed_words' into pre-release
anchaj Aug 5, 2020
5af5915
Change seed words to 24.
anchaj Aug 10, 2020
69ed110
Merge branch 'pre-release'
anchaj Aug 10, 2020
0189c33
Fix lint issues.
anchaj Aug 10, 2020
7de3e50
Update references and vendor packages broken by merge.
anchaj Aug 17, 2020
a52e6e9
Update listing and profile with removed fields.
anchaj Aug 17, 2020
0eb562b
Add support for ETH wallet.
anchaj Aug 17, 2020
1c722f8
Merge pull request #2088 from OpenBazaar/sz/dockerreadme
cpacia Aug 18, 2020
876eab8
Merge pull request #2087 from OpenBazaar/sz/updatereadme
cpacia Aug 18, 2020
33ac728
Add missing default config for ETH wallet.
anchaj Aug 18, 2020
2fd7ab1
Change search engine push notification url.
anchaj Aug 18, 2020
d24810e
Do not strip 0x in the middle of the string
hoffmabc Sep 18, 2020
94b3c59
Refactor to use trimprefix
hoffmabc Sep 18, 2020
a8ed17a
Merge pull request #2100 from OpenBazaar/brian.fixChecksum
cpacia Sep 18, 2020
493a928
Bump version
hoffmabc Sep 21, 2020
b4be594
Add dht back
hoffmabc Sep 21, 2020
92e3f60
Update go-ethwallet version.
anchaj Sep 23, 2020
0214faa
Merge v0.14.4
anchaj Sep 24, 2020
2549ee9
Merge v0.14.5
anchaj Sep 24, 2020
2fa966d
Merge branch 'pre-release'
anchaj Sep 24, 2020
8e5321c
Remove not used code.
anchaj Sep 26, 2020
5200e45
Update go-ethwallet version.
anchaj Sep 26, 2020
78195ee
Fix linter complains.
anchaj Sep 26, 2020
4bc8de0
Apply new mobile wallet changes.
anchaj Sep 26, 2020
623fc02
Unify Id names.
anchaj Sep 26, 2020
9cf9780
Update orderId
anchaj Sep 27, 2020
4a9a274
gofmt -s -w .
anchaj Sep 27, 2020
ee9d902
Print rollback error if present.
anchaj Sep 27, 2020
db625a1
Fix tests.
anchaj Sep 27, 2020
63aed3f
Remove unused variables.
anchaj Sep 27, 2020
3ccad38
Fix factory helper path.
anchaj Sep 27, 2020
ed0f772
Update ZCash consensus branchID to Canopy
szollo Nov 20, 2020
369ebaf
Merge commit 'v0.14.6' into development
anchaj Dec 8, 2020
7b94456
Merge branch 'development' into pre-release
anchaj Dec 8, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Test artifacts

repo/testdata/
./config*

# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
Expand Down Expand Up @@ -35,12 +36,11 @@ dist

# Development environment files
.ackrc
.vscode
.tags*
*.sw?
debug
.vscode
config*
openbazaar-go*
marketplace-go*
config_*

# macOS
.DS_Store
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ linters:
- goconst
- govet
- megacheck
- errcheck
disable:
- goimports
- errcheck
- golint
- prealloc
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ env:
- "PATH=/home/travis/gopath/bin:$PATH"
before_install:
- go get -u github.com/axw/gocov/gocov github.com/mattn/goveralls github.com/tcnksm/ghr
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.15.0
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.23.3
install:
- echo "No external dependencies required. Skipping travis default library dependency setup to use vendors..."
script:
- $GOPATH/bin/golangci-lint run --deadline 10m
- $GOPATH/bin/golangci-lint run --deadline 10m --new-from-rev=
- cd $TRAVIS_BUILD_DIR && go test -i && ./test_compile.sh
- goveralls -coverprofile=coverage.out -service travis-ci
after_success:
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ You must run `gofmt` before each commit. Travis will fail if you do not run it.

All commits are checked with [golangci-lint](https://github.com/golangci/golangci-lint) using the [.golangci.yml](.golangci.yml) config in the repo.

Additionally, we like to keep the [Go Report Card](https://goreportcard.com/report/github.com/phoreproject/openbazaar-go) score at A or better. So keep those other tests in mind when you commit.
Additionally, we like to keep the [Go Report Card](https://goreportcard.com/report/github.com/phoreproject/pm-go) score at A or better. So keep those other tests in mind when you commit.

## Tests
If you add new code, please submit a unit test with it. We might not accept the PR without it. Additionally, you are expected to make the appropriate changes to existing tests if they are affected by your commits. This also includes the integration tests in the [qa package](https://github.com/phoreproject/openbazaar-go/tree/master/qa).
If you add new code, please submit a unit test with it. We might not accept the PR without it. Additionally, you are expected to make the appropriate changes to existing tests if they are affected by your commits. This also includes the integration tests in the [qa package](https://github.com/phoreproject/pm-go/tree/master/qa).

## Pull Requests
If your PR isn't ready to merge make sure you specify this somehow. For example by placing [WIP] in the PR title. Ideally you should include a `task list` in the PR message to track the progress of the PR.
Expand Down
32 changes: 24 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
# Build stage - Use a full build environment to create a static binary
FROM golang:1.11
WORKDIR /go/src/github.com/OpenBazaar/openbazaar-go
COPY . .
RUN go build --ldflags '-extldflags "-static"' -o /opt/openbazaard .
COPY . /go/src/github.com/phoreproject/pm-go
RUN go build --ldflags '-extldflags "-static"' -o /opt/marketplaced /go/src/github.com/phoreproject/pm-go

FROM openbazaar/base:v1.0.0
# Final state - Create image containing nothing but the marketplaced binary and
# some base settings
FROM PhoreMarketplace/base:v1.0.0

# Document ports in use
# 4002 - HTTP(s) API
# 4001 - libp2p/IPFS TCP port
# 9005 - libp2p/IPFS websocket port
EXPOSE 5001 5002 10005
ENTRYPOINT ["/opt/openbazaard"]
VOLUME /var/lib/openbazaar
CMD ["start", "-d", "/var/lib/openbazaar"]
COPY --from=0 /opt/openbazaard /opt/openbazaard

# Define a volume to perist data to. This data contains all the important
# elements defining a peer so it must be durable as long as the identity exists
VOLUME /var/lib/marketplace

# Tell the image what to execute by default. We start a mainnet OB server
# that uses the defined volume for node data
ENTRYPOINT ["/opt/marketplaced"]
CMD ["start", "-d", "/var/lib/marketplace"]

# Copy the compiled binary into this image. It's COPY'd last since the rest of
# this stage rarely changes while the binary changes every commit
COPY --from=0 /opt/marketplaced /opt/marketplaced
35 changes: 8 additions & 27 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,39 +1,20 @@
FROM golang:1.11
VOLUME /var/lib/openbazaar
FROM phoremarketplace/server-qa:0.10

RUN wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz && \
tar xvf Python-3.6.0.tgz && \
cd Python-3.6.0 && \
./configure --enable-optimizations && \
make -j8
RUN apt-get update && apt-get install -yq zlib1g-dev libssl-dev unzip
RUN cd Python-3.6.0 && \
make altinstall && \
ln -s /usr/local/bin/python3.6 /usr/local/bin/python3

COPY ./qa/requirements.txt ./requirements.txt

RUN pip3.6 install --upgrade pip && \
pip3.6 install -r requirements.txt && \
wget https://bitcoin.org/bin/bitcoin-core-0.16.3/bitcoin-0.16.3-x86_64-linux-gnu.tar.gz && \
tar -xvzf bitcoin-0.16.3-x86_64-linux-gnu.tar.gz -C /opt

RUN wget https://github.com/google/protobuf/releases/download/v3.6.0/protoc-3.6.0-linux-x86_64.zip && \
unzip ./protoc-3.6.0-linux-x86_64.zip -x readme.txt && \
mv ./include/* /usr/local/include/ && \
mv ./bin/protoc /usr/local/bin/ && \
rm -rf ./include ./bin

WORKDIR /go/src/github.com/phoreproject/openbazaar-go
WORKDIR /go/src/github.com/phoreproject/pm-go
RUN go get -u github.com/gogo/protobuf/proto \
github.com/golang/protobuf/protoc-gen-go \
github.com/icrowley/fake \
github.com/derekparker/delve/cmd/dlv \
github.com/tools/godep

RUN cd /go/src/github.com/golang/protobuf && \
git checkout tags/v1.2.0 -b v1.2.0 && \
cd protoc-gen-go && \
go install

RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.15.0

WORKDIR /go/src/github.com/phoreproject/openbazaar-go
WORKDIR /go/src/github.com/phoreproject/pm-go

COPY . .

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.dummy
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Build stage
FROM golang:1.8.1
WORKDIR /go/src/github.com/phoreproject/openbazaar-go
WORKDIR /go/src/github.com/phoreproject/pm-go
COPY . .
RUN go build -o /opt/dummy ./dummy

# Run stage
FROM openbazaar/server
FROM phoremarketplace/server
COPY ./run.sh /opt/run.sh
COPY --from=0 /opt/dummy /opt/dummy
ENTRYPOINT ["/bin/sh"]
Expand Down
34 changes: 34 additions & 0 deletions Dockerfile.qa
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM golang:1.11

ENV BITCOIND_VERSION=0.16.3
ENV BITCOIND_PATH=/opt/bitcoin-${BITCOIND_VERSION}

# software installs, from most stable to most volatile
RUN apt-get update -y
RUN apt-get install -yq software-properties-common \
zlib1g-dev \
libssl-dev \
unzip \
python3 \
python3-pip

RUN wget https://github.com/google/protobuf/releases/download/v3.6.0/protoc-3.6.0-linux-x86_64.zip && \
unzip ./protoc-3.6.0-linux-x86_64.zip -x readme.txt && \
mv ./include/* /usr/local/include/ && \
mv ./bin/protoc /usr/local/bin/ && \
rm -rf ./include ./bin

COPY ./qa/requirements.txt ./requirements.txt

RUN python3 -m pip install --upgrade pip && \
pip install -r ./requirements.txt && \
wget https://bitcoin.org/bin/bitcoin-core-0.16.3/bitcoin-${BITCOIND_VERSION}-x86_64-linux-gnu.tar.gz && \
tar -xvzf bitcoin-${BITCOIND_VERSION}-x86_64-linux-gnu.tar.gz -C /opt

WORKDIR /go/src/github.com/phoreproject/pm-go

COPY ./Makefile ./Makefile

VOLUME /go/src/github.com/phoreproject/pm-go

CMD make qa_test
Loading