edge-currency-monero 2.1.0 → 2.3.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/CHANGELOG.md +9 -0
- package/README.md +2 -4
- package/lib/MoneroEngine.js +18 -7
- package/lib/moneroInfo.js +2 -1
- package/lib/moneroTypes.js +3 -1
- package/lib/react-native/edge-currency-monero.ts +6790 -6870
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 2.3.0 (2026-06-13)
|
|
6
|
+
|
|
7
|
+
- changed: Convert the build tooling from Yarn to npm.
|
|
8
|
+
- security: Upgrade dependencies per Socket security recommendations.
|
|
9
|
+
|
|
10
|
+
## 2.2.0 (2026-01-27)
|
|
11
|
+
|
|
12
|
+
- added: Add `networkPrivacy` user setting to enable privacy-enhanced fetch requests via NYM Mixfetch.
|
|
13
|
+
|
|
5
14
|
## 2.1.0 (2026-01-15)
|
|
6
15
|
|
|
7
16
|
- changed: Reduce "high" fee level mapping from priority 4 to 3.
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Implements Monero send/receive functionality per the spec for crypto currency pl
|
|
|
6
6
|
|
|
7
7
|
## Installing
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
npm install edge-currency-monero react-native-mymonero-core
|
|
10
10
|
|
|
11
11
|
```
|
|
12
12
|
import { moneroCurrencyPluginFactory } from `edge-currency-monero`
|
|
@@ -29,9 +29,7 @@ To run a local version of this repo inside the full Edge Wallet app, clone this
|
|
|
29
29
|
|
|
30
30
|
git clone git@github.com:EdgeApp/edge-currency-monero.git`
|
|
31
31
|
cd edge-currency-monero
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
Run `npm run test` to run the unit tests.
|
|
32
|
+
npm run Run `npm run test` to run the unit tests.
|
|
35
33
|
|
|
36
34
|
To use the local cloned version of this repo, `cd edge-react-gui` and run
|
|
37
35
|
|
package/lib/MoneroEngine.js
CHANGED
|
@@ -26,6 +26,7 @@ var _biggystring = require('biggystring');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
+
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
var _types = require('edge-core-js/types');
|
|
@@ -85,6 +86,7 @@ const PRIMARY_CURRENCY_TOKEN_ID = null
|
|
|
85
86
|
|
|
86
87
|
|
|
87
88
|
|
|
89
|
+
|
|
88
90
|
__init() {this.loginPromise = null}
|
|
89
91
|
|
|
90
92
|
constructor(
|
|
@@ -109,13 +111,6 @@ const PRIMARY_CURRENCY_TOKEN_ID = null
|
|
|
109
111
|
this.walletId = walletInfo.id
|
|
110
112
|
this.currencyInfo = _moneroInfo.currencyInfo
|
|
111
113
|
this.currencyTools = tools
|
|
112
|
-
this.myMoneroApi = new (0, _MyMoneroApi.MyMoneroApi)(tools.cppBridge, {
|
|
113
|
-
apiKey: initOptions.edgeApiKey,
|
|
114
|
-
apiServer: networkInfo.defaultServer,
|
|
115
|
-
fetch: env.io.fetch,
|
|
116
|
-
nettype: networkInfo.nettype
|
|
117
|
-
})
|
|
118
|
-
this.seenTxCheckpoint = _moneroTypes.asSeenTxCheckpoint.call(void 0, opts.seenTxCheckpoint)
|
|
119
114
|
|
|
120
115
|
// this.customTokens = []
|
|
121
116
|
this.timers = {}
|
|
@@ -124,6 +119,22 @@ const PRIMARY_CURRENCY_TOKEN_ID = null
|
|
|
124
119
|
..._moneroInfo.currencyInfo.defaultSettings,
|
|
125
120
|
..._moneroTypes.asMoneroUserSettings.call(void 0, userSettings)
|
|
126
121
|
}
|
|
122
|
+
|
|
123
|
+
this.engineFetch = async (uri, init) => {
|
|
124
|
+
const { networkPrivacy } = this.currentSettings
|
|
125
|
+
return await this.io.fetch(uri, {
|
|
126
|
+
...(networkPrivacy === 'nym' ? { privacy: 'nym' } : {}),
|
|
127
|
+
...init
|
|
128
|
+
})
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
this.myMoneroApi = new (0, _MyMoneroApi.MyMoneroApi)(tools.cppBridge, {
|
|
132
|
+
apiKey: initOptions.edgeApiKey,
|
|
133
|
+
apiServer: networkInfo.defaultServer,
|
|
134
|
+
fetch: this.engineFetch,
|
|
135
|
+
nettype: networkInfo.nettype
|
|
136
|
+
})
|
|
137
|
+
this.seenTxCheckpoint = _moneroTypes.asSeenTxCheckpoint.call(void 0, opts.seenTxCheckpoint)
|
|
127
138
|
if (
|
|
128
139
|
this.currentSettings.enableCustomServers &&
|
|
129
140
|
this.currentSettings.moneroLightwalletServer != null
|
package/lib/moneroInfo.js
CHANGED
package/lib/moneroTypes.js
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
|
|
14
15
|
var _cleaners = require('cleaners');
|
|
15
16
|
|
|
16
17
|
|
|
@@ -26,7 +27,8 @@ var _cleaners = require('cleaners');
|
|
|
26
27
|
|
|
27
28
|
const asMoneroUserSettings = _cleaners.asObject.call(void 0, {
|
|
28
29
|
enableCustomServers: _cleaners.asMaybe.call(void 0, _cleaners.asBoolean, false),
|
|
29
|
-
moneroLightwalletServer: _cleaners.asMaybe.call(void 0, _cleaners.asString)
|
|
30
|
+
moneroLightwalletServer: _cleaners.asMaybe.call(void 0, _cleaners.asString),
|
|
31
|
+
networkPrivacy: _cleaners.asOptional.call(void 0, _cleaners.asValue.call(void 0, 'none', 'nym'), 'none')
|
|
30
32
|
}); exports.asMoneroUserSettings = asMoneroUserSettings
|
|
31
33
|
|
|
32
34
|
|