·solidity-gas-optimization
!

solidity-gas-optimization

Solidity 스마트 계약을 위한 가스 최적화 패턴. 계약 배포 비용, 런타임 가스 사용량 또는 스토리지 효율성을 최적화할 때 사용합니다. 스토리지 패킹, 사용자 정의 오류, 불변 변수, 호출 데이터 최적화, 루프 패턴, 어셈블리 사용 및 Solady 가스 최적화 대안을 다룹니다. 가스 최적화, 스토리지 레이아웃, 배포 비용 절감 또는 EVM 효율성과 관련된 작업을 트리거합니다.

7설치·0트렌드·@whackur

설치

$npx skills add https://github.com/whackur/solidity-agent-toolkit --skill solidity-gas-optimization

solidity-gas-optimization 설치 방법

명령줄에서 solidity-gas-optimization AI 스킬을 개발 환경에 빠르게 설치

  1. 터미널 열기: 터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다
  2. 설치 명령어 실행: 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/whackur/solidity-agent-toolkit --skill solidity-gas-optimization
  3. 설치 확인: 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code, Cursor, OpenClaw에서 사용할 수 있습니다

출처: whackur/solidity-agent-toolkit.

EVM reads and writes in 32-byte (256-bit) slots. Variables smaller than 32 bytes that are declared consecutively share a slot, reducing SSTORE operations. A new SSTORE costs 20,000 gas; packing avoids additional slot allocations.

What to verify: Consecutive variables of the same or smaller combined size (≤32 bytes) are grouped together. Place uint128 next to uint128, not separated by a uint256.

Custom errors are encoded as 4-byte selectors, whereas revert strings store the full string in contract bytecode and in memory at runtime. Custom errors save gas on both deployment (smaller bytecode) and execution (cheaper encoding).

Solidity 스마트 계약을 위한 가스 최적화 패턴. 계약 배포 비용, 런타임 가스 사용량 또는 스토리지 효율성을 최적화할 때 사용합니다. 스토리지 패킹, 사용자 정의 오류, 불변 변수, 호출 데이터 최적화, 루프 패턴, 어셈블리 사용 및 Solady 가스 최적화 대안을 다룹니다. 가스 최적화, 스토리지 레이아웃, 배포 비용 절감 또는 EVM 효율성과 관련된 작업을 트리거합니다. 출처: whackur/solidity-agent-toolkit.

인용 가능한 정보

AI/검색 인용용 안정적인 필드와 명령어.

설치 명령어
npx skills add https://github.com/whackur/solidity-agent-toolkit --skill solidity-gas-optimization
카테고리
!보안
인증됨
최초 등록
2026-02-22
업데이트
2026-03-10

Browse more skills from whackur/solidity-agent-toolkit

빠른 답변

solidity-gas-optimization이란?

Solidity 스마트 계약을 위한 가스 최적화 패턴. 계약 배포 비용, 런타임 가스 사용량 또는 스토리지 효율성을 최적화할 때 사용합니다. 스토리지 패킹, 사용자 정의 오류, 불변 변수, 호출 데이터 최적화, 루프 패턴, 어셈블리 사용 및 Solady 가스 최적화 대안을 다룹니다. 가스 최적화, 스토리지 레이아웃, 배포 비용 절감 또는 EVM 효율성과 관련된 작업을 트리거합니다. 출처: whackur/solidity-agent-toolkit.

solidity-gas-optimization 설치 방법은?

터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/whackur/solidity-agent-toolkit --skill solidity-gas-optimization 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code, Cursor, OpenClaw에서 사용할 수 있습니다

소스 저장소는 어디인가요?

https://github.com/whackur/solidity-agent-toolkit