@sentio/sdk 2.45.2 → 2.45.3-rc.1

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.
Files changed (41) hide show
  1. package/lib/aptos/builtin/0x1.d.ts +2 -2
  2. package/lib/aptos/builtin/0x1.d.ts.map +1 -1
  3. package/lib/aptos/builtin/0x1.js +1 -2
  4. package/lib/aptos/builtin/0x1.js.map +1 -1
  5. package/lib/aptos/builtin/0x3.d.ts +2 -2
  6. package/lib/aptos/builtin/0x3.d.ts.map +1 -1
  7. package/lib/aptos/builtin/0x3.js +1 -2
  8. package/lib/aptos/builtin/0x3.js.map +1 -1
  9. package/lib/aptos/builtin/0x4.d.ts +2 -2
  10. package/lib/aptos/builtin/0x4.d.ts.map +1 -1
  11. package/lib/aptos/builtin/0x4.js +1 -2
  12. package/lib/aptos/builtin/0x4.js.map +1 -1
  13. package/lib/aptos/codegen/codegen.js +7 -1
  14. package/lib/aptos/codegen/codegen.js.map +1 -1
  15. package/lib/move/shared-network-codegen.d.ts.map +1 -1
  16. package/lib/move/shared-network-codegen.js +2 -3
  17. package/lib/move/shared-network-codegen.js.map +1 -1
  18. package/lib/sui/builtin/0x1.d.ts +751 -12
  19. package/lib/sui/builtin/0x1.d.ts.map +1 -1
  20. package/lib/sui/builtin/0x1.js +3857 -0
  21. package/lib/sui/builtin/0x1.js.map +1 -1
  22. package/lib/sui/builtin/0x2.d.ts +3876 -14
  23. package/lib/sui/builtin/0x2.d.ts.map +1 -1
  24. package/lib/sui/builtin/0x2.js +14389 -188
  25. package/lib/sui/builtin/0x2.js.map +1 -1
  26. package/lib/sui/builtin/0x3.d.ts +1923 -0
  27. package/lib/sui/builtin/0x3.d.ts.map +1 -1
  28. package/lib/sui/builtin/0x3.js +5425 -0
  29. package/lib/sui/builtin/0x3.js.map +1 -1
  30. package/lib/sui/codegen/codegen.js +5 -1
  31. package/lib/sui/codegen/codegen.js.map +1 -1
  32. package/package.json +6 -6
  33. package/src/aptos/builtin/0x1.ts +5 -5
  34. package/src/aptos/builtin/0x3.ts +5 -5
  35. package/src/aptos/builtin/0x4.ts +5 -5
  36. package/src/aptos/codegen/codegen.ts +7 -1
  37. package/src/move/shared-network-codegen.ts +1 -4
  38. package/src/sui/builtin/0x1.ts +5590 -19
  39. package/src/sui/builtin/0x2.ts +21779 -92
  40. package/src/sui/builtin/0x3.ts +8825 -15
  41. package/src/sui/codegen/codegen.ts +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/sdk",
3
- "version": "2.45.2",
3
+ "version": "2.45.3-rc.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -60,9 +60,9 @@
60
60
  "@sentio/chain": "^2.1.14",
61
61
  "@sentio/ethers-v6": "^1.0.29",
62
62
  "@solana/web3.js": "1.91.8",
63
- "@typemove/aptos": "~1.6.8",
64
- "@typemove/move": "~1.6.8",
65
- "@typemove/sui": "~1.6.8",
63
+ "@typemove/aptos": "~1.6.10",
64
+ "@typemove/move": "~1.6.10",
65
+ "@typemove/sui": "~1.6.10",
66
66
  "bs58": "^5.0.0",
67
67
  "chalk": "^5.3.0",
68
68
  "csv-parse": "^5.5.3",
@@ -84,8 +84,8 @@
84
84
  "typechain": "^8.3.2",
85
85
  "utility-types": "^3.11.0",
86
86
  "yaml": "^2.3.4",
87
- "@sentio/protos": "2.45.2",
88
- "@sentio/runtime": "^2.45.2"
87
+ "@sentio/runtime": "^2.45.3-rc.1",
88
+ "@sentio/protos": "2.45.3-rc.1"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "tsup": "npm:@sentio/tsup@^6.7.6"
@@ -4,11 +4,6 @@
4
4
 
5
5
  /* Generated types for 0x1, original address 0x1 */
6
6
 
7
- import { TypeDescriptor, ANY_TYPE } from "@typemove/move";
8
- import { MoveCoder, TypedEventInstance } from "@typemove/aptos";
9
-
10
- import { defaultMoveCoder } from "@sentio/sdk/aptos";
11
-
12
7
  import { CallFilter, MoveFetchConfig } from "@sentio/sdk/move";
