Skip to content

✨ Merge new structure and dependencies #80

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

Merged
merged 175 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
e938304
:sparkles: melos
neeboo Mar 26, 2023
2f8f0ad
🎨 Add special dylib path.
iota9star Mar 26, 2023
11ffd6a
:sparkles: added test env to distribute dynamic libs
neeboo Mar 27, 2023
9804d78
:fire: remove files in agent_dart
neeboo Mar 27, 2023
761072d
:fire: remove protobuf in agent_dart
neeboo Mar 27, 2023
890226a
:fire: remove example in agent_dart_ffi
neeboo Mar 27, 2023
c9ea2df
:sparkles: await example
neeboo Mar 27, 2023
d8db862
:sparkles: added btc_wallet
neeboo Jun 2, 2023
cb24bd6
:sparkles: remove bip174 for shrink
neeboo Jun 2, 2023
11d5ff9
:sparkles: added getPublicKey
neeboo Jun 8, 2023
6fc0e99
:sparkles: added getPublickey and switch index
neeboo Jun 8, 2023
8f68ace
:sparkles: added new_derived
neeboo Jun 11, 2023
015988b
🎨 Merge branch 'main' and fix lints
iota9star Jun 16, 2023
1749cb6
🎨 Rename `deriveIndex`
iota9star Jun 18, 2023
2c358e4
:sparkles: added create derived descriptor
neeboo Jun 18, 2023
682c821
✨ Add `getAddressInfo`
iota9star Jun 20, 2023
b209cd8
:sparkles: added getAddressInfo FFI
neeboo Jun 20, 2023
0437d4e
:sparkles: remove bdk origin
neeboo Jun 26, 2023
a2e5cef
🚀 Improve `BitcoinBalance`
iota9star Jun 26, 2023
12f4619
:sparkles: modify getBalance
neeboo Jun 27, 2023
d0b064b
:sparkles: added getBalance api
neeboo Jun 27, 2023
ecf8f13
✨ Add calc fee method
iota9star Jun 27, 2023
a3f9d3b
:sparkles: added Address.getAddressType
neeboo Jun 28, 2023
32af33e
:sparkles: modify getAddressType
neeboo Jun 28, 2023
16437c6
✨ Add caching to the `handleUtxo`.
iota9star Jun 28, 2023
59aa380
⚡️ Improve `Address`
iota9star Jun 28, 2023
1883807
🔥 Export `bdk`
iota9star Jun 28, 2023
46196a7
✨ Improve `Address`
iota9star Jun 28, 2023
9f0bee6
🔥 Improve codes
iota9star Jun 28, 2023
2b65efa
🚑️ Remove error completer
iota9star Jun 28, 2023
5a96b88
🔥 Remove unused files
iota9star Jun 29, 2023
94c6f78
🚀 Update build script
iota9star Jun 29, 2023
b90def3
🙈 Ignore .cxx for Android
AlexV525 Jun 30, 2023
37b8e07
:sparkles: added signPsbt
neeboo Jul 1, 2023
2b3abf3
:sparkles: added multiSendInscription and multiSendBTC
neeboo Jul 1, 2023
ab36e9b
✨ Add fee methods
iota9star Jul 1, 2023
712a5c1
:bug: try fix getTxFromId
neeboo Jul 4, 2023
0af5a3e
:sparkles: use external getBlockHeight
neeboo Jul 4, 2023
a9990e7
:sparkles: use external api to broadcast and getHeight
neeboo Jul 4, 2023
b57eed0
:sparkles: fix broadcast
neeboo Jul 4, 2023
592a08a
✨ Add `getOrdinalBalance`
iota9star Jul 5, 2023
c71a909
⚡️ Improve `handleUtxo`
iota9star Jul 5, 2023
c01d9af
:sparkles: added signMessage to btc wallet
neeboo Jul 8, 2023
94a52f6
:construction: added bip322 signMessage
neeboo Jul 8, 2023
7e790e6
:construction: support importing single wif private key
neeboo Jul 8, 2023
2afb82d
:sparkles: added wif import , switching hex or wif string
neeboo Jul 8, 2023
9f1339e
:sparkles: added getIdentity
neeboo Jul 8, 2023
be466dc
:sparkles: added signPsbt signPsbts and pushPsbt
neeboo Jul 11, 2023
fed7b8a
:sparkles: dumpPsbt
neeboo Jul 12, 2023
631c9b8
:sparkles: optimized
neeboo Jul 12, 2023
b11a9b8
⚡️ Add `address`
iota9star Jul 13, 2023
cf6689b
:sparkles: fix signPsbt
neeboo Jul 14, 2023
1cb40f3
:sparkles: lint
neeboo Jul 14, 2023
0b7c744
:sparkles: remove initBlockchain
neeboo Jul 15, 2023
b499949
⚡️ Add `AddressType.display`
iota9star Jul 16, 2023
80fedd0
🚑️ Fix select index
iota9star Jul 17, 2023
92896ca
:bug: fix if use from wif
neeboo Jul 17, 2023
ac16187
:sparkles: try fix bip322 schnorr sign
neeboo Jul 20, 2023
e90406f
♻️ Refactor structure
iota9star Jul 28, 2023
2c1e2cb
🔥 Add `getPublicKey` method
iota9star Aug 1, 2023
441d0f1
🔥 Move sign methods to `Wallet`
iota9star Aug 2, 2023
4bf0dd7
👷 Improve the build flow for generating Darwin frameworks
AlexV525 Sep 4, 2023
50dfd58
🚀 Remove scripts and regenerate files
AlexV525 Sep 4, 2023
1139740
:sparkles: added p2pkhtr
neeboo Sep 23, 2023
31abf1c
:sparkles: added p2pkhtr
neeboo Sep 23, 2023
af152fd
👷 Rework build scripts
AlexV525 Oct 1, 2023
45880d4
🔨Fix Darwin build scripts
AlexV525 Dec 29, 2023
94063af
🔧 Update melos bootstraps
AlexV525 Dec 29, 2023
6abb27b
🚀 Update according to new Flutter SDKs and FRB (#72)
AlexV525 Dec 29, 2023
61f28f5
Build scripts
AlexV525 Dec 29, 2023
78ca569
🔧 Fix melos configurations
AlexV525 Dec 30, 2023
15e37b6
🐛 Fix library bundle CMakeLists
AlexV525 Dec 30, 2023
5d4c68c
🐛 Fix FFI helper
AlexV525 Dec 30, 2023
5fcd913
🔨 Add FRB codegen configuration instead of command arguments
AlexV525 Dec 30, 2023
d14f5a7
🐛 Fix dynamic library process issue with multiple FRB plugins
AlexV525 Dec 30, 2023
39b0d2b
🔧 Update *.iml
AlexV525 Dec 30, 2023
0147208
⬆️ Bump `ffigen`
AlexV525 Dec 30, 2023
c4ccdac
⚡️ Improve dynamic library fetching
AlexV525 Dec 31, 2023
f8694bb
🔥 Remove massive tests
AlexV525 Dec 31, 2023
d0b416f
⚡️ Improve `AgentDartImpl` construction and imports
AlexV525 Jan 1, 2024
815af11
⬆️ Dart ^3.0.0
AlexV525 Jan 1, 2024
dd6852b
🔧 Set git dependencies
AlexV525 Jan 1, 2024
7436144
🐛 Fix cargo workspace
AlexV525 Jan 6, 2024
c8a4dce
🔨 Build Android on Windows
AlexV525 Jan 6, 2024
f9be0bc
🐛 Allow test to resolve dynamic library
AlexV525 Jan 17, 2024
3c2f5d1
:recycle: fix address with network
neeboo Jan 17, 2024
9353088
:sparkles: fix testnet problem
neeboo Jan 17, 2024
72cde88
🚀 Roll bridge
AlexV525 Jan 18, 2024
9e49da1
🐛 Fix network in wallet
AlexV525 Jan 19, 2024
c5b732a
🔊 Customizable log print for tx dump
AlexV525 Jan 19, 2024
e66f7bb
🚸 Get network name from `Network`
AlexV525 Jan 19, 2024
a38bd1b
:sparkles: fix sign all hashes
neeboo Jan 19, 2024
952d9ca
🔇 Make tx dump logging mutable
AlexV525 Jan 19, 2024
fb32ec1
🔇 Make tx dump logging mutable x2
AlexV525 Jan 19, 2024
3d602a7
🐛 Consist sign options
AlexV525 Jan 19, 2024
4f109c8
🐛 Fix `TxBuilderResult` inputs/outputs
AlexV525 Jan 20, 2024
6f6dd56
🔨 Allow `melos build:ios`
AlexV525 Jan 22, 2024
9b47e8f
🚀 Allow non-finalized PSBT
AlexV525 Jan 22, 2024
72ae48f
✨ `SignOptionsExtension`
AlexV525 Jan 22, 2024
5d7045b
🚀 Use sign options in sign PBSTs
AlexV525 Jan 23, 2024
ff3183b
🥅 Precise FFI exceptions
AlexV525 Jan 23, 2024
1afa76c
✨ `signWithHex`
AlexV525 Jan 23, 2024
d5acf0c
✨ Add `OPS`
AlexV525 Jan 24, 2024
7d35b24
⚡️ Make `OutPointExt` const
AlexV525 Jan 24, 2024
4496c35
✨ Add `SigHashType`
AlexV525 Jan 24, 2024
0bb5f6a
⚡️ Improve `OutPoint*` and constant constructors
AlexV525 Jan 26, 2024
7208bbd
⬆️ Roll dependencies
AlexV525 Jan 30, 2024
7892dec
🔧 Publish to none
AlexV525 Jan 30, 2024
b071a4c
🥅 Assert empty txs for tx builder
AlexV525 Feb 5, 2024
4006cbb
🚀 More values for Network
AlexV525 Feb 5, 2024
d9952d9
✨ Add `OutPointExt.o`
AlexV525 Feb 5, 2024
1ee777d
🔥 Remove unused methods
AlexV525 Feb 5, 2024
3c48ef1
🔧 Add melos build win script
AlexV525 Feb 5, 2024
6adcf50
✨ Add `OutPointExtWithScript`
AlexV525 Feb 6, 2024
8405214
⚡️ Improve bdk classes
AlexV525 Feb 7, 2024
909d2fc
🔨 Fix invalid manifest path for `cargo ndk`
AlexV525 Feb 9, 2024
8c7e776
:sparkles: added passcode
neeboo Feb 20, 2024
61af6d0
⚡️ Expand passcode as much as possible
AlexV525 Feb 20, 2024
da2d277
⚡️ Improve WIF
AlexV525 Feb 21, 2024
5a0418a
:sparkles: rebase
neeboo Feb 22, 2024
03d8396
🐛 Fix WIF public key obtain
AlexV525 Feb 22, 2024
1f25d71
⚡️ Sort and improve address type displays
AlexV525 Feb 28, 2024
55e4588
⬆️ Roll dependencies
AlexV525 May 6, 2024
f305b75
🐛 Fix `AddressIndex.New` conversions
AlexV525 May 13, 2024
f42adaa
📌 Attempt to fix rust compile version conflicts
AlexV525 May 13, 2024
c3b5c13
🐛 Workaround x86_64 Android ABI build
AlexV525 May 30, 2024
fc3a724
⚡️ Improve identity type infer
AlexV525 Jun 11, 2024
eb7461e
⚡️ Improve `cborEncode` return type
AlexV525 Jun 11, 2024
ecff190
✨ Add `PartiallySignedTransaction.parse`
AlexV525 Jun 11, 2024
5e34593
✨ Add `Wallet.getDescriptorSecretKey`
AlexV525 Jun 11, 2024
e1085b4
✨ Add WIF hex to compressed format support
AlexV525 Jun 11, 2024
ebb90e7
🚸 Add PSBT `.psbtHex`
AlexV525 Jun 16, 2024
65006ee
⚡️ Improve PSBT parsing
AlexV525 Jun 16, 2024
5695aa0
♻️ Migrate to FRB v2
AlexV525 Jul 2, 2024
71f6bdd
⏪️ Use `int` rather than `BigInt`
AlexV525 Jul 2, 2024
05801a1
🐛 Fix freezing
AlexV525 Jul 2, 2024
05cdd3c
🚚 Rename `RustLib` to `AgentDart`
AlexV525 Jul 3, 2024
ceca225
🐛 Fix Darwin configurations
AlexV525 Jul 3, 2024
bc16bd4
🔧 Unify versions and authors
AlexV525 Jul 3, 2024
30c8ee1
🔥 Remove cargokit package declaration in the gradle
AlexV525 Jul 4, 2024
1d60a8d
🚀 Link native to packages
AlexV525 Jul 5, 2024
f37e26c
🐛 Fix macOS podspec
AlexV525 Jul 5, 2024
b0fc27d
🚨 Ignore build_tool
AlexV525 Jul 19, 2024
0fd2ddc
🔥 Remove Bitcoin Development Kit
AlexV525 Jul 19, 2024
e7f103c
⚡️ Improve wallet exports
AlexV525 Jul 19, 2024
05da876
⬆️ Roll deps
AlexV525 Jul 19, 2024
ed1b121
✨ Support composite_query in candid (#64)
iota9star Sep 6, 2023
ac02262
🚑️ Fix composite query support in actor.ts.
iota9star Sep 25, 2023
de5e39d
⏪️ Revert `identityProviderDefault` (#67)
AlexV525 Oct 3, 2023
9412015
⬆️ Roll deps (#68)
AlexV525 Oct 3, 2023
0944db6
✅ Improve signer tests
AlexV525 Oct 19, 2023
5a1546f
🙈 Update .pubignore
AlexV525 Oct 27, 2023
da940e4
🐛 Fix encoder with deps and format files (#77)
AlexV525 May 22, 2024
ee60785
Merge branch 'refs/heads/main' into bdk_lite
AlexV525 Jul 28, 2024
ec04c3f
🚀 Roll files
AlexV525 Jul 28, 2024
bcd067e
💚 Update runnable workflow
AlexV525 Jul 28, 2024
4940ef4
🔥 Remove dependabot
AlexV525 Jul 30, 2024
3962684
🚀 Expand WIF conversion with multiple methods
AlexV525 Jul 30, 2024
f5f1806
💚 Use melos for the workflow
AlexV525 Aug 6, 2024
2a6af43
⚡️ Fix FFI BLS
AlexV525 Aug 6, 2024
1df8471
⏪️ Use overrides agent dependencies
AlexV525 Aug 6, 2024
e77a489
🔥 Remove files
AlexV525 Aug 6, 2024
42707fe
⚡️ Replace symlinks before publish
AlexV525 Aug 6, 2024
48aec08
💚 Use macos runner
AlexV525 Aug 6, 2024
53d0d62
🔥 Handles symlinks
AlexV525 Aug 6, 2024
64b270c
✅ Fix test FFI init library name determine
AlexV525 Aug 6, 2024
b468903
👷 Update publish configs
AlexV525 Aug 6, 2024
3a08426
🔥 Link shared files
AlexV525 Oct 8, 2024
07ac8b0
🚀 [ICRC-1] Implement `Principal.subAccount`
AlexV525 Oct 8, 2024
f4ece00
Merge branch 'refs/heads/main' into bdk_lite
AlexV525 Oct 8, 2024
3699da6
📌 Update versions
AlexV525 Oct 8, 2024
44e6074
📝 Fix README
AlexV525 Oct 8, 2024
0458ccb
🔖 1.0.0-dev.25
AlexV525 Oct 8, 2024
9fc18fe
📝 CHANGELOG
AlexV525 Oct 8, 2024
e882c80
👷 Update publish workflow
AlexV525 Oct 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 23 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,32 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Dart and Flutter Package Publisher
- name: Replace symlinks before publish
run: ./scripts/replace_symlinks_before_publish.sh

- name: Publish agent_dart
uses: k-paxian/dart-package-publisher@master
with:
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
force: true
relativePath: packages/agent_dart
skipTests: true
suppressBuildRunner: true

- name: Publish agent_dart_base
uses: k-paxian/dart-package-publisher@master
with:
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
force: true
relativePath: packages/agent_dart_base
skipTests: true
suppressBuildRunner: true

- name: Publish agent_dart_ffi
uses: k-paxian/dart-package-publisher@master
with:
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
force: true
relativePath: packages/agent_dart_ffi
skipTests: true
suppressBuildRunner: true
20 changes: 13 additions & 7 deletions .github/workflows/runnable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,25 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [macos-latest]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
java-version: '17'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: dart --version
- run: flutter --version
- run: flutter pub get
- run: flutter test ./test/agent_dart_test.dart # This is the only test that's runnable on actions.
- run: dart pub publish --dry-run
- uses: bluefireteam/melos-action@v3
- name: Replace symlinks
run: ./scripts/replace_symlinks_before_publish.sh
- run: cargo build --package=agent_dart
- run: cd packages/agent_dart_base && dart test ./test/agent_dart_base_test.dart
- name: Publish dry run
run: melos run publish-dry-run
if: github.repository == 'AstroxNetwork/agent_dart'
35 changes: 22 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,38 @@
.dart_tool/
.idea/
.vscode/
.iml

.packages
.pub/

build/

.env
pubspec.lock

rust/target
rust/Cargo.lock
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.atom/
.buildlog/
.history
.svn/

_main.dart
# IntelliJ related
*.ipr
*.iws

# Flutter/Dart/Pub related
pubspec_overrides.yaml
**/doc/api/
.pub-cache/
.flutter-plugins
.flutter-plugins-dependencies
**/pubspec.lock

# build files
/platform-build/
/target/
# rust/headers/
# rust/dylib/
# macos/cli/
# macos/libagent_dart.a
# ios/libagent_dart.a
# android/src/main/jniLibs/
# linux/libagent_dart.so
# windows/agent_dart.dll
/Cargo.lock
/platform-build
31 changes: 0 additions & 31 deletions .pubignore

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ that can be found in the LICENSE file. -->

# Changelog

## 1.0.0-dev.25

- Prepare for monorepo.

## 1.0.0-dev.24

- Implement subaccount as `Principal.subAccount`, which also removes the `subAccount` parameter
Expand Down
Loading
Loading