@dzapio/sdk 2.0.19 → 2.0.21

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/dist/index.js CHANGED
@@ -554,6 +554,7 @@ var artheraNativeToken = "0x000000000000000000000000000000000000aA09";
554
554
  var suiNativeToken = "0x2::sui::SUI";
555
555
  var aptosNativeToken = "0x1::aptos_coin::AptosCoin";
556
556
  var stableChainNativeToken = "0x0000000000000000000000000000000000001000";
557
+ var tempoNativeToken = "0x20c0000000000000000000000000000000000000";
557
558
  var nativeTokens = [
558
559
  "0x0000000000000000000000000000000000001010",
559
560
  eFormatNativeTokenLowerCase,
@@ -566,7 +567,8 @@ var nativeTokens = [
566
567
  artheraNativeToken,
567
568
  suiNativeToken,
568
569
  aptosNativeToken,
569
- stableChainNativeToken
570
+ stableChainNativeToken,
571
+ tempoNativeToken
570
572
  ];
571
573
 
572
574
  // src/service/price/types/IPriceProvider.ts
@@ -10616,6 +10618,30 @@ var arthera = /* @__PURE__ */ viem.defineChain({
10616
10618
  }
10617
10619
  }
10618
10620
  });
10621
+ var astralisTestnet = /* @__PURE__ */ viem.defineChain({
10622
+ id: 71261,
10623
+ name: "Astralis Chain",
10624
+ nativeCurrency: {
10625
+ decimals: 18,
10626
+ name: "ASTCH",
10627
+ symbol: "ASTCH"
10628
+ },
10629
+ rpcUrls: {
10630
+ default: { http: ["https://test-rpc.astralischain.com"] }
10631
+ },
10632
+ blockExplorers: {
10633
+ default: {
10634
+ name: "Astralis Testnet Explorer",
10635
+ url: "https://test-explorer.astralischain.com"
10636
+ }
10637
+ },
10638
+ contracts: {
10639
+ multicall3: {
10640
+ address: "0xd74bAE15b413e0a90A7B2C1723F4A9c15cb49f73",
10641
+ blockCreated: 260214
10642
+ }
10643
+ }
10644
+ });
10619
10645
  var fiveIre = /* @__PURE__ */ viem.defineChain({
10620
10646
  id: 995,
10621
10647
  name: "5ire",
@@ -10684,6 +10710,30 @@ var hyperliquid = /* @__PURE__ */ viem.defineChain({
10684
10710
  }
10685
10711
  }
10686
10712
  });
10713
+ var pushTestnet = /* @__PURE__ */ viem.defineChain({
10714
+ id: 42101,
10715
+ name: "Push Testnet",
10716
+ nativeCurrency: {
10717
+ decimals: 18,
10718
+ name: "PC",
10719
+ symbol: "PC"
10720
+ },
10721
+ rpcUrls: {
10722
+ default: { http: ["https://evm.rpc-testnet-donut-node1.push.org"] }
10723
+ },
10724
+ blockExplorers: {
10725
+ default: {
10726
+ name: "Push Testnet Scan",
10727
+ url: "https://donut.push.network"
10728
+ }
10729
+ },
10730
+ contracts: {
10731
+ multicall3: {
10732
+ address: "0xd74bAE15b413e0a90A7B2C1723F4A9c15cb49f73",
10733
+ blockCreated: 209259
10734
+ }
10735
+ }
10736
+ });
10687
10737
  var stableChain = /* @__PURE__ */ viem.defineChain({
10688
10738
  id: 988,
10689
10739
  name: "Stable",
@@ -10711,33 +10761,12 @@ var stableChain = /* @__PURE__ */ viem.defineChain({
10711
10761
  }
10712
10762
  }
10713
10763
  });
