@ritbit/v4-client-js 2.1.5 → 2.1.6
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/__tests__/modules/onboarding.test.ts +2 -2
- package/build/cjs/__tests__/modules/onboarding.test.js +3 -3
- package/build/cjs/src/clients/modules/account.js +23 -1
- package/build/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/build/esm/__tests__/modules/onboarding.test.js +3 -3
- package/build/esm/src/clients/modules/account.d.ts +12 -0
- package/build/esm/src/clients/modules/account.d.ts.map +1 -1
- package/build/esm/src/clients/modules/account.js +23 -1
- package/build/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/ritbit-v4-client-js-2.1.5.tgz +0 -0
- package/scripts/publish-if-not-exists.sh +4 -4
- package/src/clients/modules/account.ts +30 -0
package/package.json
CHANGED
|
Binary file
|
|
@@ -8,12 +8,12 @@ test -z "$(npm info $NAME@$VERSION)"
|
|
|
8
8
|
if [ $? -eq 0 ]; then
|
|
9
9
|
set -e
|
|
10
10
|
|
|
11
|
-
git config --global user.email "ci@ritbit.trade"
|
|
12
|
-
git config --global user.name "gitlab_actions"
|
|
11
|
+
# git config --global user.email "ci@ritbit.trade"
|
|
12
|
+
# git config --global user.name "gitlab_actions"
|
|
13
13
|
|
|
14
14
|
# Get version and tag
|
|
15
|
-
git tag
|
|
16
|
-
git push --tags
|
|
15
|
+
# git tag ritbit-client-js@${VERSION}
|
|
16
|
+
# git push --tags
|
|
17
17
|
|
|
18
18
|
npm publish
|
|
19
19
|
else
|
|
@@ -129,6 +129,36 @@ export default class AccountClient extends RestClient {
|
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
+
/**
|
|
133
|
+
* Get wallet-to-wallet transfers (native token transfers) for a wallet address.
|
|
134
|
+
* These are transfers that don't involve subaccounts - direct wallet transfers.
|
|
135
|
+
*
|
|
136
|
+
* @param address Wallet address to get transfers for.
|
|
137
|
+
* @param assetId Optional asset ID to filter by (e.g., '1' for RIT).
|
|
138
|
+
* @param limit Maximum number of transfers to return.
|
|
139
|
+
* @param createdBeforeOrAtHeight Filter by block height.
|
|
140
|
+
* @param createdBeforeOrAt Filter by timestamp.
|
|
141
|
+
* @param page Page number for pagination.
|
|
142
|
+
*/
|
|
143
|
+
async getWalletTransfers(
|
|
144
|
+
address: string,
|
|
145
|
+
assetId?: string | null,
|
|
146
|
+
limit?: number | null,
|
|
147
|
+
createdBeforeOrAtHeight?: number | null,
|
|
148
|
+
createdBeforeOrAt?: string | null,
|
|
149
|
+
page?: number | null,
|
|
150
|
+
): Promise<Data> {
|
|
151
|
+
const uri = '/v4/transfers/wallet';
|
|
152
|
+
return this.get(uri, {
|
|
153
|
+
address,
|
|
154
|
+
assetId,
|
|
155
|
+
limit,
|
|
156
|
+
createdBeforeOrAtHeight,
|
|
157
|
+
createdBeforeOrAt,
|
|
158
|
+
page,
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
|
|
132
162
|
// ------ Orders ------ //
|
|
133
163
|
|
|
134
164
|
async getSubaccountOrders(
|