damm-sdk 1.1.31-alpha.2 → 1.1.31-alpha.3

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.cjs CHANGED
@@ -44385,7 +44385,6 @@ __export(exports_src, {
44385
44385
  approveTokenThroughPermit2: () => approveTokenThroughPermit2,
44386
44386
  approveErc721Trx: () => approveErc721Trx,
44387
44387
  approveERC20Trx: () => approveERC20Trx,
44388
- approveAllErc721Trx: () => approveAllErc721Trx,
44389
44388
  addToVaultWhitelistTrx: () => addToVaultWhitelistTrx,
44390
44389
  ZodiacRolesAbi: () => zodiac_roles_abi_default,
44391
44390
  ZodiacDelayAbi: () => zodiac_delay_abi_default,
@@ -44494,7 +44493,6 @@ __export(exports_src, {
44494
44493
  BorrowFromAaveV3L1Calldata: () => BorrowFromAaveV3L1Calldata,
44495
44494
  ApproveErc721CallData: () => ApproveErc721CallData,
44496
44495
  ApproveCalldata: () => ApproveCalldata,
44497
- ApproveAllErc721CallData: () => ApproveAllErc721CallData,
44498
44496
  AddToVaultWhitelistCalldata: () => AddToVaultWhitelistCalldata,
44499
44497
  Actions: () => Actions2,
44500
44498
  AaveL2PoolAbi: () => aave_pool_L2_abi_default,
@@ -85972,24 +85970,13 @@ var receiveMessageFromCctpTrx = ({
85972
85970
  };
85973
85971
  // src/integrations/erc721/erc721.ts
85974
85972
  var erc721Interface = new exports_ethers.utils.Interface(erc721_abi_default2);
85975
- var ApproveErc721CallData = ({ tokenId, to }) => {
85976
- return erc721Interface.encodeFunctionData("approve", [to, tokenId]);
85973
+ var ApproveErc721CallData = ({ tokenId, spender }) => {
85974
+ return erc721Interface.encodeFunctionData("approve", [spender, tokenId]);
85977
85975
  };
85978
- var approveErc721Trx = ({ tokenId, to, token }) => {
85976
+ var approveErc721Trx = ({ tokenId, spender, token }) => {
85979
85977
  return createCall({
85980
85978
  to: token,
85981
- data: ApproveErc721CallData({ tokenId, to }),
85982
- value: 0n,
85983
- operation: 0
85984
- });
85985
- };
85986
- var ApproveAllErc721CallData = ({ operator, approved }) => {
85987
- return erc721Interface.encodeFunctionData("setApprovalForAll", [operator, approved]);
85988
- };
85989
- var approveAllErc721Trx = ({ operator, approved, token }) => {
85990
- return createCall({
85991
- to: token,
85992
- data: ApproveAllErc721CallData({ operator, approved }),
85979
+ data: ApproveErc721CallData({ tokenId, spender }),
85993
85980
  value: 0n,
85994
85981
  operation: 0
85995
85982
  });
@@ -86360,4 +86347,4 @@ var simulateOrThrow = async (env2) => {
86360
86347
  };
86361
86348
  };
86362
86349
 
86363
- //# debugId=19A54010AD1CF9C664756E2164756E21
86350
+ //# debugId=6BB6FC1B27983AA864756E2164756E21