dfinity / sdk

IC SDK: a Software Development Kit for creating and managing canister smart contracts on the ICP blockchain.
https://internetcomputer.org/developers
Apache License 2.0
170 stars 82 forks source link

feat: add DfxInterface and builder for easier setup #3752

Closed ericswanson-dfinity closed 3 months ago

ericswanson-dfinity commented 3 months ago

Description

Adds DfxInterface and DfxInterfaceBuilder to dfx-core, meant to make it easier to load the dfx configuration and create an agent.

For an example use see: https://github.com/dfinity/dfx-extensions/pull/104/files#diff-f5cfacf098ff19a8547e1a28f532da8dd3edb0fa0c51c0a82d54b237760af60aR33

Companion PR: https://github.com/dfinity/dfx-extensions/pull/104

How Has This Been Tested?

Added unit tests, and also tested in https://github.com/dfinity/dfx-extensions/pull/104.

Checklist: