1829 Commits

Author SHA1 Message Date
Brice Dobry
3a0ef0472b Merge pull request #260 from hirosystems/add-block-height
feat: add block height to `commit-block` event
2023-04-19 21:56:37 -04:00
Brice Dobry
af730c63a0 Merge pull request #249 from hirosystems/feat/remove-initial-balances
Remove initial balances except in tests
2023-04-19 16:42:26 -04:00
Brice Dobry
5002792022 feat: add block height to commit-block event
The event generated by a `commit-block` (on the L1) now includes the
block height for the block that is being committed, in the
`block-height` key of the event tuple. The target burnchain block height
now uses the key `target-burn-block-height`. This is useful for
debugging, making it easy to match the L1 transactions with the L2
blocks. Note that this field is not checked in the tests since it is
purely for convenience and could be left out of some implementations.
2023-04-19 16:39:15 -04:00
Jeff Bencin
b0c93bc276 fix: Update reqwest and disable OpenSSL to address CVEs 2023-04-18 15:10:38 -04:00
Aaron Blankstein
edc4f97804 Merge branch 'master' into feat/remove-initial-balances 2023-04-18 14:13:07 -04:00
Aaron Blankstein
c76c4f301d handle event duplicate 2023-04-18 10:02:33 -04:00
Aaron Blankstein
4236b84252 fix: increment sortition processing! 2023-04-18 10:02:33 -04:00
Aaron Blankstein
e2c1923745 fix: ignore l1 blocks prior to first block height 2023-04-18 10:02:33 -04:00
jbencin
84fb7e0d2d Merge pull request #253 from jbencin/fix/handle-failed-ft-deposits
Fix: Refund failed FT deposits
2023-04-13 14:54:44 -04:00
Jeff Bencin
b32b7eb39a chore: Minor changes as requested in PR #253 2023-04-13 14:44:00 -04:00
Jeff Bencin
37652e7fa7 Fix: Rename withdrawal_id to withdrawal-id 2023-04-13 13:11:37 -04:00
Jeff Bencin
3cfc58d395 fix: Add module prefix to example test commands in comments, to fix cargo test running multiple tests based on substring matching 2023-04-11 09:53:56 -04:00
Jeff Bencin
d09d49e0ed test: Add integration test for refund from failed FT deposit 2023-04-10 18:32:28 -04:00
Jeff Bencin
522c331a45 Merge remote-tracking branch 'hiro/master' into fix/handle-failed-nft-deposits
Includes some additional changes to get integration tests working again after merge
2023-04-06 14:16:53 -04:00
Jeff Bencin
5c585b9b00 fix: Add integration test for refund of failed NFT deposit 2023-04-05 16:53:25 -04:00
Aaron Blankstein
ea2271f62a feat: remove initial balances except in tests 2023-03-28 08:17:09 -05:00
Brice Dobry
b47bc51e57 fix: avoid start height check 2023-03-24 12:36:10 -04:00
Brice Dobry
75ce11ce89 doc: update tutorial for latest changes 2023-03-16 20:54:13 -04:00
Brice Dobry
ca1d9c0e8b fix: update server_version
The `/v2/info` endpoint is updated to report "subnet-node" instead of
"stacks-node".
2023-03-16 07:16:23 -04:00
Brice Dobry
eb43849c58 fix: resolve issues with register asset events 2023-03-14 20:59:44 -04:00
Brice Dobry
f035c9dab1 chore: cleanup warnings 2023-03-14 19:02:19 -04:00
Brice Dobry
01133422f8 test: add test for bad L2 withdraw
If a user tries to withdraw an unregistered asset from the L2, the
withdrawal should fail and they should retain ownership.
2023-03-14 09:49:28 -04:00
Brice Dobry
7cb2d56c03 refactor: rename watch_contract to subnet_governing_contract 2023-03-14 09:49:28 -04:00
Brice Dobry
8d01007b00 feat: add watched L1 subnet contract to /v2/info
Adds this field to the response:
```
"watch_contract": "ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM.subnet"
```
2023-03-14 09:49:28 -04:00
Jeff Bencin
44caad6a56 style: Remove some unnecessary .into() calls 2023-03-09 16:07:08 -05:00
Aaron Blankstein
ae602479ef fix unit tests, remove bns.clar and bns-test 2023-03-08 19:05:19 -06:00
Aaron Blankstein
59aff38ff8 update clarity/stacks-common libs to 2.1.0.0.0 tag 2023-03-08 19:05:19 -06:00
Aaron Blankstein
1184a5cef1 fix: allow epochs to transition in a single block, set default starting epoch to 2.1, cleanup boot code 2023-03-08 19:05:19 -06:00
Aaron Blankstein
e2e01edcd6 docs: add openapi docs for POST block proposal, GET FT withdrawal 2023-02-28 13:50:20 -06:00
Brice Dobry
63827c5a81 fix: cleanup tests 2023-02-22 13:37:19 -05:00
Brice Dobry
60485d2870 fix: resolve issues in FT tests 2023-02-22 11:42:13 -05:00
Brice Dobry
3357445212 fix: finish FT withdrawal endpoint implementation 2023-02-22 11:42:13 -05:00
Scott A
fc92467346 nit: Code style consistency 2023-02-22 11:42:13 -05:00
Scott A
dfabd03c0d Create duplicate unit test for fungible tokens 2023-02-22 11:42:13 -05:00
Scott A
8b6250e4ac Undo L1 test changes 2023-02-22 11:42:13 -05:00
Scott A
05f773ed38 fix: code formatting 2023-02-22 11:42:13 -05:00
Scott A
eb0ab3bdc0 fix: Broken unit test introduced by previous commit 2023-02-22 11:42:13 -05:00
Scott A
048d80b5c6 feat(rpc): Add RPC endpoint for Fungible Tokens 2023-02-22 11:42:13 -05:00
Aaron Blankstein
b2a22c1cfb Merge remote-tracking branch 'origin/master' into feat/burn-events 2023-02-21 13:12:09 -06:00
Brice Dobry
4a629c539a feat: add admin address for registering contracts 2023-02-18 19:24:44 -05:00
Brice Dobry
800fd793cd test: reorder operations ensure correct miner nonce 2023-02-18 18:54:11 -05:00
Brice Dobry
8d2899496a test: fix nonce used in test 2023-02-18 18:54:11 -05:00
Brice Dobry
5cbda93730 fix: fix nft_deposit_and_withdraw_integration_test 2023-02-18 18:54:11 -05:00
Brice Dobry
25442f504b test: update tests to match refactoring 2023-02-18 18:54:11 -05:00
Brice Dobry
403ab03334 fix: publish SIP traits used by subnets in tests 2023-02-18 18:54:11 -05:00
Brice Dobry
6bb5dc55b7 feat: remove deposit function name
Use "deposit-from-burnchain" always, because it will be validated by a
trait.
2023-02-18 18:54:11 -05:00
Jeff Bencin
1501e790ab fix(ci): Add pubkey for block proposal validation in l1_multiparty_2_of_2_integration_test() 2023-02-17 15:36:11 -05:00
Jeff Bencin
2131598c03 feat: Add sender validation to block proposal RPC 2023-02-17 15:36:11 -05:00
Aaron Blankstein
8b8f2a077f feat: integrate burnchain_op info event observer changes from stacks-blockchain 2023-02-17 08:16:52 -06:00
Greg
04870d1696 Merge branch 'master' into feat/port-l1-miner-changes 2023-01-29 18:58:44 -05:00