Fuel Network Typescript SDK
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
ci(release): `v0.103.0` @ `master` (#3952) | 4 个月前 | |
chore: upgrade `fuel-core` to `0.44.0` (#3901) * Bumped versions * Sync'd fuel-core schema * Separated `INSUFFICIENT_FUNDS` and `MAX_COINS_REACHED` * Fixed error message for `PredicateVerificationFailed` * Revert "Separated `INSUFFICIENT_FUNDS` and `MAX_COINS_REACHED`" This reverts commit e05e72d8dfd2b37271467bd560f9c4485c596c42. * Allow proper mapping of `INSUFFICIENT_FUNDS_OR_MAX_COINS` error * Bumped `@fuels/asm` * Changeset * Added metadata to the `INSUFFICIENT_FUNDS_OR_MAX_COINS` error * Lintfix * Update .changeset/full-carpets-lose.md * Update .changeset/full-carpets-lose.md * Update .changeset/full-carpets-lose.md * Only bump version * Testing with binaries committed * Added logging to binary finding * Is it a faulty bin? * Use correct architecture for Vercel * rollback bin changes * Remove binaries * Install correct version * Testing publishing preview * deploy * Fix env * Use correct argument * Move to output * Removed CWD * Change dir * chore: added build * Added token * Added action * Missing shell * Please build * Added debug * Use latest corepack * Remove corepack version check * Added template build * Pull envs * Delete `vercel.json` * Fix? * Echo out deployment URL's * Echo out deployment URL's * Added PR comment * Revert "Only bump version" This reverts commit 6c4287774310c980eef8237df324a2ff8de4a890. * Revert "Added logging to binary finding" This reverts commit cead8c3323f20c8f3de55031038b9cded2a3c6e8. * Update id * Added conditional outcome comment * Pls * Ensure all deployments successful * Added missing project ID * Added environment support for Vercel deploy * Fixed inputs * Single equality check * Added deployment for the releases * Missing nightly option * Added `assetId` to error message * Fixed error message --------- Co-authored-by: Sérgio Torres <30977845+Torres-ssf@users.noreply.github.com> | 10 个月前 | |
ci(release): v0.103.0 @ master, npm update | 4 个月前 | |
build: ensure whitespace is trimmed for vscode formatting (#2271) * build: ensure whitespace is trimmed for vscode formatting * build: add changesets * chore: add trailing spaces rule --------- Co-authored-by: Sérgio Torres <30977845+Torres-ssf@users.noreply.github.com> | 2 年前 | |
feat: add support for fuel-core v0.47.1 (#3950) | 7 个月前 | |
chore: add repository url information to all packages | 4 个月前 | |
chore: add repository url information to all packages | 4 个月前 | |
feat: `create fuels` template revamp (#3125) Co-authored-by: Daniel Bate <djbate23@gmail.com> Co-authored-by: Dhaiwat <dhaiwatpandya@gmail.com> | 1 年前 | |
feat: implement support for new ABI error codes (#3894) | 1 年前 | |
chore: improve latency measure script (#3812) * refact types * add @fuel-ts/versions to fuel-gauge workspace * refact helpers * refact all operations * add operation simple transfer * refact main fn * removing some operations * adjusting some types * adding new operation * add new inter contract call operation * adjusting helpers * define contract constant * adjusting operation * using all operations * update .env example * update snapshot * lint * update contributing * add new snapshot | 1 年前 | |
feat: add support for fuel-core v0.47.1 (#3950) | 7 个月前 | |
chore: improve latency measure script (#3812) * refact types * add @fuel-ts/versions to fuel-gauge workspace * refact helpers * refact all operations * add operation simple transfer * refact main fn * removing some operations * adjusting some types * adding new operation * add new inter contract call operation * adjusting helpers * define contract constant * adjusting operation * using all operations * update .env example * update snapshot * lint * update contributing * add new snapshot | 1 年前 | |
chore: sunsetting `demo-react-cra` (#3882) * Sunsetting Create React App * Removing obsolete configs | 1 年前 | |
feat: consider `assetId` in check account utility (#3618) | 1 年前 | |
fix: configurables constants on createTransactionRequest not been set (#3944) | 9 个月前 | |
chore: publish to AWS CodeArtifact (#3739) * chore: testing aws publish * enable publishing * 2 * removed scoped package * remove un-needed envs * Add npm_config_registry * small amendments * remove slash? * re-add slash * release to AWS * removed scoped package * Use SHA as ref to wait for * changeset * remove deploy * publish all packages * updated install instructions * PR sha or sha * publish templates * Do not ignore template packages from changeset * make all private packages public for publishing * Added missing `peerDependency` * Ignore dependency | 1 年前 | |
chore: ensuring engine compatibility (#1338) | 2 年前 | |
build: add support for latest node versions (#2539) Co-authored-by: Peter Smith <peter@blueoceancomputing.co.uk> | 1 年前 | |
rc: salamander (#1495) * chore: updating code owners (#1496) * docs: purge hardcoded snippets on 'using typegen' page (#1403) * chore: remove method that's same as base method (#1445) * chore: implement RC workflow (#1497) * Revert "feat: add `Predicate.getTransferTxId` helper (#1467)" * chore: fix rc release string replace (#1529) * docs: Update some hyperlinks to reference the new documentation hub (#1520) * chore: improve rc release message (#1559) * feat: GraphQL subscriptions (#1374) * chore: pin `graphql-request` to `v5` (#1567) * chore: upgrade `tsx` (#1574) * feat: migrate from Jest to Vitest (#1310) * chore: fix temp test workflow (#1579) * chore: update required node engine in `create-fuels` (#1582) * chore: add node version test matrix (#1575) * chore: fix broken rc message (#1580) * chore: update nodejs to v20 (#1544) * feat: accepting addresses as `string` (#1583) * chore: properly format the PR coverage report comment (#1586) * fix: flaky test (#1590) * docs: update `deposit-and-withdraw` page (#1591) * feat: retry mechanism (#1474) * feat: replaced `semver` dependency with custom implementation (#1594) * feat: replace `elliptic` with `@noble/curves` (#1601) * chore: fix CI failing due to missing tag in test (#1614) * feat: improve ABI Coders `decode` validation (#1426) * fix: do not generate a coverage diff without coverage artifact (#1629) * chore: pinpoint vitest to 1.0.4 (#1637) * chore: remove `ethers` dependency from `utils` (#1640) * fix: `getOperation` for `Transfer Asset` (#1619) * fix: remove external font dependencies (#1642) * fix: generate RC PR comment on `pull_request` event only (#1648) * fix: fix failing `rc` comment (#1657) * chore: add missing test group (#1658) * feat: implement browser compatibility testing (#1630) * chore: fix string replace in `rc` ci (#1659) * chore: adding extra reporters (#1661) * chore: manually trigger `rc` CI (#1660) * feat: use `submitAndAwait` graphql endpoint (#1615) * fix: flaky retry test (#1654) * feat: create a wallet without a provider (#1566) * chore!: Share single chainConfig and review node-related utilities (#1602) * chore: use new temporary coverage artifact (#1676) * fix: internalizing `findBinPath` utility (#1679) | 2 年前 | |
chore: sunsetting `demo-react-cra` (#3882) * Sunsetting Create React App * Removing obsolete configs | 1 年前 | |
docs: finalise `docs-snippets` (#3369) * chore: migrate all `docs-snippets2` functionality to `docs` * add script snippets to `docs-snippets2` * chore: finalized migration of docs-snippets * chore: added correct path to env * chore: finalized the snippet wrapping * chore: lint + gitignore * chore: removed typegend folder * chore: tweaked the type check to only pass the snippets * chore: removed regions * chore: removed final `#import` * docs: migrated `script-init` * chore: reverted changes to proxy * chore: changeset * chore: corrected MarkdownIt type * chore: fix pretest * chore: migrating snippets to inline * chore: fixed snippet location * chore: fix imports * chore: lint spell check * chore: added prettier ignore files * Update .github/workflows/code-lint.yaml * Trigger Build * chore: rollback linting of spellcheck * chore: altered readme * chore: rollback pretest * chore: removed non-existent file from wrap ignore * Revert "chore: rollback linting of spellcheck" This reverts commit 0d9fbf07d4117fc6a50f839442135a4b22123b05. * chore: removed docs prettier ignore * chore: added tests to prettierignore --------- Co-authored-by: Dhai <dhaiwatpandya@gmail.com> Co-authored-by: Sérgio Torres <30977845+Torres-ssf@users.noreply.github.com> | 1 年前 | |
chore: dependencies version consistency (#2883) * feat: initialize syncpack config file * feat: configure syncpack to only inspect the 'dependencies' properties of package.json files. * feat: add syncpack as a development dependency on the monorepo. * ci: add a command in the package.json to run the job in CI Also abstracted the logic for checking mismatches to a script. * chore: update pnpm-lock * ci: configure knip to ignore syncpack Also gave ci system permission to execute check-deps.sh * feat: configure syncpack to ignore local dependencies. * ci: configure syncpack workflow * chore: clean up prevoius syncpack implementations * ci: rename syncpack workflow extension from yml to yaml * chore: favour lint check over new action * chore: updated pnpm-lock * chore: added sorting * chore: enhanced sorting * chore: removed formatting from fix * chore: testing fix for `vp-docs` * chore: downgraded syncpack to be node18 compatible * Rebuild * chore: revert back to master * chore: perform fixes * chore: install * chore: changeset --------- Co-authored-by: Richard Gregory <richardgrecoson@gmail.com> | 1 年前 | |
fix: make the `CHANGELOG.md` file at the root a symlink (#959) | 3 年前 | |
chore: added code of conduct (#2737) | 1 年前 | |
chore: improve latency measure script (#3812) * refact types * add @fuel-ts/versions to fuel-gauge workspace * refact helpers * refact all operations * add operation simple transfer * refact main fn * removing some operations * adjusting some types * adding new operation * add new inter contract call operation * adjusting helpers * define contract constant * adjusting operation * using all operations * update .env example * update snapshot * lint * update contributing * add new snapshot | 1 年前 | |
Add Apache license (#78) | 4 年前 | |
docs: adjusting snippets again (#3560) Adjusting snippets | 1 年前 | |
feat: update security policy | 1 年前 | |
chore!: restructure `Account` related packages (#1675) | 2 年前 | |
feat: add support for fuel-core v0.47.1 (#3950) | 7 个月前 | |
chore: recipes build clean ups (#3439) * chore: cleanups for recipes build * chore: changeset * chore: lint Co-authored-by: Peter Smith <peter@blueoceancomputing.co.uk> --------- Co-authored-by: Peter Smith <peter@blueoceancomputing.co.uk> | 1 年前 | |
chore: updated dependencies (#3889) * chore(deps): bump the npm_and_yarn group across 8 directories with 3 updates Bumps the npm_and_yarn group with 3 updates in the / directory: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite), [next](https://github.com/vercel/next.js) and [esbuild](https://github.com/evanw/esbuild). Bumps the npm_and_yarn group with 1 update in the /apps/create-fuels-counter-guide directory: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite). Bumps the npm_and_yarn group with 1 update in the /apps/demo-nextjs directory: [next](https://github.com/vercel/next.js). Bumps the npm_and_yarn group with 1 update in the /apps/demo-react-vite directory: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite). Bumps the npm_and_yarn group with 1 update in the /apps/demo-wallet-sdk-react directory: [next](https://github.com/vercel/next.js). Bumps the npm_and_yarn group with 2 updates in the /packages/fuels directory: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) and [esbuild](https://github.com/evanw/esbuild). Bumps the npm_and_yarn group with 1 update in the /templates/nextjs directory: [next](https://github.com/vercel/next.js). Bumps the npm_and_yarn group with 1 update in the /templates/vite directory: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite). Updates `vite` from 6.1.3 to 6.1.6 - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v6.1.6/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v6.1.6/packages/vite) Updates `next` from 15.2.3 to 15.2.4 - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](https://github.com/vercel/next.js/compare/v15.2.3...v15.2.4) Updates `esbuild` from 0.25.1 to 0.25.2 - [Release notes](https://github.com/evanw/esbuild/releases) - [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md) - [Commits](https://github.com/evanw/esbuild/compare/v0.25.1...v0.25.2) Updates `vite` from 6.1.3 to 6.1.6 - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v6.1.6/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v6.1.6/packages/vite) Updates `next` from 15.2.3 to 15.2.4 - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](https://github.com/vercel/next.js/compare/v15.2.3...v15.2.4) Updates `vite` from 6.1.3 to 6.1.6 - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v6.1.6/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v6.1.6/packages/vite) Updates `next` from 15.2.3 to 15.2.4 - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](https://github.com/vercel/next.js/compare/v15.2.3...v15.2.4) Updates `vite` from 6.1.3 to 6.1.6 - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v6.1.6/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v6.1.6/packages/vite) Updates `esbuild` from 0.25.1 to 0.25.2 - [Release notes](https://github.com/evanw/esbuild/releases) - [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md) - [Commits](https://github.com/evanw/esbuild/compare/v0.25.1...v0.25.2) Updates `next` from 15.2.3 to 15.2.4 - [Release notes](https://github.com/vercel/next.js/releases) - [Changelog](https://github.com/vercel/next.js/blob/canary/release.js) - [Commits](https://github.com/vercel/next.js/compare/v15.2.3...v15.2.4) Updates `vite` from 6.1.3 to 6.1.6 - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v6.1.6/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v6.1.6/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-version: 6.1.6 dependency-type: direct:development dependency-group: npm_and_yarn - dependency-name: next dependency-version: 15.2.4 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: esbuild dependency-version: 0.25.2 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: vite dependency-version: 6.1.6 dependency-type: direct:development dependency-group: npm_and_yarn - dependency-name: next dependency-version: 15.2.4 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: vite dependency-version: 6.1.6 dependency-type: direct:development dependency-group: npm_and_yarn - dependency-name: next dependency-version: 15.2.4 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: vite dependency-version: 6.1.6 dependency-type: direct:development dependency-group: npm_and_yarn - dependency-name: esbuild dependency-version: 0.25.2 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: next dependency-version: 15.2.4 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: vite dependency-version: 6.1.6 dependency-type: direct:development dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <support@github.com> * Changeset --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Peter Smith <peter@blueoceancomputing.co.uk> | 1 年前 | |
fix: integration tests fail silently (#2992) * chore: increase playwright timeout * chore: temp enable integration tests in CI * chore: return result of test-ci script * chore: playwright not to auto open html report * chore: revert increased page timeouts * chore: disable integration tests * chore: remove redundant comment * chore: changeset * chore: enable pr release * chore: bump connectors and run integration against PR * chore: revert further changes * chore: use master lock | 1 年前 | |
chore: upgrade `fuel-core` to `0.44.0` (#3901) * Bumped versions * Sync'd fuel-core schema * Separated `INSUFFICIENT_FUNDS` and `MAX_COINS_REACHED` * Fixed error message for `PredicateVerificationFailed` * Revert "Separated `INSUFFICIENT_FUNDS` and `MAX_COINS_REACHED`" This reverts commit e05e72d8dfd2b37271467bd560f9c4485c596c42. * Allow proper mapping of `INSUFFICIENT_FUNDS_OR_MAX_COINS` error * Bumped `@fuels/asm` * Changeset * Added metadata to the `INSUFFICIENT_FUNDS_OR_MAX_COINS` error * Lintfix * Update .changeset/full-carpets-lose.md * Update .changeset/full-carpets-lose.md * Update .changeset/full-carpets-lose.md * Only bump version * Testing with binaries committed * Added logging to binary finding * Is it a faulty bin? * Use correct architecture for Vercel * rollback bin changes * Remove binaries * Install correct version * Testing publishing preview * deploy * Fix env * Use correct argument * Move to output * Removed CWD * Change dir * chore: added build * Added token * Added action * Missing shell * Please build * Added debug * Use latest corepack * Remove corepack version check * Added template build * Pull envs * Delete `vercel.json` * Fix? * Echo out deployment URL's * Echo out deployment URL's * Added PR comment * Revert "Only bump version" This reverts commit 6c4287774310c980eef8237df324a2ff8de4a890. * Revert "Added logging to binary finding" This reverts commit cead8c3323f20c8f3de55031038b9cded2a3c6e8. * Update id * Added conditional outcome comment * Pls * Ensure all deployments successful * Added missing project ID * Added environment support for Vercel deploy * Fixed inputs * Single equality check * Added deployment for the releases * Missing nightly option * Added `assetId` to error message * Fixed error message --------- Co-authored-by: Sérgio Torres <30977845+Torres-ssf@users.noreply.github.com> | 10 个月前 | |
feat: add `pnpm create fuels` CLI tool (#1565) | 2 年前 | |
chore: added noImplicitOverride option to config (#3384) * chore(packages): added noImplicitOverride option to config * chore(packages): added missed modifiers in BN class * chore(packages): added missed modifiers * chore(packages): added missed modifiers * chore(packages): fix changeset file * Update .changeset/strange-starfishes-raise.md Co-authored-by: Peter Smith <peter@blueoceancomputing.co.uk> * Update packages/abi-coder/src/encoding/coders/EnumCoder.ts Co-authored-by: Peter Smith <peter@blueoceancomputing.co.uk> * Update packages/abi-coder/src/encoding/coders/StructCoder.ts Co-authored-by: Peter Smith <peter@blueoceancomputing.co.uk> * Update packages/abi-coder/src/encoding/coders/OptionCoder.ts Co-authored-by: Peter Smith <peter@blueoceancomputing.co.uk> * Update packages/abi-coder/src/encoding/coders/OptionCoder.ts Co-authored-by: Peter Smith <peter@blueoceancomputing.co.uk> * chore: added noImplicitOverride option to config * Delete .changeset/strange-starfishes-raise.md --------- Co-authored-by: Peter Smith <peter@blueoceancomputing.co.uk> | 1 年前 | |
Replace `mocha+nyc` with `jest` (#70) | 4 年前 | |
refactor: add turborepo, pnpm and tsup (#238) * chore: update package-lock.json * refactor: add turbo repo for run monorepo tasks * refactor: use pnpm instead of npm * chore: configure pnpm on github actions * fix(typechain-target-fuels): missing dependency * fix: exclude dist and node_modules on base tsconfig * chore: remove package-lock.json * chore: ignore .turbo folders * refactor(merkle-shared): create an index.ts entry point * refactor(wordlists): create an index.ts entry point * fix(providers): typescript reference warning * chore: formatting base files with prettier * refactor: use tsup to build files with esm/cjs/iife formats * fix(wallet): add test utils for build * chore: add postinstall script * fix(example-contract): build script using pnpm and workspace packages * chore: use jest config as typescript file * chore: remove tsconfig references * chore: update pnpm-lock.yml * fix: github action build execution * fix: github actions * chore: rename actions * chore: update readme | 4 年前 | |
fix: enable `fuel-core` node cleanup to work in Bun (#3438) * fix: issue with bun not kill processes * chore: removed `console.log`'s from tests * chore: ensure all process children killed * chore: changeset * chore: release * chore: fix test * chore: un-release * chore: pls fix * chore: include custom .d.ts files * chore: fix test * chore: removed flaky check * chore: suppressing errors | 1 年前 | |
chore: add initial `depcheck` using knip (#2026) Co-authored-by: Daniel Bate <djbate23@gmail.com> Co-authored-by: Peter Smith <peter@blueoceancomputing.co.uk> | 2 年前 | |
feat: add `forc` tests to create fuels (#3585) * feat: added tests * chore: added test workflow * chore: fix CI * chore: bump `forc` to `0.66.6` * chore: changeset * docs: updated docs * chore: added `forc` to knip * chore: fix namespaces * chore: update templates * chore: appeasing the `forc fmt` * chore: fix import * chore: changeset * Update .changeset/lemon-avocados-walk.md * Update .changeset/lemon-avocados-walk.md * chore: ignore forc --------- Co-authored-by: Sérgio Torres <30977845+Torres-ssf@users.noreply.github.com> | 1 年前 | |
feat: implement typedoc in vitepress (#1115) * feat: implement typedoc in docs * feat: add typedoc to address and interfaces * feat: generate typedoc docs * feat: implment typedoc in vitepress * feat: add api docs readme * chore: linting * chore: changeset * chore: update docs git ignore to exclude built docs * chore: remove api docs files * chore: update typedoc config * docs: update interface typedoc * feat: include typedoc in vitepress dev script * feat: reslove tsdoc linting warnings --------- Co-authored-by: danielbate <--global> | 2 年前 | |
chore: fix flaky Vitest tests in browser environment (#3883) * include optimize deps * add try/catch block to server listen * add changeset | 1 年前 | |
chore: add browser testing infrastructure (#2622) * Revert "chore: revert(add browser testing infrastructure) (#2618)" This reverts commit 6184bc9cd0982360b880d4cf4c2f112def1bd70b. * chore: rebuild * chore: rebuild * chore: add coverage to optimze dep config * chore: exclude dep * chore: rebuild * chore: rebuild * chore: rebuild * chore: rebuild * chore: rebuild * chore: rebuild * chore: rebuild * chore: rebuild * chore: rebuild * chore: rebuild * chore: bundle test * chore: changeset * chore: remove changeset | 1 年前 | |
chore: stop using `setupFiles` in tests (#2944) | 1 年前 | |
chore: upgrade NPM package versions (#3688) * chore: bump versions * chore: bump minor + patch versions * chore: fix build error * chore: revert upgrades to typedocs * chore: download markdown lint * chore: ensure we kill the lint-md-links api process * chore: bump vitest * changeset * chore: fix deprecated type * bump vitest coverage * allow vitest to filter projects * readded configs * fxi knip | 1 年前 | |
fix: Vitest matcher integration (#3477) * fix: vitest matcher setup * chore: changeset * chore: fix issue with expect import * chore: release to npm * chore: remove release tag * chore: added peer dependency * chroe: lock | 1 年前 | |
chore: sunsetting `demo-react-cra` (#3882) * Sunsetting Create React App * Removing obsolete configs | 1 年前 | |
chore: upgrade NPM package versions (#3688) * chore: bump versions * chore: bump minor + patch versions * chore: fix build error * chore: revert upgrades to typedocs * chore: download markdown lint * chore: ensure we kill the lint-md-links api process * chore: bump vitest * changeset * chore: fix deprecated type * bump vitest coverage * allow vitest to filter projects * readded configs * fxi knip | 1 年前 |
以下内容由 AI 翻译,如有问题请 点此提交 issue 反馈
fuels-ts
Fuel 的 TypeScript SDK。
安装 (文档)
npm install fuels --save
连接(文档)
| 网络 | URL |
|---|---|
| Mainnet | https://mainnet.fuel.network/v1/graphql |
| Testnet | https://testnet.fuel.network/v1/graphql |
| Localhost | 运行本地 Fuel 节点 |
import { Provider } from 'fuels';
const NETWORK_URL = 'https://mainnet.fuel.network/v1/graphql';
const provider = new Provider(NETWORK_URL);
const chainId = await provider.getChainId();
const gasConfig = await provider.getGasConfig();
const baseAssetId = await provider.getBaseAssetId();
console.log({ chainId, gasConfig, baseAssetId });
创建新的 dApp (文档)
$ npm create fuels
◇ What is the name of your project? #
│ my-fuel-project
└
⚡️ Success! Created a fullstack Fuel dapp at: my-fuel-project.
体验 fuels 命令行工具 (文档)
$ npm install fuels --save
$ npm fuels --help
Commands:
init [options] Create a sample `fuel.config.ts` file
build [options] Build Sway programs and generate Typescript for them
deploy [options] Deploy contracts to the Fuel network
dev [options] Start a Fuel node with hot-reload capabilities
node [options] Start a Fuel node using project configs
typegen [options] Generate Typescript from Sway ABI JSON files
versions [options] Check for version incompatibilities
help [command] Display help for command
深入文档:
fuels init— 创建新的fuels.config.ts文件fuels build— 构建forc工作区并为所有内容生成 Typescript 类型fuels deploy— 部署工作区合约并将其 ID 保存到 JSON 文件fuels dev— 启动具有热重载功能的 Fuel 节点
官方文档
- 安装 Fuel 工具链 — https://docs.fuel.network/guides/installation/
- Typescript SDK — https://docs.fuel.network/docs/fuels-ts
- Fuel 钱包 SDK — https://docs.fuel.network/docs/wallet
- Rust SDK — https://docs.fuel.network/docs/fuels-rs
- GraphQL 游乐场 — https://docs.fuel.network/docs/graphql
- Forc — https://docs.fuel.network/docs/forc
- Sway — https://docs.fuel.network/docs/sway
- Fuel Core — https://github.com/FuelLabs/fuel-core
- Fuel VM — https://docs.fuel.network/docs/specs/fuel-vm
- Fuel 规范 — https://docs.fuel.network/docs/specs
应用与生态系统
- Fuel 桥 — https://app.fuel.network/bridge
- 区块浏览器 — https://app.fuel.network
- 生态系统应用 — https://app.fuel.network/ecosystem
联系我们
论坛— https://forum.fuel.networkDiscord— https://discord.gg/xfpK4Pe
贡献
许可证
此仓库的主要许可证为 Apache 2.0,详见 LICENSE。