@manahippo/move-to-ts
Advanced tools
Comparing version 0.6.3 to 0.6.4
@@ -41,3 +41,5 @@ import { TypeTag } from "./typeTag"; | ||
constructor(); | ||
loadResource(client: AptosClient, address: HexString, structTsType: StructInfoType, typeParams: TypeTag[]): Promise<any>; | ||
loadResource(client: AptosClient, address: HexString, structTsType: StructInfoType, typeParams: TypeTag[], query?: { | ||
ledgerVersion?: number; | ||
}): Promise<any>; | ||
loadEvents(client: AptosClient, address: HexString, containerTypeTag: TypeTag, field: string, query?: { | ||
@@ -44,0 +46,0 @@ start?: bigint | number; |
{ | ||
"name": "@manahippo/move-to-ts", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"license": "MIT", | ||
@@ -44,3 +44,3 @@ "scripts": { | ||
"dependencies": { | ||
"aptos": "1.3.17", | ||
"aptos": "1.6.0", | ||
"big-integer": "^1.6.51", | ||
@@ -47,0 +47,0 @@ "elliptic": "^6.5.4", |
@@ -307,3 +307,6 @@ import { | ||
structTsType: StructInfoType, | ||
typeParams: TypeTag[] | ||
typeParams: TypeTag[], | ||
query?: { | ||
ledgerVersion?: number; | ||
} | ||
) { | ||
@@ -324,3 +327,4 @@ // make a concrete typeTag | ||
address, | ||
typeTag.getAptosMoveTypeTag() | ||
typeTag.getAptosMoveTypeTag(), | ||
query | ||
); | ||
@@ -350,3 +354,3 @@ const proto = parseStructProto(resource.data, typeTag, this, structTsType); | ||
); | ||
return events.map((e) => { | ||
return events.map((e: any) => { | ||
const tag = parseTypeTagOrThrow(e.type); | ||
@@ -353,0 +357,0 @@ return this.parse(e.data, tag); |
@@ -32,6 +32,3 @@ import { HexString } from "aptos"; | ||
getFullname(): string { | ||
const typeParamString = getTypeParamsString(this.typeParams); | ||
return `${this.address.hex()}::${this.module}::${ | ||
this.name | ||
}${typeParamString}`; | ||
return this.getShortAddressFullName(); | ||
} | ||
@@ -38,0 +35,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
9367
569427
+ Addedaptos@1.6.0(transitive)
- Removedaptos@1.3.17(transitive)
Updatedaptos@1.6.0