@sentio/sdk 2.0.0-rc.24 → 2.0.0-rc.26
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/lib/aptos/models.d.ts +2 -0
- package/lib/aptos/models.js.map +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/lib/utils/index.js.map +1 -1
- package/package.json +5 -5
- package/src/aptos/models.ts +2 -0
- package/src/utils/index.ts +1 -0
package/lib/aptos/models.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export type TypedEntryFunctionPayload<T extends Array<any>> = TransactionPayload
|
|
|
16
16
|
arguments_decoded: T;
|
|
17
17
|
};
|
|
18
18
|
export type TypedMoveResource<T> = MoveResource & {
|
|
19
|
+
data_decoded: T;
|
|
19
20
|
type_arguments: string[];
|
|
20
21
|
};
|
|
21
22
|
export interface StructWithTag {
|
|
@@ -23,5 +24,6 @@ export interface StructWithTag {
|
|
|
23
24
|
data: any;
|
|
24
25
|
}
|
|
25
26
|
export interface StructWithType<T> extends StructWithTag {
|
|
27
|
+
data_decoded: T;
|
|
26
28
|
type_arguments: string[];
|
|
27
29
|
}
|
package/lib/aptos/models.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/aptos/models.ts"],"names":[],"mappings":"","sourcesContent":["import { Event, MoveResource, TransactionPayload_EntryFunctionPayload } from './move-types.js'\n\nexport type EventInstance = Event & {\n version: string\n}\n\nexport type TypedEventInstance<T> = EventInstance & {\n /**\n * decoded data using ABI, undefined if there is decoding error, usually because the ABI/data mismatch\n */\n data_decoded: T\n\n type_arguments: string[]\n}\n\n// Don't use intermediate type to make IDE happier\nexport type TypedEntryFunctionPayload<T extends Array<any>> = TransactionPayload_EntryFunctionPayload & {\n /**\n * decoded argument data using ABI, undefined if there is decoding error, usually because the ABI/data mismatch\n */\n arguments_decoded: T\n}\n\nexport type TypedMoveResource<T> = MoveResource & {\n type_arguments: string[]\n}\n\nexport interface StructWithTag {\n type: string\n data: any\n}\n\nexport interface StructWithType<T> extends StructWithTag {\n type_arguments: string[]\n}\n"]}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/aptos/models.ts"],"names":[],"mappings":"","sourcesContent":["import { Event, MoveResource, TransactionPayload_EntryFunctionPayload } from './move-types.js'\n\nexport type EventInstance = Event & {\n version: string\n}\n\nexport type TypedEventInstance<T> = EventInstance & {\n /**\n * decoded data using ABI, undefined if there is decoding error, usually because the ABI/data mismatch\n */\n data_decoded: T\n\n type_arguments: string[]\n}\n\n// Don't use intermediate type to make IDE happier\nexport type TypedEntryFunctionPayload<T extends Array<any>> = TransactionPayload_EntryFunctionPayload & {\n /**\n * decoded argument data using ABI, undefined if there is decoding error, usually because the ABI/data mismatch\n */\n arguments_decoded: T\n}\n\nexport type TypedMoveResource<T> = MoveResource & {\n data_decoded: T\n type_arguments: string[]\n}\n\nexport interface StructWithTag {\n type: string\n data: any\n}\n\nexport interface StructWithType<T> extends StructWithTag {\n data_decoded: T\n type_arguments: string[]\n}\n"]}
|
package/lib/utils/index.d.ts
CHANGED
package/lib/utils/index.js
CHANGED
package/lib/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA","sourcesContent":["export * from './conversion.js'\nexport * from './token.js'\nexport * from './dex-price.js'\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA","sourcesContent":["export * from './conversion.js'\nexport * from './token.js'\nexport * from './dex-price.js'\nexport * from './price.js'\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentio/sdk",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "2.0.0-rc.
|
|
4
|
+
"version": "2.0.0-rc.26",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"compile": "tsc -p . && cp src/utils/*.csv lib/utils && cp src/tsup.config.ts lib",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"@project-serum/anchor": "^0.26.0",
|
|
19
19
|
"@sentio/bigdecimal": "^9.1.1-patch.3",
|
|
20
20
|
"@sentio/ethers-v6": "^1.0.24",
|
|
21
|
-
"@sentio/protos": "^2.0.0-rc.
|
|
22
|
-
"@sentio/runtime": "^2.0.0-rc.
|
|
23
|
-
"@sentio/sdk": "^2.0.0-rc.
|
|
21
|
+
"@sentio/protos": "^2.0.0-rc.26",
|
|
22
|
+
"@sentio/runtime": "^2.0.0-rc.26",
|
|
23
|
+
"@sentio/sdk": "^2.0.0-rc.26",
|
|
24
24
|
"@solana/web3.js": "^1.47.3",
|
|
25
25
|
"@types/prettier": "^2.7.2",
|
|
26
26
|
"aptos-sdk": "npm:@sentio/aptos@^1.6.0",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"typedoc": {
|
|
72
72
|
"entryPoint": "./src/index.ts"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "cf2076a978ad71fc93b9717171063f59d50d776e"
|
|
75
75
|
}
|
package/src/aptos/models.ts
CHANGED
|
@@ -22,6 +22,7 @@ export type TypedEntryFunctionPayload<T extends Array<any>> = TransactionPayload
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export type TypedMoveResource<T> = MoveResource & {
|
|
25
|
+
data_decoded: T
|
|
25
26
|
type_arguments: string[]
|
|
26
27
|
}
|
|
27
28
|
|
|
@@ -31,5 +32,6 @@ export interface StructWithTag {
|
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
export interface StructWithType<T> extends StructWithTag {
|
|
35
|
+
data_decoded: T
|
|
34
36
|
type_arguments: string[]
|
|
35
37
|
}
|
package/src/utils/index.ts
CHANGED