uvd-x402-sdk 2.18.0 → 2.19.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
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 (12 networks)
|
|
1041
1041
|
*/
|
|
1042
1042
|
declare const ERC8004_CONTRACTS: Record<string, {
|
|
1043
1043
|
identityRegistry?: string;
|
|
@@ -1047,7 +1047,10 @@ declare const ERC8004_CONTRACTS: Record<string, {
|
|
|
1047
1047
|
/**
|
|
1048
1048
|
* Network type for ERC-8004 operations
|
|
1049
1049
|
*/
|
|
1050
|
-
|
|
1050
|
+
/**
|
|
1051
|
+
* Network type for ERC-8004 operations (12 networks)
|
|
1052
|
+
*/
|
|
1053
|
+
type Erc8004Network = 'ethereum' | 'base-mainnet' | 'polygon' | 'arbitrum' | 'celo' | 'bsc' | 'monad' | 'ethereum-sepolia' | 'base-sepolia' | 'polygon-amoy' | 'arbitrum-sepolia' | 'celo-sepolia';
|
|
1051
1054
|
/**
|
|
1052
1055
|
* Proof of payment returned when settling with ERC-8004 extension
|
|
1053
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 (12 networks)
|
|
1041
1041
|
*/
|
|
1042
1042
|
declare const ERC8004_CONTRACTS: Record<string, {
|
|
1043
1043
|
identityRegistry?: string;
|
|
@@ -1047,7 +1047,10 @@ declare const ERC8004_CONTRACTS: Record<string, {
|
|
|
1047
1047
|
/**
|
|
1048
1048
|
* Network type for ERC-8004 operations
|
|
1049
1049
|
*/
|
|
1050
|
-
|
|
1050
|
+
/**
|
|
1051
|
+
* Network type for ERC-8004 operations (12 networks)
|
|
1052
|
+
*/
|
|
1053
|
+
type Erc8004Network = 'ethereum' | 'base-mainnet' | 'polygon' | 'arbitrum' | 'celo' | 'bsc' | 'monad' | 'ethereum-sepolia' | 'base-sepolia' | 'polygon-amoy' | 'arbitrum-sepolia' | 'celo-sepolia';
|
|
1051
1054
|
/**
|
|
1052
1055
|
* Proof of payment returned when settling with ERC-8004 extension
|
|
1053
1056
|
*/
|
package/dist/backend/index.js
CHANGED
|
@@ -1908,20 +1908,66 @@ function escrowTimeRemaining(escrow) {
|
|
|
1908
1908
|
return new Date(escrow.expiresAt).getTime() - Date.now();
|
|
1909
1909
|
}
|
|
1910
1910
|
var ERC8004_EXTENSION_ID = "8004-reputation";
|
|
1911
|
+
var MAINNET_IDENTITY = "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432";
|
|
1912
|
+
var MAINNET_REPUTATION = "0x8004BAa17C55a88189AE136b182e5fdA19dE9b63";
|
|
1913
|
+
var TESTNET_IDENTITY = "0x8004A818BFB912233c491871b3d84c89A494BD9e";
|
|
1914
|
+
var TESTNET_REPUTATION = "0x8004B663056A597Dffe9eCcC1965A193B7388713";
|
|
1915
|
+
var TESTNET_VALIDATION = "0x8004Cb1BF31DAf7788923b405b754f57acEB4272";
|
|
1911
1916
|
var ERC8004_CONTRACTS = {
|
|
1917
|
+
// Mainnets (7)
|
|
1912
1918
|
ethereum: {
|
|
1913
|
-
identityRegistry:
|
|
1914
|
-
reputationRegistry:
|
|
1919
|
+
identityRegistry: MAINNET_IDENTITY,
|
|
1920
|
+
reputationRegistry: MAINNET_REPUTATION
|
|
1915
1921
|
},
|
|
1922
|
+
"base-mainnet": {
|
|
1923
|
+
identityRegistry: MAINNET_IDENTITY,
|
|
1924
|
+
reputationRegistry: MAINNET_REPUTATION
|
|
1925
|
+
},
|
|
1926
|
+
polygon: {
|
|
1927
|
+
identityRegistry: MAINNET_IDENTITY,
|
|
1928
|
+
reputationRegistry: MAINNET_REPUTATION
|
|
1929
|
+
},
|
|
1930
|
+
arbitrum: {
|
|
1931
|
+
identityRegistry: MAINNET_IDENTITY,
|
|
1932
|
+
reputationRegistry: MAINNET_REPUTATION
|
|
1933
|
+
},
|
|
1934
|
+
celo: {
|
|
1935
|
+
identityRegistry: MAINNET_IDENTITY,
|
|
1936
|
+
reputationRegistry: MAINNET_REPUTATION
|
|
1937
|
+
},
|
|
1938
|
+
bsc: {
|
|
1939
|
+
identityRegistry: MAINNET_IDENTITY,
|
|
1940
|
+
reputationRegistry: MAINNET_REPUTATION
|
|
1941
|
+
},
|
|
1942
|
+
monad: {
|
|
1943
|
+
identityRegistry: MAINNET_IDENTITY,
|
|
1944
|
+
reputationRegistry: MAINNET_REPUTATION
|
|
1945
|
+
},
|
|
1946
|
+
// Testnets (5)
|
|
1916
1947
|
"ethereum-sepolia": {
|
|
1917
|
-
identityRegistry:
|
|
1918
|
-
reputationRegistry:
|
|
1919
|
-
validationRegistry:
|
|
1948
|
+
identityRegistry: TESTNET_IDENTITY,
|
|
1949
|
+
reputationRegistry: TESTNET_REPUTATION,
|
|
1950
|
+
validationRegistry: TESTNET_VALIDATION
|
|
1920
1951
|
},
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1952
|
+
"base-sepolia": {
|
|
1953
|
+
identityRegistry: TESTNET_IDENTITY,
|
|
1954
|
+
reputationRegistry: TESTNET_REPUTATION,
|
|
1955
|
+
validationRegistry: TESTNET_VALIDATION
|
|
1956
|
+
},
|
|
1957
|
+
"polygon-amoy": {
|
|
1958
|
+
identityRegistry: TESTNET_IDENTITY,
|
|
1959
|
+
reputationRegistry: TESTNET_REPUTATION,
|
|
1960
|
+
validationRegistry: TESTNET_VALIDATION
|
|
1961
|
+
},
|
|
1962
|
+
"arbitrum-sepolia": {
|
|
1963
|
+
identityRegistry: TESTNET_IDENTITY,
|
|
1964
|
+
reputationRegistry: TESTNET_REPUTATION,
|
|
1965
|
+
validationRegistry: TESTNET_VALIDATION
|
|
1966
|
+
},
|
|
1967
|
+
"celo-sepolia": {
|
|
1968
|
+
identityRegistry: TESTNET_IDENTITY,
|
|
1969
|
+
reputationRegistry: TESTNET_REPUTATION,
|
|
1970
|
+
validationRegistry: TESTNET_VALIDATION
|
|
1925
1971
|
}
|
|
1926
1972
|
};
|
|
1927
1973
|
var Erc8004Client = class {
|