Skip to content

Commit c37d36e

Browse files
authored
Merge pull request #43 from gavinharris-dev/main
fix(Search Param Names): "withCbor" and "resovleDatums" to match API spec
2 parents d95c4c2 + 3253423 commit c37d36e

File tree

4 files changed

+70
-69
lines changed

4 files changed

+70
-69
lines changed

package.json

Lines changed: 52 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,53 @@
11
{
2-
"name": "@maestro-org/typescript-sdk",
3-
"version": "1.5.4",
4-
"description": "TypeScript SDK for the Maestro Dapp Platform",
5-
"main": "dist/index.js",
6-
"module": "dist/index.mjs",
7-
"types": "dist/index.d.ts",
8-
"scripts": {
9-
"build": "tsup src/index.ts --format cjs,esm --dts",
10-
"release": "pnpm run build && changeset publish",
11-
"lint": "yarn prettier 'src/**/*.ts' --write && yarn eslint 'src/**/*.ts' --fix",
12-
"test": "pnpm test",
13-
"clean": "rm -rf dist && rm -rf node_modules && rm -f package-lock.json",
14-
"prepare": "husky install"
15-
},
16-
"keywords": [
17-
"typescript",
18-
"blockchain",
19-
"cryptocurrency",
20-
"maestro",
21-
"cardano"
22-
],
23-
"author": "gomaestro.org",
24-
"license": "Apache-2.0",
25-
"devDependencies": {
26-
"@changesets/cli": "^2.26.2",
27-
"@commitlint/cli": "^17.4.3",
28-
"@commitlint/config-conventional": "^17.4.3",
29-
"@typescript-eslint/eslint-plugin": "^5.59.1",
30-
"@typescript-eslint/parser": "^5.59.1",
31-
"commitlint": "^17.4.3",
32-
"eslint": "^8.39.0",
33-
"eslint-config-airbnb-base": "^15.0.0",
34-
"eslint-config-prettier": "^8.8.0",
35-
"eslint-import-resolver-typescript": "^3.6.0",
36-
"eslint-plugin-import": "^2.27.5",
37-
"eslint-plugin-prettier": "^4.2.1",
38-
"husky": "^8.0.3",
39-
"prettier": "^2.8.8",
40-
"tsup": "^7.2.0",
41-
"typescript": "^5.2.2"
42-
},
43-
"dependencies": {
44-
"axios": "^1.6.1"
45-
},
46-
"lint-staged": {
47-
"src/**/*.{js,ts,},": [
48-
"yarn prettier --write",
49-
"yarn eslint --fix"
50-
]
51-
}
52-
}
2+
"name": "@maestro-org/typescript-sdk",
3+
"version": "1.5.5",
4+
"description": "TypeScript SDK for the Maestro Dapp Platform",
5+
"main": "dist/index.js",
6+
"module": "dist/index.mjs",
7+
"types": "dist/index.d.ts",
8+
"scripts": {
9+
"build": "tsup src/index.ts --format cjs,esm --dts",
10+
"release": "pnpm run build && changeset publish",
11+
"lint": "yarn prettier 'src/**/*.ts' --write && yarn eslint 'src/**/*.ts' --fix",
12+
"test": "pnpm test",
13+
"clean": "rm -rf dist && rm -rf node_modules && rm -f package-lock.json",
14+
"prepare": "husky install"
15+
},
16+
"keywords": [
17+
"typescript",
18+
"blockchain",
19+
"cryptocurrency",
20+
"maestro",
21+
"cardano"
22+
],
23+
"author": "gomaestro.org",
24+
"license": "Apache-2.0",
25+
"devDependencies": {
26+
"@changesets/cli": "^2.26.2",
27+
"@commitlint/cli": "^17.4.3",
28+
"@commitlint/config-conventional": "^17.4.3",
29+
"@typescript-eslint/eslint-plugin": "^5.59.1",
30+
"@typescript-eslint/parser": "^5.59.1",
31+
"commitlint": "^17.4.3",
32+
"eslint": "^8.39.0",
33+
"eslint-config-airbnb-base": "^15.0.0",
34+
"eslint-config-prettier": "^8.8.0",
35+
"eslint-import-resolver-typescript": "^3.6.0",
36+
"eslint-plugin-import": "^2.27.5",
37+
"eslint-plugin-prettier": "^4.2.1",
38+
"husky": "^8.0.3",
39+
"prettier": "^2.8.8",
40+
"tsup": "^7.2.0",
41+
"typescript": "^5.2.2"
42+
},
43+
"dependencies": {
44+
"axios": "^1.6.1"
45+
},
46+
"lint-staged": {
47+
"src/**/*.{js,ts,},": [
48+
"yarn prettier --write",
49+
"yarn eslint --fix"
50+
]
51+
}
52+
}
53+