13
8
  import {
14
9
  AptosBindOptions,
@@ -17,6 +12,11 @@ import {
17
12
  TypedFunctionPayload,
18
13
  AptosContext,
19
14
  } from "@sentio/sdk/aptos";
15
+
16
+ import { TypeDescriptor, ANY_TYPE } from "@typemove/move";
17
+ import { MoveCoder, TypedEventInstance } from "@typemove/aptos";
18
+
19
+ import { defaultMoveCoder } from "@sentio/sdk/aptos";
20
20
  import {
21
21
  Aptos,
22
22
  Account as AptosAccount,
@@ -4,11 +4,6 @@
4
4
 
5
5
  /* Generated types for 0x3, original address 0x3 */
6
6
 
7
- import { TypeDescriptor, ANY_TYPE } from "@typemove/move";
8
- import { MoveCoder, TypedEventInstance } from "@typemove/aptos";
9
-
10
- import { defaultMoveCoder } from "@sentio/sdk/aptos";
11
-
12
7
  import { CallFilter, MoveFetchConfig } from "@sentio/sdk/move";
13
8
  import {
14
9
  AptosBindOptions,
@@ -17,6 +12,11 @@ import {
17
12
  TypedFunctionPayload,
18
13
  AptosContext,
19
14
  } from "@sentio/sdk/aptos";
15
+
16
+ import { TypeDescriptor, ANY_TYPE } from "@typemove/move";
17
+ import { MoveCoder, TypedEventInstance } from "@typemove/aptos";
18
+
19
+ import { defaultMoveCoder } from "@sentio/sdk/aptos";
20
20
  import {
21
21
  Aptos,
22
22
  Account as AptosAccount,
@@ -4,11 +4,6 @@
4
4
 
5
5
  /* Generated types for 0x4, original address 0x4 */
6
6
 
7
- import { TypeDescriptor, ANY_TYPE } from "@typemove/move";
8
- import { MoveCoder, TypedEventInstance } from "@typemove/aptos";
9
-
10
- import { defaultMoveCoder } from "@sentio/sdk/aptos";
11
-
12
7
  import { CallFilter, MoveFetchConfig } from "@sentio/sdk/move";
13
8
  import {
14
9
  AptosBindOptions,
@@ -17,6 +12,11 @@ import {
17
12
  TypedFunctionPayload,
18
13
  AptosContext,
19
14
  } from "@sentio/sdk/aptos";
15
+
16
+ import { TypeDescriptor, ANY_TYPE } from "@typemove/move";
17
+ import { MoveCoder, TypedEventInstance } from "@typemove/aptos";
18
+
19
+ import { defaultMoveCoder } from "@sentio/sdk/aptos";
20
20
  import {
21
21
  Aptos,
22
22
  Account as AptosAccount,
@@ -46,7 +46,13 @@ class AptosNetworkCodegen extends BaseAptosCodegen {
46
46
  generateImports() {
47
47
  return (
48
48
  this.moduleGenerator.generateImports() +
49
- `import { Aptos, Account as AptosAccount, MoveAddressType, PendingTransactionResponse, InputGenerateTransactionOptions, MoveStructId } from '@aptos-labs/ts-sdk'`
49
+ `
50
+ import { TypeDescriptor, ANY_TYPE } from "@typemove/move"
51
+ import {
52
+ MoveCoder, TypedEventInstance } from "@typemove/${this.PREFIX.toLowerCase()}"
53
+
54
+ import { defaultMoveCoder } from "${this.defaultCoderPackage()}"
55
+ import { Aptos, Account as AptosAccount, MoveAddressType, PendingTransactionResponse, InputGenerateTransactionOptions, MoveStructId } from '@aptos-labs/ts-sdk'`
50
56
  )
51
57
  }
52
58
  generateLoadAll(isSystem: boolean): string {
@@ -121,16 +121,13 @@ onEvent${struct.name}(func: (event: ${moduleName}.${normalizeToJSName(struct.nam
121
121
  }
122
122
 
123
123
  generateImports() {
124
- return (
125
- super.generateImports() +
126
- `
124
+ return `
127
125
  import { CallFilter, MoveFetchConfig } from "@sentio/sdk/move"
128
126
  import {
129
127
  ${this.PREFIX}BindOptions, ${this.PREFIX}BaseProcessor,
130
128
  ${this.PREFIX}Network, TypedFunctionPayload,
131
129
  ${this.PREFIX}Context } from "@sentio/sdk/${this.PREFIX.toLowerCase()}"
132
130
  `
133
- )
134
131
  }
135
132
 
136
133
  generateLoadAll(isSystem: boolean): string {