@sentio/sdk 2.34.1 → 2.35.0-rc.2

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.
@@ -52,7 +52,11 @@ export declare function getPriceClient(address?: string): import("nice-grpc").Ra
52
52
  }): import("@sentio/protos/price").GetPriceResponse;
53
53
  };
54
54
  readonly responseStream: false;
55
- readonly options: {};
55
+ readonly options: {
56
+ readonly _unknownFields: {
57
+ readonly 578365826: readonly [Uint8Array];
58
+ };
59
+ };
56
60
  };
57
61
  readonly batchGetPrices: {
58
62
  readonly name: "BatchGetPrices";
@@ -126,7 +130,11 @@ export declare function getPriceClient(address?: string): import("nice-grpc").Ra
126
130
  }): import("@sentio/protos/price").BatchGetPricesResponse;
127
131
  };
128
132
  readonly responseStream: false;
129
- readonly options: {};
133
+ readonly options: {
134
+ readonly _unknownFields: {
135
+ readonly 578365826: readonly [Uint8Array];
136
+ };
137
+ };
130
138
  };
131
139
  readonly listCoins: {
132
140
  readonly name: "ListCoins";
@@ -192,7 +200,11 @@ export declare function getPriceClient(address?: string): import("nice-grpc").Ra
192
200
  }): import("@sentio/protos/price").ListCoinsResponse;
193
201
  };
194
202
  readonly responseStream: false;
195
- readonly options: {};
203
+ readonly options: {
204
+ readonly _unknownFields: {
205
+ readonly 578365826: readonly [Uint8Array];
206
+ };
207
+ };
196
208
  };
197
209
  readonly checkLatestPrice: {
198
210
  readonly name: "CheckLatestPrice";
@@ -260,7 +272,11 @@ export declare function getPriceClient(address?: string): import("nice-grpc").Ra
260
272
  }): import("@sentio/protos/price").CheckLatestPriceResponse;
261
273
  };
262
274
  readonly responseStream: false;
263
- readonly options: {};
275
+ readonly options: {
276
+ readonly _unknownFields: {
277
+ readonly 578365826: readonly [Uint8Array];
278
+ };
279
+ };
264
280
  };
265
281
  readonly backfillCoin: {
266
282
  readonly name: "BackfillCoin";
@@ -312,7 +328,11 @@ export declare function getPriceClient(address?: string): import("nice-grpc").Ra
312
328
  }): import("@sentio/protos/price").BackfillCoinResponse;
313
329
  };
314
330
  readonly responseStream: false;
315
- readonly options: {};
331
+ readonly options: {
332
+ readonly _unknownFields: {
333
+ readonly 578365826: readonly [Uint8Array];
334
+ };
335
+ };
316
336
  };
317
337
  };
318
338
  }>, RetryOptions>;
