Skip to content

Commit

Permalink
update sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
zfy0701 committed Jun 29, 2023
1 parent 7c4cfaf commit 2ced99f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
],
"type": "module",
"dependencies": {
"@sentio/sdk": "^2.21.1-rc.1",
"@sentio/sdk": "^2.21.2",
"node-fetch": "^3.3.1"
},
"resolutions": {
Expand Down
18 changes: 15 additions & 3 deletions projects/global_test/src/processor.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as liquidswap from "./types/aptos/liquidswap.js";
import { AptosBaseProcessor, AptosModulesProcessor } from "@sentio/sdk/aptos";
import { SuiGlobalProcessor, SuiNetwork } from "@sentio/sdk/sui";
import { SuiAddressProcessorTemplate, SuiContext, SuiGlobalProcessor, SuiNetwork } from "@sentio/sdk/sui";
import { decodeMultiSig } from "@mysten/sui.js"
// import { SuiModulesProcessor } from "@sentio/sdk/sui";

Expand Down Expand Up @@ -35,11 +35,23 @@ SuiGlobalProcessor.bind({ network: SuiNetwork.MAIN_NET, startCheckpoint: 1603788
ctx.eventLogger.emit("multisig", {
message: txSig
})

} else {
console.log("No sig found")
}
},
{
publicKeyPrefix: "0x5ae220b4b2f65e977c12ede61579ff5170b6c22c006168c37b5e7c61af018083"
})
})

//

const addrTemplate = new SuiAddressProcessorTemplate().onTimeInterval(async (_, ctx) => {
// do query
console.log(ctx.address)
}, 60, 240, undefined, {
owned: false
})

function handlerEvent(address: string,ctx: SuiContext) {
addrTemplate.bind({ address}, ctx)
}
30 changes: 15 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1277,24 +1277,24 @@
truffle-privatekey-provider "^1.5.0"
web3 "^1.3.0"

"@sentio/protos@2.21.1-rc.1":
version "2.21.1-rc.1"
resolved "https://registry.yarnpkg.com/@sentio/protos/-/protos-2.21.1-rc.1.tgz#04299646a1183e9d13244934b2d0ca9bbc7bf6c4"
integrity sha512-p9tVWvjN4sjLzdz6DKQ/QSh3fYIOrP4CXoQmEkVtfgaOJGBkQOIHBLbYGXN3oFiQvWDWXEPfsdmQh1o8A80C9A==
"@sentio/protos@2.21.2":
version "2.21.2"
resolved "https://registry.yarnpkg.com/@sentio/protos/-/protos-2.21.2.tgz#aab982fd65d4a8c2a7d8f1e8ca0211d9044a903b"
integrity sha512-t85xFoJyjrBr8Iq6SYwzi/MZEAeZq0PjB+jhXcTN5zt9NdcTFnYJbwl88KtdR0RfoLKam0u+jur7uhT3h8ojzg==
dependencies:
google-protobuf "^3.21.2"
long "^5.2.3"
nice-grpc "^2.1.0"
nice-grpc-common "^2.0.2"
protobufjs "^7.2.3"

"@sentio/runtime@^2.21.1-rc.1":
version "2.21.1-rc.1"
resolved "https://registry.yarnpkg.com/@sentio/runtime/-/runtime-2.21.1-rc.1.tgz#d65312b4768498229a8eeee368fee3e7f1feaf77"
integrity sha512-qZSgs+pWURAcyyuPXzeeq3HjHOuRVT7hZP7BniXFPcdHqbC4kMbY5JuAy9n/tSub/ze3ch18W/O1bsE9yLkbiw==
"@sentio/runtime@^2.21.2":
version "2.21.2"
resolved "https://registry.yarnpkg.com/@sentio/runtime/-/runtime-2.21.2.tgz#95777bdb1e7259695c0dd4260497b0c3e60ff729"
integrity sha512-0O26wAEx9T5qUj2hX+liJgaXRS4J4sHQ1CyGHEvIi4rRfAWBaxC9F0+5X9fVjUvM1ATaTp6YubKawz2S9HyFLw==
dependencies:
"@grpc/grpc-js" "^1.8.14"
"@sentio/protos" "2.21.1-rc.1"
"@sentio/protos" "2.21.2"
command-line-args "^5.2.1"
command-line-usage "^7.0.1"
fs-extra "^11.0.0"
Expand All @@ -1310,19 +1310,19 @@
utility-types "^3.10.0"
winston "^3.8.2"

"@sentio/sdk@^2.21.1-rc.1":
version "2.21.1-rc.1"
resolved "https://registry.yarnpkg.com/@sentio/sdk/-/sdk-2.21.1-rc.1.tgz#8f3359b929e47d9988fb7102deb11b7685019807"
integrity sha512-O6n8CutkIuHXjEne0kTpjIEwCutIrdSKpBB1fGaftc+yYjO5F306WYY8GwtelpdSno7ubZ5RXq9S8TaaFvAJ2Q==
"@sentio/sdk@^2.21.2":
version "2.21.2"
resolved "https://registry.yarnpkg.com/@sentio/sdk/-/sdk-2.21.2.tgz#385f6dcf84db1fa26b4d5bb20d6bada0e065c254"
integrity sha512-+y+/oN7hTaqNvl26yzSKcfYHV6kMxt17VtOFS5/XEMmywmW2MLBSgsn7TPiDeaRIfTlllhF5+648R/6X1EOuEA==
dependencies:
"@coral-xyz/borsh" "^0.28.0"
"@mysten/sui.js" "^0.36.0"
"@project-serum/anchor" "^0.26.0"
"@sentio/bigdecimal" "^9.1.1-patch.3"
"@sentio/chain" "^1.0.0"
"@sentio/ethers-v6" "^1.0.28"
"@sentio/protos" "2.21.1-rc.1"
"@sentio/runtime" "^2.21.1-rc.1"
"@sentio/protos" "2.21.2"
"@sentio/runtime" "^2.21.2"
"@solana/web3.js" "^1.74.0"
"@types/prettier" "^2.7.2"
aptos-sdk "npm:aptos@^1.10.0"
Expand Down

0 comments on commit 2ced99f

Please sign in to comment.