@rabby-wallet/hyperliquid-sdk 1.0.0-beta.11 → 1.0.0-beta.12

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.
@@ -470,18 +470,16 @@ class ExchangeClient {
470
470
  type: constants_1.ExchangeType.APPROVE_BUILDER_FEE,
471
471
  hyperliquidChain: this.isTestnet ? 'Testnet' : 'Mainnet',
472
472
  signatureChainId: this.isTestnet ? '0x66eee' : '0xa4b1',
473
+ maxFeeRate: params.maxFee || '0.1%',
473
474
  builder: params.builder.toLowerCase(),
474
- maxFee: params.maxFee || '0.1%',
475
475
  nonce,
476
476
  };
477
477
  const { domain, types, primaryType, message } = (0, signer_1.prepareMasterSignData)({
478
478
  action,
479
479
  payloadTypes: [
480
- { name: 'type', type: 'string' },
481
480
  { name: 'hyperliquidChain', type: 'string' },
482
481
  { name: 'signatureChainId', type: 'string' },
483
482
  { name: 'builder', type: 'string' },
484
- { name: 'maxFee', type: 'string' },
485
483
  { name: 'nonce', type: 'uint64' },
486
484
  ],
487
485
  primaryType: 'HyperliquidTransaction:ApproveBuilderFee',
@@ -526,9 +524,7 @@ class ExchangeClient {
526
524
  const { domain, types, primaryType, message } = (0, signer_1.prepareMasterSignData)({
527
525
  action,
528
526
  payloadTypes: [
529
- { name: 'type', type: 'string' },
530
527
  { name: 'hyperliquidChain', type: 'string' },
531
- { name: 'signatureChainId', type: 'string' },
532
528
  { name: 'destination', type: 'string' },
533
529
  { name: 'amount', type: 'string' },
534
530
  { name: 'time', type: 'uint64' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/hyperliquid-sdk",
3
- "version": "1.0.0-beta.11",
3
+ "version": "1.0.0-beta.12",
4
4
  "description": "Simplified Hyperliquid Perpetuals Trading SDK for Frontend Applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",