Coin folder structure
Your whole implementation of MyCoin must reside in a mycoin
folder in libs/coin-modules/coin-mycoin
.
You will also need some code in libs/ledger-live-common/src/families/mycoin
, for injection, setup and UI specific requirements.
Here is a typical family folder structure (TS integration):
./libs
βββ coin-modules/coin-mycoin/src
β βββ api
β β βββ index.ts
β βββ bridge
β β βββ broadcast.ts
β β βββ buildTransaction.ts
β β βββ createTransaction.ts
β β βββ estimateMaxSpendable.ts
β β βββ formatters.ts
β β βββ getFeesForTransaction.ts
β β βββ getTransactionStatus.ts
β β βββ prepareTransaction.ts
β β βββ signOperation.ts
β β βββ synchronization.ts
β β βββ index.ts
β βββ logic
β β βββ broadcast.ts
β β βββ craftTransaction.ts
β β βββ estimateFees.ts
β β βββ getBalance.ts
β β βββ lastBlock.ts
β β βββ listOperations.ts
β β βββ signTransaction.ts
β β βββ index.ts
β βββ network
β β βββ explorer.ts
β β βββ index.ts
β βββ signer
β β βββ getAddress.ts
β β βββ index.ts
β βββ test
β β βββ bot-deviceActions.ts
β β βββ bot-specs.ts
β β βββ bridgeDatasetTest.ts
β β βββ cli.ts
β β βββ index.ts
β βββ types
β β βββ bridge.ts
β β βββ errors.ts
β β βββ model.ts
β β βββ signer.ts
β β βββ index.ts
β βββ config.ts
β βββ index.ts
βββ ledger-live-common/src/families/mycoin
β βββ bridge.integration.test.ts
β βββ config.ts
β βββ logic.ts
β βββ react.ts
β βββ setup.ts
β βββ types.ts
β βββ walletApiAdapter.ts
βββ ledgerjs/packages/hw-app-mycoin/src
β βββ MyCoin.ts
β βββ index.ts
βΉοΈ
You can refer to existing implementations to complete given examples, like Polkadot integration.