Giter VIP home page Giter VIP logo

modules's People

Contributors

0xankit avatar ajansari95 avatar arhamchordia avatar assetmantleadmin avatar avkr003 avatar bahdotsh avatar deepanshutr avatar gayathriah avatar jekamas avatar lovesh2407 avatar muku314115 avatar nk307 avatar persistenceadmin avatar persistencesujith avatar prabhavv avatar prashantkrv avatar pratikbin avatar puneet2019 avatar ritesh-ranka avatar saisunkari19 avatar sujith-surendran avatar unnati914 avatar vision2point0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

modules's Issues

getting MetaDataError for MakeMsg

{"+ve", fields{testBaseReq, "9UNIA3_tulK2vRE0nSmsHKNzhDxoCBHI4z8XXfLO1FM=.pvamJCA8talIpNPu8fekxGhvFtTGtjSRhAaaKQOrHfg", "9UNIA3_tulK2vRE0nSmsHKNzhDxoCBHI4z8XXfLO1FM=.pvamJCA8talIpNPu8fekxGhvFtTGtjSRhAaaKQOrHfg", "9UNIA3_tulK2vRE0nSmsHKNzhDxoCBHI4z8XXfLO1FM=", "maintainedProperty:S|maintainedProperty", false, false, false}, newMessage(fromAccAddress, testFromID, testToID, testClassificationID, maintainedProperties, false, false, false), false}, //TODO: issue==> getting MetaDataError that is not expected

{"+ve", fields{testBaseReq, toAddress, "9UNIA3_tulK2vRE0nSmsHKNzhDxoCBHI4z8XXfLO1FM=.pvamJCA8talIpNPu8fekxGhvFtTGtjSRhAaaKQOrHfg", "9UNIA3_tulK2vRE0nSmsHKNzhDxoCBHI4z8XXfLO1FM=", immutableMetaPropertiesString, immutablePropertiesString, mutableMetaPropertiesString, mutablePropertiesString}, newMessage(fromAccAddress, toAccAddress, testFromID, testClassificationID, immutableMetaProperties, immutableProperties, mutableMetaProperties, mutableProperties), false}, //TODO: issue==> getting MetaDataError that is not expected

couldn't mutate list in list.go & propertyList.go

{"+ve", []traits.Listable{base.NewPropertyID(base.NewID("ID"), base.NewID("Data1"))}, args{[]traits.Listable{base.NewPropertyID(base.NewID("ID"), base.NewID("Data2"))}}, list{base.NewPropertyID(base.NewID("ID"), base.NewID("Data2"))}}, // TODO: fix mutate issue

{"+ve", fields{NewList(propertiesToListables([]properties.Property{base.NewProperty(baseIDs.NewID("a"), NewStringData("factA"))}...)...)}, args{nil}, propertyList{NewList(propertiesToListables([]properties.Property{base.NewProperty(baseIDs.NewID("a"), NewStringData("factA"))}...)...)}}, //TODO: Type & value same but not matching

auxiliaryRequest for case is verify.auxiliaryRequest but it should be define.auxiliaryRequest

func auxiliaryRequestFromInterface(request helpers.AuxiliaryRequest) auxiliaryRequest {
switch value := request.(type) {
case auxiliaryRequest:
return value
default:
return auxiliaryRequest{}
}
}

func (transactionKeeper transactionKeeper) Transact(context sdkTypes.Context, msg sdkTypes.Msg) helpers.TransactionResponse {
message := messageFromInterface(msg)
if auxiliaryResponse := transactionKeeper.authenticateAuxiliary.GetKeeper().Help(context, authenticate.NewAuxiliaryRequest(message.From, message.FromID)); !auxiliaryResponse.IsSuccessful() {
return newTransactionResponse(auxiliaryResponse.GetError())
}
if auxiliaryResponse := transactionKeeper.deputizeAuxiliary.GetKeeper().Help(context, deputize.NewAuxiliaryRequest(message.FromID, message.ToID, message.ClassificationID, message.MaintainedProperties, message.AddMaintainer, message.RemoveMaintainer, message.MutateMaintainer)); !auxiliaryResponse.IsSuccessful() {
return newTransactionResponse(auxiliaryResponse.GetError())
}
return newTransactionResponse(nil)
}

wong compare result for metaProperty()

{"+ve compare with metaProperty with no Data", fields{testPropertyID, testData}, args{metaProperty{ID: base.NewPropertyID(base.NewID("ID"), base.NewID("S"))}}, 1}, //TODO: wong compare result
{"+ve", fields{testPropertyID, testData}, args{metaProperty{ID: base.NewPropertyID(base.NewID("ID"), base.NewID("S")), Data: NewStringData("Data2")}}, 1}, //TODO: wong compare result

