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

Improved BOC #51

Draft
wants to merge 113 commits into
base: master
Choose a base branch
from
Draft

Improved BOC #51

wants to merge 113 commits into from

Conversation

slavafomin
Copy link
Contributor

Development preview. Work is still in progress.

- introduced TypeScript dependencies
- changed extension of all source files
- renamed files back
- added types for `TonWeb` (module root) and `utils`
- added types for `providers` root module
- updated root module types
- enabled comments generation for declarations

Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
…ption` modules

Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
# Conflicts:
#	src/boc/Cell.js
#	src/index.js
#	src/utils/index.ts
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
- typed 'contract/subscription' module
- typed 'providers/http-provider-utils' module
- typed 'ethjs-unit' module
- done some refactoring and improvements

Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
- typed `ledger` module
- updated some `contract` types related to `ledger`
- added `@ledgerhq` types dependencies
- updated dependencies
- done some refactoring

Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
# Conflicts:
#	package-lock.json
#	package.json
#	src/index.js
#	src/providers/index.js
#	src/utils/common.ts
#	webpack.config.js
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
- extracted common code to a helper functions
- added test for cells with cycles

Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
- #88822c963c8170e00ec33d34fba6dcec565a4424
- #e132173295d2ee2283df0d18871a6f25bc948cf2

Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
… more tests

Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
@slavafomin slavafomin marked this pull request as draft April 27, 2022 12:46
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
Signed-off-by: Slava Fomin II <slava@fomin.io>
- extracted some number types and utilities to the separate module
- added better argument checks for `BitString` methods
- added more tests for `BitString` and dome some refactoring

Signed-off-by: Slava Fomin II <slava@fomin.io>
- written documentation for `BitString`
- introduced `typedoc` and `gh-pages` tools for documentation generation

Signed-off-by: Slava Fomin II <slava@fomin.io>
- renamed `array` property to `bytes` and made private, added getter for BC
- renamed `cursor` property to `nextBitIndex` and made private, added getter for BC
- renamed `length` property to `bitLength` and made private, added getter for BC
- refactored `clone()` method to use only getters

Signed-off-by: Slava Fomin II <slava@fomin.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant