OCAP-JS 變更日誌

OCAP-JS 是 OCAP(Open Chain Access Protocol)的 Javascript SDK。作為 ArcBlock 的區塊鏈應用開發框架之一,OCAP-JS 目前負責資產鏈及其 SDK,並已從 2020 年 12 月 23 日的 0.5.0 版更新至 1.8.22 版。
OCAP-JS 更新
ArcBlock 發布了 OCAP-JS 1.8.22 版的最新變更日誌,包含新功能與更新。
1.8.22 (April 07, 2021)
- feat: 加入 nft endpoints in node/blocklet nft
- chore: 清理 useless logic
- feat: 支援 create and verify status list vc
- chore: 加入 nft endpoint spec
1.8.21 (April 06, 2021)
- chore: 加入 more integration test for exchange
- fix: 修正 improve declare and migrate verify-info error
- fix: 修正 improve transfer verify-info pipe error message
- fix: 修正 exchange signer extracting is buggy
- fix: 修正 修正應 ensure account.tokens to be an array for getXState
1.8.20 (April 06, 2021)
- fix: 修正 delegated exchange
1.8.19 (April 05, 2021)
- chore: 加入 delegated exchange e2e test case
- fix: 修正 test case for delegated acquire_asset
- fix: 修正 memory example test case config
- chore: 清理 useless methods on ocap client
- chore: 加入 doc for mysterious delegator issue
- fix: 修正 delegated acquire_asset not setting owner correctly
1.8.18 (April 02, 2021)
- chore: 更新 e2e test case for delegate
- fix: 修正 delegated transfer example
- fix: 修正 format delegation error
1.8.17 (April 01, 2021)
- chore: 改善 reindex script
- chore: refactor asset-chain api code and add indexer script
- chore: 移動 indexer from resolver to indexdb lib
- chore: 重新命名 indexdb migration script
1.8.16 (March 31, 2021)
- chore: 加入 e2e test case for delegated acquire_asset
- chore: 使用 shorthand methods to acquire/mint asset
- feat: 支援 delegation in acquire_asset_v2
- feat: 加入 prepareAcquireAsset and acquireAsset on client
- feat: 啟用 delegation for v2 protocols in config
1.8.15 (March 30, 2021)
- fix: 修正 much better graphql response error handling
1.8.14 (March 30, 2021)
- fix: 修正 修正不應 throw if tx is null when expanding context txs
1.8.13 (March 29, 2021)
- fix: 修正 test case in asset-nft package
- feat: getAccountTokens support get by account and token
1.8.12 (March 25, 2021)
- chore: 更新 sdk-util to latest version
- fix: 修正 did-auth handler not handling incorrect events
1.8.11 (March 25, 2021)
- feat: 移動 nft templates to nft package
1.8.10 (March 25, 2021)
- fix(indexdb): should parse datetime correctly for timeFilter
- chore: 加入 test case for transfer and exchange v2
- feat(protocol): support list of factories for factory input
- fix(security): verify token list size for factory
- fix(security): limit max tokens that can be transfered and exchanged
- fix: 修正 no name@version logged in ci
1.8.9 (March 24, 2021)
- fix: 修正 修正不應 allow create assets from factory
1.8.8 (March 24, 2021)
- feat: 支援 tokenSymbols in tx state
1.8.7 (March 24, 2021)
- ci: 修正 ci
1.8.6 (March 24, 2021)
- feat: 加入 fs-chain-api blocklet
- feat: 加入 asset-chain-api blocklet
- feat: 整合 block-explorer with asset-chain
- feat: 整合 block-explorer with chain-manager
1.8.4 (March 24, 2021)
- fix: 修正 indexdb test case
- feat: 支援 indexing tokenSymbols for transaction
- feat: 支援 getAccountTokens api
- fix: 修正 throw proper error when getXState with empty param
- chore: 移動 custom error to util
- fix: 修正 p2pAddress compiled to p2PAddress
1.8.3 (March 24, 2021)
- fix: 修正 修正應 enrich context transactions when get state
1.8.2 (March 24, 2021)
- feat: 將 failed transaction into statedb 持久化
- fix: 修正 graphql client can throw errors as expected
- chore: 移除 status-code file
- fix: 修正 revert PagingInput => PageInputInput to make things compatible
1.8.1 (March 23, 2021)
- fix: 修正 asset-chain blocklet should listen when ready
1.8.0 (March 23, 2021)
- fix: 修正 indexdb test case
- fix: 修正 listTopAccounts not working for fs/memory indexdb
- fix: 修正 listTopAccounts not working for elasticsearch indexdb
- fix: 修正 修正應 set correct paging when do fast return on indexdb
- fix: 修正 修正應 set correct paging when do fast return on indexdb
- feat: 支援 list assets by factory address
- chore: 確認 e2e test pass for qldb and elasticsearch
- fix: 修正 test case for qldb
- fix: 修正 asset factory not correctly indexed in elasticsearch
- fix: 修正 token index should include faucetSupply field
- fix: 修正 修正應 set proper timeout for e2e tests
- fix: 修正 修正應 index mint/acquire with factory
- fix: 修正 acquire asset not working with qldb as expected
1.7.10 (March 23, 2021)
- fix: 修正 consensus version should be same for getNodeInfo and getChainInfo
- fix: 修正 qldb statedb not ready as expected
- [skip ci] update readme
1.7.9 (March 23, 2021)
- fix: 修正 missing and invalid eum def in proto
- [skip ci] update readme
1.7.8 (March 23, 2021)
- feat: 加入 nft template lib here
- fix: 修正 rename npm scripts
- fix: 修正 createToken api not working properly
1.7.7 (March 22, 2021)
- feat: 支援 create token with faucet supply
- feat: 支援 faucet with tokens
1.7.6 (March 22, 2021)
- fix: 修正 make e2e test case pass
- fix: 修正 make all version of transfer and exchange protocols work
- feat: 將 all new transactions as v2 標記
- feat: 支援 v2 transactions in config
- chore: make all tx protocols back compatible
1.7.5 (March 22, 2021)
- fix: 修正 listFactories data not properyly formatted #86
1.7.4 (March 21, 2021)
- fix: 修正 blocklet bundle should enable --monorepo flag
1.7.3 (March 20, 2021)
- chore: 更新 e2e test case to cover duplication merge
- feat: 合併 duplicate contract calls before saving to statedb
- feat: 支援 getQuota when validate hook contract
- chore: 移除 already resolved fixme
- fix: 修正 always use sha3-256 to produce v1.1 jwt token
- feat: 加入 e2e test for instant asset acquiring and minting
- fix: 修正 asset minting now works in e2e test
- fix: 修正 use lokijs to backup memory statedb
- fix: 修正 do not expose statedb from context to inner pipelines
- feat: 加入 test case for instant settlement when acquire-asset
- chore: index accounts field
- feat: 支援 instant settlement on acquire-asset
- fix: 修正 修正應 check transfer amount in contract dsl
- feat: 加入 factory hook contract compile when creating factory
- feat: 加入 factory hook validation when creating factory
- chore: 加入 .env file creation script
- feat: 完成 contract source compile and validate logic
- chore: 加入 test case for toTokenAddress
- feat: 加入 skeleton for contract dsl
- chore: 重新建置 sdk docs
1.7.2 (March 18, 2021)
- fix: 修正 修正應 use jwt v1.1 for newer native wallet
- fix: 修正 disable netlify build trigger on publish
1.7.1 (March 17, 2021)
- fix: 修正 asset-chain blocklet is not starting
1.7.0 (March 17, 2021)
- fix: 修正 hash jwt message before sign for 1.1
- fix: 修正 fromAppdid should return privateKey as hex
- chore: 加入 e2e test run command for all examples
- fix: 修正 test case for factory state and add for token state
- fix: 修正 indexdb testsuite failure because api result change
- chore: 改善 test case for new tx protocol (#81)
- feat: 加入 new factory related indexdb api (#78)
- fix bn.js dep bug in @core/util
- chore: review updates for create-token-tx (#76)
- fix: 修正 es indexdb base static method call
- chore: merge with create-token-tx branch
- fix: 修正 duplicate dependency in @ocap client
- feat: 支援 asset factory in elasticsearch indexb
- fix: 修正 修正應 properly index assets field for acquire/mint asset
- feat: 支援 asset factory in fs/memory indexb
- feat: 支援 asset factory in indexb
- feat: 加入 description field in factory input variable
- feat: 加入 gql api for fs & memory db
- fix: 修正 sort bug in elasticsearch indexdb
- feat: 加入 tokens query filter to listTopAccounts
- feat: 加入 getAssetFactoryState gql api
- fix: 修正 tx receiver get fn
- fix: 修正 tx protocols test case
- chore: 清理 protobuf files
- fix: 修正 ocap asset package version
- feat: 支援 mint_asset and its tests
- chore: 啟用 mint_asset in defaut chain config
- chore: extract acquire logic to pipe
- chore: 改善 test case for acquire_asset tx
- 加入 listTokens api
- chore: 加入 basic test case for acquire_asset
- chore: 啟用 acquire_asset in defaut chain config
- 移除 getTokensInfo api and remove decimal attribute
- feat: 基本 acquire_asset workflow
- feat: 加入 last settlement for factory state
- chore: 改善 asset proto comments
- chore: 加入 test case for asset mint
- chore: 加入 dependency on asset lib in protocols
- chore: 改善 asset lib api
- chore: 更新 yarn.lock
- Merge branch 'master' into feat-asset-factory
- feat: 移動 factory related to standalone package
- feat: 加入 elastic support
- feat: 加入 qldb support
- feat: 基本 client side asset mint workflow
- chore: 改善 asset factory data structure
- chore: raw asset factory mint flow
- feat: 加入 exchange tokens tx
- feat: 支援 array when do nested any decoding
- chore: 改善 asset factory error codes
- feat: 加入 getTokensInfo graphql interface
- feat: 加入 transfer tokens
- feat: consistent input structure for factory input
- feat: 支援 update factory state when asset updated
- feat: 支援 asset factory validating when creating
- feat: 加入 asset factory validation logic
- feat: 支援 customize table when extract state
- feat: 支援 saving factory state on create asset
- fix: 修正 decodeAny should leave data untouched if already decoded
- refactor: 變更 the time of emit statedb events
- feat: 加入 asset factory creating process
- feat: 支援 decode nested data when decodeAnySafe
- feat: 加入 create_token_tx
- fix: 修正 remove enums and use strings instead
- fix: 修正 missing export for factory state
- chore: 加入 factory table in statedb
- chore: 加入 factory state
- chore: 改善 asset factory state
- feat: 加入 create_token_tx proto
- chore: 使用 new proto in schema and client
- chore: 加入 proto for new asset protocols
1.6.5 (March 15, 2021)
- fix: 修正 修正不應 use int in gql schema #70
1.6.4 (March 12, 2021)
- fix: 修正 not handling base16 addresses correctly
- fix: 修正 did-auth jwt should work with ethereum types
- fix: 修正 ethereum did check should tolerance prefix
1.6.3 (March 10, 2021)
- chore: 使用 latest verify-updater pipe in tx protocol
- feat: 支援 more flexible updater verify for asset
- fix: 修正 build issue caused by sed/gsed
1.6.2 (March 10, 2021)
- fix: 修正 verify-signature pipe should handle delegation as expected
- chore: 加入 ethereum related test case in protocols
- chore: 加入 ethereum test case in ocap client
- fix: 修正 修正應 use bn for balance verification
1.6.1 (March 09, 2021)
- 加入 ocap/did/nft sdk
0.6.13 (February 25, 2021)
- fix: 修正 修正應 return cursor as 0 when no next page
0.6.12 (February 25, 2021)
- fix: 修正 rename es index and polish mapping
- fix: 修正 disable dynamic index mapping to avoid unexpected bugs
- chore: 停用 pretty print to get smaller log
0.6.11 (February 25, 2021)
- fix: 修正 include asset.data in listAssets to avoid breaking wallets
0.6.10 (February 25, 2021)
- fix: 修正 asset-chain transaction config for poke
- fix: 修正 getForgeState should set txConfig.declare.cost to 0
- fix: 修正 ocap config schema should include declare related
0.6.9 (February 24, 2021)
- fix: 修正 disable graphql query validation to fix listTransactions api
0.6.8 (February 24, 2021)
- fix: 修正 gql result creator should handle empty result properly
0.6.7 (February 24, 2021)
- fix: 修正 format data error in resolver
0.6.6 (February 23, 2021)
- fix: 修正 ocap config caused crash in production build
0.6.5 (February 23, 2021)
- fix: 修正 blocklet deployment env
0.6.4 (February 23, 2021)
- chore: merge blocklet publish and deploy job
0.6.3 (February 23, 2021)
- chore: refactor github workflow scripts
0.6.2 (February 23, 2021)
- feat: 加入 asset-chain deploy script
- feat: bump blocklet version
- fix: 修正 change blocklet version to 0.6.1
0.6.1 (February 23, 2021)
- feat: 加入 common test suites for indexdb table
0.6.0 (February 23, 2021)
- feat: polish coverage for indexdb
- feat: 加入 qldb indexdb interface
- feat: 加入 elasticsearch indexdb interface
- feat: 加入 fs and memory indexdb interface
- feat: 加入 fs and memory statedb interface
- feat: 加入 interface interface
- feat: 加入 statedb interface
- feat: 加入 state implementations
- feat: 加入 forge-compatible gql resolvers
- feat: 加入 forge-compatible gql package
- feat: 加入 forge-compatible tx protocol implementations
- feat: 加入 forge-compatible tx pipeline implementations
- chore: make repo dependencies and dev workflow up-to-date
0.5.4 (December 31, 2020)
- chore: 更新 forge sdk version
0.5.3 (December 30, 2020)
- chore: 更新 forge sdk version
0.5.2 (December 28, 2020)
- chore: 更新 forge sdk version
0.5.1 (December 23, 2020)
- chore: 更新 forge sdk version
0.5.0 (December 23, 2020)
- chore: 更新 forge sdk version
ArcBlock 平台
- 前往 https://www.arcblock.io/en/platform 取得最新版本與更新資訊,也可了解如何只需幾個步驟即可開始使用。