json output flag is not working

JSON output flag is not working. This will be great if you can integrate this flag.

assetClient query identities identities --output json

Error:

ERROR: Cannot encode unregistered concrete type mappable.identity.

Remove() in propertylist.go not removing from List

{"+ve", fields{NewList(propertiesToListables([]properties.Property{base.NewProperty(baseIDs.NewID("a"), NewStringData("factA"))}...)...)}, args{nil}, propertyList{NewList(propertiesToListables([]properties.Property{base.NewProperty(baseIDs.NewID("a"), NewStringData("factA"))}...)...)}}, //TODO: Type & value same but not matching
{"+ve", fields{NewList()}, args{[]properties.Property{base.NewProperty(baseIDs.NewID("a"), NewStringData("factA"))}}, propertyList{NewList()}},
{"+ve", fields{NewList(propertiesToListables([]properties.Property{base.NewProperty(baseIDs.NewID("a"), NewStringData("factA")), base.NewProperty(baseIDs.NewID("b"), NewStringData("factB"))}...)...)}, args{[]properties.Property{base.NewProperty(baseIDs.NewID("a"), NewStringData("factA"))}}, propertyList{NewList()}}, // TODO: raise issue

Invalid base64 string causing failure

The use of testFromID, err := baseIDs.ReadIdentityID("CBepOLnJFnKO9NEyZlSv7r80nKNZFFXRqHfnsObZ_KU=.w1D9MwUD81HdnMXMEn-RjphrPDo76MVVH3EcgA81oVQ=") is causing errors, seems like an invalid base64 string however the real input required is not known yet so can’t update it


incorrect IdentityID initialization with nil classificationID and immutables

baseIDs.NewIdentityID(nil, nil)
having nil classificationID and immutables, NewIdentityID panics

HashID: GenerateHashID(classificationID.Bytes(), immutables.GenerateHashID().Bytes()),

Instead we can use:
baseIDs.PrototypeIdentityID()

orders.Iterate(key.NewKey(baseIDs.NewOrderID(order.GetClassificationID(), order.GetTakerOwnableID(), order.GetMakerOwnableID(), sdkTypes.SmallestDec(), baseTypes.NewHeight(-1), baseIDs.NewIdentityID(nil, nil), baseQualified.NewImmutables(baseLists.NewPropertyList()))), accumulator)

panics for nil in NewMetaProperty()

{"+ve for nil", args{}, metaProperty{}}, //TODO: panics for nil

{"+ve", fields{testPropertyID, testData}, args{metaProperty{}}, 1}, //TODO: panics for nil

{"+ve with nil", fields{}, args{metaProperty{}}, 0}, //TODO: panics for nil

{"+ve", fields{testPropertyID, testData}, testMetaProperty.GetData().GetID()}, //TODO: panics
{"+ve", fields{}, metaProperty{}.Data.GetID()}, //TODO: panics for nil

{"+ve", fields{testPropertyID, testData}, testData.GenerateHash()}, //TODO: panics
{"+ve", fields{}, metaProperty{}.Data.GenerateHash()}, //TODO: panics for nil

{"+ve", fields{testPropertyID, testData}, testKey}, //TODO: panics
{"+ve", fields{}, metaProperty{}.ID.GetKey()}, //TODO: panics

{"+ve", fields{testPropertyID, testData}, testData.GetType()}, //TODO: panics
{"+ve", fields{}, metaProperty{}.Data.GetType()}, //TODO: panics

wong compare result in property.go

{"+ve compare with property with no Data", fields{testPropertyID, testData.GetID()}, args{property{ID: base.NewPropertyID(base.NewID("ID"), base.NewID("S"))}}, 1}, //TODO: wong compare result
{"+ve", fields{testPropertyID, testData.GetID()}, args{property{ID: base.NewPropertyID(base.NewID("ID"), base.NewID("S")), DataID: NewStringData("Data2").GetID()}}, 1}, //TODO: wong compare result

stack overflow for listData.Search()

Instead of

func (listData listData) Search(data data.Data) (int, bool) {
	return listData.Search(data)
}

It should be

func (listData listData) Search(data data.Data) (int, bool) {
	return listData.Value.Search(data)
}

at listData.go

interface conversion: base.classificationID is not ids.IdentityID: missing method GetHashID

