Skip to content

Commit 1a9b1e2

Browse files
πŸ”„ synced file(s) with circlefin/modularwallets-android-sdk-dev (#13)
synced local file(s) with [circlefin/modularwallets-android-sdk-dev](https://github.com/circlefin/modularwallets-android-sdk-dev). <details> <summary>Changed files</summary> <ul> <li>synced local directory <code>lib/</code> with remote directory <code>lib/</code></li> </ul> </details> --- This PR was created automatically by the [repo-file-sync-action](https://github.com/BetaHuhn/repo-file-sync-action) workflow run [#19655499562](https://github.com/circlefin/modularwallets-android-sdk-dev/actions/runs/19655499562)
1 parent f91c533 commit 1a9b1e2

File tree

5 files changed

+59
-3
lines changed

5 files changed

+59
-3
lines changed

β€Žlib/src/main/java/com/circle/modularwallets/core/apis/bundler/BundlerApiImpl.ktβ€Ž

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,10 @@ internal object BundlerApiImpl : BundlerApi {
284284
tmpUserOp.callGasLimit = BigInteger.ZERO
285285
tmpUserOp.preVerificationGas = BigInteger.ZERO
286286
if(paymaster != null){
287-
tmpUserOp.paymasterVerificationGasLimit = BigInteger.ZERO
288-
tmpUserOp.paymasterPostOpGasLimit = BigInteger.ZERO
287+
// Preserve stub data values if available, only use ZERO as fallback
288+
// This aligns with Viem's behavior: prioritize paymaster-provided gas limits
289+
tmpUserOp.paymasterVerificationGasLimit = tmpUserOp.paymasterVerificationGasLimit ?: BigInteger.ZERO
290+
tmpUserOp.paymasterPostOpGasLimit = tmpUserOp.paymasterPostOpGasLimit ?: BigInteger.ZERO
289291
} else{
290292
tmpUserOp.paymasterVerificationGasLimit = null
291293
tmpUserOp.paymasterPostOpGasLimit = null
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright 2025 Circle Internet Group, Inc. All rights reserved.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at.
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0.
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
package com.circle.modularwallets.core.chains
20+
21+
object Monad : Chain() {
22+
override val chainId: Long
23+
get() = 143L
24+
}
25+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright 2025 Circle Internet Group, Inc. All rights reserved.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at.
9+
*
10+
* Http://www.apache.org/licenses/LICENSE-2.0.
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
package com.circle.modularwallets.core.chains
20+
21+
object MonadTestnet : Chain() {
22+
override val chainId: Long
23+
get() = 10143L
24+
}
25+

β€Žlib/src/main/java/com/circle/modularwallets/core/constants/AbiConstants.ktβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ internal val CONTRACT_ADDRESS: Map<String, String> = mapOf(
3939
Token.PolygonAmoy_USDC.name to "0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582",
4040
Token.Unichain_USDC.name to "0x078D782b760474a361dDA0AF3839290b0EF57AD6",
4141
Token.UnichainSepolia_USDC.name to "0x31d0220469e10c4E71834a79b1f276d740d3768F",
42+
Token.Monad_USDC.name to "0x754704bc059f8c67012fed69bc8a327a5aafb603", // Note: MONAD mainnet USDC contract address
43+
Token.MonadTestnet_USDC.name to "0x534b2f3A21130d7a60830c2Df862319e593943A3",
4244
)
4345
val CIRCLE_PLUGIN_ADD_OWNERS_ABI = """
4446
[

β€Žlib/src/main/java/com/circle/modularwallets/core/models/Token.ktβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,7 @@ enum class Token {
3838
Polygon_USDC,
3939
PolygonAmoy_USDC,
4040
Unichain_USDC,
41-
UnichainSepolia_USDC;
41+
UnichainSepolia_USDC,
42+
Monad_USDC,
43+
MonadTestnet_USDC;
4244
}

0 commit comments

Comments
Β (0)