uvd-x402-sdk 2.22.0 → 2.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend/index.d.mts +3 -3
- package/dist/backend/index.d.ts +3 -3
- package/dist/backend/index.js +20 -2
- package/dist/backend/index.js.map +1 -1
- package/dist/backend/index.mjs +20 -2
- package/dist/backend/index.mjs.map +1 -1
- package/package.json +201 -200
- package/src/backend/index.ts +24 -6
package/dist/backend/index.d.mts
CHANGED
|
@@ -1037,7 +1037,7 @@ declare function escrowTimeRemaining(escrow: EscrowPayment): number;
|
|
|
1037
1037
|
*/
|
|
1038
1038
|
declare const ERC8004_EXTENSION_ID = "8004-reputation";
|
|
1039
1039
|
/**
|
|
1040
|
-
* ERC-8004 contract addresses per network (
|
|
1040
|
+
* ERC-8004 contract addresses per network (16 networks)
|
|
1041
1041
|
*/
|
|
1042
1042
|
declare const ERC8004_CONTRACTS: Record<string, {
|
|
1043
1043
|
identityRegistry?: string;
|
|
@@ -1048,9 +1048,9 @@ declare const ERC8004_CONTRACTS: Record<string, {
|
|
|
1048
1048
|
* Network type for ERC-8004 operations
|
|
1049
1049
|
*/
|
|
1050
1050
|
/**
|
|
1051
|
-
* Network type for ERC-8004 operations (
|
|
1051
|
+
* Network type for ERC-8004 operations (16 networks)
|
|
1052
1052
|
*/
|
|
1053
|
-
type Erc8004Network = 'ethereum' | 'base-mainnet' | 'polygon' | 'arbitrum' | 'celo' | 'bsc' | 'monad' | 'ethereum-sepolia' | 'base-sepolia' | 'polygon-amoy' | 'arbitrum-sepolia' | 'celo-sepolia';
|
|
1053
|
+
type Erc8004Network = 'ethereum' | 'base-mainnet' | 'polygon' | 'arbitrum' | 'optimism' | 'celo' | 'bsc' | 'monad' | 'avalanche' | 'ethereum-sepolia' | 'base-sepolia' | 'polygon-amoy' | 'arbitrum-sepolia' | 'optimism-sepolia' | 'celo-sepolia' | 'avalanche-fuji';
|
|
1054
1054
|
/**
|
|
1055
1055
|
* Proof of payment returned when settling with ERC-8004 extension
|
|
1056
1056
|
*/
|
package/dist/backend/index.d.ts
CHANGED
|
@@ -1037,7 +1037,7 @@ declare function escrowTimeRemaining(escrow: EscrowPayment): number;
|
|
|
1037
1037
|
*/
|
|
1038
1038
|
declare const ERC8004_EXTENSION_ID = "8004-reputation";
|
|
1039
1039
|
/**
|
|
1040
|
-
* ERC-8004 contract addresses per network (
|
|
1040
|
+
* ERC-8004 contract addresses per network (16 networks)
|
|
1041
1041
|
*/
|
|
1042
1042
|
declare const ERC8004_CONTRACTS: Record<string, {
|
|
1043
1043
|
identityRegistry?: string;
|
|
@@ -1048,9 +1048,9 @@ declare const ERC8004_CONTRACTS: Record<string, {
|
|
|
1048
1048
|
* Network type for ERC-8004 operations
|
|
1049
1049
|
*/
|
|
1050
1050
|
/**
|
|
1051
|
-
* Network type for ERC-8004 operations (
|
|
1051
|
+
* Network type for ERC-8004 operations (16 networks)
|
|
1052
1052
|
*/
|
|
1053
|
-
type Erc8004Network = 'ethereum' | 'base-mainnet' | 'polygon' | 'arbitrum' | 'celo' | 'bsc' | 'monad' | 'ethereum-sepolia' | 'base-sepolia' | 'polygon-amoy' | 'arbitrum-sepolia' | 'celo-sepolia';
|
|
1053
|
+
type Erc8004Network = 'ethereum' | 'base-mainnet' | 'polygon' | 'arbitrum' | 'optimism' | 'celo' | 'bsc' | 'monad' | 'avalanche' | 'ethereum-sepolia' | 'base-sepolia' | 'polygon-amoy' | 'arbitrum-sepolia' | 'optimism-sepolia' | 'celo-sepolia' | 'avalanche-fuji';
|
|
1054
1054
|
/**
|
|
1055
1055
|
* Proof of payment returned when settling with ERC-8004 extension
|
|
1056
1056
|
*/
|
package/dist/backend/index.js
CHANGED
|
@@ -1921,7 +1921,7 @@ var TESTNET_IDENTITY = "0x8004A818BFB912233c491871b3d84c89A494BD9e";
|
|
|
1921
1921
|
var TESTNET_REPUTATION = "0x8004B663056A597Dffe9eCcC1965A193B7388713";
|
|
1922
1922
|
var TESTNET_VALIDATION = "0x8004Cb1BF31DAf7788923b405b754f57acEB4272";
|
|
1923
1923
|
var ERC8004_CONTRACTS = {
|
|
1924
|
-
// Mainnets (
|
|
1924
|
+
// Mainnets (9)
|
|
1925
1925
|
ethereum: {
|
|
1926
1926
|
identityRegistry: MAINNET_IDENTITY,
|
|
1927
1927
|
reputationRegistry: MAINNET_REPUTATION
|
|
@@ -1938,6 +1938,10 @@ var ERC8004_CONTRACTS = {
|
|
|
1938
1938
|
identityRegistry: MAINNET_IDENTITY,
|
|
1939
1939
|
reputationRegistry: MAINNET_REPUTATION
|
|
1940
1940
|
},
|
|
1941
|
+
optimism: {
|
|
1942
|
+
identityRegistry: MAINNET_IDENTITY,
|
|
1943
|
+
reputationRegistry: MAINNET_REPUTATION
|
|
1944
|
+
},
|
|
1941
1945
|
celo: {
|
|
1942
1946
|
identityRegistry: MAINNET_IDENTITY,
|
|
1943
1947
|
reputationRegistry: MAINNET_REPUTATION
|
|
@@ -1950,7 +1954,11 @@ var ERC8004_CONTRACTS = {
|
|
|
1950
1954
|
identityRegistry: MAINNET_IDENTITY,
|
|
1951
1955
|
reputationRegistry: MAINNET_REPUTATION
|
|
1952
1956
|
},
|
|
1953
|
-
|
|
1957
|
+
avalanche: {
|
|
1958
|
+
identityRegistry: MAINNET_IDENTITY,
|
|
1959
|
+
reputationRegistry: MAINNET_REPUTATION
|
|
1960
|
+
},
|
|
1961
|
+
// Testnets (7)
|
|
1954
1962
|
"ethereum-sepolia": {
|
|
1955
1963
|
identityRegistry: TESTNET_IDENTITY,
|
|
1956
1964
|
reputationRegistry: TESTNET_REPUTATION,
|
|
@@ -1971,10 +1979,20 @@ var ERC8004_CONTRACTS = {
|
|
|
1971
1979
|
reputationRegistry: TESTNET_REPUTATION,
|
|
1972
1980
|
validationRegistry: TESTNET_VALIDATION
|
|
1973
1981
|
},
|
|
1982
|
+
"optimism-sepolia": {
|
|
1983
|
+
identityRegistry: TESTNET_IDENTITY,
|
|
1984
|
+
reputationRegistry: TESTNET_REPUTATION,
|
|
1985
|
+
validationRegistry: TESTNET_VALIDATION
|
|
1986
|
+
},
|
|
1974
1987
|
"celo-sepolia": {
|
|
1975
1988
|
identityRegistry: TESTNET_IDENTITY,
|
|
1976
1989
|
reputationRegistry: TESTNET_REPUTATION,
|
|
1977
1990
|
validationRegistry: TESTNET_VALIDATION
|
|
1991
|
+
},
|
|
1992
|
+
"avalanche-fuji": {
|
|
1993
|
+
identityRegistry: TESTNET_IDENTITY,
|
|
1994
|
+
reputationRegistry: TESTNET_REPUTATION,
|
|
1995
|
+
validationRegistry: TESTNET_VALIDATION
|
|
1978
1996
|
}
|
|
1979
1997
|
};
|
|
1980
1998
|
var Erc8004Client = class {
|