@oasisprotocol/privana-sdk 0.4.1 → 0.4.2
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 +4 -0
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/on-ramp.cjs +24 -1
- package/dist/on-ramp.cjs.map +1 -1
- package/dist/on-ramp.d.cts +22 -1
- package/dist/on-ramp.d.ts +22 -1
- package/dist/on-ramp.js +24 -1
- package/dist/on-ramp.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -100,6 +100,10 @@ function CustomWallet() {
|
|
|
100
100
|
`useHistory({ offset: -1, limit: 50 })` fetches one authenticated history page. Non-negative
|
|
101
101
|
offsets count pages from the oldest entries, negative offsets count from the end, and each page is
|
|
102
102
|
returned oldest-to-newest. `limit` must be between 0 and 100.
|
|
103
|
+
History entries include lock-lifecycle kinds (`modifyLock`, `unlockLock`) and directional transfer
|
|
104
|
+
kinds (`transferFromLockOut`/`transferFromLockIn`, `transferBalanceOut`/`transferBalanceIn`). On the
|
|
105
|
+
outbound (`Out`) kinds `counterparty` is the recipient, and on the inbound (`In`) kinds it is the
|
|
106
|
+
sender.
|
|
103
107
|
|
|
104
108
|
### Direct SIWE private reads
|
|
105
109
|
|
package/dist/index.cjs
CHANGED
|
@@ -1141,6 +1141,7 @@ function useUnlockFunds(options = {}) {
|
|
|
1141
1141
|
queryClient.invalidateQueries({ queryKey: ["accounting-locked-funds"] });
|
|
1142
1142
|
queryClient.invalidateQueries({ queryKey: ["accounting-total-locked-balance"] });
|
|
1143
1143
|
queryClient.invalidateQueries({ queryKey: ["accounting-expired-locks"] });
|
|
1144
|
+
queryClient.invalidateQueries({ queryKey: ["accounting-history"] });
|
|
1144
1145
|
},
|
|
1145
1146
|
onError: (error) => {
|
|
1146
1147
|
options.onError?.(error);
|
|
@@ -1161,6 +1162,7 @@ function useUnlockFunds(options = {}) {
|
|
|
1161
1162
|
queryClient.invalidateQueries({ queryKey: ["accounting-locked-funds"] });
|
|
1162
1163
|
queryClient.invalidateQueries({ queryKey: ["accounting-total-locked-balance"] });
|
|
1163
1164
|
queryClient.invalidateQueries({ queryKey: ["accounting-expired-locks"] });
|
|
1165
|
+
queryClient.invalidateQueries({ queryKey: ["accounting-history"] });
|
|
1164
1166
|
},
|
|
1165
1167
|
onError: (error) => {
|
|
1166
1168
|
options.onError?.(error);
|
|
@@ -1495,6 +1497,7 @@ function useModifyLock(options = {}) {
|
|
|
1495
1497
|
queryClient.invalidateQueries({ queryKey: ["accounting-balance"] });
|
|
1496
1498
|
queryClient.invalidateQueries({ queryKey: ["accounting-locked-funds"] });
|
|
1497
1499
|
queryClient.invalidateQueries({ queryKey: ["accounting-total-locked-balance"] });
|
|
1500
|
+
queryClient.invalidateQueries({ queryKey: ["accounting-history"] });
|
|
1498
1501
|
},
|
|
1499
1502
|
onError: (error) => {
|
|
1500
1503
|
options.onError?.(error);
|