src/api/addresses/type.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,13 @@ export interface UtxosByAddressQueryParams {
175175
* @type {boolean | null}
176176
* @memberof UtxosByAddressQueryParams
177177
*/
178-
resolveDatums?: boolean | null;
178+
resolve_datums?: boolean | null;
179179
/**
180180
* Include the CBOR encodings of the transaction outputs in the response
181181
* @type {boolean | null}
182182
* @memberof UtxosByAddressQueryParams
183183
*/
184-
withCbor?: boolean | null;
184+
with_cbor?: boolean | null;
185185
/**
186186
* The max number of results per page.
187187
* @type {number | null}
@@ -226,13 +226,13 @@ export interface UtxosByAddressesQueryParams {
226226
* @type {boolean | null}
227227
* @memberof UtxosByAddressesQueryParams
228228
*/
229-
resolveDatums?: boolean | null;
229+
resolve_datums?: boolean | null;
230230
/**
231231
* Include the CBOR encodings of the transaction outputs in the response
232232
* @type {boolean | null}
233233
* @memberof UtxosByAddressesQueryParams
234234
*/
235-
withCbor?: boolean | null;
235+
with_cbor?: boolean | null;
236236
/**
237237
* The max number of results per page.
238238
* @type {number | null}
@@ -265,13 +265,13 @@ export interface UtxosByPaymentCredQueryParams {
265265
* @type {boolean | null}
266266
* @memberof UtxosByPaymentCredQueryParams
267267
*/
268-
resolveDatums?: boolean | null;
268+
resolve_datums?: boolean | null;
269269
/**
270270
* Include the CBOR encodings of the transaction outputs in the response
271271
* @type {boolean | null}
272272
* @memberof UtxosByPaymentCredQueryParams
273273
*/
274-
withCbor?: boolean | null;
274+
with_cbor?: boolean | null;
275275
/**
276276
* The max number of results per page.
277277
* @type {number | null}

src/api/transactions/type.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface TxoByTxoRefQueryParams {
1010
* @type {boolean | null}
1111
* @memberof TxoByTxoRefQueryParams
1212
*/
13-
withCbor?: boolean | null;
13+
with_cbor?: boolean | null;
1414
}
1515

1616
/**
@@ -25,11 +25,11 @@ export interface TxosByTxoRefsQueryParams {
2525
* @type {boolean | null}
2626
* @memberof TxosByTxoRefsQueryParams
2727
*/
28-
resolveDatums?: boolean | null;
28+
resolve_datums?: boolean | null;
2929
/**
3030
* Include the CBOR encoding of the transaction output in the response
3131
* @type {boolean | null}
3232
* @memberof TxosByTxoRefsQueryParams
3333
*/
34-
withCbor?: boolean | null;
34+
with_cbor?: boolean | null;
3535
}

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -979,12 +979,12 @@ available-typed-arrays@^1.0.5:
979979
resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz#92f95616501069d07d10edb2fc37d3e1c65123b7"
980980
integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==
981981

982-
axios@^1.6.0:
983-
version "1.6.1"
984-
resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.1.tgz#76550d644bf0a2d469a01f9244db6753208397d7"
985-
integrity sha512-vfBmhDpKafglh0EldBEbVuoe7DyAavGSLWhuSm5ZSEKQnHhBf0xAAwybbNH1IkrJNGnS/VG4I5yxig1pCEXE4g==
982+
axios@^1.6.1:
983+
version "1.6.8"
984+
resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.8.tgz#66d294951f5d988a00e87a0ffb955316a619ea66"
985+
integrity sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==
986986
dependencies:
987-
follow-redirects "^1.15.0"
987+
follow-redirects "^1.15.6"
988988
form-data "^4.0.0"
989989
proxy-from-env "^1.1.0"
990990

@@ -1826,10 +1826,10 @@ flatted@^3.2.7:
18261826
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.9.tgz#7eb4c67ca1ba34232ca9d2d93e9886e611ad7daf"
18271827
integrity sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==
18281828

1829-
follow-redirects@^1.15.0:
1830-
version "1.15.3"
1831-
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.3.tgz#fe2f3ef2690afce7e82ed0b44db08165b207123a"
1832-
integrity sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==
1829+
follow-redirects@^1.15.6:
1830+
version "1.15.6"
1831+
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b"
1832+
integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==
18331833

18341834
for-each@^0.3.3:
18351835
version "0.3.3"

0 commit comments

Comments
 (0)