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

Feature/sbt extension #114

Merged
merged 116 commits into from
Apr 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
f2ab8fc
wip
AlexParshh Dec 25, 2022
7f39629
add SBTWallet interface
ferrell-code Jan 4, 2023
196d1f3
remove duplicate code
ferrell-code Jan 9, 2023
ebe35e3
add reserveSbt call
ferrell-code Jan 13, 2023
6ff6ad2
single TransferPost and fix compile
zqhxuyuan Jan 15, 2023
e625b72
fix metadata function
ferrell-code Jan 17, 2023
a350e88
add get metadata helper function
ferrell-code Jan 17, 2023
196333f
add sign_with_transaction_data
zqhxuyuan Jan 18, 2023
c6ac955
use v0.5.9 and add transaction_data
zqhxuyuan Jan 18, 2023
438b312
return transaction data when mintSBT
zqhxuyuan Jan 18, 2023
91be4ad
fix metadata bug in mintSbt
ferrell-code Jan 19, 2023
31da0e3
fix example
ferrell-code Jan 22, 2023
8cbe082
Add identity proof to sdk
ferrell-code Jan 26, 2023
f5a1c15
fix identity and do clippy lints
ferrell-code Jan 28, 2023
4a95b08
add callback methods
ferrell-code Feb 1, 2023
ba2bad7
make only build tx and change example
ferrell-code Feb 2, 2023
969119a
remove duplicate ledger
ferrell-code Feb 3, 2023
b61ca61
change storage for sbt metadata
ferrell-code Feb 5, 2023
16e5524
feat: add changelog and release system (#84)
bhgomes Feb 15, 2023
86de2ff
add asset info of mint sbt result and verifiy feature
zqhxuyuan Feb 21, 2023
fe092fb
back to using separate rpc
ferrell-code Feb 21, 2023
c5fce2d
merge
ferrell-code Feb 21, 2023
e09f601
fix rpc used
ferrell-code Feb 21, 2023
84fdc8f
fix asset id
zqhxuyuan Feb 22, 2023
30f5ebc
Merge branch 'fer-sbt-ledger' of github.com:Manta-Network/sdk into fe…
zqhxuyuan Feb 22, 2023
61df365
fix get metadata
ferrell-code Feb 24, 2023
65feea8
init private wallet without connected api (#86)
Kevingislason Feb 28, 2023
4d0d7b4
merge to master
ferrell-code Feb 28, 2023
8436ce3
fix broken merge
ferrell-code Mar 1, 2023
53e64e4
add sbt sdk readme
zqhxuyuan Mar 8, 2023
37392c5
Merge branch 'fer-sbt-ledger' of github.com:Manta-Network/sdk into fe…
zqhxuyuan Mar 8, 2023
37e7a87
Include Sinks in ToPublic Transaction (#102)
ferrell-code Mar 8, 2023
2f25ccb
update doc
zqhxuyuan Mar 9, 2023
966ae57
rename
zqhxuyuan Mar 11, 2023
ef5deb9
Change all occurrences of private address to zkAddress (#88)
ghzlatarev Mar 14, 2023
1354398
merge main
zqhxuyuan Mar 15, 2023
1537f92
initial sync
SupremoUGH Mar 15, 2023
9db7c5a
feat: optimization initial sync
DanielZhangReal Mar 17, 2023
e4e9506
it works
SupremoUGH Mar 20, 2023
cacb760
Merge branch 'initial_sync' of https://github.com/Manta-Network/sdk i…
SupremoUGH Mar 20, 2023
838858a
fix: add multi balance api
DanielZhangReal Mar 21, 2023
0502b70
Merge branch 'initial_sync' of https://github.com/Manta-Network/sdk i…
DanielZhangReal Mar 21, 2023
739046e
chore: add initial_pull
DanielZhangReal Mar 21, 2023
c8d2149
fix: initial new account optimize
DanielZhangReal Mar 21, 2023
7c67ec9
fix: utxos decode
DanielZhangReal Mar 21, 2023
c28693d
chore: add debugger for test
DanielZhangReal Mar 21, 2023
405d4b5
names changed
SupremoUGH Mar 21, 2023
55fdbb1
fix: replace initial_pull to dense_initial_pull
DanielZhangReal Mar 22, 2023
8ba465d
fix: add isInitialed logic
DanielZhangReal Mar 22, 2023
1bd8157
fix: add resetState
DanielZhangReal Mar 22, 2023
d8391fb
chore: upgrade version
DanielZhangReal Mar 22, 2023
e974e39
fix: update resetState
DanielZhangReal Mar 22, 2023
98c07b0
remove reset state for initial sync
SupremoUGH Mar 22, 2023
12fff65
mut to immut
SupremoUGH Mar 22, 2023
99d21b6
docs
SupremoUGH Mar 22, 2023
4ee1010
changelog
SupremoUGH Mar 22, 2023
7b61e77
fix: upgrade @polkadot package version && remove useless package
DanielZhangReal Mar 23, 2023
6447c48
fix: upgrade version && update resetState logic
DanielZhangReal Mar 23, 2023
ddc5a9b
merge in sbt feature
ferrell-code Mar 23, 2023
620511f
feat: refactor sdk logic
DanielZhangReal Mar 25, 2023
e59a6f3
feat: refactor sdk logic
DanielZhangReal Mar 26, 2023
5c544d5
Delete baseWallet.ts
DanielZhangReal Mar 26, 2023
bf4f872
Delete privateWallet.ts
DanielZhangReal Mar 26, 2023
1d73744
fix: rpc config bugs
DanielZhangReal Mar 26, 2023
9f175cd
fix: sign_with_sbt_transaction_data
DanielZhangReal Mar 27, 2023
7e02b11
fix: export wallet
DanielZhangReal Mar 27, 2023
5e6558d
chore: update sdk types
DanielZhangReal Mar 28, 2023
89eff51
fix: update sbt
DanielZhangReal Mar 28, 2023
2976a52
fix: rm useless auth_context code
DanielZhangReal Mar 28, 2023
3e83402
feat: add extension example
DanielZhangReal Mar 28, 2023
ce34796
chore: update name
DanielZhangReal Mar 28, 2023
a490fa7
fix: sbt toPrivate bugs
DanielZhangReal Mar 29, 2023
9d1792f
fix: ui bugs
DanielZhangReal Mar 29, 2023
5037044
chore: update log
DanielZhangReal Mar 30, 2023
d4807a4
feat: update api logic
DanielZhangReal Mar 31, 2023
23ab5dc
fix: wasm error type
DanielZhangReal Mar 31, 2023
5f06ffc
fix: wasm error type
DanielZhangReal Mar 31, 2023
4ff09d1
fix: wasm error type
DanielZhangReal Mar 31, 2023
6e90b50
feat: add identityProof
DanielZhangReal Apr 1, 2023
5cff5bd
fix: update extension example
DanielZhangReal Apr 1, 2023
2b56b3a
fix: example
DanielZhangReal Apr 1, 2023
5dbcf77
fix: update example
DanielZhangReal Apr 1, 2023
357a7b4
chore: update style
DanielZhangReal Apr 1, 2023
6f12dfa
feat: add doc
DanielZhangReal Apr 3, 2023
718156f
feat: update sdk-example doc
DanielZhangReal Apr 3, 2023
b0db38a
chore: doc update
DanielZhangReal Apr 3, 2023
05075f0
get auth
SupremoUGH Apr 3, 2023
a1e4731
fix: update sbt logic
DanielZhangReal Apr 4, 2023
fe45202
fix bugs
DanielZhangReal Apr 4, 2023
2f0c676
feat: add sdk docs
DanielZhangReal Apr 4, 2023
1105cc2
fix: docs
DanielZhangReal Apr 4, 2023
674d286
merge: signer_extension
DanielZhangReal Apr 4, 2023
c1e482a
fix: private wallet
DanielZhangReal Apr 4, 2023
022c00a
fix: update docs
DanielZhangReal Apr 4, 2023
5ead236
fix: add changelog & fix bugs
DanielZhangReal Apr 5, 2023
beb3630
chore: update docs
DanielZhangReal Apr 5, 2023
eddc0bc
fix: update docs
DanielZhangReal Apr 5, 2023
bd223c6
chore: rm useless file
DanielZhangReal Apr 5, 2023
7ffca78
fix: update sdk example
DanielZhangReal Apr 6, 2023
843b642
fix: update sdk example
DanielZhangReal Apr 6, 2023
2775c7e
fix: build sbt posts docs
DanielZhangReal Apr 6, 2023
0a1c397
update: sbt docs
DanielZhangReal Apr 6, 2023
6ec22a8
update: sdk docs
DanielZhangReal Apr 6, 2023
d316c70
sbt sync
SupremoUGH Apr 6, 2023
e9f208c
downgrade to 0.5.13
SupremoUGH Apr 6, 2023
9e42fb0
chore: update sdk example
DanielZhangReal Apr 6, 2023
749abcc
chore: remove sign_with_transaction_data method
DanielZhangReal Apr 6, 2023
ddf8444
update sign_with_transaction_data to convert TransferPost in wasm-wallet
ferrell-code Apr 6, 2023
8673d46
use old format
ferrell-code Apr 7, 2023
f950a41
chore: upgrade sdk version
DanielZhangReal Apr 7, 2023
50719ea
chore: optimize balance
DanielZhangReal Apr 7, 2023
a0a24e7
impl suggestion
SupremoUGH Apr 7, 2023
70be732
fix: format multiSbtPostBuild response
DanielZhangReal Apr 7, 2023
a7ad6cb
chore: upgrade version
DanielZhangReal Apr 7, 2023
c9a38ec
chore: update config.json
DanielZhangReal Apr 7, 2023
71bf6d9
update: update changelog doc
DanielZhangReal Apr 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@


---

Before we can merge this PR, please make sure that all the following items have been checked off:

- [ ] Linked to an issue with discussion and accepted design OR have an explanation in the PR that describes this work.
- [ ] Added **one** line describing your change in [`CHANGELOG.md`](https://github.com/manta-network/sdk/blob/main/CHANGELOG.md) and added the appropriate `L-` label to the PR.
- [ ] Re-reviewed `Files changed` in the GitHub PR explorer.

8 changes: 8 additions & 0 deletions .github/RELEASE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**Each reviewer needs to check that these conditions are met before approving the PR.**

- [ ] Checked that the release is on the correct branch name of the form `release-vX.Y.Z` and the PR title matches `Release vX.Y.Z`
- [ ] Added the `L-skip` label and the relevant `release` label to this PR
- [ ] Updated the [`CHANGELOG.md`](https://github.com/manta-network/sdk/blob/main/CHANGELOG.md)
- [ ] Updated the version number in the following files:
- [ ] `manta-js/package/package.json`

27 changes: 27 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
changelog:
exclude:
labels:
- L-skip
categories:
- title: Added
labels:
- L-added
- title: Changed
labels:
- L-changed
- title: Deprecated
labels:
- L-deprecated
- title: Removed
labels:
- L-removed
- title: Fixed
labels:
- L-fixed
- title: Security
labels:
- L-security
- title: Other Unsorted Updates
labels:
- "*"

18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release
on:
push:
branches:
- 'main'
jobs:
release-on-push:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: rymndhng/release-on-push-action@v0.27.0
with:
bump_version_scheme: norelease
tag_prefix: v
use_github_release_notes: true
max_commits: 128

1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"printWidth": 80,
"singleQuote": true,
"trailingComma": "all",
"proseWrap": "never",
"overrides": [{ "files": ".prettierrc", "options": { "parser": "json" } }],
"importOrderSeparation": true
}
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added

- [\#114](https://github.com/Manta-Network/sdk/pull/114) Refactor SDK logic && Add build SBT posts method, and getIdentityProof && Add docs and examples on how to connect Manta Wallet && Add how to use SDK docs and examples
- [\#108](https://github.com/Manta-Network/sdk/pull/108) Added initial sync method.
- [\#105](https://github.com/Manta-Network/sdk/pull/105) Save while syncing.
- [\#85](https://github.com/Manta-Network/sdk/pull/85) Key-dependent signer function APIs.
- [\#71](https://github.com/Manta-Network/sdk/pull/71) Update to dense pull ledger diff
- [\#51](https://github.com/Manta-Network/sdk/pull/51) Update to MantaPay v1

### Changed
- [\#103](https://github.com/Manta-Network/sdk/pull/103) Update manta-rs to v0.5.12.
- [\#102](https://github.com/Manta-Network/sdk/pull/102) Include sink accounts in ToPublic. Removes `assetIdToUInt8Array` function as it encodes values < 255 incorrectly, now changed to use polkadot.js utility function.
- [\#88](https://github.com/Manta-Network/sdk/pull/88) Update API wording to be consistent with company-wide language.

### Deprecated

### Removed

### Fixed

### Security
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The SDK includes Javascript bindings to the Wallet API.

## Javascript Wallet Bindings

- [`wallet`](wallet)
- [`wallet`](./manta-js/package/src/wallet)

The core logic of the wallet is written in Rust and built from [`manta-rs`](https://github.com/manta-network/manta-rs). To integrate it into Javascript we use the `wasm-bindgen` crate to build the WASM Foreign-Function Interface and then call the WASM functions from Javascript.

Expand Down
36 changes: 0 additions & 36 deletions manta-js/CHANGELOG.md

This file was deleted.

Loading