{"id":30621397,"url":"https://github.com/syscoin/syscoinwire","last_synced_at":"2025-08-30T14:29:12.296Z","repository":{"id":283614895,"uuid":"952329613","full_name":"syscoin/syscoinwire","owner":"syscoin","description":"Syscoin wire protocol built on top of btcd (for blockbook and geth in Syscoin 5)","archived":false,"fork":false,"pushed_at":"2025-03-30T15:29:59.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T16:28:23.785Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syscoin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-21T05:26:27.000Z","updated_at":"2025-03-30T15:28:31.000Z","dependencies_parsed_at":"2025-03-21T07:24:45.542Z","dependency_job_id":"ee545744-8cf8-43cb-b62e-fbdc8bab0a9e","html_url":"https://github.com/syscoin/syscoinwire","commit_stats":null,"previous_names":["syscoin/syscoinwire"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/syscoin/syscoinwire","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syscoin%2Fsyscoinwire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syscoin%2Fsyscoinwire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syscoin%2Fsyscoinwire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syscoin%2Fsyscoinwire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syscoin","download_url":"https://codeload.github.com/syscoin/syscoinwire/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syscoin%2Fsyscoinwire/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272860694,"owners_count":25005478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-30T14:28:13.856Z","updated_at":"2025-08-30T14:29:12.288Z","avatar_url":"https://github.com/syscoin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Syscoin Wire Package\n\nThis package provides a comprehensive set of tools for serialization and deserialization of Syscoin blockchain-specific transactions, NEVM blocks, and related structures. It integrates smoothly with existing Bitcoin-based infrastructure such as `btcd`, extending functionality specifically for Syscoin.\n\n## Features\n\n- Serialization and deserialization of Syscoin asset allocations\n- Handling of NEVM-specific block structures\n- Efficient binary serialization optimized for blockchain data\n- Comprehensive unit tests covering edge cases\n\n## Installation\n\nEnsure your project uses Go Modules, then install the package:\n\n```sh\ngo get github.com/syscoin/syscoinwire/syscoin/wire\n```\n\n## Usage\n\nHere's how to include and use Syscoin Wire in your Go project:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/syscoin/syscoinwire/syscoin/wire\"\n)\n\nfunc main() {\n\tassetAllocation := wire.AssetAllocationType{\n\t\tVoutAssets: []wire.AssetOutType{\n\t\t\t{\n\t\t\t\tAssetGuid: 1234,\n\t\t\t\tValues: []wire.AssetOutValueType{\n\t\t\t\t\t{N: 0, ValueSat: 5000},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t}\n\n\tfmt.Printf(\"Asset Allocation: %+v\\n\", assetAllocation)\n}\n```\n\n## Running Tests\n\nTo run unit tests provided by the package, navigate to the root of your project and run:\n\n```sh\ngo test ./syscoin/wire\n```\n\nTests include serialization and deserialization validation ensuring integrity and consistency:\n\n- `AssetAllocationType`\n- `NEVMBlockWire`\n- `NEVMDisconnectBlockWire`\n\nThese tests thoroughly cover typical scenarios and edge cases such as empty data, maximum sizes, and boundary numeric values.\n\n## Project Structure\n\nRecommended project structure:\n\n```\nsyscoinwire/\n├── go.mod\n├── syscoin\n│   └── wire\n│       ├── asset.go\n│       ├── asset_test.go\n│       ├── nevmblock.go\n│       ├── nevmblock_test.go\n│       └── (other future .go files)\n└── (additional future project files)\n```\n\n## Contributing\n\nContributions and improvements are welcome! Feel free to open issues or pull requests on GitHub.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyscoin%2Fsyscoinwire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyscoin%2Fsyscoinwire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyscoin%2Fsyscoinwire/lists"}