From 1ba2a1d13700c30ea8921470b09743983628df7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20B=C4=83ncioiu?= Date: Sat, 30 Mar 2024 20:03:58 +0200 Subject: [PATCH 1/8] Additional exports. --- package-lock.json | 4 ++-- package.json | 2 +- src/index.ts | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index af1070ce..5e0fa2fe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@multiversx/sdk-core", - "version": "13.0.0-beta.13", + "version": "13.0.0-beta.14", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@multiversx/sdk-core", - "version": "13.0.0-beta.13", + "version": "13.0.0-beta.14", "license": "MIT", "dependencies": { "@multiversx/sdk-transaction-decoder": "1.0.2", diff --git a/package.json b/package.json index ee253e16..1c090859 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-core", - "version": "13.0.0-beta.13", + "version": "13.0.0-beta.14", "description": "MultiversX SDK for JavaScript and TypeScript", "main": "out/index.js", "types": "out/index.d.js", diff --git a/src/index.ts b/src/index.ts index 385c250a..74fc1a8f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,10 @@ require("./globals"); export * from "./account"; +export * from "./adapters"; export * from "./address"; export * from "./asyncTimer"; +export * from "./converters"; export * from "./errors"; export * from "./gasEstimator"; export * from "./interface"; From 24055859b832db94388d7e78897eba6d9a3da8ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20B=C4=83ncioiu?= Date: Sat, 30 Mar 2024 20:07:50 +0200 Subject: [PATCH 2/8] Re-generate docs (as for v12). --- .github/workflows/update-docs.yml | 50 +++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/update-docs.yml diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml new file mode 100644 index 00000000..3613a44c --- /dev/null +++ b/.github/workflows/update-docs.yml @@ -0,0 +1,50 @@ +name: Update docs + +on: + workflow_dispatch: + release: + types: [released] + pull_request: + branches: [ main, development, feat/* ] + +permissions: + contents: write + +jobs: + update-docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/checkout@v4 + with: + ref: "gh-pages" + repository: ${{ github.event.pull_request.head.repo.full_name }} + path: "docs" + + - uses: actions/setup-node@v4 + with: + node-version: 18 + registry-url: https://registry.npmjs.org/ + + - name: Install dependencies + run: | + npm install -g typedoc + + - name: Re-generate docs + run: | + MAJOR_VERSION=v$(node -p "require('./package.json').version.split('.')[0]") + DOCS_OUTPUT_FOLDER=${GITHUB_WORKSPACE}/docs/${MAJOR_VERSION} + + mkdir -p $DOCS_OUTPUT_FOLDER + + npm ci + typedoc --out $DOCS_OUTPUT_FOLDER src/index.ts --includeVersion + + cd ${GITHUB_WORKSPACE}/docs + + # See: https://github.com/actions/checkout/blob/main/README.md#push-a-commit-using-the-built-in-token + git config user.name github-actions + git config user.email github-actions@github.com + git commit -am "Re-generated docs." --allow-empty + git push \ No newline at end of file From 58bd52b665922cb6100f900bc78bba5415fbeb7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20B=C4=83ncioiu?= Date: Sat, 30 Mar 2024 20:25:25 +0200 Subject: [PATCH 3/8] Attempt to fix exports. --- .github/workflows/update-docs.yml | 87 ++++++++++++++++--------------- src/converters/index.ts | 2 +- src/index.ts | 1 + 3 files changed, 46 insertions(+), 44 deletions(-) diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml index 3613a44c..882ab0c8 100644 --- a/.github/workflows/update-docs.yml +++ b/.github/workflows/update-docs.yml @@ -1,50 +1,51 @@ name: Update docs on: - workflow_dispatch: - release: - types: [released] - pull_request: - branches: [ main, development, feat/* ] + workflow_dispatch: + release: + types: [released] + pull_request: + branches: [main, development, feat/*] permissions: - contents: write + contents: write jobs: - update-docs: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/checkout@v4 - with: - ref: "gh-pages" - repository: ${{ github.event.pull_request.head.repo.full_name }} - path: "docs" - - - uses: actions/setup-node@v4 - with: - node-version: 18 - registry-url: https://registry.npmjs.org/ - - - name: Install dependencies - run: | - npm install -g typedoc - - - name: Re-generate docs - run: | - MAJOR_VERSION=v$(node -p "require('./package.json').version.split('.')[0]") - DOCS_OUTPUT_FOLDER=${GITHUB_WORKSPACE}/docs/${MAJOR_VERSION} - - mkdir -p $DOCS_OUTPUT_FOLDER - - npm ci - typedoc --out $DOCS_OUTPUT_FOLDER src/index.ts --includeVersion - - cd ${GITHUB_WORKSPACE}/docs - - # See: https://github.com/actions/checkout/blob/main/README.md#push-a-commit-using-the-built-in-token - git config user.name github-actions - git config user.email github-actions@github.com - git commit -am "Re-generated docs." --allow-empty - git push \ No newline at end of file + update-docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/checkout@v4 + with: + ref: "gh-pages" + repository: ${{ github.event.pull_request.head.repo.full_name }} + path: "docs" + + - uses: actions/setup-node@v4 + with: + node-version: 18 + registry-url: https://registry.npmjs.org/ + + - name: Install dependencies + run: | + npm install -g typedoc + + - name: Re-generate docs + run: | + MAJOR_VERSION=v$(node -p "require('./package.json').version.split('.')[0]") + DOCS_OUTPUT_FOLDER=${GITHUB_WORKSPACE}/docs/${MAJOR_VERSION} + + rm -rf $DOCS_OUTPUT_FOLDER + mkdir -p $DOCS_OUTPUT_FOLDER + + npm ci + typedoc --out $DOCS_OUTPUT_FOLDER src/index.ts --includeVersion + + cd ${GITHUB_WORKSPACE}/docs + + # See: https://github.com/actions/checkout/blob/main/README.md#push-a-commit-using-the-built-in-token + git config user.name github-actions + git config user.email github-actions@github.com + git commit -am "Re-generated docs." --allow-empty + git push diff --git a/src/converters/index.ts b/src/converters/index.ts index f0f6ba90..f43e67fc 100644 --- a/src/converters/index.ts +++ b/src/converters/index.ts @@ -1 +1 @@ -export { TransactionsConverter } from "./transactionsConverter"; +export * from "./transactionsConverter"; diff --git a/src/index.ts b/src/index.ts index 74fc1a8f..36dc5493 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,6 +10,7 @@ export * from "./gasEstimator"; export * from "./interface"; export * from "./interfaceOfNetwork"; export * from "./logger"; +export * from "./message"; export * from "./networkParams"; export * from "./relayedTransactionV1Builder"; export * from "./relayedTransactionV2Builder"; From 8d8206b9f50a88fe2ca10a70c8d439f25f40acf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20B=C4=83ncioiu?= Date: Sat, 30 Mar 2024 20:40:55 +0200 Subject: [PATCH 4/8] Fix workflow. --- .github/workflows/update-docs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml index 882ab0c8..17205f1c 100644 --- a/.github/workflows/update-docs.yml +++ b/.github/workflows/update-docs.yml @@ -47,5 +47,6 @@ jobs: # See: https://github.com/actions/checkout/blob/main/README.md#push-a-commit-using-the-built-in-token git config user.name github-actions git config user.email github-actions@github.com - git commit -am "Re-generated docs." --allow-empty + git add . + git commit -m "Re-generated docs." --allow-empty git push From 36ed4fb5f12c6bffc49311469089b9114dad822b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20B=C4=83ncioiu?= Date: Mon, 1 Apr 2024 11:11:57 +0300 Subject: [PATCH 5/8] Fix indent. --- .editorconfig | 3 ++ .github/workflows/update-docs.yml | 83 ++++++++++++++++--------------- 2 files changed, 45 insertions(+), 41 deletions(-) diff --git a/.editorconfig b/.editorconfig index 25437d3b..c2b51d9a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,3 +9,6 @@ end_of_line = lf insert_final_newline = true indent_style = space indent_size = 4 + +[*.yml] +indent_size = 2 diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml index 17205f1c..47cd2bd8 100644 --- a/.github/workflows/update-docs.yml +++ b/.github/workflows/update-docs.yml @@ -1,52 +1,53 @@ name: Update docs on: - workflow_dispatch: + workflow_dispatch: release: - types: [released] - pull_request: + types: [released] + pull_request: branches: [main, development, feat/*] permissions: - contents: write - -jobs: + contents: write + + jobs: update-docs: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/checkout@v4 - with: - ref: "gh-pages" - repository: ${{ github.event.pull_request.head.repo.full_name }} - path: "docs" - - - uses: actions/setup-node@v4 - with: - node-version: 18 - registry-url: https://registry.npmjs.org/ - + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/checkout@v4 + with: + ref: "gh-pages" + repository: ${{ github.event.pull_request.head.repo.full_name }} + path: "docs" + + - uses: actions/setup-node@v4 + with: + node-version: 18 + registry-url: https://registry.npmjs.org/ + - name: Install dependencies - run: | - npm install -g typedoc - + run: | + npm install -g typedoc + - name: Re-generate docs run: | - MAJOR_VERSION=v$(node -p "require('./package.json').version.split('.')[0]") - DOCS_OUTPUT_FOLDER=${GITHUB_WORKSPACE}/docs/${MAJOR_VERSION} - - rm -rf $DOCS_OUTPUT_FOLDER - mkdir -p $DOCS_OUTPUT_FOLDER - - npm ci - typedoc --out $DOCS_OUTPUT_FOLDER src/index.ts --includeVersion - - cd ${GITHUB_WORKSPACE}/docs - - # See: https://github.com/actions/checkout/blob/main/README.md#push-a-commit-using-the-built-in-token - git config user.name github-actions - git config user.email github-actions@github.com - git add . - git commit -m "Re-generated docs." --allow-empty - git push + MAJOR_VERSION=v$(node -p "require('./package.json').version.split('.')[0]") + DOCS_OUTPUT_FOLDER=${GITHUB_WORKSPACE}/docs/${MAJOR_VERSION} + + rm -rf $DOCS_OUTPUT_FOLDER + mkdir -p $DOCS_OUTPUT_FOLDER + + npm ci + typedoc --out $DOCS_OUTPUT_FOLDER src/index.ts --includeVersion + + cd ${GITHUB_WORKSPACE}/docs + + # See: https://github.com/actions/checkout/blob/main/README.md#push-a-commit-using-the-built-in-token + git config user.name github-actions + git config user.email github-actions@github.com + git add . + git commit -m "Re-generated docs." --allow-empty + git push + \ No newline at end of file From ceb860c77b33a28ff1d563b3e545813b92fcb3d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20B=C4=83ncioiu?= Date: Mon, 1 Apr 2024 12:46:03 +0300 Subject: [PATCH 6/8] Undo formatting. --- .github/workflows/update-docs.yml | 84 +++++++++++++++---------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml index c4e8ed9a..ac3f00da 100644 --- a/.github/workflows/update-docs.yml +++ b/.github/workflows/update-docs.yml @@ -1,49 +1,49 @@ name: Update docs on: - workflow_dispatch: - release: - types: [released] + workflow_dispatch: + release: + types: [released] permissions: - contents: write + contents: write jobs: - update-docs: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/checkout@v4 - with: - ref: "gh-pages" - repository: ${{ github.event.pull_request.head.repo.full_name }} - path: "docs" - - - uses: actions/setup-node@v4 - with: - node-version: 18 - registry-url: https://registry.npmjs.org/ - - - name: Install dependencies - run: | - npm install -g typedoc - - - name: Re-generate docs - run: | - MAJOR_VERSION=v$(node -p "require('./package.json').version.split('.')[0]") - DOCS_OUTPUT_FOLDER=${GITHUB_WORKSPACE}/docs/${MAJOR_VERSION} - - mkdir -p $DOCS_OUTPUT_FOLDER - - npm ci - typedoc --out $DOCS_OUTPUT_FOLDER src/index.ts --includeVersion - - cd ${GITHUB_WORKSPACE}/docs - - # See: https://github.com/actions/checkout/blob/main/README.md#push-a-commit-using-the-built-in-token - git config user.name github-actions - git config user.email github-actions@github.com - git add . - git commit -m "Re-generated docs." --allow-empty - git push + update-docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/checkout@v4 + with: + ref: "gh-pages" + repository: ${{ github.event.pull_request.head.repo.full_name }} + path: "docs" + + - uses: actions/setup-node@v4 + with: + node-version: 18 + registry-url: https://registry.npmjs.org/ + + - name: Install dependencies + run: | + npm install -g typedoc + + - name: Re-generate docs + run: | + MAJOR_VERSION=v$(node -p "require('./package.json').version.split('.')[0]") + DOCS_OUTPUT_FOLDER=${GITHUB_WORKSPACE}/docs/${MAJOR_VERSION} + + mkdir -p $DOCS_OUTPUT_FOLDER + + npm ci + typedoc --out $DOCS_OUTPUT_FOLDER src/index.ts --includeVersion + + cd ${GITHUB_WORKSPACE}/docs + + # See: https://github.com/actions/checkout/blob/main/README.md#push-a-commit-using-the-built-in-token + git config user.name github-actions + git config user.email github-actions@github.com + git add . + git commit -m "Re-generated docs." --allow-empty + git push From 60f2279c9fb976aae05b476db7385209a9350b51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20B=C4=83ncioiu?= Date: Mon, 1 Apr 2024 12:46:15 +0300 Subject: [PATCH 7/8] Undo formatting. --- .editorconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index c2b51d9a..eeb94cd4 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,5 +10,3 @@ insert_final_newline = true indent_style = space indent_size = 4 -[*.yml] -indent_size = 2 From e76ff2b14a17e6318093e43ecb7357f4fa214091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20B=C4=83ncioiu?= Date: Mon, 1 Apr 2024 12:46:45 +0300 Subject: [PATCH 8/8] Undo formatting. --- .editorconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index eeb94cd4..25437d3b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,4 +9,3 @@ end_of_line = lf insert_final_newline = true indent_style = space indent_size = 4 -