Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wsdt committed Aug 13, 2024
1 parent 66ccd74 commit ea184e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions contracts/script/deploy-sepolia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ async function main() {
updateEnvVariable("VITE_RPC_PROVIDER", RPC_URL ?? 'https://sepolia.boba.network', frontendEnvPath);

const frontendEnvPathSnapLocal = '../../frontend/.env-boba-sepolia-snaplocal'
updateEnvVariable("VITE_SMART_CONTRACT", tokenPriceAddress, frontendEnvPath);
updateEnvVariable("VITE_SNAP_ORIGIN", 'local:http://localhost:8080', frontendEnvPath);
updateEnvVariable("VITE_SNAP_VERSION", DEFAULT_SNAP_VERSION, frontendEnvPath);
updateEnvVariable("VITE_RPC_PROVIDER", RPC_URL ?? 'https://sepolia.boba.network', frontendEnvPath);
updateEnvVariable("VITE_SMART_CONTRACT", tokenPriceAddress, frontendEnvPathSnapLocal);
updateEnvVariable("VITE_SNAP_ORIGIN", 'local:http://localhost:8080', frontendEnvPathSnapLocal);
updateEnvVariable("VITE_SNAP_VERSION", DEFAULT_SNAP_VERSION, frontendEnvPathSnapLocal);
updateEnvVariable("VITE_RPC_PROVIDER", RPC_URL ?? 'https://sepolia.boba.network', frontendEnvPathSnapLocal);

const snapSiteEnvFolder = '../../snap-account-abstraction-keyring/packages/site/'
updateEnvVariable('USE_LOCAL_NETWORK', "false", `${snapSiteEnvFolder}/.env`)
Expand Down
7 changes: 3 additions & 4 deletions contracts/script/pushProduction.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ async function main() {
"type": "function"
}
]
const ttPABI=[{"type":"constructor","inputs":[{"name":"_helperAddr","type":"address","internalType":"address payable"}],"stateMutability":"nonpayable"},{"type":"function","name":"fetchPrice","inputs":[{"name":"token","type":"string","internalType":"string"}],"outputs":[],"stateMutability":"nonpayable"},{"type":"function","name":"tokenPrices","inputs":[{"name":"","type":"string","internalType":"string"}],"outputs":[{"name":"price","type":"string","internalType":"string"},{"name":"timestamp","type":"uint256","internalType":"uint256"}],"stateMutability":"view"}]

const hybridAccountContract = new ethers.Contract(HYBRID_ACCOUNT, hybridAccountABI, signer);
const hcHelperContract = new ethers.Contract(HC_HELPER_ADDR, hcHelperABI, signer);
Expand Down Expand Up @@ -111,23 +110,23 @@ async function main() {
await permitCaller(TOKEN_PRICE_ACCOUNT_ADDR);
console.log('DONE')
} catch (e) {
console.log('failed registerURL: ', e);
console.log('[Ignore on testnet] failed permitCaller: ', e);
}

try {
console.log('Registering URL...')
await registerUrl(HYBRID_ACCOUNT, BACKEND_URL);
console.log('DONE')
} catch (e) {
console.log('failed registerURL: ', e);
console.log('[Ignore on testnet] failed registerURL: ', e);
}

try {
console.log('Adding Credits...')
await addCredit(HYBRID_ACCOUNT, 100);
console.log('DONE')
} catch (e) {
console.log('failed addCredit: ', e);
console.log('[Ignore on testnet] failed addCredit: ', e);
}
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/.env-boba-sepolia-snaplocal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VITE_SMART_CONTRACT=0x7F854444C38F13363aD1D1Cd3348E7d142f7a2CC
VITE_SMART_CONTRACT=0x6B62ECe2058a63d3BF77cA0a2124C104c0722008
VITE_RPC_PROVIDER=https://sepolia.boba.network
VITE_SNAP_ORIGIN=local:http://localhost:8080
VITE_SNAP_VERSION=1.1.3

0 comments on commit ea184e1

Please sign in to comment.