10714
- var pushTestnet = /* @__PURE__ */ viem.defineChain({
10715
- id: 42101,
10716
- name: "Push Testnet",
10717
- nativeCurrency: {
10718
- decimals: 18,
10719
- name: "PC",
10720
- symbol: "PC"
10721
- },
10722
- rpcUrls: {
10723
- default: { http: ["https://evm.rpc-testnet-donut-node1.push.org"] }
10724
- },
10725
- blockExplorers: {
10726
- default: {
10727
- name: "Push Testnet Scan",
10728
- url: "https://donut.push.network"
10729
- }
10730
- },
10731
- contracts: {
10732
- multicall3: {
10733
- address: "0xd74bAE15b413e0a90A7B2C1723F4A9c15cb49f73",
10734
- blockCreated: 209259
10735
- }
10736
- }
10764
+ var tempo = viemChains.tempo.extend({
10765
+ feeToken: tempoNativeToken
10737
10766
  });
10738
10767
 
10739
10768
  // src/chains/index.ts
10740
- var customViemChains = [fiveIre, arthera, hyperEvm, hyperliquid, stableChain, pushTestnet];
10769
+ var customViemChains = [fiveIre, arthera, hyperEvm, hyperliquid, stableChain, pushTestnet, astralisTestnet, tempo];
10741
10770
  var viemChainsById = [...Object.values(viemChains__namespace), ...customViemChains].reduce((acc, chainData) => {
10742
10771
  return chainData.id ? {
10743
10772
  ...acc,
@@ -12796,7 +12825,8 @@ var exclusiveChainIds = {
12796
12825
  lens: 232,
12797
12826
  citreaTestnet: 5115,
12798
12827
  hyperLiquid: 998,
12799
- pushTestnet: 42101
12828
+ pushTestnet: 42101,
12829
+ astralisTestnet: 71261
12800
12830
  };
12801
12831
 
12802
12832
  // src/constants/contract.ts
@@ -12812,7 +12842,8 @@ var exclusivePermit2Addresses = {
12812
12842
  [exclusiveChainIds.bahamut]: "0x08208a5f56696E7AA3eAF7a307fa63B37bd8e8A5",
12813
12843
  [exclusiveChainIds.pushTestnet]: "0x08208a5f56696E7AA3eAF7a307fa63B37bd8e8A5",
12814
12844
  [exclusiveChainIds.abstract]: "0x0000000000225e31D15943971F47aD3022F714Fa",
12815
- [exclusiveChainIds.lens]: "0x0000000000225e31D15943971F47aD3022F714Fa"
12845
+ [exclusiveChainIds.lens]: "0x0000000000225e31D15943971F47aD3022F714Fa",
12846
+ [exclusiveChainIds.astralisTestnet]: "0x08208a5f56696E7AA3eAF7a307fa63B37bd8e8A5"
12816
12847
  };
12817
12848
  var DEFAULT_PERMIT2_ADDRESS = "0x000000000022D473030F116dDEE9F6B43aC78BA3";
12818
12849
 
package/dist/index.mjs CHANGED
@@ -2,6 +2,7 @@ import { encodeAbiParameters, parseAbiParameters, keccak256, encodePacked, strin
2
2
  import Axios from 'axios';
3
3
  import { Signer, ethers } from 'ethers';
4
4
  import * as viemChains from 'viem/chains';
5
+ import { tempo as tempo$1 } from 'viem/chains';
5
6
  import { decodeFunctionData, getAction } from 'viem/utils';
6
7
  import { waitForCallsStatus, sendCalls } from 'viem/actions';
7
8
  import Decimal from 'decimal.js';
@@ -528,6 +529,7 @@ var artheraNativeToken = "0x000000000000000000000000000000000000aA09";
528
529
  var suiNativeToken = "0x2::sui::SUI";
529
530
  var aptosNativeToken = "0x1::aptos_coin::AptosCoin";
530
531
  var stableChainNativeToken = "0x0000000000000000000000000000000000001000";
532
+ var tempoNativeToken = "0x20c0000000000000000000000000000000000000";
531
533
  var nativeTokens = [
532
534
  "0x0000000000000000000000000000000000001010",
533
535
  eFormatNativeTokenLowerCase,
@@ -540,7 +542,8 @@ var nativeTokens = [
540
542
  artheraNativeToken,
541
543
  suiNativeToken,
542
544
  aptosNativeToken,
543
- stableChainNativeToken
545
+ stableChainNativeToken,
546
+ tempoNativeToken
544
547
  ];
545
548
 
546
549
  // src/service/price/types/IPriceProvider.ts
@@ -10590,6 +10593,30 @@ var arthera = /* @__PURE__ */ defineChain({
10590
10593
  }
10591
10594
  }
10592
10595
  });
10596
+ var astralisTestnet = /* @__PURE__ */ defineChain({
10597
+ id: 71261,
10598
+ name: "Astralis Chain",
10599
+ nativeCurrency: {
10600
+ decimals: 18,
10601
+ name: "ASTCH",
10602
+ symbol: "ASTCH"
10603
+ },
10604
+ rpcUrls: {
10605
+ default: { http: ["https://test-rpc.astralischain.com"] }
10606
+ },
10607
+ blockExplorers: {
10608
+ default: {
10609
+ name: "Astralis Testnet Explorer",
10610
+ url: "https://test-explorer.astralischain.com"
10611
+ }
10612
+ },
10613
+ contracts: {
10614
+ multicall3: {
10615
+ address: "0xd74bAE15b413e0a90A7B2C1723F4A9c15cb49f73",
10616
+ blockCreated: 260214
10617
+ }
10618
+ }
10619
+ });
10593
10620
  var fiveIre = /* @__PURE__ */ defineChain({
10594
10621
  id: 995,
10595
10622
  name: "5ire",
@@ -10658,6 +10685,30 @@ var hyperliquid = /* @__PURE__ */ defineChain({
10658
10685
  }
10659
10686
  }
10660
10687
  });
10688
+ var pushTestnet = /* @__PURE__ */ defineChain({
10689
+ id: 42101,
10690
+ name: "Push Testnet",
10691
+ nativeCurrency: {
10692
+ decimals: 18,
10693
+ name: "PC",
10694
+ symbol: "PC"
10695
+ },
10696
+ rpcUrls: {
10697
+ default: { http: ["https://evm.rpc-testnet-donut-node1.push.org"] }
10698
+ },
10699
+ blockExplorers: {
10700
+ default: {
10701
+ name: "Push Testnet Scan",
10702
+ url: "https://donut.push.network"
10703
+ }
10704
+ },
10705
+ contracts: {
10706
+ multicall3: {
10707
+ address: "0xd74bAE15b413e0a90A7B2C1723F4A9c15cb49f73",
10708
+ blockCreated: 209259
10709
+ }
10710
+ }
10711
+ });
10661
10712
  var stableChain = /* @__PURE__ */ defineChain({
10662
10713
  id: 988,
10663
10714
  name: "Stable",
@@ -10685,33 +10736,12 @@ var stableChain = /* @__PURE__ */ defineChain({
10685
10736
  }
10686
10737
  }
10687
10738
  });
10688
- var pushTestnet = /* @__PURE__ */ defineChain({
10689
- id: 42101,
10690
- name: "Push Testnet",
10691
- nativeCurrency: {
10692
- decimals: 18,
10693
- name: "PC",
10694
- symbol: "PC"
10695
- },
10696
- rpcUrls: {
10697
- default: { http: ["https://evm.rpc-testnet-donut-node1.push.org"] }
10698
- },
10699
- blockExplorers: {
10700
- default: {
10701
- name: "Push Testnet Scan",
10702
- url: "https://donut.push.network"
10703
- }
10704
- },
10705
- contracts: {
10706
- multicall3: {
10707
- address: "0xd74bAE15b413e0a90A7B2C1723F4A9c15cb49f73",
10708
- blockCreated: 209259
10709
- }
10710
- }
10739
+ var tempo = tempo$1.extend({
10740
+ feeToken: tempoNativeToken
10711
10741
  });
10712
10742
 
10713
10743
  // src/chains/index.ts
10714
- var customViemChains = [fiveIre, arthera, hyperEvm, hyperliquid, stableChain, pushTestnet];
10744
+ var customViemChains = [fiveIre, arthera, hyperEvm, hyperliquid, stableChain, pushTestnet, astralisTestnet, tempo];
10715
10745
  var viemChainsById = [...Object.values(viemChains), ...customViemChains].reduce((acc, chainData) => {
10716
10746
  return chainData.id ? {
10717
10747
  ...acc,
@@ -12770,7 +12800,8 @@ var exclusiveChainIds = {
12770
12800
  lens: 232,
12771
12801
  citreaTestnet: 5115,
12772
12802
  hyperLiquid: 998,
12773
- pushTestnet: 42101
12803
+ pushTestnet: 42101,
12804
+ astralisTestnet: 71261
12774
12805
  };
12775
12806
 
12776
12807
  // src/constants/contract.ts
@@ -12786,7 +12817,8 @@ var exclusivePermit2Addresses = {
12786
12817
  [exclusiveChainIds.bahamut]: "0x08208a5f56696E7AA3eAF7a307fa63B37bd8e8A5",
12787
12818
  [exclusiveChainIds.pushTestnet]: "0x08208a5f56696E7AA3eAF7a307fa63B37bd8e8A5",
12788
12819
  [exclusiveChainIds.abstract]: "0x0000000000225e31D15943971F47aD3022F714Fa",
12789
- [exclusiveChainIds.lens]: "0x0000000000225e31D15943971F47aD3022F714Fa"
12820
+ [exclusiveChainIds.lens]: "0x0000000000225e31D15943971F47aD3022F714Fa",
12821
+ [exclusiveChainIds.astralisTestnet]: "0x08208a5f56696E7AA3eAF7a307fa63B37bd8e8A5"
12790
12822
  };
12791
12823
  var DEFAULT_PERMIT2_ADDRESS = "0x000000000022D473030F116dDEE9F6B43aC78BA3";
12792
12824
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dzapio/sdk",
3
- "version": "2.0.19",
3
+ "version": "2.0.21",
4
4
  "description": "A TypeScript/JavaScript SDK for interacting with the DZap protocol, providing utilities for DeFi operations including Swaps, Bridges, and Zaps.",
5
5
  "main": "dist/index.js",
6
6
  "source": "src/index.ts",