Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: migrate guide/types snippets #3340

Merged
merged 144 commits into from
Oct 23, 2024
Merged

Conversation

Torres-ssf
Copy link
Contributor

@Torres-ssf Torres-ssf commented Oct 16, 2024

Checklist

  • All changes are covered by tests (or not applicable)
  • All changes are documented (or not applicable)
  • I reviewed the entire PR myself (preferably, on GH UI)
  • I described all Breaking Changes (or there's none)

maschad
maschad previously approved these changes Oct 21, 2024
Copy link
Member

@maschad maschad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work on this @Torres-ssf

@Torres-ssf
Copy link
Contributor Author

Torres-ssf commented Oct 22, 2024

Nice one @Torres-ssf 🥇

Should we have tests around the snippets?

@petertonysmith94 Every doc snippet file will have a corresponding test generated for it.

Copy link
Contributor

Coverage Report:

Lines Branches Functions Statements
73.57%(-2.35%) 70.24%(+0.2%) 74.66%(-0.37%) 73.81%(-2.24%)
Changed Files:
Ok File (✨=New File) Lines Branches Functions Statements
🔴 ✨ apps/docs-snippets2/src/typegend/contracts/BytecodeInput.ts 66.66%
(+66.66%)
100%
(+100%)
0%
(+0%)
66.66%
(+66.66%)
✨ apps/docs-snippets2/src/typegend/contracts/BytecodeInputFactory.ts 100%
(+100%)
100%
(+100%)
100%
(+100%)
100%
(+100%)
🔴 ✨ apps/docs-snippets2/src/typegend/contracts/EchoAssetId.ts 66.66%
(+66.66%)
100%
(+100%)
0%
(+0%)
66.66%
(+66.66%)
✨ apps/docs-snippets2/src/typegend/contracts/EchoAssetIdFactory.ts 100%
(+100%)
100%
(+100%)
100%
(+100%)
100%
(+100%)
🔴 ✨ apps/docs-snippets2/src/typegend/contracts/EchoBytes.ts 66.66%
(+66.66%)
100%
(+100%)
0%
(+0%)
66.66%
(+66.66%)
✨ apps/docs-snippets2/src/typegend/contracts/EchoBytesFactory.ts 100%
(+100%)
100%
(+100%)
100%
(+100%)
100%
(+100%)
🔴 ✨ apps/docs-snippets2/src/typegend/contracts/EchoEmployeeDataVector.ts 66.66%
(+66.66%)
100%
(+100%)
0%
(+0%)
66.66%
(+66.66%)
✨ apps/docs-snippets2/src/typegend/contracts/EchoEmployeeDataVectorFactory.ts 100%
(+100%)
100%
(+100%)
100%
(+100%)
100%
(+100%)
🔴 ✨ apps/docs-snippets2/src/typegend/contracts/EchoEnum.ts 80%
(+80%)
100%
(+100%)
66.66%
(+66.66%)
91.66%
(+91.66%)
✨ apps/docs-snippets2/src/typegend/contracts/EchoEnumFactory.ts 100%
(+100%)
100%
(+100%)
100%
(+100%)
100%
(+100%)
🔴 ✨ apps/docs-snippets2/src/typegend/contracts/EchoEvmAddress.ts 66.66%
(+66.66%)
100%
(+100%)
0%
(+0%)
66.66%
(+66.66%)
✨ apps/docs-snippets2/src/typegend/contracts/EchoEvmAddressFactory.ts 100%
(+100%)
100%
(+100%)
100%
(+100%)
100%
(+100%)
🔴 ✨ apps/docs-snippets2/src/typegend/contracts/EchoRawSlice.ts 66.66%
(+66.66%)
100%
(+100%)
0%
(+0%)
66.66%
(+66.66%)
✨ apps/docs-snippets2/src/typegend/contracts/EchoRawSliceFactory.ts 100%
(+100%)
100%
(+100%)
100%
(+100%)
100%
(+100%)
🔴 ✨ apps/docs-snippets2/src/typegend/contracts/EchoStdString.ts 66.66%
(+66.66%)
100%
(+100%)
0%
(+0%)
66.66%
(+66.66%)
✨ apps/docs-snippets2/src/typegend/contracts/EchoStdStringFactory.ts 100%
(+100%)
100%
(+100%)
100%
(+100%)
100%
(+100%)
🔴 ✨ apps/docs-snippets2/src/typegend/contracts/EchoValues.ts 66.66%
(+66.66%)
100%
(+100%)
0%
(+0%)
66.66%
(+66.66%)
✨ apps/docs-snippets2/src/typegend/contracts/EchoValuesFactory.ts 100%
(+100%)
100%
(+100%)
100%
(+100%)
100%
(+100%)
🔴 ✨ apps/docs-snippets2/src/typegend/contracts/InputOutputTypes.ts 66.66%
(+66.66%)
100%
(+100%)
0%
(+0%)
66.66%
(+66.66%)
✨ apps/docs-snippets2/src/typegend/contracts/InputOutputTypesFactory.ts 100%
(+100%)
100%
(+100%)
100%
(+100%)
100%
(+100%)
🔴 ✨ apps/docs-snippets2/src/typegend/contracts/SumOptionU8.ts 66.66%
(+66.66%)
100%
(+100%)
0%
(+0%)
66.66%
(+66.66%)
✨ apps/docs-snippets2/src/typegend/contracts/SumOptionU8Factory.ts 100%
(+100%)
100%
(+100%)
100%
(+100%)
100%
(+100%)
🔴 ✨ apps/docs-snippets2/src/types/arrays.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/bech32.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/bytes.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/raw-slice.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/std-string.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/string.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/structs.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/tuples.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/vectors.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/address/creating-an-address.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/address/from-a-b256.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/address/from-a-public-key.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/address/utilities-function-1.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/address/utilities-function-2.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/address/utilities-function-3.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/asset-id/intro.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/asset-id/using-an-asset-id-1.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/asset-id/using-an-asset-id-2.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/bits256/converting-between-b256-uint8.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/bits256/generating-random-b256.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/bits256/support-from-address-class.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/bits512/b512-in-the-sdk.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/bits512/echoing-a-b512.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/bytes32/converting-between-byte.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/bytes32/generating-random-bytes32.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/enums/using-an-invalid-enum-case.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/enums/using-an-invalid-enum-type.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/enums/using-an-invalid-enum-value.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/enums/using-enums-of-enums-1.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/enums/using-enums-of-enums-2.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/enums/using-sway-enums.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/evm-address/creating-an-evm.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/evm-address/intro.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/evm-address/using-an-evm-address-1.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/evm-address/using-an-evm-address-2.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/native-parameters/address.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/native-parameters/asset-id.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/native-parameters/contract-id.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/native-parameters/identity-address.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/native-parameters/identity-contract.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/numbers/for-u64-and-u256-1.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/numbers/for-u64-and-u256-2.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/numbers/for-u64-and-u256-3.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/numbers/for-u8-u16-and-u32-1.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/numbers/for-u8-u16-and-u32-2.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/options/example-option-u8.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)
🔴 ✨ apps/docs-snippets2/src/types/options/overview-of-option.ts 0%
(+0%)
100%
(+100%)
100%
(+100%)
0%
(+0%)

@Torres-ssf Torres-ssf enabled auto-merge (squash) October 22, 2024 18:34
@Torres-ssf Torres-ssf merged commit 88d7535 into master Oct 23, 2024
24 checks passed
@Torres-ssf Torres-ssf deleted the st/docs/migrate-types-snippets branch October 23, 2024 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Requests pertinent to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate snippets from guide/types
5 participants