@arianee/common-types
Advanced tools
Comparing version 0.28.0 to 0.29.0
{ | ||
"name": "@arianee/common-types", | ||
"version": "0.28.0", | ||
"version": "0.29.0", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "tslib": "2.5.0" |
@@ -6,1 +6,40 @@ export type Protocol = { | ||
export type ChainType = 'mainnet' | 'testnet'; | ||
export type ProtocolDetails = ProtocolDetailsV1 | ProtocolDetailsV2; | ||
export type ProtocolDetailsBase = { | ||
protocolVersion: ProtocolVersion; | ||
chainId: number; | ||
httpProvider: string; | ||
gasStation: string; | ||
}; | ||
export type ProtocolVersion = ProtocolV1Versions | ProtocolV2Versions; | ||
export type ProtocolV1Versions = '1' | '1.0' | '1.1' | '1.5'; | ||
export type ProtocolV2Versions = '2.0'; | ||
export interface ProtocolDetailsV1 extends ProtocolDetailsBase { | ||
protocolVersion: ProtocolV1Versions; | ||
contractAdresses: { | ||
smartAsset: string; | ||
identity: string; | ||
aria: string; | ||
store: string; | ||
creditHistory: string; | ||
whitelist: string; | ||
eventArianee: string; | ||
message: string; | ||
userAction: string; | ||
updateSmartAssets: string; | ||
}; | ||
} | ||
export interface ProtocolDetailsV2 extends ProtocolDetailsBase { | ||
protocolVersion: ProtocolV2Versions; | ||
contractAdresses: { | ||
nft: string; | ||
ownershipRegistry: string; | ||
eventHub: string; | ||
messageHub: string; | ||
rulesManager: string; | ||
creditManager: string; | ||
}; | ||
nftInterfaces: Record<ProtocolV2NftInterface, boolean>; | ||
} | ||
export type ProtocolV2NftInterface = 'ERC721' | 'SmartAsset' | 'SmartAssetBurnable' | 'SmartAssetRecoverable' | 'SmartAssetSoulbound' | 'SmartAssetUpdatable' | 'SmartAssetURIStorage' | 'SmartAssetURIStorageOverridable'; | ||
export type ProtocolDetailsResolver = (slug: string) => Promise<ProtocolDetails>; |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
21503
482
1