@thalalabs/surf 0.0.15 → 0.0.16

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @thalalabs/surf
2
2
 
3
+ ## 0.0.16
4
+
5
+ ### Patch Changes
6
+
7
+ - ade995a: export a util type function to declare types of struct
8
+
3
9
  ## 0.0.15
4
10
 
5
11
  ### Patch Changes
@@ -1,3 +1,3 @@
1
1
  export { createViewPayload, createEntryPayload, createClient, } from './core/index.js';
2
- export type { EntryPayload, ViewPayload, DefaultABITable, } from './types/index.js';
2
+ export type { EntryPayload, ViewPayload, DefaultABITable, ExtractStructType, } from './types/index.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,GACb,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EACV,YAAY,EACZ,WAAW,EACX,eAAe,GAChB,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,GACb,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EACV,YAAY,EACZ,WAAW,EACX,eAAe,EACf,iBAAiB,GAClB,MAAM,kBAAkB,CAAC"}
@@ -4,4 +4,5 @@ export type { ViewPayload, EntryPayload, ViewOptions, EntryOptions, ViewRequestP
4
4
  export type { ABIRoot } from './abi.js';
5
5
  export type { DefaultABITable } from './defaultABITable.js';
6
6
  export { ExtractReturnType, ViewFunctionName, } from './extractor/functionExtractor.js';
7
+ export { ExtractStructType } from './extractor/structExtractor.js';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,YAAY,EACV,aAAa,EACb,cAAc,EACd,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,WAAW,EACX,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACxC,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EACL,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,kCAAkC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,YAAY,EACV,aAAa,EACb,cAAc,EACd,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,WAAW,EACX,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACxC,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EACL,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,iBAAiB,EAClB,MAAM,gCAAgC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thalalabs/surf",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "TypeScript Interfaces & React Hooks for interacting with Aptos Smart Contracts with type safety.",
5
5
  "main": "./build/cjs/index.js",
6
6
  "module": "./build/esm/index.js",
@@ -38,11 +38,11 @@
38
38
  "@types/node": "~18",
39
39
  "@types/react": "^18.2.8",
40
40
  "@typescript-eslint/eslint-plugin": "~5.62",
41
- "@typescript-eslint/parser": "~5.61",
41
+ "@typescript-eslint/parser": "~5.62",
42
42
  "aptos": "^1.15.0",
43
43
  "eslint": "~8.47",
44
44
  "eslint-config-prettier": "~8.8",
45
- "eslint-plugin-jest": "~27.2",
45
+ "eslint-plugin-jest": "~27.6",
46
46
  "jest": "~29.7",
47
47
  "prettier": "~3.0",
48
48
  "react": "^18.2.0",
package/src/index.ts CHANGED
@@ -8,4 +8,5 @@ export type {
8
8
  EntryPayload,
9
9
  ViewPayload,
10
10
  DefaultABITable,
11
+ ExtractStructType,
11
12
  } from './types/index.js';
@@ -19,3 +19,6 @@ export {
19
19
  ExtractReturnType,
20
20
  ViewFunctionName,
21
21
  } from './extractor/functionExtractor.js';
22
+ export {
23
+ ExtractStructType
24
+ } from './extractor/structExtractor.js';