{"id":13695187,"url":"https://github.com/bisonai/sbt-js","last_synced_at":"2025-04-23T04:59:01.246Z","repository":{"id":62388342,"uuid":"542067896","full_name":"Bisonai/sbt-js","owner":"Bisonai","description":"Typescript interface for @bisonai/sbt-contracts","archived":false,"fork":false,"pushed_at":"2023-01-18T00:48:29.000Z","size":253,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-23T04:58:53.871Z","etag":null,"topics":["ethereum","klaytn","nft","soulbound-tokens"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bisonai.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}},"created_at":"2022-09-27T12:16:24.000Z","updated_at":"2024-12-02T08:20:05.000Z","dependencies_parsed_at":"2023-02-10T12:30:49.270Z","dependency_job_id":null,"html_url":"https://github.com/Bisonai/sbt-js","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bisonai%2Fsbt-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bisonai%2Fsbt-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bisonai%2Fsbt-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bisonai%2Fsbt-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bisonai","download_url":"https://codeload.github.com/Bisonai/sbt-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250372922,"owners_count":21419722,"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","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":["ethereum","klaytn","nft","soulbound-tokens"],"created_at":"2024-08-02T18:00:18.974Z","updated_at":"2025-04-23T04:59:01.229Z","avatar_url":"https://github.com/Bisonai.png","language":"TypeScript","funding_links":[],"categories":["Sample Apps and Examples"],"sub_categories":[],"readme":"# @bisonai/sbt-js\n\nThis repository is a Typescript interface for [@bisonai/sbt-contracts](https://github.com/bisonai/sbt-contracts).\n\n## Installation\n\n```\nyarn install\n```\n\n## How to use\n\n```\nimport { ethers } from 'ethers'\nimport { SBT, Network } from '@bisonai/sbt-js'\n\nconst wallet = ethers.Wallet.createRandom()\nconst sbt = new SBT(Network.localhost, wallet.privateKey)\n```\n\n## Testing\n\nTests defined in `test/sbt.ts` can be used for testing on the local or live network.\nAll settings related to tests are loaded from the `.env` file.\nCopy the `.env.example` to the `.env` file, follow included instructions and fill in the required settings.\n\n### Local network\n\nWhen testing on a local network, we recommend using [Ganache](https://trufflesuite.com/ganache/).\nOur test scripts include accounts that come with Ganache when launched with the command `ganache -d`.\nAfter launching Ganache, you can run tests with `yarn test`.\n\n### Live network\n\nBefore testing on a live network you will need to create two accounts and fund the first one with tokens.\nThe name of the network has to be assigned to the `TEST_NETWOK` environment variable located in the `.env` file.\nThe accounts can be generated with the `npx menmonics` command.\nAfter you generate mnemonics for both accounts, copy them to the `.env` file and assign them to the `MNEMONIC0` and `MNEMONIC1` environment variables.\nIf you are testing on Klaytn test net called `Baobab`, you will need to fund your account first (only account related to `MNEMONIC0`).\nWe recommend using [Klaytn Baobab Faucet](https://baobab.wallet.klaytn.foundation/faucet).\nEventually, you can launch test scenarios using the `yarn test` command.\n\n## Publish to registry\n\n```\nyarn clean\nyarn build\nyarn pub\n```\n\n## License\n\n[Apache License 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbisonai%2Fsbt-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbisonai%2Fsbt-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbisonai%2Fsbt-js/lists"}