Brice Dobry
b2113ae859
Simplify match
...
Co-authored-by: jbencin <jeff.bencin@gmail.com >
2023-04-18 12:46:19 -04:00
Brice Dobry
a6b7dada15
fix: support versioned contract transactions
...
The upstream changes for 2.1 added support to pass the Clarity version
when deploying a contract. Using this new transaction type is the
default from stacks.js, so it makes sense to support this new type in
the subnet as well.
2023-04-18 12:46:19 -04:00
Brice Dobry
1bfbaebd43
Merge pull request #252 from hirosystems/fix/respect-first-burn-ht
...
Fix: handful of resiliency fixes
2023-04-18 12:45:50 -04:00
Aaron Blankstein
7d373f0717
improved inv logging
2023-04-18 10:02:33 -04:00
Aaron Blankstein
2e44eb7f91
fix: num_inventory_reward_cycles must use *sortition* height to compute reward cycle target
2023-04-18 10:02:33 -04:00
Aaron Blankstein
df1f2455b8
update block inventories regardless of broken reward cycle tracking
2023-04-18 10:02:33 -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
202e580e42
chore: Change filter_map() that never filtered anything to map()
2023-04-11 09:54:09 -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
08f59c1299
refactor: Change make_nft_withdrawal_event() -> make_withdrawal_event() so that can handle fungible tokens also
2023-04-07 20:30:22 -04:00
jbencin
5ec836b65f
Merge pull request #234 from jbencin/fix/handle-failed-nft-deposits
...
fix: Send failed NFT deposits back to user
2023-04-07 16:40:41 -04:00
Aaron Blankstein
0bb72916da
Merge pull request #247 from hirosystems/subnets-docs
...
subnets-documentation
2023-04-07 14:51:57 -05:00
Aaron Blankstein
a762f8f534
revert file renames
2023-04-07 14:50:44 -05:00
Lavanya Kasturi
08484ba0b6
Reverted changes
2023-04-07 14:46:03 -05:00
Jeff Bencin
ddd2d6528f
style: Refactor process_deposit_nft_ops() to reduce size and indentation depth
2023-04-07 11:51:56 -04:00
Lavanya Kasturi
3f1117ea44
Added notes, removed how-to's, updates based on comments
2023-04-06 14:32:55 -05: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
Lavanya Kasturi
5d17a24300
Removed note, improved formattng
2023-04-04 13:54:48 -05:00
Lavanya Kasturi
000022910f
Added links to getting started guide
2023-03-24 14:37:29 -05:00
Lavanya Kasturi
efd2615fe5
Merge branch 'master' into subnets-docs
2023-03-24 14:27:27 -05:00
Lavanya Kasturi
b1bf9e462e
subnets-documentation
2023-03-24 14:21:39 -05:00
Brice Dobry
b47bc51e57
fix: avoid start height check
2023-03-24 12:36:10 -04:00
Aaron Blankstein
1681ed3e59
fix: peer versions must end in 0x06 or greater when 2_1 rules activate on a subnet
2023-03-24 12:11:15 -04:00
Jeff Bencin
072cb10207
fix: Parse timestamps from burnchain blocks so that API endpoints return non-zero timestamps
2023-03-23 10:45:16 -04:00
Brice Dobry
9d91f58f3b
docs: add explanation about the default contract
2023-03-17 13:22:50 -04:00
Brice Dobry
20b2978fc6
docs: update contract name to subnet-v1-1
2023-03-17 13:22:50 -04:00
Brice Dobry
542dc5e751
ci: don't package the contracts in the docker image
...
Clarinet now retrieves the contracts from the network, so we do not need
the hack of putting them in the image.
2023-03-16 20:54:13 -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
jbencin
7012d2228d
Merge pull request #227 from jbencin/test/add-subnet-contract-tests
...
Add some more subnet contract tests
2023-03-15 15:06:33 -04:00
Brice Dobry
0adbbe1cd1
Merge pull request #237 from hirosystems/feat/expose-l1-contract
...
feat: add watched L1 subnet contract to /v2/info
2023-03-15 15:01:37 -04:00
Jeff Bencin
503844b8d0
chore: Remove unused import in subnet_test.ts
2023-03-15 14:51:56 -04:00
Brice Dobry
77c6625947
ci: update test filter
...
This ensures that the l2_withdrawal test gets picked up as well.
2023-03-15 12:43:11 -04:00
Brice Dobry
c3aa629b0b
feat: add burnchain-txid to register-contract event
...
Also refactored a bit to reduce code duplication.
2023-03-15 12:43:11 -04:00
Brice Dobry
eb43849c58
fix: resolve issues with register asset events
2023-03-14 20:59:44 -04:00
Brice Dobry
48a1617bb2
test: fix test_getinfo_compat
2023-03-14 19:02:49 -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
f4fb4e8750
fix: fix typo in SQL
2023-03-14 09:49:28 -04:00
Brice Dobry
6af09fecc5
refactor: remove unused opcode from StacksSubnetOp
2023-03-14 09:49:28 -04:00
Brice Dobry
2255e35252
feat: add RegisterAsset op
...
Track the asset registration from the L1 (`register-new-(n)ft-contract`)
and trigger a corresponding call in the L2 subnet boot contract. This
call also triggers an L2 event for observers. Additionally, the
registered contracts are recorded in the contract, allowing calls to
`(n)ft-withdraw?` to error out if the asset is not registered.
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