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
Lavanya Kasturi
3f1117ea44
Added notes, removed how-to's, updates based on comments
2023-04-06 14:32:55 -05: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
Brice Dobry
de33ff3f94
Docs updates ( #225 )
...
* added new folders and files for subnets
* added new subnets files and folders for inclusion into subnets repo
* docs: update the devnet example
* docs: fix some steps in walkthrough
* chore: integrate Aaron's edits from PR review
* incorporated comments and feedback for final draft
* docs: remove outdated NFT_USE_CASE.md
This is replaced with the tutorial in getting-started.md.
* docs: remove how-to guides for now
This content is specific to the tutorial and needs to be re-worked to
make sense for a more generate how-to guide. How-tos will be added in a
future update.
* docs: remove init.md
This content is not relevant at the moment.
* chore: remove yarn.lock
---------
Co-authored-by: Thomas Richards <thomasrichards@Thomass-MBP.attlocal.net >
2023-03-13 16:37:22 -05:00
Jeff Bencin
409b9be060
style: Fix deno lint warnings
2023-03-10 10:54:05 -05:00
Jeff Bencin
5495eee7e0
test(subnet.clar): Split some failure test cases into separate tests
2023-03-10 10:42:20 -05:00
Aaron Blankstein
582f524779
Merge pull request #229 from hirosystems/feat/same-block-epochs+boot-cleanup
...
Fix: allow epochs to transition in a single block, and boot cleanup
2023-03-08 21:37:15 -06: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
b31aad6af5
delete unused clar files
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
Brice Dobry
a948b9706c
Merge pull request #228 from hirosystems/feat/withdrawal-height
...
Withdrawal height
2023-03-08 13:38:06 -05:00
Aaron Blankstein
d3295b1c5d
Merge pull request #222 from hirosystems/add-subnet-docs-rpcs
...
Docs: Block proposal, FT withdrawal RPCs
2023-03-08 12:26:39 -06:00
Aaron Blankstein
71aec6320c
Merge branch 'master' into add-subnet-docs-rpcs
2023-03-08 12:26:04 -06:00
jbencin
e20e9af051
docs: Update core-contracts/README.md
...
Co-authored-by: Brice Dobry <brice@obycode.com >
2023-03-08 13:19:57 -05:00
Brice Dobry
bb2d8b6392
feat: add withdraw-height to print event
...
In addition to returning the withdraw height from the `-withdraw?`
functions, this commit adds this height to the print event as well.
2023-03-08 08:38:05 -05:00
Brice Dobry
c81dfd7fb6
feat: return block-height from withdraw? funcs
...
`stx-wtihdraw?`, `ft-withdraw?` and `nft-withdraw?` do not return any
meaningful value on success. When attempting to make a withdrawal, users
will need the block height in which the withdrawal occured in order to
perform the second stage of the withdraw (on the L1). This changeset
makes these withdraw functions return the block height for convenience.
2023-03-07 17:16:33 -05:00
Jeff Bencin
fff7776638
test(subnet.clar): Add check in FT contract transfer functions so that only token owner can transfer
2023-03-06 17:04:42 -05:00
Jeff Bencin
ba625f8884
test(subnet.clar): Test attempted integer overflow of fungible token balance
2023-03-06 16:59:34 -05:00
Jeff Bencin
67fba7e4ca
test(subnet.clar): Add failing FT withdrawal tests
2023-03-03 18:18:38 -05:00
Jeff Bencin
ff13ebbfe8
test(subnet.clar): Add failing NFT withdrawal tests
2023-03-03 09:52:27 -05:00
Jeff Bencin
1e6638ce4a
test(subnet.clar): Add some simple failing test cases
2023-03-02 12:18:06 -05:00
Jeff Bencin
f5caf7d2dc
docs: Add README.md to ./core-contracts with instructions on how to run tests
2023-03-01 11:39:28 -05:00
Jeff Bencin
89e66a7a65
chore: Add coverage.lcov file to .gitignore
2023-03-01 11:38:16 -05:00