Skip to content

Commit 7edcd8d

Browse files
committed
Initial commit - release revision of @metamask/delegation-toolkit@0.12.0
0 parents  commit 7edcd8d

555 files changed

Lines changed: 77217 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.depcheckrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"ignores": [
3+
"@lavamoat/allow-scripts",
4+
"@lavamoat/preinstall-always-fail",
5+
"@metamask/auto-changelog",
6+
"@types/*",
7+
"prettier-plugin-packagejson",
8+
"ts-node",
9+
"typedoc"
10+
]
11+
}

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

.env.example

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Accounts
2+
export TESTNET_PK_DEPLOYER='81a3043b0d09bef1a62a755f8368855ccbd8e29f72336c47351f77641304dc10'
3+
export TESTNET_HDWALLET_MNEMONIC=
4+
export MAINNET_PK_DEPLOYER=''
5+
export MAINNET_HDWALLET_MNEMONIC=''
6+
7+
# Forking
8+
export FORK_BLOCK_NUMBER=0
9+
10+
# JSON-RPC Endpoints
11+
export ARCHIVE_NODE_RPC_URL=''
12+
export ETHEREUM_MAINNET_RPC_URL=''
13+
export ETHEREUM_GOERLI_RPC_URL=''
14+
export POLYGON_MAINNET_RPC_URL=''
15+
export POLYGON_TESTNET_RPC_URL=''
16+
export OPTIMISM_MAINNET_RPC_URL=''
17+
export OPTIMISM_TESTNET_RPC_URL=''
18+
19+
# Verification
20+
export ETHERSCAN_API_KEY=''
21+
export POLYGONSCAN_API_KEY=''
22+
export OPTIMISMSCAN_API_KEY=''
23+
24+
# APIs
25+
export REPORT_GAS=''
26+
export COINMARKETCAP_API_KEY=''
27+
export PIMLICO_API_KEY=

.eslintrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// This configuration only applies to the package manager root.
2+
/** @type {import("eslint").Linter.Config} */
3+
module.exports = {
4+
ignorePatterns: ['apps/**', 'packages/**'],
5+
extends: ['../../shared/config/library.eslint.js'],
6+
parser: '@typescript-eslint/parser',
7+
parserOptions: {
8+
project: true,
9+
},
10+
};

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
* text=auto
2+
3+
yarn.lock linguist-generated=false
4+
5+
# yarn v3
6+
# See: https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
7+
/.yarn/releases/** binary
8+
/.yarn/plugins/** binary

.github/CODEOWNERS

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Lines starting with '#' are comments.
2+
3+
# GUIDELINES:
4+
# Each line is a file pattern followed by one or more owners.
5+
# Owners bear a responsibility to the organization and the users of this
6+
# application. Repository administrators have the ability to merge pull
7+
# requests that have not yet received the requisite reviews as outlined
8+
# in this file. Do not force merge any PR without confidence that it
9+
# follows all policies or without full understanding of the impact of
10+
# those changes on build, release and publishing outcomes.
11+
12+
/packages/delegation-abis @MetaMask/delegation
13+
/packages/delegation-deployments @MetaMask/delegation
14+
/packages/delegation-toolkit @MetaMask/delegation

.github/ISSUE_TEMPLATE/feature.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: Feature
3+
about: For new features
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
### **Description**
11+
12+
Describe the task. What does this aim to implement?
13+
14+
### **Technical Details**
15+
16+
- Implementation details
17+
- Insight to what needs to be done
18+
- Etc.
19+
20+
### **Acceptance Criteria**
21+
22+
- Are metrics required?
23+
- Are translations required?
24+
- Cases to satisfy
25+
- XYZ should work
26+
- Etc.
27+
28+
Scenario: xxxx
29+
- GIVEN a user is in x state
30+
- WHEN a user does x
31+
- AND a user does x
32+
- THEN x should occur
33+
34+
### **References**
35+
36+
- References go here.
37+
- Issue numbers. Links.
38+
- Slack threads.
39+
- Etc.

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Please see the documentation for all configuration options:
2+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: 'npm'
7+
directory: '/'
8+
schedule:
9+
interval: 'daily'
10+
time: '06:00'
11+
allow:
12+
- dependency-name: '@metamask/*'
13+
target-branch: 'main'
14+
versioning-strategy: 'increase-if-necessary'
15+
open-pull-requests-limit: 10

.github/issue_template.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
### **Description**
2+
3+
Describe the task. What does this aim to implement?
4+
5+
### **Technical Details**
6+
7+
- Implementation details
8+
- Insight to what needs to be done
9+
- Etc.
10+
11+
### **Acceptance Criteria**
12+
13+
- Are metrics required?
14+
- Are translations required?
15+
- Cases to satisfy
16+
- XYZ should work
17+
- Etc.
18+
19+
Scenario: xxxx
20+
- GIVEN a user is in x state
21+
- WHEN a user does x
22+
- AND a user does x
23+
- THEN x should occur
24+
25+
### **References**
26+
27+
- References go here.
28+
- Issue numbers. Links.
29+
- Slack threads.
30+
- Etc.

.github/pull_request_template.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
## 📝 Description
2+
3+
Provide a brief description of the changes in this PR
4+
5+
## 🔄 What Changed?
6+
7+
List the specific changes made:
8+
-
9+
-
10+
-
11+
12+
## 🚀 Why?
13+
14+
Explain the motivation behind these changes:
15+
-
16+
-
17+
18+
## 🧪 How to Test?
19+
20+
Describe how to test these changes:
21+
22+
- [ ] Manual testing steps:
23+
1.
24+
2.
25+
3.
26+
- [ ] Automated tests added/updated
27+
- [ ] All existing tests pass
28+
29+
## ⚠️ Breaking Changes
30+
31+
List any breaking changes:
32+
33+
- [ ] No breaking changes
34+
- [ ] Breaking changes (describe below):
35+
36+
## 📋 Checklist
37+
38+
Check off completed items:
39+
40+
- [ ] Code follows the project's coding standards
41+
- [ ] Self-review completed
42+
- [ ] Documentation updated (if needed)
43+
- [ ] Tests added/updated
44+
- [ ] Changelog updated (if needed)
45+
- [ ] All CI checks pass
46+
47+
## 🔗 Related Issues
48+
49+
Link to related issues:
50+
Closes #
51+
Related to #
52+
53+
## 📚 Additional Notes
54+
55+
Any additional information, concerns, or context:

0 commit comments

Comments
 (0)