generated from MetaMask/template-snap-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add estimation and fee payment, update bls client
- Loading branch information
Showing
19 changed files
with
197 additions
and
537 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{ | ||
"parameters": {}, | ||
"addresses": { | ||
"create2Deployer": "0x036d996D6855B83cd80142f2933d8C2617dA5617", | ||
"precompileCostEstimator": "0x22E4a5251C1F02de8369Dd6f192033F6CB7531A4", | ||
"blsLibrary": "0xF8a11BA6eceC43e23c9896b857128a4269290e39", | ||
"verificationGateway": "0xae7DF242c589D479A5cF8fEA681736e0E0Bb1FB9", | ||
"blsExpander": "0x4473e39a5F33A83B81387bb5F816354F04E724a3", | ||
"utilities": "0x76cE3c1F2E6d87c355560fCbd28ccAcAe03f95F6", | ||
"testToken": "0x5081a39b8A5f0E35a8D959395a630b68B74Dd30f" | ||
"safeSingletonFactory": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7", | ||
"precompileCostEstimator": "0x6eb8F8d661eFe36daB11147830A1e690249bB830", | ||
"verificationGateway": "0xE25229F29BAD62B1198F05F32169B70a9edc84b8", | ||
"blsExpander": "0x30Ae0d96Ba812F53F69deDefd8b472ce43af23A5", | ||
"utilities": "0x4bD2E4e99B50A2a9e6b9dABfA3C8dCD1f885F008", | ||
"testToken": "0x30e69AfbE8c2E8ECe8d6920512452C8d13F8962A" | ||
}, | ||
"auxiliary": { | ||
"chainid": 421613, | ||
"domain": "0x0054159611832e24cdd64c6a133e71d373c5f8553dde6c762e6bffe707ad83cc", | ||
"genesisBlock": 1206441, | ||
"deployedBy": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", | ||
"version": "bc3d1463f163b742026f951a2574016966b5c857" | ||
"walletDomain": "0xb8b27430df81daac9be5d58dcca2e4dd4aae72a95c3fb3f0ee9b77e5357f6bec", | ||
"bundleDomain": "0xde7ef148d5c129757b1740441010559c8a17199c68ae144446131e62c0b953ff", | ||
"genesisBlock": 18628869, | ||
"deployedBy": "0x9D5e5038c47da189f8C67A587c66a952a8b45bAb", | ||
"version": "0d52ddb20f2a395f3fff13130459a8561533024b" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{ | ||
"parameters": {}, | ||
"addresses": { | ||
"create2Deployer": "0x036d996D6855B83cd80142f2933d8C2617dA5617", | ||
"precompileCostEstimator": "0x22E4a5251C1F02de8369Dd6f192033F6CB7531A4", | ||
"blsLibrary": "0xF8a11BA6eceC43e23c9896b857128a4269290e39", | ||
"verificationGateway": "0x643468269B044bA84D3F2190F601E3579d3236BB", | ||
"blsExpander": "0x7E24FBC8A777418f519fdaB565168f19b1C8e2Fa", | ||
"utilities": "0x76cE3c1F2E6d87c355560fCbd28ccAcAe03f95F6", | ||
"testToken": "0xD2a233b4F7b49641eef0Aa0E4927A299737b39CB" | ||
"safeSingletonFactory": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7", | ||
"precompileCostEstimator": "0x6eb8F8d661eFe36daB11147830A1e690249bB830", | ||
"verificationGateway": "0xE25229F29BAD62B1198F05F32169B70a9edc84b8", | ||
"blsExpander": "0x30Ae0d96Ba812F53F69deDefd8b472ce43af23A5", | ||
"utilities": "0x4bD2E4e99B50A2a9e6b9dABfA3C8dCD1f885F008", | ||
"testToken": "0xf2149397e902D6D4E958d027F323Fd37F7Bd11eF" | ||
}, | ||
"auxiliary": { | ||
"chainid": 420, | ||
"domain": "0x0054159611832e24cdd64c6a133e71d373c5f8553dde6c762e6bffe707ad83cc", | ||
"genesisBlock": 4101595, | ||
"deployedBy": "0xe5deB006644a6FF28AC361Fe896D351a40AeA198", | ||
"version": "1d35f4e80a5f5316158e7f01e61a721fe62f0103" | ||
"walletDomain": "0x802fb686c57e5392e94fbeb158cf09881e634e133d41525be792fa87c47cfeaa", | ||
"bundleDomain": "0xa5112f769feb56d1fa9bed9680d850f1362a970daff8bdffc7a231ed0fc02a84", | ||
"genesisBlock": 8830153, | ||
"deployedBy": "0x9D5e5038c47da189f8C67A587c66a952a8b45bAb", | ||
"version": "090405ee0a630f4fb9f0c20ae995240f7474507d" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
packages/wallet-ui/src/components/ui/BundlesList/BundleListItem/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
import { Bundle } from '@aquiladev/bls-snap/src/types/snapState'; | ||
|
||
export const getBundleStatus = (bundle: Bundle): string => { | ||
return bundle.blockNumber ? 'Success' : 'Pending'; | ||
// eslint-disable-next-line no-nested-ternary | ||
return bundle.blockNumber | ||
? 'Success' | ||
: bundle.error | ||
? `Error: ${bundle.error}` | ||
: 'Pending'; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.