Skip to content

Commit

Permalink
Merge branch 'main' into sdk-new-release-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-md authored Feb 27, 2025
2 parents 58b38ac + 83e8715 commit a9c29ba
Show file tree
Hide file tree
Showing 49 changed files with 561 additions and 127 deletions.
15 changes: 14 additions & 1 deletion .github/scripts/generateCodeExamples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,20 @@ const repos = [
'/app.json',
'/.env-sample'
]
}
},
{
organization: '5afe',
repo: 'safe-ai-agent-tutorial',
destination: './examples/ai-agent',
branch: 'main',
files: [
'/agent.ts',
'/tools/safe.ts',
'/tools/prices.ts',
'/tools/math.ts',
'/.env.example'
]
},
// {
// organization: '5afe',
// repo: 'safe-7579-tutorial',
Expand Down
29 changes: 25 additions & 4 deletions .github/styles/config/vocabularies/default/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
[Aa]urora
[Aa]rbitrum
[Aa]ccessor
[Aa]uditability
[Aa]utomation
[Bb]ackend
[Bb]inance
[Bb]lockchain
Expand All @@ -22,10 +24,13 @@
[Cc]omposable
[Cc]onfig
[Cc]rypto
[Cc]ryptocurrency
[Cc]ryptocurrencies
[Dd]app
[Dd]apps
[Dd]elist
[Dd]evnet
[Dd]evnets
[Ee]ndhint
[Ee]rigon
[Ee]thereum
Expand All @@ -34,15 +39,19 @@
[Gg]elato
[Gg]oerli
[Gg]nosis
[Gg]wei
[Hh]ackathon
[Ll]inea
[Ll]inea
[Ll]ogics
[Ll][Ll][Mm]
[Mm]ainnet
[Mm]astercopy
[Mm]iddleware
[Mm]onerium
[Mm]ultichain
[Mm]ultisig
[Mm]ultisend
[Mm]ultiSend
[Nn]extra
[Nn]ginx
[Oo]ffchain
Expand All @@ -62,8 +71,10 @@
[Rr]elayers
[Ss]epolia
[Tt]estnet
[Tt]estnets
[Tt]rezor
[Vv]alidator
[Vv]alidators
[Ww]hitepaper
[Xx]code
A1
Expand Down Expand Up @@ -112,10 +123,10 @@ DAO
DAOs
Darwinia
Degen
Devnet
DODOchain
Dogechain
EIP
EIPs
EOA
EOAs
ERC
Expand Down Expand Up @@ -160,7 +171,6 @@ keystore
LUKSO
Lightlink
Lisk
ledgerblue
Mandala
Mantle
Masa
Expand All @@ -173,6 +183,7 @@ Moonbase
Moonbeam
Moonriver
Mordor
Nethermind
Nova
ngrok
Nuxt
Expand All @@ -190,6 +201,7 @@ Prebuild
Protofire
PublicMint
README
READMEs
REI
RPC
Relay Kit
Expand Down Expand Up @@ -244,6 +256,7 @@ UI Kit
Uniswap
Ultron
USD
UserOp
Velas
Venidium
Viction
Expand Down Expand Up @@ -272,8 +285,11 @@ checksummed
createTransaction
const
deployer
eth_getLogs
eSpace
execTransaction
ledgerblue
ledgereth
maxWidth
mempool
messageHash
Expand All @@ -282,11 +298,16 @@ npm
onboarding
onchain
peaq
pnpm
pluggable
polyfills
precompile(?s)
precompile
precompiles
preimage
refetch
refetches
refetching
rollups
saltNonce
stablecoin
superset
Expand Down
Binary file added assets/ai-agent-setup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Safe4337Pack } from '@safe-global/relay-kit'
const safe4337Pack = await Safe4337Pack.init({
provider: 'https://eth-sepolia.public.blastapi.io',
signer: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?apikey=${PIMLICO_API_KEY}`,
bundlerUrl: `https://api.pimlico.io/v1/sepolia/rpc?add_balance_override&apikey=${PIMLICO_API_KEY}`,
options: {
safeAddress: '0x97566B1eCaCd321736F183117C26ACe1b72F4a1b'
}
Expand Down
10 changes: 10 additions & 0 deletions examples/ai-agent/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
AGENT_PRIVATE_KEY="0x..."
AGENT_ADDRESS="0x..."

# Optional:
OPENAI_API_KEY="sk-..."
LANGCHAIN_API_KEY="lsv2_..."
LANGCHAIN_CALLBACKS_BACKGROUND="true"
LANGCHAIN_TRACING_V2="true"
LANGCHAIN_PROJECT="Safe Agent Tutorial"

Loading

0 comments on commit a9c29ba

Please sign in to comment.