Skip to content

Commit

Permalink
Merge pull request #1889 from hirosystems/beta
Browse files Browse the repository at this point in the history
release to master
  • Loading branch information
rafaelcr authored Mar 15, 2024
2 parents f82ed89 + a417ff1 commit 50d032c
Show file tree
Hide file tree
Showing 23 changed files with 1,475 additions and 69 deletions.
19 changes: 0 additions & 19 deletions .github/CONTRIBUTING.md

This file was deleted.

26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
## [7.9.0-beta.3](https://github.com/hirosystems/stacks-blockchain-api/compare/v7.9.0-beta.2...v7.9.0-beta.3) (2024-03-15)


### Bug Fixes

* include address transactions from genesis block ([#1888](https://github.com/hirosystems/stacks-blockchain-api/issues/1888)) ([cdea9e6](https://github.com/hirosystems/stacks-blockchain-api/commit/cdea9e61230850444e2227f4d15ec8ffce28ab9b))

## [7.9.0-beta.2](https://github.com/hirosystems/stacks-blockchain-api/compare/v7.9.0-beta.1...v7.9.0-beta.2) (2024-03-15)


### Bug Fixes

* include address transactions with no stx transfers ([#1887](https://github.com/hirosystems/stacks-blockchain-api/issues/1887)) ([d308e46](https://github.com/hirosystems/stacks-blockchain-api/commit/d308e463b4bb5569b2dc2d8da8892050c1d4b40f))

## [7.9.0-beta.1](https://github.com/hirosystems/stacks-blockchain-api/compare/v7.8.2...v7.9.0-beta.1) (2024-03-11)


### Features

* add v2 addresses endpoints ([#1876](https://github.com/hirosystems/stacks-blockchain-api/issues/1876)) ([c9440dd](https://github.com/hirosystems/stacks-blockchain-api/commit/c9440dd8efc0ac0589567f51bb8700d52d8d348f))


### Bug Fixes

* show status endpoint in /extended ([#1869](https://github.com/hirosystems/stacks-blockchain-api/issues/1869)) ([cf47f8f](https://github.com/hirosystems/stacks-blockchain-api/commit/cf47f8fe220d9388c204798b547699a44c27fab5))

## [7.8.2](https://github.com/hirosystems/stacks-blockchain-api/compare/v7.8.1...v7.8.2) (2024-02-19)


Expand Down
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,24 @@ Development of this product happens in the open on GitHub, and we are grateful t
Please read our [Code of Conduct](../../../.github/blob/main/CODE_OF_CONDUCT.md) since we expect project participants to adhere to it.

### Contributing Guide
Read our [contributing guide](.github/CONTRIBUTING.md) to learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes.

Hiro welcomes all contributions to Hiro documentation. These contributions come in two forms: issues and pull requests.

#### Issues

Bugs, feature requests, and development-related questions should be directed to our [GitHub issues tracker](https://github.com/hirosystems/stacks-blockchain-api/issues/new).

If reporting a bug, try to provide as much context as possible and anything else that might be relevant to the describe the issue. If possible include a simple test case that we can use to reproduce the problem on our own.

For feature requests, please explain what you're trying to do, and how the requested feature would be a complement to the project.
The two most important pieces of information we need in order to properly evaluate an issue or a feature request is a clear description of the behavior being reported.
#### Pull requests
A pull request allows anyone to suggest changes to a repository on GitHub that can be easily reviewed by others. Once a pull request is opened, you can discuss and review the potential changes with collaborators and add follow-up commits before your changes are merged into the base branch.
Keep in mind that pull requests are not merged directly into the `master` branch. It must have `develop` as the base branch.
### Community
Expand Down
49 changes: 49 additions & 0 deletions docs/api/address/get-address-transaction-events.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"limit": 20,
"offset": 0,
"total": 4,
"results": [
{
"type": "stx",
"event_index": 0,
"data": {
"type": "transfer",
"amount": "200",
"sender": "SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE",
"recipient": "SP24Q9PK9DNTA2V89APY8WNBJ1QYKKSW9SWB04RJP"
}
},
{
"type": "stx",
"event_index": 1,
"data": {
"type": "transfer",
"amount": "150",
"sender": "SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE",
"recipient": "SP26066SDPP4NXKGCVYZQDR5GX2QPE8KADZ0YK2J7"
}
},
{
"type": "ft",
"event_index": 5,
"data": {
"type": "transfer",
"amount": "103",
"asset_identifier": "SP466FNC0P7JWTNM2R9T199QRZN1MYEDTAR0KP27.miamicoin-token::miamicoin",
"sender": "SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE",
"recipient": "SP24Q9PK9DNTA2V89APY8WNBJ1QYKKSW9SWB04RJP"
}
},
{
"type": "nft",
"event_index": 6,
"data": {
"type": "transfer",
"asset_identifier": "SP497E7RX3233ATBS2AB9G4WTHB63X5PBSP5VGAQ.boom-nfts::boom",
"value": { "hex": "0x00", "repr": "0" },
"sender": "SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE",
"recipient": "SP24Q9PK9DNTA2V89APY8WNBJ1QYKKSW9SWB04RJP"
}
}
]
}
25 changes: 25 additions & 0 deletions docs/api/address/get-address-transaction-events.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"description": "GET Address Transaction Events",
"title": "AddressTransactionEventListResponse",
"type": "object",
"additionalProperties": false,
"required": ["results", "limit", "offset", "total"],
"properties": {
"limit": {
"type": "integer",
"maximum": 30
},
"offset": {
"type": "integer"
},
"total": {
"type": "integer"
},
"results": {
"type": "array",
"items": {
"$ref": "../../entities/address/address-transaction-event.schema.json"
}
}
}
}
130 changes: 130 additions & 0 deletions docs/api/address/get-v2-address-transactions.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
{
"limit": 20,
"offset": 0,
"total": 2,
"results": [
{
"tx": {
"tx_id": "0x34d79c7cfc2fe525438736733e501a4bf0308a5556e3e080d1e2c0858aad7448",
"tx_type": "contract_call",
"nonce": 11,
"fee_rate": "346",
"sender_address": "SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE",
"sponsored": false,
"post_condition_mode": "deny",
"tx_status": "success",
"block_hash": "0x13d1b4ad35c95bca209397420fb8af104d2929d91993ba056d7a1ca5470095f9",
"block_height": 3246,
"burn_block_time": 1613009951,
"burn_block_time_iso": "2021-02-11T02:19:11.000Z",
"canonical": true,
"is_unanchored": false,
"microblock_hash": "0x590a1bb1d7bcbeafce0a9fc8f8a69e369486192d14687fe95fbe4dc1c71d49df",
"microblock_sequence": 5,
"microblock_canonical": true,
"tx_index": 1,
"tx_result": {
"hex": "0x0703",
"repr": "(ok true)"
},
"post_conditions": [
{
"type": "stx",
"condition_code": "sent_equal_to",
"amount": "350",
"principal": {
"type_id": "principal_standard",
"address": "SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE"
}
}
],
"contract_call": {
"contract_id": "SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.send-many-memo",
"function_name": "send-many",
"function_signature": "(define-public (send-many (recipients (list 200 (tuple (memo (buff 34)) (to principal) (ustx uint))))))",
"function_args": [
{
"hex": "0x0b000000020c00000003046d656d6f020000000966697273746d656d6f02746f05168c031b2db5895ece0cdfbf76e0b0e8af67226a6f047573747801000000000000000000000000000000960c00000003046d656d6f020000000a7365636f6e646d656d6f02746f05168974da696d74a16d0955bc8e55720dfd39e789cf047573747801000000000000000000000000000000c8",
"repr": "(list (tuple (memo 0x66697273746d656d6f) (to SP26066SDPP4NXKGCVYZQDR5GX2QPE8KADZ0YK2J7) (ustx u150)) (tuple (memo 0x7365636f6e646d656d6f) (to SP24Q9PK9DNTA2V89APY8WNBJ1QYKKSW9SWB04RJP) (ustx u200)))",
"name": "recipients",
"type": "(list 200 (tuple (memo (buff 34)) (to principal) (ustx uint)))"
}
]
},
"events": [],
"event_count": 4
},
"stx_sent": "696",
"stx_received": "0",
"events": {
"stx": {
"transfer": 2,
"mint": 0,
"burn": 0
},
"ft": {
"transfer": 1,
"mint": 0,
"burn": 0
},
"nft": {
"transfer": 1,
"mint": 0,
"burn": 0
}
}
},
{
"tx": {
"tx_id": "0x628045bff13658396277d618e9a3e4d468a4b3876eff4941d2f13ed88cd7abb7",
"tx_type": "token_transfer",
"nonce": 8,
"fee_rate": "180",
"sender_address": "SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE",
"sponsored": false,
"post_condition_mode": "deny",
"tx_status": "success",
"block_hash": "0x2b8599696f64e2456c67b1ab5e63078f99d87bd1d903c37fdcfd73b1890a7551",
"block_height": 1761,
"burn_block_time": 1611968237,
"burn_block_time_iso": "2021-01-30T00:57:17.000Z",
"canonical": true,
"is_unanchored": false,
"microblock_hash": "",
"microblock_sequence": 2147483647,
"microblock_canonical": true,
"tx_index": 2,
"tx_result": {
"hex": "0x0703",
"repr": "(ok true)"
},
"token_transfer": {
"recipient_address": "SPRSM0R2JZWBCZ39NQBARWTMX9TE99K3JK8D5KMX",
"amount": "100000",
"memo": "0x57656c636f6d6520746f20426f6f6d2e000000000000000000000000000000000000"
},
"events": [],
"event_count": 1
},
"stx_sent": "100180",
"stx_received": "0",
"events": {
"stx": {
"transfer": 1,
"mint": 0,
"burn": 0
},
"ft": {
"transfer": 0,
"mint": 0,
"burn": 0
},
"nft": {
"transfer": 0,
"mint": 0,
"burn": 0
}
}
}
]
}
25 changes: 25 additions & 0 deletions docs/api/address/get-v2-address-transactions.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"description": "GET Address Transactions",
"title": "AddressTransactionsV2ListResponse",
"type": "object",
"additionalProperties": false,
"required": ["results", "limit", "offset", "total"],
"properties": {
"limit": {
"type": "integer",
"maximum": 30
},
"offset": {
"type": "integer"
},
"total": {
"type": "integer"
},
"results": {
"type": "array",
"items": {
"$ref": "../../entities/address/address-transaction.schema.json"
}
}
}
}
Loading

0 comments on commit 50d032c

Please sign in to comment.