Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions registry/figment/calldata-PoolDynamic-MUSDC-sepolia.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "../../specs/erc7730-v2.schema.json",
"includes": "common-figment-pool-dynamic.json",
"context": {
"$id": "Stablecoin Staking Yield MUSDC",
"contract": { "deployments": [{ "chainId": 11155111, "address": "0xD1f0774ccff0CE4F36DeA57b6a28aB7FeB0a01B0" }] }
},
"metadata": { "constants": { "underlyingToken": "0xfd4f11A2aaE86165050688c85eC9ED6210C427A9", "underlyingTicker": "MUSDC" } }
}
9 changes: 9 additions & 0 deletions registry/figment/calldata-PoolDynamic-USDC.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "../../specs/erc7730-v2.schema.json",
"includes": "common-figment-pool-dynamic.json",
"context": {
"$id": "Stablecoin Staking Yield USDC",
"contract": { "deployments": [{ "chainId": 1, "address": "0xe1b1252652A2FF0CC3A4214eE73d9FeD1FEa5b4f" }] }
},
"metadata": { "constants": { "underlyingToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "underlyingTicker": "USDC" } }
}
42 changes: 42 additions & 0 deletions registry/figment/common-figment-pool-dynamic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"$schema": "../../specs/erc7730-v2.schema.json",
"metadata": {
"owner": "Figment",
"info": { "url": "https://figment.io/" }
},
"display": {
"formats": {
"deposit(uint256 assets, address lender)": {
"intent": "Deposit into Stablecoin Vault",
"fields": [
{
"path": "assets",
"label": "Amount to deposit",
"format": "tokenAmount",
"params": { "token": "$.metadata.constants.underlyingToken" },
"visible": "always"
},
{
"path": "lender",
"label": "Depositing wallet",
"format": "addressName",
"params": { "types": ["eoa", "contract"] },
"visible": "always"
}
]
},
"requestRedeem(uint256 shares)": {
"intent": "Redeem from Stablecoin Vault",
"fields": [
{
"path": "shares",
"label": "Shares to redeem",
"format": "tokenAmount",
"params": { "tokenPath": "@.to" },
"visible": "always"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"$schema": "../../../specs/erc7730-tests-v2.schema.json",
"descriptor": "../calldata-PoolDynamic-MUSDC-sepolia.json",
"dataProvider": {
"tokens": {
"0xfd4f11a2aae86165050688c85ec9ed6210c427a9": {
"symbol": "MUSDC",
"decimals": 6,
"name": "Mock USDC"
},
"0xd1f0774ccff0ce4f36dea57b6a28ab7feb0a01b0": {
"symbol": "xFIGSOL",
"decimals": 6,
"name": "Figment Stablecoin Staking Yield MUSDC"
}
}
},
"tests": [
{
"description": "Deposit 10 MUSDC into the Sepolia PoolDynamic vault",
"rawTx": "0x02f87283aa36a78201138459682f0084acc5dfa08304e43d94d1f0774ccff0ce4f36dea57b6a28ab7feb0a01b080b8446e553f650000000000000000000000000000000000000000000000000000000000989680000000000000000000000000f54f2ddb122f52456e9344d0ac2f72c7deb048d3c0",
"txHash": "0xfe3ae76a50dfbdd6a051892ba35ff869228ac0bcbe747f9594e4b1b14bc5840a",
"expected": {
"intent": "Deposit into Stablecoin Vault",
"owner": "Figment",
"fields": [
{ "label": "Amount to deposit", "value": "10 MUSDC" },
{ "label": "Depositing wallet", "value": "0xF54F2Ddb122F52456E9344d0Ac2F72C7DeB048D3" }
]
}
},
{
"description": "Request redemption of vault shares on Sepolia",
"rawTx": "0x02f85183aa36a78201148459682f0084aaad205c830802c894d1f0774ccff0ce4f36dea57b6a28ab7feb0a01b080a4aa2f892d000000000000000000000000000000000000000000000000000000000080472ac0",
"txHash": "0x378c1084e6f10dca37ecbad65406bcf14ad314b07e15dc71d0d7331160fcb909",
"expected": {
"intent": "Redeem from Stablecoin Vault",
"owner": "Figment",
"fields": [
{ "label": "Shares to redeem", "value": "8.406826 xFIGSOL" }
]
}
}
]
}
45 changes: 45 additions & 0 deletions registry/figment/testsv2/calldata-PoolDynamic-USDC.tests.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"$schema": "../../../specs/erc7730-tests-v2.schema.json",
"descriptor": "../calldata-PoolDynamic-USDC.json",
"dataProvider": {
"tokens": {
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48": {
"symbol": "USDC",
"decimals": 6,
"name": "USD Coin"
},
"0xe1b1252652a2ff0cc3a4214ee73d9fed1fea5b4f": {
"symbol": "xSOLY",
"decimals": 6,
"name": "Figment Stablecoin Staking Yield USDC"
}
}
},
"tests": [
{
"description": "Deposit 1 USDC into the mainnet PoolDynamic vault",
"rawTx": "0x02f86d01188477359400848b218dff8304e43d94e1b1252652a2ff0cc3a4214ee73d9fed1fea5b4f80b8446e553f6500000000000000000000000000000000000000000000000000000000000f4240000000000000000000000000b77c9b529bf7f41d95c0b508e64a4bd647ed7908c0",
"txHash": "0x8e8a969991a2e883a7e4b625c5b155cefed0076da5174cee043c0dc75c430306",
"expected": {
"intent": "Deposit into Stablecoin Vault",
"owner": "Figment",
"fields": [
{ "label": "Amount to deposit", "value": "1 USDC" },
{ "label": "Depositing wallet", "value": "0xb77c9b529Bf7f41D95c0B508e64a4BD647eD7908" }
]
}
},
{
"description": "Request redemption of vault shares on mainnet",
"rawTx": "0x02f84c01198477359400848fe28009830802c894e1b1252652a2ff0cc3a4214ee73d9fed1fea5b4f80a4aa2f892d00000000000000000000000000000000000000000000000000000000000efc83c0",
"txHash": "0xaf19b6741413ea9397f2a339720674a3c585c6f1e3181e5261f52070522dd5c7",
"expected": {
"intent": "Redeem from Stablecoin Vault",
"owner": "Figment",
"fields": [
{ "label": "Shares to redeem", "value": "0.982147 xSOLY" }
]
}
}
]
}