-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Remove default gas settings (#10163)
Deletes default fee in gas settings, and makes `maxFeePerGas` required for initializing a `GasSettings` instance. Built on top of #10105.
- Loading branch information
1 parent
9e19244
commit c9a4d88
Showing
45 changed files
with
246 additions
and
219 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { type AccountWallet, type AuthWitnessProvider } from '@aztec/aztec.js'; | ||
import { type AztecAddress, type CompleteAddress, type NodeInfo } from '@aztec/circuits.js'; | ||
import { DefaultDappEntrypoint } from '@aztec/entrypoints/dapp'; | ||
|
||
import { DefaultAccountInterface } from '../defaults/account_interface.js'; | ||
|
||
/** | ||
* Default implementation for an account interface that uses a dapp entrypoint. | ||
*/ | ||
export class DefaultDappInterface extends DefaultAccountInterface { | ||
constructor( | ||
authWitnessProvider: AuthWitnessProvider, | ||
userAddress: CompleteAddress, | ||
dappAddress: AztecAddress, | ||
nodeInfo: Pick<NodeInfo, 'l1ChainId' | 'protocolVersion'>, | ||
) { | ||
super(authWitnessProvider, userAddress, nodeInfo); | ||
this.entrypoint = new DefaultDappEntrypoint( | ||
userAddress.address, | ||
authWitnessProvider, | ||
dappAddress, | ||
nodeInfo.l1ChainId, | ||
nodeInfo.protocolVersion, | ||
); | ||
} | ||
|
||
static createFromUserWallet(wallet: AccountWallet, dappAddress: AztecAddress): DefaultDappInterface { | ||
return new DefaultDappInterface(wallet, wallet.getCompleteAddress(), dappAddress, { | ||
l1ChainId: wallet.getChainId().toNumber(), | ||
protocolVersion: wallet.getVersion().toNumber(), | ||
}); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './dapp_interface.js'; |
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,5 +1,7 @@ | ||
import { type NoirCompiledContract, loadContractArtifact } from '@aztec/aztec.js'; | ||
import { type ContractArtifact, type NoirCompiledContract, loadContractArtifact } from '@aztec/aztec.js'; | ||
|
||
import EcdsaKAccountContractJson from '../../../artifacts/EcdsaKAccount.json' assert { type: 'json' }; | ||
|
||
export const EcdsaKAccountContractArtifact = loadContractArtifact(EcdsaKAccountContractJson as NoirCompiledContract); | ||
export const EcdsaKAccountContractArtifact: ContractArtifact = loadContractArtifact( | ||
EcdsaKAccountContractJson as NoirCompiledContract, | ||
); |
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
Oops, something went wrong.