func (maintainer maintainer) GetIdentityID() ids.IdentityID {
if property := maintainer.GetProperty(constants.IdentityIDProperty.GetID()); property != nil && property.IsMeta() {
return property.(properties.MetaProperty).GetData().(data.IDData).Get().(ids.IdentityID)
}
return constants.MaintainedClassificationIDProperty.GetData().(data.IDData).Get().(ids.IdentityID)
}

in maintainer GetIdentityID(), panics at interface conversion

Data & type is same but not matching in metaPropertyList.go

{"+ve", args{"ID:S|Data,ID1:S|Data1,ID2:S|Data2"}, base.NewMetaProperties([]properties2.MetaProperty{base2.NewMetaProperty(base3.NewID("ID"), base2.NewStringData("Data")), base2.NewMetaProperty(base3.NewID("ID1"), base2.NewStringData("Data1")), base2.NewMetaProperty(base3.NewID("ID2"), base2.NewStringData("Data2"))}...), false}, //TODO: Data & type is same but not matching

Document fails to Mutate with nil

for Test input:
{"+ve with nil mutables", fields{ClassificationID: classificationID, Immutables: testImmutables, Mutables: mutables{}}, args{[]properties.Property{testMutateProperty}}, document{ClassificationID: classificationID, Immutables: testImmutables, Mutables: mutables{}}.Mutate(testMutateProperty)},
in base/document.go

v0.2.0 mint supply error

if metaProperties := base.NewMetaPropertyList(append(message.ImmutableMetaProperties.GetList(), message.MutableMetaProperties.GetList()...)...); metaProperties.GetMetaProperty(constants.LockProperty) != nil {
split = metaProperties.GetMetaProperty(constants.LockProperty).GetData().(data.DecData).Get()
}

Fix RandomizedGenesisState method for maintainers module

// TODO fix this
// for i := range mappableList {
// 	immutables := baseQualified.NewImmutables(baseSimulation.GenerateRandomPropertyList(simulationState.Rand))
// 	mutables := baseQualified.NewMutables(baseSimulation.GenerateRandomPropertyList(simulationState.Rand))
// 	mappableList[i] = mappable.NewMappable(base.NewMaintainer(baseIDs.NewClassificationID(immutables, mutables), immutables, mutables))
// }

transactionKeeper have nil verifyAuxiliary

transactionKeeper have nil verifyAuxiliary

if auxiliaryResponse := transactionKeeper.verifyAuxiliary.GetKeeper().Help(context, verify.NewAuxiliaryRequest(message.From, message.FromID)); !auxiliaryResponse.IsSuccessful()

panics for nil NewProperty() in property.go

{"+ve with nil", args{}, property{}}, //TODO: panics for nil

{"+ve", fields{testPropertyID, testData.GetID()}, args{property{}}, 1}, //TODO: panics for nil

{"+ve with nil", fields{}, nil}, //TODO: panics for nil

{"+ve with nil", fields{}, nil}, //TODO: panics for nil

{"+ve with nil", fields{}, nil}, //TODO: panics for nil

Couldn't add in idList & propertyList

{"+ve for nil", fields{NewList()}, args{[]ids.ID{base.NewID("ID")}}, idList{NewList(idsToListables([]ids.ID{base.NewID("ID")}...)...)}}, //TODO: panic for nil

{"+ve nil with property addition", fields{NewList(propertiesToListables([]properties.Property{}...)...)}, args{[]properties.Property{base.NewProperty(baseIDs.NewID("a"), NewStringData("factA"))}}, propertyList{NewList(propertiesToListables([]properties.Property{base.NewProperty(baseIDs.NewID("a"), NewStringData("factA")), base.NewProperty(baseIDs.NewID("b"), NewStringData("factB"))}...)...)}}, //TODO: Not being added
{"+ve", fields{NewList(propertiesToListables([]properties.Property{base.NewProperty(baseIDs.NewID("a"), NewStringData("factA"))}...)...)}, args{[]properties.Property{base.NewProperty(baseIDs.NewID("b"), NewStringData("factB"))}}, propertyList{NewList(propertiesToListables([]properties.Property{base.NewProperty(baseIDs.NewID("a"), NewStringData("factA")), base.NewProperty(baseIDs.NewID("b"), NewStringData("factB"))}...)...)}}, //TODO: Not being added

stack overflow for ReadData()

For Following test data:
{"List Data", args{"L|"}, base.NewListData(nil), false}, //TODO: Fix this issue on priority

ReadData() is throwing fatal error: stack overflow in string_test.go
recursion is happening on calling GetZeroValueDataFromID() at dataID.go

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.