@ledgerhq/wallet-api-acre-module 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +220 -0
- package/lib/index.d.ts +15 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +22 -1
- package/lib/index.js.map +1 -1
- package/lib/types.d.ts +15 -0
- package/lib/types.d.ts.map +1 -1
- package/lib-es/index.d.ts +15 -2
- package/lib-es/index.d.ts.map +1 -1
- package/lib-es/index.js +22 -1
- package/lib-es/index.js.map +1 -1
- package/lib-es/types.d.ts +15 -0
- package/lib-es/types.d.ts.map +1 -1
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
# ACRE Wallet API Module
|
|
2
|
+
|
|
3
|
+
This module provides ACRE-specific functionality for the Ledger Live Wallet API, including message signing, transaction signing/broadcasting, and yield-bearing Ethereum address registration.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
### `messageSign`
|
|
8
|
+
|
|
9
|
+
Signs ACRE-specific messages (Withdraw or SignIn) using the specified account.
|
|
10
|
+
|
|
11
|
+
#### Parameters
|
|
12
|
+
|
|
13
|
+
- `accountId` (string): The Ledger Live account ID
|
|
14
|
+
- `message` (AcreMessage): The message to sign (Withdraw or SignIn type)
|
|
15
|
+
- `derivationPath` (string, optional): Relative derivation path from the account (e.g., "0/0")
|
|
16
|
+
- `options` (SignOptions, optional): Hardware wallet app ID and dependencies
|
|
17
|
+
- `meta` (object, optional): Additional metadata
|
|
18
|
+
|
|
19
|
+
#### Returns
|
|
20
|
+
|
|
21
|
+
Returns a `Buffer` containing the signed message.
|
|
22
|
+
|
|
23
|
+
#### Example Usage
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { AcreModule, AcreMessageType } from "@ledgerhq/wallet-api-acre-module";
|
|
27
|
+
|
|
28
|
+
const acreModule = new AcreModule(transport);
|
|
29
|
+
|
|
30
|
+
// Sign a withdrawal message
|
|
31
|
+
const withdrawalMessage = {
|
|
32
|
+
type: AcreMessageType.Withdraw,
|
|
33
|
+
message: {
|
|
34
|
+
to: "0x1234567890123456789012345678901234567890",
|
|
35
|
+
value: "1000000000000000000",
|
|
36
|
+
data: "0x",
|
|
37
|
+
operation: "call",
|
|
38
|
+
safeTxGas: "21000",
|
|
39
|
+
baseGas: "0",
|
|
40
|
+
gasPrice: "20000000000",
|
|
41
|
+
gasToken: "0x0000000000000000000000000000000000000000",
|
|
42
|
+
refundReceiver: "0x0000000000000000000000000000000000000000",
|
|
43
|
+
nonce: "0",
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const signedMessage = await acreModule.messageSign(
|
|
48
|
+
"js:2:ethereum:0x1234567890123456789012345678901234567890:ethereum",
|
|
49
|
+
withdrawalMessage,
|
|
50
|
+
"0/0",
|
|
51
|
+
);
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### `transactionSign`
|
|
55
|
+
|
|
56
|
+
Signs a transaction without broadcasting it.
|
|
57
|
+
|
|
58
|
+
#### Parameters
|
|
59
|
+
|
|
60
|
+
- `accountId` (string): The Ledger Live account ID
|
|
61
|
+
- `transaction` (Transaction): The transaction object in currency family-specific format
|
|
62
|
+
- `options` (TransactionOptions, optional): Hardware wallet app ID and dependencies
|
|
63
|
+
- `meta` (object, optional): Additional metadata
|
|
64
|
+
|
|
65
|
+
#### Returns
|
|
66
|
+
|
|
67
|
+
Returns a `Buffer` containing the signed transaction.
|
|
68
|
+
|
|
69
|
+
#### Example Usage
|
|
70
|
+
|
|
71
|
+
```typescript
|
|
72
|
+
const transaction = {
|
|
73
|
+
family: "evm",
|
|
74
|
+
mode: "send",
|
|
75
|
+
recipient: "0x1234567890123456789012345678901234567890",
|
|
76
|
+
amount: "1000000000000000000",
|
|
77
|
+
gasPrice: "20000000000",
|
|
78
|
+
gasLimit: "21000",
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
const signedTx = await acreModule.transactionSign(
|
|
82
|
+
"js:2:ethereum:0x1234567890123456789012345678901234567890:ethereum",
|
|
83
|
+
transaction,
|
|
84
|
+
);
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### `transactionSignAndBroadcast`
|
|
88
|
+
|
|
89
|
+
Signs and broadcasts a transaction.
|
|
90
|
+
|
|
91
|
+
#### Parameters
|
|
92
|
+
|
|
93
|
+
- `accountId` (string): The Ledger Live account ID
|
|
94
|
+
- `transaction` (Transaction): The transaction object in currency family-specific format
|
|
95
|
+
- `options` (TransactionOptions, optional): Hardware wallet app ID and dependencies
|
|
96
|
+
- `meta` (object, optional): Additional metadata
|
|
97
|
+
|
|
98
|
+
#### Returns
|
|
99
|
+
|
|
100
|
+
Returns a `string` containing the transaction hash.
|
|
101
|
+
|
|
102
|
+
#### Example Usage
|
|
103
|
+
|
|
104
|
+
```typescript
|
|
105
|
+
const transactionHash = await acreModule.transactionSignAndBroadcast(
|
|
106
|
+
"js:2:ethereum:0x1234567890123456789012345678901234567890:ethereum",
|
|
107
|
+
transaction,
|
|
108
|
+
);
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### `registerYieldBearingEthereumAddress`
|
|
112
|
+
|
|
113
|
+
Registers a yield-bearing Ethereum address in Ledger Live, creating both a parent Ethereum account and a token account for the specified token contract.
|
|
114
|
+
|
|
115
|
+
#### Parameters
|
|
116
|
+
|
|
117
|
+
- `ethereumAddress` (string): The Ethereum address to register
|
|
118
|
+
- `tokenContractAddress` (string, optional): The ERC20 token contract address of acre contract
|
|
119
|
+
- `tokenTicker` (string, optional): Alternative to contract address, must be provided with full path (e.g., "ethereum/erc20/acreBTC")
|
|
120
|
+
- `meta` (object, optional): Additional metadata
|
|
121
|
+
|
|
122
|
+
**Note**: Either `tokenContractAddress` or `tokenTicker` must be provided.
|
|
123
|
+
|
|
124
|
+
#### Returns
|
|
125
|
+
|
|
126
|
+
Returns a promise that resolves to an object containing:
|
|
127
|
+
|
|
128
|
+
- `success` (boolean): Whether the registration was successful
|
|
129
|
+
- `accountName` (string): The name of the created account
|
|
130
|
+
- `parentAccountId` (string): The ID of the parent Ethereum account
|
|
131
|
+
- `tokenAccountId` (string): The ID of the token account
|
|
132
|
+
- `ethereumAddress` (string): The registered Ethereum address
|
|
133
|
+
- `tokenContractAddress` (string): The token contract address used
|
|
134
|
+
- `meta` (object, optional): Additional metadata
|
|
135
|
+
|
|
136
|
+
#### Example Usage
|
|
137
|
+
|
|
138
|
+
```typescript
|
|
139
|
+
// Register with token contract address
|
|
140
|
+
const result1 = await acreModule.registerYieldBearingEthereumAddress(
|
|
141
|
+
"0x1234567890123456789012345678901234567890", // Ethereum parent account address
|
|
142
|
+
"0x1234567890123456789012345678901234567890", // Token contract address
|
|
143
|
+
);
|
|
144
|
+
|
|
145
|
+
// Register with token ticker
|
|
146
|
+
const result2 = await acreModule.registerYieldBearingEthereumAddress(
|
|
147
|
+
"0xabcdefabcdefabcdefabcdefabcdefabcdefabcd",
|
|
148
|
+
undefined,
|
|
149
|
+
"ethereum/erc20/acreBTC", // Token ticker with full path
|
|
150
|
+
);
|
|
151
|
+
|
|
152
|
+
// Register with metadata
|
|
153
|
+
const result3 = await acreModule.registerYieldBearingEthereumAddress(
|
|
154
|
+
"0x9876543210987654321098765432109876543210",
|
|
155
|
+
"0x1234567890123456789012345678901234567890",
|
|
156
|
+
undefined,
|
|
157
|
+
{ source: "ACRE protocol", userId: "12345" },
|
|
158
|
+
);
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
#### Supported Tokens
|
|
162
|
+
|
|
163
|
+
For testing and development, you can use these well-known token contract addresses:
|
|
164
|
+
|
|
165
|
+
- **ACRE Bitcoin (acreBTC)**: is the Default token for ACRE protocol aimed to be used here
|
|
166
|
+
- **USDC**: `0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48`
|
|
167
|
+
- **USDT**: `0xdAC17F958D2ee523a2206206994597C13D831ec7`
|
|
168
|
+
- **DAI**: `0x6B175474E89094C44Da98b954EedeAC495271d0F`
|
|
169
|
+
- **WETH**: `0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`
|
|
170
|
+
|
|
171
|
+
#### Behavior
|
|
172
|
+
|
|
173
|
+
- Creates a parent Ethereum account for the provided address
|
|
174
|
+
- Creates a token account linked to the specified token contract
|
|
175
|
+
- Both accounts are immediately visible in Ledger Live
|
|
176
|
+
- Handles duplicate registrations gracefully (returns existing account info)
|
|
177
|
+
- Validates Ethereum address format
|
|
178
|
+
- Provides proper error handling and user feedback
|
|
179
|
+
- Automatically generates unique account names with suffixes for multiple registrations
|
|
180
|
+
- Platform-aware Redux dispatching (ADD_ACCOUNT for mobile, REPLACE_ACCOUNTS for desktop)
|
|
181
|
+
|
|
182
|
+
#### Error Handling
|
|
183
|
+
|
|
184
|
+
The function will throw an error if:
|
|
185
|
+
|
|
186
|
+
- The Ethereum address format is invalid
|
|
187
|
+
- Neither `tokenContractAddress` nor `tokenTicker` is provided
|
|
188
|
+
- The token contract address is invalid or not supported
|
|
189
|
+
- The token ticker is not found in the cryptoassets database
|
|
190
|
+
- There's an issue with the Ledger Live integration
|
|
191
|
+
- The action dispatcher is not available
|
|
192
|
+
|
|
193
|
+
## Installation
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
npm install @ledgerhq/wallet-api-acre-module
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
## Dependencies
|
|
200
|
+
|
|
201
|
+
- `@ledgerhq/wallet-api-client`: Core Wallet API client functionality
|
|
202
|
+
- `@ledgerhq/wallet-api-core`: Core types and utilities
|
|
203
|
+
- `@ledgerhq/types-live`: Ledger Live type definitions
|
|
204
|
+
- `@ledgerhq/types-cryptoassets`: Cryptocurrency type definitions
|
|
205
|
+
|
|
206
|
+
## Testing
|
|
207
|
+
|
|
208
|
+
The module includes comprehensive tests covering:
|
|
209
|
+
|
|
210
|
+
- Message signing (success and error cases)
|
|
211
|
+
- Transaction signing and broadcasting
|
|
212
|
+
- Account registration (mobile and desktop platforms)
|
|
213
|
+
- Error handling and validation
|
|
214
|
+
- Platform-specific Redux dispatching
|
|
215
|
+
|
|
216
|
+
Run tests with:
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
pnpm jest src/wallet-api/ACRE/server.test.ts
|
|
220
|
+
```
|
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
import { CustomModule, Transaction } from "@ledgerhq/wallet-api-client";
|
|
4
|
-
import { AcreMessage, SignOptions, TransactionOptions } from "./types";
|
|
4
|
+
import { AcreMessage, SignOptions, TransactionOptions, RegisterYieldBearingEthereumAddressResult } from "./types";
|
|
5
5
|
export * from "./types";
|
|
6
6
|
export declare class AcreModule extends CustomModule {
|
|
7
7
|
/**
|
|
@@ -9,7 +9,7 @@ export declare class AcreModule extends CustomModule {
|
|
|
9
9
|
* @param accountId - Ledger Live id of the account
|
|
10
10
|
* @param message - Message the user should sign
|
|
11
11
|
* @param derivationPath - The derivation path is a relative derivation path from the account
|
|
12
|
-
* e.g to use the first address of an account, one will request for the
|
|
12
|
+
* e.g to use the first address of an account, one will request for the "0/0" derivation path
|
|
13
13
|
* @param options - Extra parameters
|
|
14
14
|
*
|
|
15
15
|
* @returns Message signed
|
|
@@ -36,5 +36,18 @@ export declare class AcreModule extends CustomModule {
|
|
|
36
36
|
* @throws {@link RpcError} if an error occured on server side
|
|
37
37
|
*/
|
|
38
38
|
transactionSignAndBroadcast(accountId: string, transaction: Transaction, options?: TransactionOptions, meta?: Record<string, unknown>): Promise<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Register a new yield-bearing Ethereum address for BTC reception.
|
|
41
|
+
* Creates an Ethereum parent account and ERC20 token sub-account in Ledger Live with automatic naming.
|
|
42
|
+
* Resilient to multiple calls - won't create duplicates.
|
|
43
|
+
*
|
|
44
|
+
* @param ethereumAddress - The Ethereum address to register as parent account
|
|
45
|
+
* @param tokenContractAddress - ERC20 contract address (optional, defaults to acreBTC)
|
|
46
|
+
* @param meta - Extra metadata
|
|
47
|
+
*
|
|
48
|
+
* @returns Success status, account names, and token account information
|
|
49
|
+
* @throws {@link RpcError} if an error occured on server side
|
|
50
|
+
*/
|
|
51
|
+
registerYieldBearingEthereumAddress(ethereumAddress: string, tokenContractAddress?: string, tokenTicker?: string, meta?: Record<string, unknown>): Promise<RegisterYieldBearingEthereumAddressResult>;
|
|
39
52
|
}
|
|
40
53
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,YAAY,EAAwB,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC9F,OAAO,EACL,WAAW,EAGX,WAAW,EACX,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,YAAY,EAAwB,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC9F,OAAO,EACL,WAAW,EAGX,WAAW,EACX,kBAAkB,EAMlB,yCAAyC,EAC1C,MAAM,SAAS,CAAC;AAEjB,cAAc,SAAS,CAAC;AAGxB,qBAAa,UAAW,SAAQ,YAAY;IAC1C;;;;;;;;;;OAUG;IACG,WAAW,CACf,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,WAAW,EACpB,cAAc,CAAC,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,WAAW,EACrB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAgBhC;;;;;;;;OAQG;IACG,eAAe,CACnB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,WAAW,EACxB,OAAO,CAAC,EAAE,kBAAkB,EAC5B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7B,OAAO,CAAC,MAAM,CAAC;IAclB;;;;;;;;OAQG;IACG,2BAA2B,CAC/B,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,WAAW,EACxB,OAAO,CAAC,EAAE,kBAAkB,EAC5B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7B,OAAO,CAAC,MAAM,CAAC;IAclB;;;;;;;;;;;OAWG;IACG,mCAAmC,CACvC,eAAe,EAAE,MAAM,EACvB,oBAAoB,CAAC,EAAE,MAAM,EAC7B,WAAW,CAAC,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAcjC"}
|
package/lib/index.js
CHANGED
|
@@ -24,7 +24,7 @@ class AcreModule extends wallet_api_client_1.CustomModule {
|
|
|
24
24
|
* @param accountId - Ledger Live id of the account
|
|
25
25
|
* @param message - Message the user should sign
|
|
26
26
|
* @param derivationPath - The derivation path is a relative derivation path from the account
|
|
27
|
-
* e.g to use the first address of an account, one will request for the
|
|
27
|
+
* e.g to use the first address of an account, one will request for the "0/0" derivation path
|
|
28
28
|
* @param options - Extra parameters
|
|
29
29
|
*
|
|
30
30
|
* @returns Message signed
|
|
@@ -76,6 +76,27 @@ class AcreModule extends wallet_api_client_1.CustomModule {
|
|
|
76
76
|
});
|
|
77
77
|
return result.transactionHash;
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Register a new yield-bearing Ethereum address for BTC reception.
|
|
81
|
+
* Creates an Ethereum parent account and ERC20 token sub-account in Ledger Live with automatic naming.
|
|
82
|
+
* Resilient to multiple calls - won't create duplicates.
|
|
83
|
+
*
|
|
84
|
+
* @param ethereumAddress - The Ethereum address to register as parent account
|
|
85
|
+
* @param tokenContractAddress - ERC20 contract address (optional, defaults to acreBTC)
|
|
86
|
+
* @param meta - Extra metadata
|
|
87
|
+
*
|
|
88
|
+
* @returns Success status, account names, and token account information
|
|
89
|
+
* @throws {@link RpcError} if an error occured on server side
|
|
90
|
+
*/
|
|
91
|
+
async registerYieldBearingEthereumAddress(ethereumAddress, tokenContractAddress, tokenTicker, meta) {
|
|
92
|
+
const result = await this.request("custom.acre.registerYieldBearingEthereumAddress", {
|
|
93
|
+
ethereumAddress,
|
|
94
|
+
tokenContractAddress,
|
|
95
|
+
tokenTicker,
|
|
96
|
+
meta,
|
|
97
|
+
});
|
|
98
|
+
return result;
|
|
99
|
+
}
|
|
79
100
|
}
|
|
80
101
|
exports.AcreModule = AcreModule;
|
|
81
102
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,mEAA8F;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,mEAA8F;AAe9F,0CAAwB;AAExB,wFAAwF;AACxF,MAAa,UAAW,SAAQ,gCAAY;IAC1C;;;;;;;;;;OAUG;IACH,KAAK,CAAC,WAAW,CACf,SAAiB,EACjB,OAAoB,EACpB,cAAuB,EACvB,OAAqB,EACrB,IAA8B;QAE9B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC/B,yBAAyB,EACzB;YACE,SAAS;YACT,OAAO;YACP,cAAc;YACd,OAAO;YACP,IAAI;SACL,CACF,CAAC;QAEF,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;IACrD,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,eAAe,CACnB,SAAiB,EACjB,WAAwB,EACxB,OAA4B,EAC5B,IAA8B;QAE9B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC/B,6BAA6B,EAC7B;YACE,SAAS;YACT,cAAc,EAAE,IAAA,wCAAoB,EAAC,WAAW,CAAC;YACjD,OAAO;YACP,IAAI;SACL,CACF,CAAC;QAEF,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC;IACzD,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,2BAA2B,CAC/B,SAAiB,EACjB,WAAwB,EACxB,OAA4B,EAC5B,IAA8B;QAE9B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAG/B,yCAAyC,EAAE;YAC3C,SAAS;YACT,cAAc,EAAE,IAAA,wCAAoB,EAAC,WAAW,CAAC;YACjD,OAAO;YACP,IAAI;SACL,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC,eAAe,CAAC;IAChC,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,mCAAmC,CACvC,eAAuB,EACvB,oBAA6B,EAC7B,WAAoB,EACpB,IAA8B;QAE9B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAG/B,iDAAiD,EAAE;YACnD,eAAe;YACf,oBAAoB;YACpB,WAAW;YACX,IAAI;SACL,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AAvHD,gCAuHC"}
|
package/lib/types.d.ts
CHANGED
|
@@ -62,4 +62,19 @@ export type TransactionSignAndBroadcastParams = {
|
|
|
62
62
|
export type TransactionSignAndBroadcastResult = {
|
|
63
63
|
transactionHash: string;
|
|
64
64
|
};
|
|
65
|
+
export type RegisterYieldBearingEthereumAddressParams = {
|
|
66
|
+
ethereumAddress: string;
|
|
67
|
+
tokenContractAddress?: string;
|
|
68
|
+
tokenTicker?: string;
|
|
69
|
+
meta?: Record<string, unknown>;
|
|
70
|
+
};
|
|
71
|
+
export type RegisterYieldBearingEthereumAddressResult = {
|
|
72
|
+
success: boolean;
|
|
73
|
+
accountName: string;
|
|
74
|
+
parentAccountId: string;
|
|
75
|
+
tokenAccountId: string;
|
|
76
|
+
ethereumAddress: string;
|
|
77
|
+
tokenContractAddress: string;
|
|
78
|
+
meta?: Record<string, unknown>;
|
|
79
|
+
};
|
|
65
80
|
//# sourceMappingURL=types.d.ts.map
|
package/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,MAAM,WAAW;CAClB;AAID,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,eAAe,CAAC,QAAQ,CAAC;IAC/B,OAAO,EAAE,kBAAkB,CAAC;CAC7B,CAAC;AAGF,MAAM,MAAM,iBAAiB,GAAG;IAAE,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAEnF,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG,iBAAiB,CAAC;AAElE,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,WAAW,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,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AE,kBAAkB,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,cAAc,CAAC;IAC/B,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC9C,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAGF,MAAM,MAAM,yCAAyC,GAAG;IACtD,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,yCAAyC,GAAG;IACtD,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,CAAC"}
|
package/lib-es/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
import { CustomModule, Transaction } from "@ledgerhq/wallet-api-client";
|
|
4
|
-
import { AcreMessage, SignOptions, TransactionOptions } from "./types";
|
|
4
|
+
import { AcreMessage, SignOptions, TransactionOptions, RegisterYieldBearingEthereumAddressResult } from "./types";
|
|
5
5
|
export * from "./types";
|
|
6
6
|
export declare class AcreModule extends CustomModule {
|
|
7
7
|
/**
|
|
@@ -9,7 +9,7 @@ export declare class AcreModule extends CustomModule {
|
|
|
9
9
|
* @param accountId - Ledger Live id of the account
|
|
10
10
|
* @param message - Message the user should sign
|
|
11
11
|
* @param derivationPath - The derivation path is a relative derivation path from the account
|
|
12
|
-
* e.g to use the first address of an account, one will request for the
|
|
12
|
+
* e.g to use the first address of an account, one will request for the "0/0" derivation path
|
|
13
13
|
* @param options - Extra parameters
|
|
14
14
|
*
|
|
15
15
|
* @returns Message signed
|
|
@@ -36,5 +36,18 @@ export declare class AcreModule extends CustomModule {
|
|
|
36
36
|
* @throws {@link RpcError} if an error occured on server side
|
|
37
37
|
*/
|
|
38
38
|
transactionSignAndBroadcast(accountId: string, transaction: Transaction, options?: TransactionOptions, meta?: Record<string, unknown>): Promise<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Register a new yield-bearing Ethereum address for BTC reception.
|
|
41
|
+
* Creates an Ethereum parent account and ERC20 token sub-account in Ledger Live with automatic naming.
|
|
42
|
+
* Resilient to multiple calls - won't create duplicates.
|
|
43
|
+
*
|
|
44
|
+
* @param ethereumAddress - The Ethereum address to register as parent account
|
|
45
|
+
* @param tokenContractAddress - ERC20 contract address (optional, defaults to acreBTC)
|
|
46
|
+
* @param meta - Extra metadata
|
|
47
|
+
*
|
|
48
|
+
* @returns Success status, account names, and token account information
|
|
49
|
+
* @throws {@link RpcError} if an error occured on server side
|
|
50
|
+
*/
|
|
51
|
+
registerYieldBearingEthereumAddress(ethereumAddress: string, tokenContractAddress?: string, tokenTicker?: string, meta?: Record<string, unknown>): Promise<RegisterYieldBearingEthereumAddressResult>;
|
|
39
52
|
}
|
|
40
53
|
//# sourceMappingURL=index.d.ts.map
|
package/lib-es/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,YAAY,EAAwB,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC9F,OAAO,EACL,WAAW,EAGX,WAAW,EACX,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,YAAY,EAAwB,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC9F,OAAO,EACL,WAAW,EAGX,WAAW,EACX,kBAAkB,EAMlB,yCAAyC,EAC1C,MAAM,SAAS,CAAC;AAEjB,cAAc,SAAS,CAAC;AAGxB,qBAAa,UAAW,SAAQ,YAAY;IAC1C;;;;;;;;;;OAUG;IACG,WAAW,CACf,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,WAAW,EACpB,cAAc,CAAC,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,WAAW,EACrB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAgBhC;;;;;;;;OAQG;IACG,eAAe,CACnB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,WAAW,EACxB,OAAO,CAAC,EAAE,kBAAkB,EAC5B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7B,OAAO,CAAC,MAAM,CAAC;IAclB;;;;;;;;OAQG;IACG,2BAA2B,CAC/B,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,WAAW,EACxB,OAAO,CAAC,EAAE,kBAAkB,EAC5B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7B,OAAO,CAAC,MAAM,CAAC;IAclB;;;;;;;;;;;OAWG;IACG,mCAAmC,CACvC,eAAe,EAAE,MAAM,EACvB,oBAAoB,CAAC,EAAE,MAAM,EAC7B,WAAW,CAAC,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAcjC"}
|
package/lib-es/index.js
CHANGED
|
@@ -7,7 +7,7 @@ export class AcreModule extends CustomModule {
|
|
|
7
7
|
* @param accountId - Ledger Live id of the account
|
|
8
8
|
* @param message - Message the user should sign
|
|
9
9
|
* @param derivationPath - The derivation path is a relative derivation path from the account
|
|
10
|
-
* e.g to use the first address of an account, one will request for the
|
|
10
|
+
* e.g to use the first address of an account, one will request for the "0/0" derivation path
|
|
11
11
|
* @param options - Extra parameters
|
|
12
12
|
*
|
|
13
13
|
* @returns Message signed
|
|
@@ -59,5 +59,26 @@ export class AcreModule extends CustomModule {
|
|
|
59
59
|
});
|
|
60
60
|
return result.transactionHash;
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Register a new yield-bearing Ethereum address for BTC reception.
|
|
64
|
+
* Creates an Ethereum parent account and ERC20 token sub-account in Ledger Live with automatic naming.
|
|
65
|
+
* Resilient to multiple calls - won't create duplicates.
|
|
66
|
+
*
|
|
67
|
+
* @param ethereumAddress - The Ethereum address to register as parent account
|
|
68
|
+
* @param tokenContractAddress - ERC20 contract address (optional, defaults to acreBTC)
|
|
69
|
+
* @param meta - Extra metadata
|
|
70
|
+
*
|
|
71
|
+
* @returns Success status, account names, and token account information
|
|
72
|
+
* @throws {@link RpcError} if an error occured on server side
|
|
73
|
+
*/
|
|
74
|
+
async registerYieldBearingEthereumAddress(ethereumAddress, tokenContractAddress, tokenTicker, meta) {
|
|
75
|
+
const result = await this.request("custom.acre.registerYieldBearingEthereumAddress", {
|
|
76
|
+
ethereumAddress,
|
|
77
|
+
tokenContractAddress,
|
|
78
|
+
tokenTicker,
|
|
79
|
+
meta,
|
|
80
|
+
});
|
|
81
|
+
return result;
|
|
82
|
+
}
|
|
62
83
|
}
|
|
63
84
|
//# sourceMappingURL=index.js.map
|
package/lib-es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAe,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAe,MAAM,6BAA6B,CAAC;AAe9F,cAAc,SAAS,CAAC;AAExB,wFAAwF;AACxF,MAAM,OAAO,UAAW,SAAQ,YAAY;IAC1C;;;;;;;;;;OAUG;IACH,KAAK,CAAC,WAAW,CACf,SAAiB,EACjB,OAAoB,EACpB,cAAuB,EACvB,OAAqB,EACrB,IAA8B;QAE9B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC/B,yBAAyB,EACzB;YACE,SAAS;YACT,OAAO;YACP,cAAc;YACd,OAAO;YACP,IAAI;SACL,CACF,CAAC;QAEF,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;IACrD,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,eAAe,CACnB,SAAiB,EACjB,WAAwB,EACxB,OAA4B,EAC5B,IAA8B;QAE9B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAC/B,6BAA6B,EAC7B;YACE,SAAS;YACT,cAAc,EAAE,oBAAoB,CAAC,WAAW,CAAC;YACjD,OAAO;YACP,IAAI;SACL,CACF,CAAC;QAEF,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC;IACzD,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,2BAA2B,CAC/B,SAAiB,EACjB,WAAwB,EACxB,OAA4B,EAC5B,IAA8B;QAE9B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAG/B,yCAAyC,EAAE;YAC3C,SAAS;YACT,cAAc,EAAE,oBAAoB,CAAC,WAAW,CAAC;YACjD,OAAO;YACP,IAAI;SACL,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC,eAAe,CAAC;IAChC,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,mCAAmC,CACvC,eAAuB,EACvB,oBAA6B,EAC7B,WAAoB,EACpB,IAA8B;QAE9B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAG/B,iDAAiD,EAAE;YACnD,eAAe;YACf,oBAAoB;YACpB,WAAW;YACX,IAAI;SACL,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
package/lib-es/types.d.ts
CHANGED
|
@@ -62,4 +62,19 @@ export type TransactionSignAndBroadcastParams = {
|
|
|
62
62
|
export type TransactionSignAndBroadcastResult = {
|
|
63
63
|
transactionHash: string;
|
|
64
64
|
};
|
|
65
|
+
export type RegisterYieldBearingEthereumAddressParams = {
|
|
66
|
+
ethereumAddress: string;
|
|
67
|
+
tokenContractAddress?: string;
|
|
68
|
+
tokenTicker?: string;
|
|
69
|
+
meta?: Record<string, unknown>;
|
|
70
|
+
};
|
|
71
|
+
export type RegisterYieldBearingEthereumAddressResult = {
|
|
72
|
+
success: boolean;
|
|
73
|
+
accountName: string;
|
|
74
|
+
parentAccountId: string;
|
|
75
|
+
tokenAccountId: string;
|
|
76
|
+
ethereumAddress: string;
|
|
77
|
+
tokenContractAddress: string;
|
|
78
|
+
meta?: Record<string, unknown>;
|
|
79
|
+
};
|
|
65
80
|
//# sourceMappingURL=types.d.ts.map
|
package/lib-es/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,MAAM,WAAW;CAClB;AAID,MAAM,WAAW,kBAAkB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MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC9C,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAGF,MAAM,MAAM,yCAAyC,GAAG;IACtD,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,yCAAyC,GAAG;IACtD,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/wallet-api-acre-module",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Wallet-API ACRE Module for Ledger Live",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@ledgerhq/wallet-api-client": "^1.
|
|
29
|
-
"@ledgerhq/wallet-api-core": "^1.
|
|
28
|
+
"@ledgerhq/wallet-api-client": "^1.10.0",
|
|
29
|
+
"@ledgerhq/wallet-api-core": "^1.22.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.10.10"
|