@relayprotocol/relay-sdk 6.1.3 → 7.0.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"prepareCallTransaction.js","sourceRoot":"","sources":["../../../src/utils/prepareCallTransaction.ts"],"names":[],"mappings":";;AACA,+BAAyC;AAOzC,SAAwB,sBAAsB,CAC5C,OAGC;IAED,MAAM,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,GAAG,OAAO,CAAA;IAE3C,MAAM,IAAI,GAAG,IAAA,yBAAkB,EAAC,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAA;IAC5D,OAAO;QACL,EAAE,EAAE,OAAO,CAAC,OAAO;QACnB,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAG;QACxC,IAAI,EAAE,IAAI;KACX,CAAA;AACH,CAAC;AAdD,yCAcC","sourcesContent":["import type { paths } from '../types/index.js'\nimport { encodeFunctionData } from 'viem'\nimport type { SimulateContractParameters } from 'viem'\n\ntype CallBody = NonNullable<\n paths['/execute/call']['post']['requestBody']['content']['application/json']\n>\n\nexport default function prepareCallTransaction(\n request: Pick<\n SimulateContractParameters,\n 'abi' | 'functionName' | 'args' | 'address' | 'value'\n >\n): Required<NonNullable<CallBody['txs']>[0]> {\n const { abi, functionName, args } = request\n\n const data = encodeFunctionData({ abi, functionName, args })\n return {\n to: request.address,\n value: request?.value?.toString() ?? '0',\n data: data\n }\n}\n"]}
1
+ {"version":3,"file":"prepareCallTransaction.js","sourceRoot":"","sources":["../../../src/utils/prepareCallTransaction.ts"],"names":[],"mappings":";;AACA,+BAAyC;AAUzC,SAAwB,sBAAsB,CAC5C,OAGC;IAED,MAAM,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,GAAG,OAAO,CAAA;IAE3C,MAAM,IAAI,GAAG,IAAA,yBAAkB,EAAC,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAA;IAC5D,OAAO;QACL,EAAE,EAAE,OAAO,CAAC,OAAO;QACnB,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAG;QACxC,IAAI,EAAE,IAAI;KACX,CAAA;AACH,CAAC;AAdD,yCAcC","sourcesContent":["import type { paths } from '../types/index.js'\nimport { encodeFunctionData } from 'viem'\nimport type { SimulateContractParameters } from 'viem'\n\ntype QuoteCallBody = Omit<\n NonNullable<\n paths['/quote/v2']['post']['requestBody']['content']['application/json']['txs']\n >[0],\n 'originalTxValue'\n>\n\nexport default function prepareCallTransaction(\n request: Pick<\n SimulateContractParameters,\n 'abi' | 'functionName' | 'args' | 'address' | 'value'\n >\n): Required<QuoteCallBody> {\n const { abi, functionName, args } = request\n\n const data = encodeFunctionData({ abi, functionName, args })\n return {\n to: request.address,\n value: request?.value?.toString() ?? '0',\n data: data\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = '6.1.3';
4
+ exports.SDK_VERSION = '7.0.0';
5
5
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,OAAO,CAAC","sourcesContent":["export const SDK_VERSION = '6.1.3';\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,OAAO,CAAC","sourcesContent":["export const SDK_VERSION = '7.0.0';\n"]}