Releases: onflow/flow-go-sdk
v0.26.2
v0.26.1
v0.26.0
What's Changed
Update to Cadence v0.24.0 (Secure Cadence).
Changelog
- Update to Cadence v0.24 (Secure Cadence) by @janezpodhostnik in #278
- Update Cadence changes to memory metering by @dsainati1 in #265
- Add github actions for getting diff & calling refresh by @codingone21 in #288
New Contributors
- @dsainati1 made their first contribution in #265
- @codingone21 made their first contribution in #288
Full Changelog: v0.25.0...v0.26.0
Version 0.25.0
⭐ Features
HTTP API Implementation
The HTTP API implementation gives you the power to choose between gRPC and HTTP communication methods, and because they both implement the same Client interface the switch is seamless. Please be mindful of the deprecation of the client package, although you can still use deprecated APIs they will be removed in the future. We have prepared a migration guide which you can find here..
Usage of the new client:
// common client interface
var flowClient client.Client
// initialize an http emulator client
flowClient, err := http.NewDefaultEmulatorClient(false)
// initialize a gPRC emulator client
flowClient, err = grpc.NewDefaultEmulatorClient()Direct usage of the client exposes more APIs that are only available for that specific client:
// initialize http specific client
httpClient, err := http.NewHTTPClient(http.EMULATOR_URL)
// initialize grpc specific client
grpcClient, err := grpc.NewGRPCClient(
grpc.EMULATOR_URL,
grpcOpts.WithTransportCredentials(insecure.NewCredentials()),
)Add updated account proof encoding function
The new EncodeAccountProofMessagefunction creates a new account proof message for singing. The encoded message returned does not include the user domain tag. (#264) @bfbachmann
🛠 Improvements
- Fix CloudKMS signer is not threadsafe (#261) @judezhu
- Export CloudKMS functions and add method for accessing KeyManagementClient (#242) @nanuuki
- Remove block signatures (#268) @sideninja
- Extract Cadence templates (#255) @sideninja
- General crypto updates (#266) @tarakby
- Code coverage GitHub Action (#269) @sideninja
- Fix adding account key (#277) @sideninja
- Add block ID in transaction result (#275) @rrrkren
- Implement signature field on Block struct (#251) @HarleyAppleChoi
- Add account proof helpers (#244) @bfbachmann
🐞 Bug Fixes
- Bugfix: bug in example script (#243) @sideninja
- Fix storage used example (#248) @janezpodhostnik
📖 Documentation
- Update broken link (#263) @sideninja
- Don't include year range in licence (#259) @sideninja
- Update index.mdx (#241) @10thfloor
- Correct key weight document (#239) @kerrywei
Maintenance
Version 0.24.0
🛠 Improvements
- Update to Cadence v0.20.1 (#238) @turbolent
📖 Documentation
- Remove broken links (#235) @sideninja
- Update reference to use
self.guestcorrectly (#234) @fee1-dead - Fix documentation title (#229) @sideninja
- Adds missing closing tags (#227) @10thfloor
- Adds missing closing tag (#226) @10thfloor
- Update docs.md (#222) @srinjoyc
- Documentation Updates (#218) @sideninja
- correct Flow emulator link in README (#217) @kerrywei
- fix dead link (#216) @mjudeikis
- Message signing and verification examples (#214) @janezpodhostnik
🙌 New Contributors
Full Changelog: v0.23.0...v0.24.0
Version 0.23.0
🛠 Improvements @sideninja
- Update to Cadence v0.19.1
- Update to Flow Crypto v0.21.3
- Updated third party dependencies
Version 0.22.0
🛠 Improvements
📖 Documentation
- Docs updates (#208) @sideninja
- Update Generating Keys - deadlink (#209) @kimcodeashian
🏠 Housekeeping
- Add non-zero default transaction gas limit (without this some examples will fail when using emulator v0.23.0) (#211) @janezpodhostnik
Version 0.21.0
💥 Breaking Changes
- Remove unused
addressparameter fromcloudkms.Client#SignerForKeymethod (#196) @sideninja
🛠 Improvements
- Update to Cadence v0.18 (#197) @turbolent
- Validate account key weight (#199) @sideninja
- Add
ExecutionReceiptSignaturesandResultApprovalSignaturestoBlockSeal(#170) @beaugunderson
🏠 Housekeeping
- Update security disclosure to direct to docs.onflow.org (#203) @jkan2
- Fix examples to work with the new emulator version (#200) @janezpodhostnik
Version 0.20.0
⭐ Features
- Introduce transaction domain tag (#184) @janezpodhostnik
Version 0.19.0
🐞 Bug Fixes
🛠 Improvements
- Update to Cadence v0.15.0 (#186) @turbolent
- Add support for Google KMS keys with secp256k1 algorithm (#192) @psiemens
- Update
DecodePublicKeyPEMto support ECDSA secp256k1 keys (#183) @tarakby - Simplify nested key structures (#182) @tarakby
📖 Documentation
- Fix example (#191) @moritamori
- Fix broken link on README (#190) @moritamori
- Adds contentType tags. (#164) @10thfloor