@gibs/abis 1.10.1 → 1.12.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.ts +15 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gibs/abis",
3
- "version": "1.10.1",
3
+ "version": "1.12.0",
4
4
  "description": "Contract ABIs for the Gibs Finance bridge protocol",
5
5
  "main": "index.js",
6
6
  "access": "public",
@@ -16,7 +16,7 @@
16
16
  "author": "",
17
17
  "license": "ISC",
18
18
  "devDependencies": {
19
- "@types/node": "^22.12.0",
19
+ "@types/node": "^24",
20
20
  "typescript": "~5.7.2",
21
21
  "vitest": "^3.1.1"
22
22
  },
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { parseAbi, parseAbiParameters } from 'viem'
1
+ import { parseAbi, parseAbiParameters } from 'viem';
2
2
 
3
3
  /** the abi for the input bridge */
4
4
  export const inputBridge = parseAbi([
@@ -10,29 +10,29 @@ export const inputBridge = parseAbi([
10
10
  'function feeManager() external view returns(address)',
11
11
  'function relayTokensAndCall(address token, address _receiver, uint256 _value, bytes memory _data) external',
12
12
  'function relayTokens(address token, address _receiver, uint256 _value) external',
13
- ])
13
+ ]);
14
14
  /** the abi for the input bridge with extra input for the sender origin (tokensex) */
15
15
  export const inputBridgeExtraInput = parseAbi([
16
16
  'function relayTokensAndCall(address token, address _receiver, uint256 _value, bytes memory _data, address _senderOrigin) external',
17
17
  'function relayTokens(address token, address _receiver, uint256 _value, address _senderOrigin) external',
18
- ])
18
+ ]);
19
19
  /** the abi for erc677 tokens */
20
20
  export const erc677 = parseAbi([
21
21
  'function transferAndCall(address, uint256, bytes calldata) external',
22
- ])
22
+ ]);
23
23
  /** the abi for erc677 tokens bridge with extra input for the sender origin (tokensex) */
24
24
  export const erc677ExtraInput = parseAbi([
25
25
  'function transferAndCall(address, uint256, bytes calldata, address sender) external',
26
- ])
26
+ ]);
27
27
  /** the abi to read data from the output router */
28
28
  export const outputRouter = parseAbi([
29
29
  'function onTokenBridged(address _token, uint256 _value, bytes memory _data) external payable',
30
30
  'function WETH() external view returns(address)',
31
31
  'function bridge() external view returns(address)',
32
32
  'function safeExecuteSignaturesWithAutoGasLimit(address runner,bytes calldata _data,bytes calldata _signatures) external payable',
33
- ])
33
+ ]);
34
34
  /** the abi for the output bridge */
35
- export const outputBridge = parseAbi(['function bridgeContract() external view returns(address)'])
35
+ export const outputBridge = parseAbi(['function bridgeContract() external view returns(address)']);
36
36
  /** the abi for the fee manager */
37
37
  export const feeManager = parseAbi([
38
38
  // ---- Events ----
@@ -56,34 +56,34 @@ export const feeManager = parseAbi([
56
56
  'function mediator() view returns (address)',
57
57
  'function owner() view returns (address)',
58
58
  'function transferOwnership(address newOwner)',
59
- ])
59
+ ]);
60
60
  /** the abi for the native router */
61
61
  export const nativeRouter = parseAbi([
62
62
  'function wrapAndRelayTokens(address receiver) external payable',
63
63
  'function relayTokensAndCall(address receiver, bytes calldata data) external payable',
64
- ])
64
+ ]);
65
65
  /** the abi for the native router with extra input for the sender origin (tokensex) */
66
66
  export const nativeRouterExtraInput = parseAbi([
67
67
  'function wrapAndRelayTokens(address receiver, address sender) external payable',
68
68
  'function relayTokensAndCall(address receiver, bytes calldata data, address sender) external payable',
69
- ])
69
+ ]);
70
70
  /** the abi for the univ2 router */
71
71
  export const univ2Router = parseAbi([
72
72
  'function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns(uint256[] memory)',
73
73
  'function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline) external returns(uint256[] memory amounts)',
74
- ])
74
+ ]);
75
75
  /** the abi for the fee delivery struct */
76
- export const feeDeliveryStruct = parseAbiParameters('(address, uint256, uint256, uint256)')
76
+ export const feeDeliveryStruct = parseAbiParameters('(address, uint256, uint256, uint256)');
77
77
  /** the abi for the relay tokens direct */
78
78
  export const relayTokensDirect = parseAbi([
79
79
  'function safeExecuteSignaturesWithAutoGasLimit(bytes calldata data, bytes calldata signatures) external',
80
- ])
80
+ ]);
81
81
  /** the abi for the home amb */
82
82
  export const homeAmb = parseAbi([
83
83
  'function submitSignature(bytes message, bytes signature) external',
84
- ])
84
+ ]);
85
85
 
86
86
  /** the abi for the univ2 pair */
87
87
  export const pair = parseAbi([
88
88
  'function getReserves() view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast)',
89
- ])
89
+ ]);