@@ -1 +1 @@
1
- {"version":3,"file":"price.d.ts","sourceRoot":"","sources":["../../src/utils/price.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAA0B,MAAM,sBAAsB,CAAA;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAGvC,OAAO,EAAmB,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAEjF,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAGvC,wBAAgB,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAU9C;AASD,UAAU,YAAY;IACpB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAQD,wBAAsB,8BAA8B,CAClD,WAAW,EAAE,kBAAkB,CAAC,YAAY,CAAC,EAC7C,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CA2D7B;AAED;;;;;;GAMG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,OAAO,EAChB,QAAQ,EA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EACV,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CA2D7B;AAED;;;;;;GAMG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,IAAI,EACV,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAW7B;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAE7B;AAMD;;;GAGG;AACH,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,OAAO,oDAa1D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/sdk",
3
- "version": "2.34.1",
3
+ "version": "2.35.0-rc.2",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -41,7 +41,7 @@
41
41
  "!{lib,src}/*/tests"
42
42
  ],
43
43
  "dependencies": {
44
- "@aptos-labs/ts-sdk": "~1.10.0",
44
+ "@aptos-labs/ts-sdk": "~1.13.0",
45
45
  "@coral-xyz/borsh": "^0.29.0",
46
46
  "@mysten/sui.js": "~0.51.0",
47
47
  "@project-serum/anchor": "^0.26.0",
@@ -49,9 +49,9 @@
49
49
  "@sentio/chain": "^1.0.16",
50
50
  "@sentio/ethers-v6": "^1.0.29",
51
51
  "@solana/web3.js": "1.89.1",
52
- "@typemove/aptos": "~1.5.5",
53
- "@typemove/move": "~1.5.5",
54
- "@typemove/sui": "~1.5.5",
52
+ "@typemove/aptos": "~1.5.6",
53
+ "@typemove/move": "~1.5.6",
54
+ "@typemove/sui": "~1.5.6",
55
55
  "bs58": "^5.0.0",
56
56
  "chalk": "^5.3.0",
57
57
  "csv-parse": "^5.5.3",
@@ -73,8 +73,8 @@
73
73
  "typedoc": "^0.25.7",
74
74
  "utility-types": "^3.11.0",
75
75
  "yaml": "^2.3.4",
76
- "@sentio/protos": "2.34.1",
77
- "@sentio/runtime": "^2.34.1"
76
+ "@sentio/protos": "2.35.0-rc.2",
77
+ "@sentio/runtime": "^2.35.0-rc.2"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "tsup": "npm:@sentio/tsup@^6.7.2"
@@ -24,7 +24,6 @@ import {
24
24
  PendingTransactionResponse,
25
25
  InputGenerateTransactionOptions,
26
26
  MoveStructId,
27
- InputViewRequestData,
28
27
  } from "@aptos-labs/ts-sdk";
29
28
 
30
29
  export class acl extends AptosBaseProcessor {
@@ -24,7 +24,6 @@ import {
24
24
  PendingTransactionResponse,
25
25
  InputGenerateTransactionOptions,
26
26
  MoveStructId,
27
- InputViewRequestData,
28
27
  } from "@aptos-labs/ts-sdk";
29
28
 
30
29
  import * as _0x1 from "./0x1.js";
@@ -24,7 +24,6 @@ import {
24
24
  PendingTransactionResponse,
25
25
  InputGenerateTransactionOptions,
26
26
  MoveStructId,
27
- InputViewRequestData,
28
27
  } from "@aptos-labs/ts-sdk";
29
28
 
30
29
  import * as _0x1 from "./0x1.js";
@@ -53,7 +53,7 @@ class AptosNetworkCodegen extends BaseAptosCodegen {
53
53
  generateImports() {
54
54
  return (
55
55
  this.moduleGenerator.generateImports() +
56
- `import { Aptos, Account as AptosAccount, MoveAddressType, PendingTransactionResponse, InputGenerateTransactionOptions, MoveStructId, InputViewRequestData } from '@aptos-labs/ts-sdk'`
56
+ `import { Aptos, Account as AptosAccount, MoveAddressType, PendingTransactionResponse, InputGenerateTransactionOptions, MoveStructId } from '@aptos-labs/ts-sdk'`
57
57
  )
58
58
  }
59
59
  generateLoadAll(isSystem: boolean): string {
@@ -1,5 +1,5 @@
1
1
  import { Event, UserTransactionResponse, WriteSetChangeWriteResource } from '@aptos-labs/ts-sdk'
2
- import { coin } from '../builtin/0x1.js'
2
+ import { coin } from '@sentio/sdk/aptos/builtin/0x1'
3
3
  import { parseMoveType } from '../../move/index.js'
4
4
 
5
5
  export function findNewCoinBalances(evt: Event, tx: UserTransactionResponse, coin: string): coin.Coin<any> | undefined {
@@ -3,7 +3,7 @@ import fetch from 'node-fetch'
3
3
  import { accountTypeString, parseMoveType, SPLITTER } from '@typemove/move'
4
4
  import { SimpleCoinInfo } from '../../move/ext/move-dex.js'
5
5
  import { AptosNetwork, getClient } from '../network.js'
6
- import { _0x1 } from '@sentio/sdk/aptos/builtin'
6
+ import { coin } from '@sentio/sdk/aptos/builtin/0x1'
7
7
  import { MoveStructId } from '@aptos-labs/ts-sdk'
8
8
  import { AptosChainId } from '@sentio/chain'
9
9
 
@@ -87,7 +87,7 @@ export async function getCoinInfoWithFallback(type: string, network?: AptosNetwo
87
87
  const client = getClient(network)
88
88
  // client.getDigitalAssetData()
89
89
  const account = type.split(SPLITTER)[0]
90
- const coinInfo = _0x1.coin.CoinInfo.type(parseMoveType(type)).getSignature() as MoveStructId
90
+ const coinInfo = coin.CoinInfo.type(parseMoveType(type)).getSignature() as MoveStructId
91
91
  promise = client.getAccountResource({ accountAddress: account, resourceType: coinInfo })
92
92
  COIN_METADATA_CACHE.set(key, promise)
93
93
  }