Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
502 commits
Select commit Hold shift + click to select a range
0b059e8
Merge pull request #131 from SiaFoundation/nate/add-event-endpoint
n8maninger Jun 12, 2024
4a5e0c9
cmd: add config command
n8mgr Jun 11, 2024
078b8d1
Merge pull request #132 from SiaFoundation/nate/add-walletd-config
n8maninger Jun 12, 2024
97b287b
api, sqlite, wallet: refactor events, fix unconfirmed events
n8mgr Jun 13, 2024
ccf952c
api: add client methods, uncomment test
n8mgr Jun 14, 2024
511b5ca
wallet: fix lint
n8mgr Jun 14, 2024
6db0228
wallet: fix api client marshalling
n8mgr Jun 14, 2024
cc2255e
Merge pull request #135 from SiaFoundation/nate/refactor-events
n8maninger Jun 17, 2024
24635f4
build(deps): bump the all-dependencies group with 2 updates
dependabot[bot] Jun 17, 2024
6adc481
sqlite: fix slice encoding
n8mgr Jun 17, 2024
7aa00ce
Merge pull request #136 from SiaFoundation/dependabot/go_modules/all-…
ChrisSchinnerl Jun 18, 2024
3ccd821
wallet: change resolution event to use V2FileContractResolution for c…
n8mgr Jun 18, 2024
213b281
sqlite: add siacoin_elements index
n8mgr Jun 18, 2024
610d7d2
Merge pull request #137 from SiaFoundation/nate/missing-resolution-type
ChrisSchinnerl Jun 20, 2024
81c6afa
ui: v0.22.0
ChrisSchinnerl Jun 20, 2024
42b781d
Merge pull request #140 from SiaFoundation/ui/update-v0.22.0
n8maninger Jun 20, 2024
d67db03
ui: v0.22.1
ChrisSchinnerl Jun 21, 2024
1fae1ac
Merge pull request #142 from SiaFoundation/ui/update-v0.22.1
n8maninger Jun 21, 2024
ba54fa0
deps: update core
n8mgr Jun 22, 2024
f386e56
wallet: fix v2 siafund claims
n8mgr Jun 22, 2024
1ce3f51
wallet: fix siafund claim tests
n8mgr Jun 22, 2024
1430b6a
build(deps): bump the all-dependencies group with 2 updates
dependabot[bot] Jun 24, 2024
6216f37
Merge pull request #144 from SiaFoundation/dependabot/go_modules/all-…
n8maninger Jun 24, 2024
e8655c0
sqlite: improve wallet and address event query performance
n8mgr Jun 24, 2024
4703107
Merge pull request #145 from SiaFoundation/nate/event-query-performance
n8maninger Jun 24, 2024
57579c0
update jape
n8mgr Jun 24, 2024
1691189
update core, coreutils, jape
n8mgr Jun 25, 2024
693436e
api: use zero value for start time
n8mgr Jun 25, 2024
e4d70cd
sqlite: defer foreign key checks during migration
n8mgr Jun 25, 2024
3a0076c
sqlite,wallet: change utxo queries to only include matured Siacoin ou…
n8mgr Jun 26, 2024
00a874e
Merge pull request #146 from SiaFoundation/nate/change-utxo-endpoints
n8maninger Jun 27, 2024
5d26510
disable flaky test
n8mgr Jun 27, 2024
c126224
sqlite,wallet: update coreutils
n8mgr Jun 27, 2024
6d4ca79
Merge pull request #147 from SiaFoundation/nate/update-core-utils
n8maninger Jun 27, 2024
1fe129b
sqlite: improve wallet events query when wallet has no events
n8mgr Jun 28, 2024
6339f30
Merge pull request #148 from SiaFoundation/nate/wallet-events-perf
n8maninger Jun 28, 2024
8a821dc
build(deps): bump golang.org/x/term in the all-dependencies group
dependabot[bot] Jul 8, 2024
255bbba
ui: v0.22.2
ChrisSchinnerl Jul 10, 2024
e9b11c3
Merge pull request #151 from SiaFoundation/ui/update-v0.22.2
n8maninger Jul 12, 2024
4f55a45
ui: v0.22.3
ChrisSchinnerl Jul 12, 2024
d66a7dc
Merge pull request #153 from SiaFoundation/ui/update-v0.22.3
n8maninger Jul 12, 2024
64fe086
wallet: fix maturity height off-by-one, fix v2 resolution json encoding
n8mgr Jul 12, 2024
eff9d6f
wallet: enable broken finalization test
n8mgr Jul 12, 2024
c293bb2
wallet: fix lint
n8mgr Jul 12, 2024
8a91e04
wallet: remove debug logging
n8mgr Jul 12, 2024
c711d23
deps: update core and coreutils
n8mgr Jul 12, 2024
5c666fd
deps: update core and coreutils
n8mgr Jul 16, 2024
2fe5179
wallet: add test structure
n8mgr Jul 16, 2024
4dc4705
sqlite: remove forced wallet index
n8mgr Jul 16, 2024
3bb27e9
sqlite: replace query placeholders with prepared statements
n8mgr Jul 16, 2024
6f03596
Merge pull request #154 from SiaFoundation/nate/maturity-off-by-one
n8maninger Jul 16, 2024
c969c31
sqlite: add utxo query
n8mgr Jul 16, 2024
cef5d2f
api,wallet: add siacoin and siafund utxo endpoints
n8mgr Jul 16, 2024
1eb029e
sqlite: increase timeout for flaky test
n8mgr Jul 16, 2024
c2bf84c
Merge pull request #156 from SiaFoundation/nate/add-output-endpoint
n8maninger Jul 17, 2024
814e6e0
deps: update core and coreutils
n8mgr Jul 22, 2024
36a0a98
wallet: enable finalization event test
n8mgr Jul 22, 2024
cde2630
Merge pull request #157 from SiaFoundation/nate/enable-finalization-test
n8maninger Jul 22, 2024
f6662da
api: add consensus updates endpoints
n8mgr Jul 31, 2024
32632a3
Merge pull request #159 from SiaFoundation/nate/consensus-updates
n8maninger Jul 31, 2024
2a0bc68
cmd: refactor node startup
n8mgr Aug 7, 2024
93cb44c
deps: update core and coreutils
n8mgr Aug 7, 2024
e56716f
Merge pull request #160 from SiaFoundation/nate/refactor-node
n8maninger Aug 7, 2024
b72f27f
wallet: use coreutils wallet types
n8mgr Aug 9, 2024
b493576
wallet: fix lint
n8mgr Aug 9, 2024
d489249
deps: update coreutils
n8mgr Aug 9, 2024
1114e5b
sqlite: fix missing relevant address
n8mgr Aug 9, 2024
ff6bc37
wallet: clear file contract element proofs
n8mgr Aug 9, 2024
e549203
Merge pull request #161 from SiaFoundation/nate/use-coreutils-wallet-…
n8maninger Aug 9, 2024
2a40822
build(deps): bump golang.org/x/term in the all-dependencies group
dependabot[bot] Aug 12, 2024
eb50f7a
.github: adding issue templates
ChrisSchinnerl Aug 13, 2024
b519d61
Merge pull request #164 from SiaFoundation/chris/issue-templates
n8maninger Aug 13, 2024
0401321
deps: update core and coreutils
n8mgr Aug 14, 2024
cd44d34
Merge pull request #165 from SiaFoundation/nate/update-deps
n8maninger Aug 14, 2024
f1ede0b
cmd: write errors to stderr
n8mgr Aug 14, 2024
390c640
ci,docker: use Go 1.23
n8mgr Aug 14, 2024
d77642f
deps: update coreutils
n8mgr Aug 14, 2024
bab0b5b
Merge pull request #166 from SiaFoundation/nate/stderr-log
n8maninger Aug 14, 2024
0e4c317
ci: switch to global publish and test workflows
n8mgr Aug 14, 2024
20de8f5
ci: add temp workflow_dispatch
n8mgr Aug 14, 2024
f023ee8
ci: remove workflow_dispatch
n8mgr Aug 15, 2024
59a4576
ci: inherit secrets
n8mgr Aug 15, 2024
5945fe8
ci: separate platform build arg inputs
n8mgr Aug 15, 2024
570d7ef
ui: v0.23.0
ChrisSchinnerl Aug 15, 2024
ec260a1
api, cmd: add debug flag and endpoints
n8mgr Aug 16, 2024
cd52e7b
Merge pull request #168 from SiaFoundation/nate/add-debug-endpoints
n8maninger Aug 16, 2024
6f9aaee
cmd: add anagami values
n8mgr Aug 17, 2024
0ba4529
ci: skip test build
n8mgr Aug 21, 2024
17f31a1
ci: revert test build
n8mgr Aug 21, 2024
5a040c8
deps: update core and coreutils for anagami reset
n8mgr Aug 21, 2024
43db903
Merge pull request #169 from SiaFoundation/nate/update-coreutils
n8maninger Aug 21, 2024
8616c78
api,cmd,config: add public endpoints for running as a service
n8mgr Aug 30, 2024
1d09a2a
docs: update readme
n8mgr Aug 30, 2024
77bb01b
cmd: move api auth to api package
n8mgr Aug 30, 2024
73dce13
api: fix lint
n8mgr Aug 30, 2024
90d18cf
Merge pull request #170 from SiaFoundation/nate/add-public-endpoints
n8maninger Aug 30, 2024
9652eb2
add missing env vars & fix yaml structure
Aug 31, 2024
8edf2c3
restore port prefix
Aug 31, 2024
82ffb64
Merge pull request #171 from smk762/master
n8maninger Aug 31, 2024
d720a4d
deps: update jape
n8mgr Sep 1, 2024
1eae42f
api: return 204 for empty handlers
n8mgr Sep 1, 2024
b256f1a
api: add test
n8mgr Sep 1, 2024
7a428d8
Merge pull request #172 from SiaFoundation/nate/return-204
n8maninger Sep 1, 2024
62bce17
deps: update core and coreutils
n8mgr Sep 1, 2024
4a6f567
Merge pull request #173 from SiaFoundation/nate/update-deps
n8maninger Sep 1, 2024
1247668
deps: update
n8mgr Sep 2, 2024
2a60762
Merge pull request #174 from SiaFoundation/nate/update-deps
n8maninger Sep 2, 2024
134a28b
build(deps): bump the all-dependencies group with 2 updates
dependabot[bot] Sep 9, 2024
3257073
api: change tpool response to 400
n8mgr Sep 12, 2024
6ff23fe
Merge pull request #177 from SiaFoundation/nate/tpool-400-response
lukechampine Sep 12, 2024
c669216
build(deps): bump the all-dependencies group across 1 directory with …
dependabot[bot] Oct 3, 2024
66d48b0
deps: tidy
n8mgr Oct 3, 2024
6bb70a8
Merge pull request #179 from SiaFoundation/dependabot/go_modules/all-…
n8maninger Oct 3, 2024
847affc
build(deps): bump the all-dependencies group with 2 updates
dependabot[bot] Oct 7, 2024
04d3ab2
sqlite: fix duplicate events
n8mgr Oct 8, 2024
5748185
Merge pull request #180 from SiaFoundation/dependabot/go_modules/all-…
n8maninger Oct 8, 2024
8c194a7
Merge branch 'master' into nate/fix-duplicate-events
n8maninger Oct 8, 2024
1e56661
Merge pull request #182 from SiaFoundation/nate/fix-duplicate-events
n8maninger Oct 8, 2024
a145dd2
build(deps): bump the all-dependencies group with 2 updates
dependabot[bot] Oct 14, 2024
aba0697
go mod tidy
ChrisSchinnerl Oct 21, 2024
397c950
Support confirmation field in events (#185)
n8maninger Oct 21, 2024
18264a5
build(deps): bump go.sia.tech/web/walletd in the all-dependencies group
dependabot[bot] Oct 21, 2024
5b34e52
Merge pull request #187 from SiaFoundation/dependabot/go_modules/all-…
n8maninger Oct 21, 2024
5b5258b
build(deps): bump the all-dependencies group with 2 updates
dependabot[bot] Oct 28, 2024
469c376
wallet: fix build
ChrisSchinnerl Oct 29, 2024
d71cf08
Merge pull request #188 from SiaFoundation/dependabot/go_modules/all-…
n8maninger Oct 29, 2024
1c79653
all: update core and coreutils
n8mgr Oct 30, 2024
f8f86ee
sqlite: run migration
n8mgr Oct 31, 2024
3740fda
Merge pull request #189 from SiaFoundation/nate/update-dependencies
n8maninger Oct 31, 2024
465e9da
api: Addr -> Address
n8mgr Oct 31, 2024
9d33792
build(deps): bump go.sia.tech/web/walletd in the all-dependencies group
dependabot[bot] Nov 4, 2024
aaf765e
publish.yml: add project-desc and version-tag
ChrisSchinnerl Nov 5, 2024
7cbd6fa
Merge pull request #193 from SiaFoundation/chris/fix-ci
n8maninger Nov 5, 2024
8f9e21b
build(deps): bump golang.org/x/term in the all-dependencies group
dependabot[bot] Nov 11, 2024
bb74f5b
build(deps): bump the all-dependencies group with 2 updates
dependabot[bot] Nov 18, 2024
b9843b4
chore(deps): update coreutils and core
n8mgr Nov 20, 2024
6b9e903
chore(changelog): automate changelog
n8mgr Nov 20, 2024
2f26e9b
Merge pull request #196 from SiaFoundation/nate/update-core
n8maninger Nov 20, 2024
40412d5
chore: update core
n8mgr Dec 4, 2024
ca3d83d
build(deps): bump the all-dependencies group with 3 updates
dependabot[bot] Dec 9, 2024
e4f5880
build(deps): bump the all-dependencies group with 3 updates
dependabot[bot] Dec 16, 2024
8242676
fix: Fix panic when resyncing after consensus database is deleted
n8mgr Dec 13, 2024
d402a87
wallet: add test reset
n8mgr Dec 19, 2024
de61683
Merge pull request #205 from SiaFoundation/nate/support-resync
n8maninger Dec 19, 2024
850c2cd
chore: update dependencies
n8mgr Dec 19, 2024
2405a35
chore: document change
n8mgr Dec 21, 2024
e2092a5
Merge pull request #208 from SiaFoundation/nate/update-deps
n8maninger Dec 21, 2024
ce674a3
build(deps): bump go.sia.tech/web/walletd in the all-dependencies group
dependabot[bot] Dec 23, 2024
6c40e2b
build(deps): bump golang.org/x/term in the all-dependencies group
dependabot[bot] Jan 6, 2025
90b3bd3
refactor: move utxo selection out of API and into wallet manager
n8mgr Jan 2, 2025
5bcbd15
sqlite: add missing WalletAddress impl
n8mgr Jan 2, 2025
d1801ba
wallet: revert unnecessary test change
n8mgr Jan 2, 2025
33bad49
wallet: switch locks to global timer
n8mgr Jan 3, 2025
f8e7cef
api,wallet: remove extra duration param
n8mgr Jan 3, 2025
dccf0f8
wallet: fix lint
n8mgr Jan 3, 2025
627806d
wallet: fix docstring
n8mgr Jan 4, 2025
9da769a
wallet: fix siafund docstring
n8mgr Jan 4, 2025
be291e3
wallet: fix comment
n8mgr Jan 4, 2025
938b1fb
api,sqlite,wallet: address review comments
n8mgr Jan 9, 2025
6573511
wallet: fix test NDF
n8mgr Jan 9, 2025
f0819d5
wallet: fix test NDF
n8mgr Jan 9, 2025
cf4ad0a
cmd: changes startup errors to log to stderr for easier parsing in sc…
n8mgr Jan 8, 2025
10faf17
document change
n8mgr Jan 8, 2025
fdca6b2
cmd: remove all log.Fatal calls in main.go
n8mgr Jan 9, 2025
3a76ce2
Merge pull request #213 from SiaFoundation/nate/log-to-stderr
n8maninger Jan 9, 2025
f122609
api,wallet: add transaction construction endpoints
n8mgr Jan 4, 2025
d683cd4
api: fix test error text
n8mgr Jan 9, 2025
fc9c315
refactor: address review comments
n8mgr Jan 10, 2025
5b44bf3
fix lint
n8mgr Jan 10, 2025
d3decb8
docs: update changeset
n8mgr Jan 10, 2025
72244ff
document construct v2 ordering
n8mgr Jan 10, 2025
6c798e1
wallet: skip indexing zero-valued Siafund claim events
n8mgr Jan 10, 2025
dc3c5ab
Merge pull request #214 from SiaFoundation/nate/skip-zero-valued-events
n8maninger Jan 13, 2025
a30c2b7
Merge branch 'master' into nate/construct-txns
n8maninger Jan 13, 2025
86f4307
fix api test after merging zero valued utxos
n8mgr Jan 13, 2025
780c780
Merge pull request #211 from SiaFoundation/nate/construct-txns
n8maninger Jan 13, 2025
441cc8e
build(deps): bump go.sia.tech/coreutils in the all-dependencies group
dependabot[bot] Jan 13, 2025
eb50db0
Merge pull request #215 from SiaFoundation/dependabot/go_modules/all-…
n8maninger Jan 13, 2025
40bada1
use standard directories
n8mgr Jan 15, 2025
d711ac9
fix copy pasta
n8mgr Jan 16, 2025
c3fe7b4
Merge pull request #218 from SiaFoundation/nate/use-standard-directories
n8maninger Jan 16, 2025
7446b2d
sqlite: add migration test
n8mgr Jan 15, 2025
88d98cd
Update persist/sqlite/migrations_test.go
n8maninger Jan 16, 2025
eb2bc57
Update persist/sqlite/migrations_test.go
n8maninger Jan 16, 2025
59afe27
Merge pull request #217 from SiaFoundation/nate/migration-test
n8maninger Jan 16, 2025
16b1f6d
chore: update coreutils
n8mgr Jan 16, 2025
24b3fae
ci: fix publish
n8mgr Jan 16, 2025
8a53242
build(deps): bump the all-dependencies group with 2 updates
dependabot[bot] Jan 20, 2025
a5d3f1c
Merge pull request #219 from SiaFoundation/dependabot/go_modules/all-…
n8maninger Jan 21, 2025
4b6c045
sqlite: skip integrity check
n8mgr Jan 16, 2025
3d4f781
api, sqlite, wallet: add basis to UTXO API responses
n8mgr Jan 24, 2025
ec19b46
Merge pull request #222 from SiaFoundation/nate/utxo-add-basis
n8maninger Jan 25, 2025
9969605
add basis to fund responses
n8mgr Feb 4, 2025
6ba9fc5
Merge pull request #224 from SiaFoundation/nate/add-basis-to-wallet-fund
lukechampine Feb 4, 2025
1f95e64
mod: Update core dependency
lukechampine Feb 5, 2025
f9c1d01
document change
n8mgr Feb 7, 2025
7fcaf83
Merge pull request #225 from SiaFoundation/update-slices
n8maninger Feb 7, 2025
3c70a71
sqlite: improve events query performance
n8mgr Feb 7, 2025
b182633
Merge pull request #227 from SiaFoundation/nate/improve-events-perfor…
n8maninger Feb 7, 2025
7eb4367
build(deps): bump golang.org/x/term in the all-dependencies group
dependabot[bot] Feb 10, 2025
b8955f4
update core and coreutils
n8mgr Feb 11, 2025
d049583
Merge pull request #230 from SiaFoundation/nate/update-deps
n8maninger Feb 11, 2025
cf53b9d
sqlite: flatten event lookups
n8mgr Feb 8, 2025
8773d1f
add wallet events benchmark
n8mgr Feb 8, 2025
dd18a04
rename index
n8mgr Feb 11, 2025
924e29b
wallet: don't panic when threadgroup is closed
n8mgr Feb 11, 2025
94ac6b0
Merge pull request #228 from SiaFoundation/nate/events-performance
n8maninger Feb 11, 2025
df40c64
deps: update web
n8mgr Feb 14, 2025
b428ac2
Merge pull request #233 from SiaFoundation/nate/update-ui
n8maninger Feb 14, 2025
fecf634
api: return error from construction API when spend policy is unset
n8mgr Feb 12, 2025
1b0eb38
change error text
n8mgr Feb 14, 2025
65021ca
api: return better status codes
n8mgr Feb 14, 2025
bbf2d00
Merge pull request #232 from SiaFoundation/nate/default-spend-policy
n8maninger Feb 14, 2025
b8c6d65
build(deps): bump go.sia.tech/web/walletd in the all-dependencies group
dependabot[bot] Feb 17, 2025
fd7ad2d
Merge pull request #234 from SiaFoundation/dependabot/go_modules/all-…
n8maninger Feb 17, 2025
1f745eb
readme: fix
ChrisSchinnerl Feb 20, 2025
9088764
add explanation for walletd config
ChrisSchinnerl Feb 20, 2025
945cc1b
Merge pull request #239 from SiaFoundation/chris/fix-readme
n8maninger Feb 20, 2025
770d297
fix hardfork dates
n8mgr Feb 21, 2025
0586aa1
chore: prepare release 2.0.0
n8mgr Feb 21, 2025
827ac29
Merge pull request #207 from SiaFoundation/release
n8maninger Feb 21, 2025
42659f7
fix package
n8mgr Feb 21, 2025
a1fd68b
sqlite, wallet: track spent event id
n8mgr Feb 19, 2025
4c810a6
wallet, sqlite: add spent event methods
n8mgr Feb 19, 2025
0d356b6
api: add spent event tests
n8mgr Feb 19, 2025
741ac74
fix lint
n8mgr Feb 19, 2025
99a00ba
add changeset
n8mgr Feb 19, 2025
e8a7066
address review comments
n8mgr Feb 20, 2025
5c5c1b4
revert out of scope changes
n8mgr Feb 20, 2025
ef1886e
Merge pull request #235 from SiaFoundation/nate/spent-utxos
n8maninger Feb 21, 2025
7b81d59
build(deps): bump go.sia.tech/core in the all-dependencies group
dependabot[bot] Feb 24, 2025
c82c1fb
Merge pull request #241 from SiaFoundation/dependabot/go_modules/all-…
n8maninger Feb 24, 2025
04329c0
add ed25519 key store
n8mgr Feb 27, 2025
f6844f1
add endpoint to fetch block by id
ChrisSchinnerl Feb 28, 2025
4b8161d
add encryption to persisted keys
n8mgr Mar 1, 2025
71f6bd2
fix lint
n8mgr Mar 1, 2025
e96d502
docs: update readme
n8mgr Mar 1, 2025
8a14b23
fix wallet test
n8mgr Mar 1, 2025
a34b1c9
fix migration
n8mgr Mar 1, 2025
e4d46c6
Merge pull request #244 from SiaFoundation/chris/block-by-id
n8maninger Mar 2, 2025
d3e2977
address review comments
n8mgr Mar 3, 2025
2b66f24
build(deps): bump the all-dependencies group with 2 updates
dependabot[bot] Mar 3, 2025
20393c5
add generateBlockTemplate
ChrisSchinnerl Mar 5, 2025
9eb1516
implement submitting block
ChrisSchinnerl Mar 6, 2025
ea23621
fix lint
ChrisSchinnerl Mar 6, 2025
72a1d7d
Merge branch 'master' into nate/key-store
ChrisSchinnerl Mar 7, 2025
a72b65f
address comments
ChrisSchinnerl Mar 7, 2025
5dde91f
add TestMineGetBlockTemplate
ChrisSchinnerl Mar 7, 2025
7520017
Merge pull request #242 from SiaFoundation/nate/key-store
ChrisSchinnerl Mar 7, 2025
1c788d2
Merge branch 'master' into chris/getblocktemplate
ChrisSchinnerl Mar 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .changeset/add_signing_key_store.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
default: minor
---

# Add ed25519 key store

Adds an optional ed25519 key store for integrators to store arbitrary private keys for signing transactions. It allows for both generating private keys on the server and importing private keys. Keys are stored encrypted using a user-provided secret.

The store is disabled by default. It can be enabled through the config file or the CLI flag `--keystore`. If the store is enabled, an encryption key must also be provided through the environment variable `WALLETD_KEYSTORE_SECRET`.

*The endpoint will return 404 if the `--public` CLI flag is set. It is only recommended for use on localhost. It is not used by the UI.*

```go

client := api.NewClient(walletAddr, walletdPassword)

pubKey, err := client.GenerateSigningKey()
if err != nil {
panic(err)
}

sig, err := client.SignHash(pubKey, hash)
if err != nil {
panic(err)
}
```
17 changes: 17 additions & 0 deletions .changeset/add_spent_element_endpoints.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
default: minor
---

# Added Spent Element Endpoints

Added two new endpoints `[GET] /outputs/siacoin/:id/spent` and `[GET] /outputs/siafund/:id/spent`. These endpoints will return a boolean, indicating whether the UTXO was spent, and the transaction it was spent in. These endpoints are designed to make verifying Atomic swaps easier.

#### Example Usage

````
$ curl http://localhost:9980/api/outputs/siacoin/9b89152bb967130326702c9bfb51109e9f80274ec314ba58d9ef49b881340f2f/spent
{
spent: true,
event: {}
}
```
57 changes: 57 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Bug Report
description: File a bug report
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
Note: Please search to see if an issue already exists for the bug you encountered.
- type: textarea
id: current-behavior
attributes:
label: Current Behavior
description: A concise description of what you're experiencing.
placeholder: Tell us what you see!
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expected Behavior
description: A concise description of what you expected to happen.
placeholder: Tell us what you want to see!
validations:
required: true
- type: textarea
id: steps-to-reproduce
attributes:
label: Steps to Reproduce
description: Detailed steps to reproduce the behavior.
placeholder: |
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
- type: input
id: version
attributes:
label: Version
description: What version of walletd are you running? If you are running from source, please provide the commit hash.
placeholder: v0.8.0
validations:
required: true
- type: input
id: os
attributes:
label: What operating system did the problem occur on (e.g. Ubuntu 22.04, macOS 12.0, Windows 11)?
validations:
required: true
- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Anything that will give us more context about the issue you are encountering!
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
validations:
required: false
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Sia Community Discord
url: https://discord.gg/sia
about: Join the Sia community discord for more help with Sia or walletd.
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Feature Request
description: Request a new feature be added to walletd.
labels: ["feature"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this feature request!
Note: Please search to see if an issue already exists for the feature
you want added.
- type: textarea
id: feature-description
attributes:
label: Description
description: |
A description of the feature you want added
Tip: You can attach images by clicking this area and then dragging files in.
placeholder: Tell us what you want! Be as descriptive as possible.
validations:
required: true
- type: input
id: version
attributes:
label: Version
description: What version of walletd are you running?
placeholder: v0.8.0
validations:
required: false
- type: input
id: os
attributes:
label: What operating system are you running (e.g. Ubuntu 22.04, macOS, Windows 11)?
validations:
required: false
- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Anything that will give us more context about the feature!
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
validations:
required: false
22 changes: 0 additions & 22 deletions .github/actions/test/action.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
groups:
all-dependencies:
patterns:
- "*"
25 changes: 5 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,13 @@
name: Main
name: Lint & Test
on:
workflow_dispatch:
pull_request:
push:
branches:
- master

env:
CGO_ENABLED: 1

jobs:
test:
runs-on: ${{ matrix.os }}
permissions:
contents: read
strategy:
matrix:
os: [ ubuntu-latest , macos-latest, windows-latest ]
go-version: [ '1.19', '1.20' ]
steps:
- name: Configure git
run: git config --global core.autocrlf false # required on Windows
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Test
uses: ./.github/actions/test
- name: Build
run: go build -o bin/ ./cmd/walletd
uses: SiaFoundation/workflows/.github/workflows/go-test.yml@master
26 changes: 26 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
push:
branches: [master]

permissions:
contents: write
pull-requests: write

name: Create Release PR
jobs:
prepare-release:
if: "!contains(github.event.head_commit.message, 'chore: prepare release')" # Skip merges from releases
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Configure Git
run: |
git config --global user.name github-actions[bot]
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: knope-dev/action@407e9ef7c272d2dd53a4e71e39a7839e29933c48
- run: knope prepare-release --verbose
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true
14 changes: 14 additions & 0 deletions .github/workflows/project-add.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Add issues and PRs to Sia project

on:
issues:
types:
- opened
pull_request:
types:
- opened

jobs:
add-to-project:
uses: SiaFoundation/workflows/.github/workflows/project-add.yml@master
secrets: inherit
Loading