@3rdweb/sdk 中文文档教程
Thirdweb SDK (legacy)
这是 Thirdweb SDK 的旧版。
Docs
https://docs.thirdweb.com
Api Reference
https://thirdweb-dev.github.io/typescript-sdk/sdk.html
Testing
测试需要运行 hardhat 节点。 可以通过在 hardhat 项目中运行 npx hardhat node
来启动。 可以使用 npx hardhat init -y
初始化 hardhat 项目。
Running all tests
$ yarn run test:all
Running a specific test file
$ yarn run test test/pack.test.ts
Running a matching set of tests
$ yarn run test test/pack.test.ts --grep "should allow you to buy a pack"
Thirdweb SDK (legacy)
This is an legacy version of Thirdweb SDK.
Docs
https://docs.thirdweb.com
Api Reference
https://thirdweb-dev.github.io/typescript-sdk/sdk.html
Testing
Tests require a hardhat node to be running. One can be started by running npx hardhat node
in a hardhat project. A hardhat project can be initialized using npx hardhat init -y
.
Running all tests
$ yarn run test:all
Running a specific test file
$ yarn run test test/pack.test.ts
Running a matching set of tests
$ yarn run test test/pack.test.ts --grep "should allow you to buy a pack"